/* ============================================================
   hebergement-show.css
   Fiche détail d'un hébergement — La Kahute
   ============================================================ */

.heb-detail {
    padding: calc(var(--section-pad, 5rem) + 90px) var(--container-pad) var(--section-pad, 5rem);
    background: #fff;
}
.heb-detail__container {
    max-width: var(--container-max);
    margin-inline: auto;
}

/* ── Fil d'ariane ── */
.heb-detail__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-xs);
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}
.heb-detail__breadcrumb a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.heb-detail__breadcrumb a:hover { color: var(--color-terracotta); }

/* ── Galerie ── */
.heb-detail__gallery {
    margin-bottom: 2.5rem;
}
/* Bandeau défilant (12 novembre) : chaque photo garde ses proportions,
   la suivante dépasse à droite pour inviter à faire défiler. */
.heb-gallery {
    --heb-gallery-h: clamp(260px, 52vh, 440px);
    position: relative;
}
.heb-gallery__track {
    display: flex;
    gap: 12px;
    height: var(--heb-gallery-h);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border-radius: 10px;
}
.heb-gallery__track::-webkit-scrollbar { display: none; }
.heb-gallery__track:focus-visible {
    outline: 2px solid var(--color-terracotta);
    outline-offset: 3px;
}
.heb-gallery__slide {
    flex: none;
    height: 100%;
    min-width: 120px;
    padding: 0;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-sand);
    cursor: zoom-in;
    scroll-snap-align: start;
}
.heb-gallery__slide img {
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
    transition: transform 0.4s ease;
}
.heb-gallery__slide:hover img { transform: scale(1.02); }
.heb-gallery__slide:focus-visible {
    outline: 2px solid var(--color-terracotta);
    outline-offset: -2px;
}
.heb-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-forest);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.heb-gallery__nav[hidden] { display: none; }
.heb-gallery__nav:hover { background: #fff; }
.heb-gallery__nav--prev { left: 16px; }
.heb-gallery__nav--next { right: 16px; }
.heb-gallery__footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}
.heb-gallery__progress {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--color-sand-dark);
    overflow: hidden;
}
.heb-gallery__progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: var(--color-terracotta-dk, #A86E42);
    transition: width 0.2s ease;
}
.heb-gallery__count {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-forest-mid, #4A3828);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.heb-gallery__all {
    min-height: 40px;
    padding: 0 1rem;
    border: 0.5px solid var(--color-sand-dark);
    border-radius: 999px;
    background: transparent;
    color: var(--color-forest);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.heb-gallery__all:hover {
    border-color: var(--color-terracotta);
    background: var(--color-sand);
}
.heb-gallery__empty {
    height: var(--heb-gallery-h, 300px);
    background: var(--color-sand);
    display: flex;
    align-items: center;
    justify-content: center;
}
.heb-gallery__empty img { max-height: 100%; }

/* Visionneuse plein écran */
.heb-viewer {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: none;
    background: #1F1811;
    color: #F5EFE6;
}
.heb-viewer[open] {
    display: flex;
    flex-direction: column;
}
.heb-viewer::backdrop { background: #1F1811; }
html.heb-viewer-open { overflow: hidden; }
.heb-viewer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}
.heb-viewer__count {
    font-size: var(--text-sm);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}
.heb-viewer__stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}
.heb-viewer__stage img {
    flex: 1;
    min-width: 0;
    max-height: 100%;
    object-fit: contain;
    align-self: stretch;
}
.heb-viewer__btn {
    flex: none;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}
.heb-viewer__btn:hover { background: rgba(255, 255, 255, 0.2); }

/* ── En-tête ── */
.heb-detail__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 1.75rem;
    margin-bottom: 2.5rem;
    border-bottom: 0.5px solid var(--color-sand-dark);
}
.heb-detail__type {
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}
.heb-detail__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 400;
    color: var(--color-forest);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.heb-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.heb-detail__tag {
    display: inline-flex;
    padding: 0.3rem 0.75rem;
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-forest);
    background: var(--color-sand);
    border: 0.5px solid var(--color-sand-dark);
}

.heb-detail__head-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}
.heb-detail__price {
    display: flex;
    flex-direction: column;
    text-align: right;
}
.heb-detail__price-from {
    font-size: var(--text-xs);
    color: var(--color-muted);
    letter-spacing: 0.04em;
}
.heb-detail__price-value {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-forest);
    line-height: 1.1;
}
.heb-detail__price-unit {
    font-size: var(--text-xs);
    color: var(--color-muted);
}
.heb-detail__price-line {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.heb-detail__book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    background: var(--color-terracotta);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color var(--transition-fast);
    white-space: nowrap;
}
.heb-detail__price-currency {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--color-forest);
    line-height: 1.1;
}
.heb-detail__book-btn:hover {
    background: var(--color-terracotta-dk);
    text-decoration: none;
}

/* ── Layout : contenu + sidebar ── */
.heb-detail__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3.5rem;
    align-items: start;
}

.heb-detail__section {
    margin-bottom: 3rem;
}
.heb-detail__section h2 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--color-forest);
    margin-bottom: 1rem;
}
.heb-detail__section h3 {
    font-size: var(--text-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}
.heb-detail__description {
    font-size: var(--text-base);
    color: var(--color-muted);
    line-height: 1.8;
}

/* Couchages */
.heb-detail__beds {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.heb-detail__beds li {
    font-size: var(--text-base);
    color: var(--color-forest);
}
.heb-detail__beds-cap {
    color: var(--color-muted);
    font-size: var(--text-sm);
}
.heb-detail__hint {
    margin-top: 0.75rem;
    font-size: var(--text-sm);
    color: var(--color-muted);
    font-style: italic;
}

/* Équipements */
.heb-detail__equip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.heb-detail__equip-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.heb-detail__equip-list li {
    font-size: var(--text-sm);
    color: var(--color-muted);
    padding-left: 1.1rem;
    position: relative;
}
.heb-detail__equip-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.5em;
    width: 5px; height: 5px;
    background: var(--color-terracotta);
    border-radius: 50%;
}

/* Options */
.heb-detail__options {
    list-style: none;
    display: flex;
    flex-direction: column;
}
.heb-detail__options li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    padding: 1rem 0;
    border-bottom: 0.5px solid var(--color-sand-dark);
}
.heb-detail__options-name {
    font-size: var(--text-base);
    color: var(--color-forest);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.heb-detail__options-required {
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    border: 0.5px solid var(--color-terracotta);
    padding: 0.1rem 0.4rem;
}
.heb-detail__options-desc {
    grid-column: 1 / -1;
    font-size: var(--text-sm);
    color: var(--color-muted);
    margin: 0;
}
.heb-detail__options-price {
    font-size: var(--text-base);
    color: var(--color-forest);
    white-space: nowrap;
}
.heb-detail__options-price span {
    font-size: var(--text-xs);
    color: var(--color-muted);
}

/* ── Sidebar ── */
.heb-detail__sidebar-card {
    position: sticky;
    top: calc(90px + 1.5rem);
    border: 0.5px solid var(--color-sand-dark);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}
.heb-detail__price--card {
    text-align: left;
    margin-bottom: 0.25rem;
}
.heb-detail__book-btn--full {
    width: 100%;
}
.heb-detail__sidebar-hint {
    font-size: var(--text-xs);
    color: var(--color-muted);
    line-height: 1.5;
    text-align: center;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .heb-detail__layout {
        grid-template-columns: 1fr;
    }
    .heb-detail__sidebar-card {
        position: static;
    }
    .heb-detail__head {
        flex-direction: column;
        align-items: flex-start;
    }
    .heb-detail__head-cta {
        width: 100%;
        justify-content: space-between;
    }
    .heb-detail__equip-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}
@media (max-width: 600px) {
    .heb-detail__head-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .heb-detail__layout {
        gap: 1rem;
    }
     .heb-detail {
        padding-top: calc(var(--section-pad, 3rem) + 60px);
    }
    .heb-detail__price { text-align: left; }
}
.heb-detail__price--card {
    position: relative;
}

.heb-detail__promo-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8571f;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50%;
    text-align: center;
    line-height: 1;
}

.heb-detail__price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 0.4rem;
}
/* Phrase sous le titre « Frais obligatoires » / « Options disponibles » (2 novembre) */
.heb-detail__options-intro {
    font-size: var(--text-sm);
    color: var(--color-muted);
    margin: -0.5rem 0 0.25rem;
}
.heb-detail__options-range {
    font-size: var(--text-xs);
    color: var(--color-muted);
}

/* ── 10 novembre : haut resserré, galerie navigable, réservation visible ── */
.heb-detail {
    padding-top: calc(var(--header-height, 64px) + 2rem);
}
.heb-detail__gallery {
    margin-bottom: 1.75rem;
}
.heb-detail__head {
    margin-bottom: 2rem;
}
.heb-detail__mobilebar {
    display: none;
}

@media (max-width: 900px) {
    .heb-detail {
        padding-bottom: calc(var(--section-pad, 5rem) + 72px);
    }
    .heb-detail__mobilebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.75rem var(--container-pad);
        background: #fff;
        border-top: 0.5px solid var(--color-sand-dark);
        box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06);
        transform: translateY(110%);
        transition: transform 0.25s ease;
    }
    .heb-detail__mobilebar.is-visible {
        transform: translateY(0);
    }
    .heb-detail__mobilebar .heb-detail__price { text-align: left; }
    .heb-detail__mobilebar .heb-detail__book-btn { padding: 0.8rem 1.5rem; }
}
@media (max-width: 600px) {
    .heb-detail {
        padding-top: calc(var(--header-height, 64px) + 1.25rem);
    }
    .heb-gallery { --heb-gallery-h: 260px; }
    .heb-gallery__track { gap: 8px; }
    .heb-gallery__slide img { max-width: 85vw; object-fit: cover; }
    .heb-gallery__all { display: none; }
    .heb-viewer__top { padding: 0.75rem 1rem; }
    .heb-viewer__stage { padding: 0 0 1rem; gap: 0; position: relative; }
    .heb-viewer__btn--side { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.35); }
    #heb-viewer-prev { left: 8px; }
    #heb-viewer-next { right: 8px; }
    .heb-detail__head-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Grand écran : la carte de droite suffit, pas de second bouton sous le titre (10 novembre) */
@media (min-width: 901px) {
    .heb-detail__head-cta { display: none; }
}

/* Indication de suite : petite flèche qui bat doucement en bas de l'écran */
.heb-detail__scrollcue {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 55;
    width: 44px;
    height: 44px;
    margin-left: -22px;
    border: 0.5px solid var(--color-sand-dark);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-forest);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.heb-detail__scrollcue[hidden] { display: none; }
.heb-detail__scrollcue.is-visible {
    opacity: 1;
    animation: heb-scrollcue-bob 1.8s ease-in-out infinite;
}
@keyframes heb-scrollcue-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
    .heb-detail__scrollcue.is-visible { animation: none; }
}

/* « ou » entre deux frais qui dépendent de la durée : un seul s'applique (11 novembre) */
.heb-detail__options li.heb-detail__options-or {
    display: block;
    padding: 0.35rem 0;
    border: none;
    text-align: center;
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta, #b8774a);
}

/* Écrans tactiles : on fait défiler au doigt, pas besoin des flèches */
@media (hover: none) {
    .heb-gallery__nav { display: none; }
}
