/**
 * concierge-search.css
 * Hero search form refait par Claude Design — avril 2026
 *
 * Remplace l'ancienne barre Airbnb-style. Mode compact intégré dans le hero,
 * mode concierge (overlay 5 étapes) déclenché via le bouton "Mode concierge".
 *
 * Fonts Cormorant + Jost déjà chargés globalement (fonts.css).
 * Variables existent dans color.css (avec aliases Claude Design).
 */

/* ============================================================
   COMPACT SEARCH BAR
   ============================================================ */
.search-compact-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.search-compact {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.4fr 1.4fr auto;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(180deg, rgba(20, 20, 24, 0.92) 0%, rgba(14, 14, 18, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    /* Clip children so the rounded corners are clean (no venue dropdown to
       escape the bar anymore — that moved to the quote modal). */
    overflow: hidden;
}

/* Match the inner cells to the parent radius for a clean rounded look */
.search-compact > :first-child {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}
.search-compact > :last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.search-compact::before {
    /* Satin sheen */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg,
        transparent 35%,
        rgba(201, 169, 98, 0.04) 50%,
        transparent 65%);
}

.search-compact__field {
    position: relative;
    padding: 1.85rem 2.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    background: transparent;
    border-top: none;
    border-bottom: none;
    border-left: none;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.18s var(--ease-out);
    color: var(--color-fg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 0;
}

/* A subtle gold underline grows from center on hover/focus — premium feel */
.search-compact__field::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    transform: translateX(-50%);
    transition: width 0.32s var(--ease-out);
    pointer-events: none;
}
.search-compact__field:hover::after,
.search-compact__field:focus-within::after {
    width: 60%;
}

.search-compact__field:hover {
    background: rgba(201, 169, 98, 0.04);
}

.search-compact__field:focus-visible,
.search-compact__field:focus-within {
    outline: none;
    background: rgba(201, 169, 98, 0.06);
    box-shadow: inset 0 -1px 0 var(--color-gold);
}

.search-compact__field.is-filled .search-compact__value {
    color: var(--color-fg);
}

.search-compact__label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--color-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin: 0;
}

.search-compact__label i {
    font-size: 0.95rem;
    opacity: 0.95;
}

.search-compact__value {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.18rem;
    color: var(--color-fg-2);
    letter-spacing: 0.005em;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-compact__value--placeholder {
    color: var(--color-fg-muted);
    font-weight: 300;
}

/* Hidden native control sitting on top of the field for proper focus/typing */
.search-compact__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: transparent;
    font: inherit;
    cursor: pointer;
    opacity: 0;
}

.search-compact__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 0 2.85rem;
    margin: 8px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1a1a1a;
    /* Soft gold gradient that animates left→right on hover */
    background: linear-gradient(135deg, #B8985A 0%, #E8D5A3 50%, #B8985A 100%);
    background-size: 220% 100%;
    background-position: 0% 50%;
    border: 1px solid rgba(255, 246, 217, 0.35);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    box-shadow:
        0 8px 28px rgba(201, 169, 98, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    transition:
        background-position 0.5s var(--ease-out),
        box-shadow 0.3s var(--ease-out),
        transform 0.18s var(--ease-out);
}

/* Subtle satin sheen sliding across on hover */
.search-compact__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.28) 50%,
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s var(--ease-out);
}

.search-compact__cta:hover {
    background-position: 100% 50%;
    transform: translateY(-1px);
    box-shadow:
        0 14px 44px rgba(201, 169, 98, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.search-compact__cta:hover::before {
    transform: translateX(100%);
}

.search-compact__cta:active {
    transform: translateY(0);
    box-shadow:
        0 4px 14px rgba(201, 169, 98, 0.35),
        inset 0 2px 4px rgba(0, 0, 0, 0.18);
}

.search-compact__cta i {
    font-size: 0.85rem;
    transition: transform 0.28s var(--ease-out);
}

.search-compact__cta:hover i {
    transform: translateX(5px);
}

/* ============================================================
   COMPACT SEARCH BELOW (trust + concierge link)
   ============================================================ */
.search-compact__below {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.875rem;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(201, 169, 98, 0.75);
    position: relative;
    /* z-index 1 so it sits below the venue dropdown (z-index 100) */
    z-index: 1;
}

.search-compact__below-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.search-compact__below--centered {
    justify-content: center;
}
.search-compact__below--centered .search-compact__below-left {
    justify-content: center;
}

.search-compact__below-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(201, 169, 98, 0.4);
    display: inline-block;
}

.search-compact__concierge-link {
    background: none;
    border: none;
    color: var(--color-fg);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.4rem 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    position: relative;
    transition: color 0.18s var(--ease-out);
}

.search-compact__concierge-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--color-gold);
    transform-origin: left;
    transform: scaleX(0.4);
    opacity: 0.5;
    transition:
        transform 0.32s var(--ease-out),
        opacity 0.32s var(--ease-out);
}

.search-compact__concierge-link:hover {
    color: var(--color-gold-light);
}

.search-compact__concierge-link:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.search-compact__concierge-link i {
    font-size: 0.625rem;
}

/* ============================================================
   VENUE SUGGEST DROPDOWN (curated first)
   ============================================================ */
.search-compact__field--location {
    position: relative;
}

/* On the location field, the input is the visible value
   (the dual-span pattern doesn't work for free-text typing). */
.search-compact__field--location .search-compact__value {
    display: none;
}

.search-compact__field--location .search-compact__input {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    opacity: 1;
    color: var(--color-fg);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9375rem;
    letter-spacing: 0.005em;
    line-height: 1.3;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    cursor: text;
}

.search-compact__field--location .search-compact__input::placeholder {
    color: var(--color-fg-muted);
    font-weight: 300;
}

.venue-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(20, 20, 24, 0.96) 0%, rgba(14, 14, 18, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 320px;
    width: max-content;
    max-width: min(540px, 95vw);
}

.venue-suggest__header {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
    padding: 14px 18px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.venue-suggest__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: background 0.18s var(--ease-out);
    font-family: var(--font-body);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.venue-suggest__item:last-child {
    border-bottom: 0;
}

.venue-suggest__item:hover,
.venue-suggest__item:focus,
.venue-suggest__item.is-active {
    background: rgba(201, 169, 98, 0.06);
    outline: none;
}

.venue-suggest__icon {
    width: 32px;
    height: 32px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gold-line);
    border-radius: 50%;
    color: var(--color-gold);
    font-size: 11px;
    background: rgba(201, 169, 98, 0.04);
}

.venue-suggest__body {
    flex: 1;
    min-width: 0;
}

.venue-suggest__name {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-fg);
    line-height: 1.2;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venue-suggest__meta {
    display: block;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-top: 4px;
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venue-suggest__hint {
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--color-fg-muted);
    font-style: italic;
}

.venue-suggest__hint strong {
    color: var(--color-gold);
    font-style: normal;
    font-weight: 500;
}

.venue-suggest__hint--attribution {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-fg-disabled);
    font-style: normal;
    padding: 10px 18px 12px;
}

/* Subtle loading state — no DOM rebuild while typing */
.venue-suggest.is-loading {
    position: relative;
}
.venue-suggest.is-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-gold) 50%,
        transparent 100%);
    background-size: 30% 100%;
    background-repeat: no-repeat;
    animation: venueLoadBar 1.1s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}
@keyframes venueLoadBar {
    0%   { background-position: -30% 0; }
    100% { background-position: 130% 0; }
}

/* "At home" highlighted quick-pick */
.venue-suggest__item--home {
    background: linear-gradient(180deg,
        rgba(201, 169, 98, 0.06) 0%,
        rgba(201, 169, 98, 0.02) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.venue-suggest__item--home .venue-suggest__icon {
    background: rgba(201, 169, 98, 0.12);
}

/* Empty-state prompt — invite user to type */
.venue-suggest__prompt {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: text;
}

/* Make the whole location field act like a click target for the input */
.search-compact__field--location {
    cursor: text;
}
.search-compact__field--location .venue-suggest__chip,
.search-compact__field--location .venue-suggest__item {
    cursor: pointer;
}

.venue-suggest__prompt-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(201, 169, 98, 0.08);
    border: 1px solid var(--color-gold-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 14px;
}

.venue-suggest__prompt-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.venue-suggest__prompt-title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-fg);
}

.venue-suggest__prompt-subtitle {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 300;
    color: var(--color-fg-muted);
    line-height: 1.45;
}

.venue-suggest__examples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 18px 16px;
}

.venue-suggest__examples-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-fg-disabled);
    margin-right: 4px;
}

.venue-suggest__chip {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    color: var(--color-fg-2);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 5px 11px;
    cursor: pointer;
    transition: all 0.18s var(--ease-out);
    letter-spacing: 0.01em;
}

.venue-suggest__chip:hover,
.venue-suggest__chip:focus-visible {
    border-color: var(--color-gold-line);
    color: var(--color-gold);
    background: rgba(201, 169, 98, 0.06);
    outline: none;
}

/* Loading state — spinner premium */
.venue-suggest__loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-fg-2);
    font-style: italic;
}

.venue-suggest__spinner {
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(201, 169, 98, 0.2);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: venue-spin 0.7s linear infinite;
    flex: none;
}

@keyframes venue-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .venue-suggest__spinner { animation: none; border-top-color: var(--color-gold-line); }
}

@media (max-width: 900px) {
    .venue-suggest {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: none;
        min-width: auto;
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 60vh;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    /* Below desktop the bar stacks vertically — keeps a consistent rhythm
       between the 3 fields, no half-empty rows from the (now removed) 4th. */
    .search-compact {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .search-compact__field {
        padding: 0.95rem 1.25rem;
        gap: 0.25rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .search-compact__label {
        font-size: 0.7rem;
    }
    .search-compact__value {
        font-size: 1rem;
    }
    .search-compact__cta {
        margin: 8px;
        padding: 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 540px) {
    /* Safari iOS — defensive: ensure the bar can never grow wider than its
       parent (iOS WebKit can be picky with grid + auto column tracks). */
    .search-compact-wrap {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .search-compact {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .search-compact__field {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        padding: 0.7rem 1rem !important;
        gap: 0.15rem !important;
        min-width: 0;
        box-sizing: border-box;
    }
    .search-compact__label {
        font-size: 0.65rem !important;
        letter-spacing: 0.2em;
    }
    .search-compact__value {
        font-size: 0.95rem !important;
        max-width: 100%;
    }
    .search-compact__cta {
        padding: 0.95rem 1.1rem !important;
        font-size: 0.85rem !important;
        letter-spacing: 0.1em !important;
        margin: 6px !important;
        min-width: 0;
        box-sizing: border-box;
    }
    .search-compact__below {
        padding: 6px 12px !important;
        font-size: 0.7rem !important;
    }
    /* Form-wrapper: tighter side padding so the bar uses the full screen */
    .site-hero__form-wrapper {
        padding: 0 12px !important;
    }
}

/* ============================================================
   GUESTS PANEL — Preset Strip + Smart Log Slider
   Recommandation Conseil des 4 (Gemini + GPT + Groq).
   ============================================================ */
.search-compact__field--guests {
    cursor: pointer;
    position: relative;
}
.search-compact__field--guests.is-open {
    background: rgba(201, 169, 98, 0.04);
}
.search-compact__input--hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    left: 0; top: 0;
}

.guests-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, 92vw);
    z-index: 110;
    background: linear-gradient(180deg,
        rgba(20, 18, 28, 0.98) 0%,
        rgba(14, 12, 18, 0.98) 100%);
    border: 1px solid rgba(201, 169, 98, 0.22);
    border-radius: 18px;
    padding: 22px 22px 18px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: guestsPanelIn 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.1);
    text-align: left;
}

@keyframes guestsPanelIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Petit triangle haut */
.guests-panel::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(20, 18, 28, 0.98);
    border-left: 1px solid rgba(201, 169, 98, 0.22);
    border-top: 1px solid rgba(201, 169, 98, 0.22);
}

/* COUNT DISPLAY */
.guests-panel__display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}
.guests-panel__count {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    background: linear-gradient(135deg, #FFF6D9 0%, #C9A962 60%, #E8D5A3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}
.guests-panel__suffix {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.guests-panel__zone {
    text-align: center;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold, #C9A962);
    margin-bottom: 16px;
    min-height: 14px;
}

/* PRESETS STRIP */
.guests-panel__presets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 18px;
}
.guests-panel__preset {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: var(--font-body, 'Inter', sans-serif);
}
.guests-panel__preset:hover {
    background: rgba(201, 169, 98, 0.08);
    border-color: rgba(201, 169, 98, 0.35);
    color: #fff;
    transform: translateY(-1px);
}
.guests-panel__preset.is-active {
    background: linear-gradient(160deg, rgba(201, 169, 98, 0.22), rgba(201, 169, 98, 0.10));
    border-color: rgba(201, 169, 98, 0.6);
    color: #fff;
    box-shadow: 0 4px 14px rgba(201, 169, 98, 0.25);
}
.guests-panel__preset-icon {
    display: flex;
    gap: 2px;
    align-items: end;
    height: 14px;
    margin-bottom: 2px;
}
.guests-panel__preset-dot {
    width: 4px;
    height: 100%;
    background: currentColor;
    border-radius: 2px;
    opacity: 0.7;
}
.guests-panel__preset-dot:nth-child(1) { height: 35%; }
.guests-panel__preset-dot:nth-child(2) { height: 55%; }
.guests-panel__preset-dot:nth-child(3) { height: 75%; }
.guests-panel__preset-dot:nth-child(4) { height: 90%; }
.guests-panel__preset-dot:nth-child(5) { height: 100%; }
.guests-panel__preset.is-active .guests-panel__preset-dot { opacity: 1; }
.guests-panel__preset-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    line-height: 1.2;
    text-align: center;
}
.guests-panel__preset-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.3px;
}
.guests-panel__preset.is-active .guests-panel__preset-sub { color: rgba(255, 246, 217, 0.85); }

/* SLIDER */
.guests-panel__slider-wrap {
    padding: 0 4px;
}
.guests-panel__slider-label {
    display: block;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
    text-align: center;
}
.guests-panel__slider {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background:
        linear-gradient(90deg,
            #C9A962 0%,
            #E8D5A3 var(--fill, 0%),
            rgba(255, 255, 255, 0.08) var(--fill, 0%),
            rgba(255, 255, 255, 0.08) 100%);
    outline: none;
    cursor: grab;
}
.guests-panel__slider:active { cursor: grabbing; }
.guests-panel__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #FFF6D9 0%, #E8D5A3 40%, #C9A962 100%);
    border: 2px solid rgba(20, 18, 28, 0.95);
    box-shadow:
        0 0 0 1px rgba(201, 169, 98, 0.6),
        0 4px 12px rgba(201, 169, 98, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    cursor: grab;
    transition: transform 0.15s ease;
}
.guests-panel__slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.guests-panel__slider::-webkit-slider-thumb:active { transform: scale(0.95); cursor: grabbing; }
.guests-panel__slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #FFF6D9 0%, #E8D5A3 40%, #C9A962 100%);
    border: 2px solid rgba(20, 18, 28, 0.95);
    box-shadow:
        0 0 0 1px rgba(201, 169, 98, 0.6),
        0 4px 12px rgba(201, 169, 98, 0.4);
    cursor: grab;
    transition: transform 0.15s ease;
}
.guests-panel__slider::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background:
        linear-gradient(90deg,
            #C9A962 0%,
            #E8D5A3 var(--fill, 0%),
            rgba(255, 255, 255, 0.08) var(--fill, 0%),
            rgba(255, 255, 255, 0.08) 100%);
}
.guests-panel__scale {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

/* Backdrop sombre pour mobile sheet — animé par le JS qui ajoute body.guests-modal-open */
body.guests-modal-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(8, 6, 12, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 109;
    animation: guestsBackdropIn 0.22s ease;
}
@keyframes guestsBackdropIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
    /* Sur mobile: portail dans <body> via JS, panel devient une carte
       premium centrée. Échappe à tous les containing blocks (Safari + Chrome). */
    body > .guests-panel {
        position: fixed;
        top: 50%;
        bottom: auto;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: calc(100vw - 32px);
        max-width: 380px;
        margin: 0;
        border-radius: 22px;
        padding: 18px 18px 16px;
        z-index: 110;
        border: 1px solid rgba(201, 169, 98, 0.45);
        box-shadow:
            0 30px 80px rgba(0, 0, 0, 0.7),
            0 0 0 1px rgba(0, 0, 0, 0.4),
            0 0 60px rgba(201, 169, 98, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
        animation: guestsCenterIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.15);
    }
    body > .guests-panel::before { display: none; }
}

@keyframes guestsCenterIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    body > .guests-panel .guests-panel__display { margin-bottom: 0; gap: 6px; }
    body > .guests-panel .guests-panel__count { font-size: 36px; }
    body > .guests-panel .guests-panel__suffix { font-size: 11px; letter-spacing: 0.8px; }
    body > .guests-panel .guests-panel__zone {
        font-size: 10px;
        letter-spacing: 1.4px;
        margin-bottom: 12px;
        min-height: 12px;
    }
    body > .guests-panel .guests-panel__presets {
        gap: 5px;
        margin-bottom: 14px;
    }
    body > .guests-panel .guests-panel__preset {
        padding: 8px 3px;
        gap: 3px;
        border-radius: 9px;
    }
    body > .guests-panel .guests-panel__preset-icon { height: 12px; }
    body > .guests-panel .guests-panel__preset-label { font-size: 10px; line-height: 1.15; }
    body > .guests-panel .guests-panel__preset-sub { font-size: 9px; }
    body > .guests-panel .guests-panel__slider-label {
        font-size: 9px;
        letter-spacing: 1.2px;
        margin-bottom: 8px;
    }
    body > .guests-panel .guests-panel__slider { height: 5px; }
    body > .guests-panel .guests-panel__slider::-webkit-slider-thumb { width: 20px; height: 20px; }
    body > .guests-panel .guests-panel__slider::-moz-range-thumb { width: 20px; height: 20px; }
    body > .guests-panel .guests-panel__scale { font-size: 9px; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .guests-panel { animation: none; }
    .guests-panel__preset,
    .guests-panel__slider::-webkit-slider-thumb,
    .guests-panel__slider::-moz-range-thumb { transition: none; }
}
