/* =========================================
   HOTEL DETAIL PAGE
========================================= */

/* Breadcrumb */
.hotel-breadcrumb {
    padding: 16px 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.hotel-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.hotel-breadcrumb a {
    color: #21356a;
    text-decoration: none;
}

.hotel-breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero */
.hotel-hero {
    padding: 32px 0;
    background: #fff;
}

.hotel-hero__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.hotel-hero__stars {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.hotel-hero__name {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.hotel-hero__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

.hotel-hero__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: #f8f9fb;
    padding: 16px 24px;
    border-radius: 12px;
}

.hotel-hero__price-label {
    font-size: 12px;
    color: #6b7280;
}

.hotel-hero__price-value {
    font-size: 28px;
    font-weight: 800;
    color: #21356a;
}

/* Photo Grid */
.hotel-photo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    height: 440px;
    border-radius: 16px;
    overflow: hidden;
}

.hotel-photo-grid--single {
    grid-template-columns: 1fr;
}

.hotel-photo-grid__main {
    overflow: hidden;
    border-radius: 16px 0 0 16px;
    cursor: pointer;
}

.hotel-photo-grid--single .hotel-photo-grid__main {
    border-radius: 16px;
}

.hotel-photo-grid__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hotel-photo-grid__main:hover img {
    transform: scale(1.03);
}

.hotel-photo-grid__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.hotel-photo-grid__cell {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.hotel-photo-grid__cell:nth-child(2) {
    border-radius: 0 16px 0 0;
}

.hotel-photo-grid__cell:nth-child(4) {
    border-radius: 0 0 16px 0;
}

.hotel-photo-grid__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hotel-photo-grid__cell:hover img {
    transform: scale(1.05);
}

/* "Voir toutes les photos" overlay */
.hotel-photo-grid__more {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: #1a1a2e;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.hotel-photo-grid__more:hover {
    background: #ffffff;
}

/* Lightbox */
.hotel-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.hotel-lightbox.active {
    display: flex;
}

.hotel-lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotel-lightbox__content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.hotel-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.hotel-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hotel-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.hotel-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hotel-lightbox__prev {
    left: 20px;
}

.hotel-lightbox__next {
    right: 20px;
}

.hotel-lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

/* Content Layout */
.hotel-content {
    padding: 40px 0 80px;
    background: #f8f9fb;
}

.hotel-content > .container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hotel-section {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.hotel-section__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.hotel-section__text {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
}

/* Amenities */
.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hotel-amenity {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f0f4ff;
    border-radius: 8px;
    font-size: 13px;
    color: #21356a;
    font-weight: 500;
}

/* Info Grid */
.hotel-infos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hotel-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fb;
    border-radius: 10px;
    flex: 1 1 auto;
    min-width: fit-content;
}

.hotel-info-item div {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.hotel-info-item strong {
    font-size: 15px;
    color: #1a1a2e;
}

.hotel-info-item span {
    font-size: 13px;
    color: #6b7280;
}

/* Tarif Cards Grid */
.tarif-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

/* Tarif Card */
.tarif-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tarif-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 20px rgba(33, 53, 106, 0.08);
}

.tarif-card--soldout {
    opacity: 0.55;
    pointer-events: none;
}

/* Badge */
.tarif-card__badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: #21356a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
}

/* Top section */
.tarif-card__top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tarif-card__icon {
    width: 44px;
    height: 44px;
    background: #f0f4ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #21356a;
    margin-bottom: 4px;
}

.tarif-card__name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.tarif-card__desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Price Block */
.tarif-card__price-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 12px 16px;
    background: #f8f9fb;
    border-radius: 10px;
}

.tarif-card__price {
    font-size: 26px;
    font-weight: 800;
    color: #21356a;
}

.tarif-card__price-suffix {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

/* Sold out */
.tarif-card__soldout {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #ef4444;
    padding: 10px 0;
}

/* Nights selection */
.tarif-card__nights {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tarif-card__nights-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
}

.tarif-card__night-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}

.tarif-card__night-option:hover {
    border-color: #c7d2fe;
    background: #fafbff;
}

.tarif-card__night-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tarif-card__night-check {
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    color: transparent;
}

.tarif-card__night-option input:checked ~ .tarif-card__night-check {
    background: #21356a;
    border-color: #21356a;
    color: #fff;
}

.tarif-card__night-option input:checked ~ .tarif-card__night-info .tarif-card__night-date {
    color: #1a1a2e;
    font-weight: 600;
}

.tarif-card__night-option input:checked ~ .night-qty-control {
    display: flex !important;
}

.tarif-card__night-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
}

.tarif-card__night-date {
    font-size: 14px;
    color: #4b5563;
    transition: color 0.15s;
}

.tarif-card__night-option input:checked ~ .tarif-card__night-info {
    color: #21356a;
}

/* Right side of night row: qty + remaining */
.tarif-card__night-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.tarif-card__night-remaining {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    color: #21356a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.qty-btn:hover {
    background: #f0f4ff;
}

.qty-value {
    width: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    line-height: 30px;
}


/* Booking Summary */
.hotel-booking-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.hotel-booking-summary__line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 6px;
}

.hotel-booking-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #1a1a2e;
    margin: 12px 0 16px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.hotel-booking-summary__total strong {
    font-size: 20px;
    color: #21356a;
}

/* Options Section */
.tarif-options-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.tarif-options-section__title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.tarif-options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tarif-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.tarif-option-card:hover {
    border-color: #93c5fd;
}

.tarif-option-card--selected {
    border-color: #21356a;
    background: #f0f4ff;
}

.tarif-option-card__badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: #21356a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.tarif-option-card__info {
    flex: 1;
    min-width: 0;
}

.tarif-option-card__name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 2px 0;
}

.tarif-option-card__desc {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 4px 0;
}

.tarif-option-card__price {
    font-size: 14px;
    font-weight: 700;
    color: #21356a;
}

.tarif-option-card__actions {
    flex-shrink: 0;
    margin-left: 16px;
}

.btn-add-option {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #21356a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-option:hover {
    background: #1a2b55;
}

.option-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Auto options (included) */
.tarif-options-auto {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tarif-option-auto-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
}

.tarif-option-auto-tag svg {
    color: #22c55e;
    flex-shrink: 0;
}

.tarif-option-auto-tag small {
    color: #15803d;
    font-weight: 600;
    margin-left: 2px;
}

/* Summary auto line */
.hotel-booking-summary__line--auto {
    font-size: 12px;
    color: #6b7280;
}

.hotel-booking-inline__empty {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Contact Line */
.hotel-contact-line {
    font-size: 14px;
    color: #6b7280;
}

.hotel-contact-line a {
    color: #21356a;
    font-weight: 600;
}

/* Map */
.hotel-map {
    border-radius: 12px;
    overflow: hidden;
}

/* Legacy compat */
.night-qty-control {
    display: flex;
}

/* Responsive */
@media (max-width: 900px) {
    .hotel-hero__name {
        font-size: 24px;
    }

    .hotel-photo-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hotel-photo-grid__main {
        height: 250px;
        border-radius: 16px 16px 0 0;
    }

    .hotel-photo-grid__side {
        height: 180px;
    }

    .hotel-photo-grid__cell:nth-child(2) {
        border-radius: 0;
    }

    .hotel-photo-grid__cell:nth-child(3) {
        border-radius: 0 0 0 16px;
    }

    .hotel-photo-grid__cell:nth-child(4) {
        border-radius: 0 0 16px 0;
    }

    .hotel-infos-grid {
        flex-direction: column;
    }

    .tarif-cards-grid {
        grid-template-columns: 1fr;
    }

    .tarif-card__night-option {
        flex-wrap: wrap;
    }

    .tarif-card__night-option .qty-control {
        margin-left: 32px;
        margin-top: 4px;
    }
}
