/* ============================================================
   Fiche location zonée (2026-07) — zones, barre d'ancres bois,
   calendrier apaisé, responsive mobile → écrans larges.
   Charte : brun/orange/crème existante + texture bois réelle.
   ============================================================ */

:root {
    --lz-liseret: #e7dccd;
    --lz-creme: #f6efe6;
    --lz-bois: #5d4231;
    --lz-encre: #2d2620;
    --lz-gris: #8a7f74;
    /* Calendrier apaisé (remplace vert/rouge saturés) */
    --lz-dispo: #e4efe7;
    --lz-dispo-txt: #2f5c3c;
    --lz-resa: #f4e3df;
    --lz-resa-txt: #8f4a3a;
}

/* ── Fond crème de la fiche : les cartes blanches se détachent (maquette) ── */
.listing-detail-page-wrap {
    background: var(--lz-creme);
}

/* ── Zone : carte blanche à en-tête normalisé ── */
.lz-zone {
    background: var(--white, #fff);
    border: 1px solid var(--lz-liseret);
    border-radius: 12px;
    margin-bottom: 26px;
    overflow: hidden;
    scroll-margin-top: 72px;
    box-shadow: 0 2px 8px rgba(43, 26, 17, 0.07);
}

.lz-zone__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 22px;
    border-bottom: 1px solid var(--lz-liseret);
    background: linear-gradient(#fff, #fbf7f0);
}

.lz-zone__ico {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 9px;
    background: url('../../images/textures/bois-chalet.jpg');
    background-size: 180px;
    box-shadow: inset 0 0 0 100px rgba(43, 26, 17, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lz-zone__ico i {
    color: #ffe9cf;
    font-size: 15px;
}

.lz-zone__title {
    font-size: 18px;
    margin: 0;
    letter-spacing: -0.01em;
    color: var(--lz-encre);
}

.lz-zone__hint {
    margin-left: auto;
    color: var(--lz-gris);
    font-size: 12.5px;
    text-align: right;
}

.lz-zone__body {
    padding: 20px 22px;
}

.lz-zone__subtitle {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--lz-bois);
    margin: 20px 0 10px;
}

/* Les composants historiques embarquent leurs propres cartes/paddings :
   à l'intérieur d'une zone, on les met à plat. */
.lz-zone__body .listing-checklist,
.lz-zone__body .listing-booking-section__block,
.lz-zone__body .listing-conditions-card,
.lz-zone__body .listing-description {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0 0 18px;
}

.lz-zone__body > :last-child {
    margin-bottom: 0;
}

/* ── Barre d'ancres bois sticky ── */
.lz-anchors {
    position: sticky;
    top: 0;
    z-index: 60;
    margin: 18px 0 24px;
    border-radius: 10px;
    background: url('../../images/textures/bois-chalet.jpg');
    background-size: 420px;
    position: -webkit-sticky;
    box-shadow: 0 3px 10px rgba(43, 26, 17, 0.25);
    overflow: hidden;
}

.lz-anchors::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(43, 26, 17, 0.62);
    pointer-events: none;
}

.lz-anchors__nav {
    position: relative;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 8px;
}

.lz-anchors__nav::-webkit-scrollbar {
    display: none;
}

.lz-anchors__link {
    color: #f0e6da;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 14px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.lz-anchors__link:hover,
.lz-anchors__link--on {
    color: #fff;
    border-bottom-color: var(--main-color-orange, #e8863b);
}

/* ── Équipements : légende des pictos colorés (inclus / option / indispo) ── */
.lz-equip-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 13px;
    color: var(--lz-gris);
    margin-bottom: 10px;
}

.lz-equip-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.lz-equip-legend__item i {
    font-size: 15px;
}

/* ── Équipements : indisponibles masqués par défaut (toggle unique de zone) ── */
.lz-toggle {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--lz-gris);
    cursor: pointer;
    user-select: none;
    margin-bottom: 4px;
}

.lz-toggle input {
    accent-color: var(--main-color-orange, #e8863b);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.lz-equip--hide .listing-checklist__item--unavailable,
.lz-equip--hide .listing-checklist__unavailable-separator {
    display: none;
}

.lz-equip--hide .lz-equip-grp[data-all-na] {
    display: none;
}

/* Les familles enchaînées gardent leur séparation (le liseré vit sur le
   wrapper de groupe pour suivre le masquage des familles tout-indisponible) */
.lz-equip-grp + .lz-equip-grp .listing-checklist {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px dashed var(--lz-liseret);
}

.lz-zone__body .listing-checklist__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--lz-bois);
}

.lz-zone__body .listing-checklist__item--unavailable {
    color: #b6aca1;
}

.lz-zone__body .listing-checklist__item--unavailable .listing-checklist__item-icon {
    color: #cfc5b9 !important;
}

/* ── Calendrier apaisé : on ré-étalonne les couleurs existantes ── */
#lz-tarifs .listing-avail__day--available {
    background: var(--lz-dispo) !important;
}

#lz-tarifs .listing-avail__day--available,
#lz-tarifs .listing-avail__day--available span {
    color: var(--lz-dispo-txt) !important;
}

#lz-tarifs .listing-avail__day--booked {
    background: var(--lz-resa) !important;
}

#lz-tarifs .listing-avail__day--booked,
#lz-tarifs .listing-avail__day--booked span {
    color: var(--lz-resa-txt) !important;
}

/* « Sans tarif » : même famille que « Réservé » (légende commune « Réservé / Sans
   tarif »). Recalibré comme booked — l'oubli laissait no-price sur l'ancien rouge
   criard (--accent-red-light), d'où deux rouges différents dans le même planning. */
#lz-tarifs .listing-avail__day--no-price {
    background: var(--lz-resa) !important;
}

#lz-tarifs .listing-avail__day--no-price,
#lz-tarifs .listing-avail__day--no-price span {
    color: var(--lz-resa-txt) !important;
}

/* Jours de transition (arrivée/départ le même jour) : dégradé apaisé assorti */
#lz-tarifs .listing-avail__day--transition-in {
    background: linear-gradient(135deg, var(--lz-resa) 50%, var(--lz-dispo) 50%) !important;
}

#lz-tarifs .listing-avail__day--transition-out {
    background: linear-gradient(135deg, var(--lz-dispo) 50%, var(--lz-resa) 50%) !important;
}

#lz-tarifs .listing-avail__day--transition-in span,
#lz-tarifs .listing-avail__day--transition-out span {
    color: var(--lz-encre) !important;
}

/* Badge confiance : bloc compact intégré à la carte propriétaire */
.listing-detail-sidebar .listing-host-card__badge {
    border-radius: 9px;
}

#lz-tarifs .listing-booking-section__legend {
    margin-bottom: 14px;
}

/* Tarifs semaine : boîtes resserrées, prix en sapin */
#lz-tarifs .listing-availability__rate,
#lz-tarifs [class*="__rate-value"] {
    color: var(--lz-dispo-txt);
}

/* ── Zone Station : cartes station principale/secondaire + domaines ── */
.lz-stations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.lz-stcard {
    background: var(--lz-creme);
    border-radius: 10px;
    padding: 14px 16px;
}

.lz-stcard h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--lz-encre);
}

.lz-stcard p {
    margin: 5px 0;
    font-size: 13.5px;
    color: #5c5248;
}

.lz-stcard p i {
    color: var(--main-color-orange, #e8863b);
    width: 18px;
    text-align: center;
    margin-right: 4px;
}

.lz-stcard p b {
    color: var(--lz-encre);
    font-weight: 600;
}

.lz-stcard__link a {
    color: var(--main-color-orange, #e8863b);
    font-weight: 600;
    text-decoration: none;
}

.lz-stcard__link a:hover {
    text-decoration: underline;
}

.lz-domaines {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fdf1e3;
    border-radius: 9px;
    font-size: 13.5px;
}

.lz-domaines p {
    margin: 4px 0;
}

.lz-domaines a {
    color: var(--main-color-orange, #e8863b);
    font-weight: 600;
    text-decoration: none;
}

.lz-domaines a:hover {
    text-decoration: underline;
}

.lz-station__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* ── Boutons de zone ── */
.lz-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: var(--dark1, #37241c);
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    border-radius: 9px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s;
}

.lz-btn:hover {
    opacity: 0.88;
    color: #fff;
}

.lz-btn--ghost {
    background: #fff;
    border: 1px solid var(--main-color-orange, #e8863b);
    color: var(--main-color-orange, #e8863b);
}

.lz-btn--ghost:hover {
    background: #fdf1e3;
    color: var(--main-color-orange, #e8863b);
}

/* ── Bulle d'aide (lignes de capacité, etc.) ── */
.lz-help {
    position: relative;
    display: inline-flex;
    margin-left: 6px;
    color: #b6aca1;
    cursor: help;
    outline: none;
    font-size: 13px;
}

.lz-help:hover,
.lz-help:focus {
    color: var(--main-color-orange, #e8863b);
}

.lz-help::after {
    content: attr(data-help);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 240px;
    background: var(--dark1, #37241c);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    padding: 8px 11px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(43, 26, 17, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s;
    z-index: 40;
    white-space: normal;
}

.lz-help:hover::after,
.lz-help:focus::after {
    opacity: 1;
}

/* ── Zone Avis : avis non publiés (mise en relation directe) ── */
.lz-avis__notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--lz-creme);
    border-radius: 10px;
    padding: 16px 18px;
}

.lz-avis__notice > i {
    color: var(--main-color-orange, #e8863b);
    font-size: 17px;
    margin-top: 2px;
    flex: none;
}

.lz-avis__notice p {
    margin: 0 0 8px;
    font-size: 13.8px;
    line-height: 1.55;
    color: #5c5248;
}

.lz-avis__notice p:last-child {
    margin-bottom: 0;
}

.lz-avis__action {
    margin-top: 14px;
}

/* ── CTA sticky mobile ── */
.lz-sticky-cta {
    display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
    .lz-sticky-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        display: flex;
        align-items: center;
        gap: 12px;
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--lz-liseret);
        box-shadow: 0 -4px 16px rgba(43, 26, 17, 0.12);
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .lz-sticky-cta__info {
        min-width: 0;
        flex: 1 1 0;
        overflow: hidden;
    }

    .lz-sticky-cta__info b {
        display: block;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lz-sticky-cta__info span {
        font-size: 11.5px;
        color: var(--lz-gris);
    }

    .lz-sticky-cta__btn {
        flex: none;
        border: none;
        background: linear-gradient(180deg, #f0954a, var(--main-color-orange, #e8863b));
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        border-radius: 10px;
        padding: 12px 20px;
        cursor: pointer;
        box-shadow: 0 3px 8px rgba(232, 134, 59, 0.35);
    }

    /* La barre CTA ne doit pas masquer le bas de page */
    .listing-detail-page-wrap {
        padding-bottom: 74px;
    }

    /* La mascotte chat (bulle fixe bas-droite) remonte au-dessus de la barre CTA */
    .home-chat {
        bottom: 84px;
    }
}

/* ── Menu d'ancres : desktop/tablette large uniquement — en mobile le menu
   principal (burger) suffit, et le sticky est peu fiable sous l'overflow-x
   global de reset.css sur iOS ── */
@media (max-width: 900px) {
    .lz-anchors {
        display: none;
    }
}

@media (max-width: 760px) {
    /* Calendrier : les 2 mois s'empilent (le composant n'a aucune media query
       de largeur → débordement horizontal sur mobile sans cette règle) */
    #lz-tarifs .listing-avail__calendars {
        flex-direction: column;
    }

    /* Grilles label/valeur (caractéristiques, conditions) : une seule colonne */
    .lz-zone__body .listing-conditions-card__grid--cols2 {
        grid-template-columns: 1fr !important;
    }

    /* Cartes stations empilées */
    .lz-stations {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .lz-zone__header {
        padding: 12px 14px;
    }

    .lz-zone__hint {
        display: none;
    }

    .lz-zone__body {
        padding: 16px 14px;
    }

    /* Checklists : 2 colonnes max en mobile */
    .lz-zone__body .listing-checklist__list--cols3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 460px) {
    .lz-zone__body .listing-checklist__list--cols3 {
        grid-template-columns: 1fr !important;
    }

    /* Barre sticky très étroite : le bouton reste prioritaire */
    .lz-sticky-cta__info span {
        display: none;
    }

    .lz-sticky-cta__btn {
        padding: 12px 16px;
    }
}

/* ============================================================
   ÉCRANS LARGES — la fiche respire
   ============================================================ */

@media (min-width: 1600px) {
    .listing-detail-layout {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }

    .lz-zone__body {
        padding: 26px 30px;
    }

    .lz-zone__header {
        padding: 17px 30px;
    }

    .lz-zone__title {
        font-size: 19px;
    }
}

@media (min-width: 1920px) {
    .listing-detail-layout {
        max-width: 1520px;
    }
}
