/* ============================================================================
   HOTEL SEARCH — « LARGE MÉDITERRANÉEN »
   Refonte ciblée : typo condensée éditoriale (Fira Sans Condensed),
   accent turquoise/teal de la marque, hero atmosphérique, responsive par paliers.
   Tous les hooks JS (data-*, ids, .is-invalid/.invalid-feedback/.list-group-item)
   sont conservés — seul le rendu change.
   ============================================================================ */

/* --------------------------------------------------------------------------
   0. TOKENS (préfixe --hs- pour éviter toute collision globale)
   -------------------------------------------------------------------------- */

:root {
    --hs-orange: #f46732;
    --hs-orange-deep: #e5612e;
    --hs-orange-soft: rgba(244, 103, 50, 0.12);
    --hs-teal: #70cbd2;
    --hs-teal-deep: #065056;
    --hs-ink: #12302f;          /* near-black teinté teal pour les titres */
    --hs-slate: #5d6b6a;        /* texte secondaire tiède */
    --hs-mute: #94a3b8;
    --hs-sand: #fbf6ef;         /* crème chaude */
    --hs-line: #ece5db;         /* hairline chaud (sections claires) */
    --hs-field-line: #eef1f1;   /* séparateurs internes de la barre */

    --hs-display: "Fira Sans Condensed", "Fira Sans", sans-serif;
    --hs-body: "Fira Sans", sans-serif;

    --hs-radius: 18px;
    --hs-radius-field: 14px;
}

/* --------------------------------------------------------------------------
   1. SECTION HERO
   -------------------------------------------------------------------------- */

#hotel-search {
    position: relative;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
    /* MAQUETTE : comp filigrané. Remplacer par la version HD licenciée de
       l'asset Adobe Stock 169270475 avant tout déploiement. */
    background:
        #0c2426 url("../img/AdobeStock_169270475_Preview-JQizh5w.jpeg") center 28% / cover no-repeat;
}

/* Scrim sombre en haut (lisibilité du titre sur le ciel) + ancrage bas pour
   détacher la barre des toits. Pas de lavis teal ici : il virerait au marron
   sur le ciel orange du coucher de soleil — la photo apporte déjà la chaleur. */
#hotel-search::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(125% 85% at 50% -12%, rgba(5, 26, 29, 0.66) 0%, transparent 58%),
        linear-gradient(180deg, rgba(6, 24, 27, 0.34) 0%, rgba(6, 24, 27, 0.10) 42%, rgba(6, 24, 27, 0.32) 72%, rgba(6, 24, 27, 0.62) 100%);
}

/* Grain fin pour casser l'aplat photo et donner de la matière. */
#hotel-search::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.30;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#hotel-search > .container {
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   2. EN-TÊTE ÉDITORIAL
   -------------------------------------------------------------------------- */

.search-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.search-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
    padding: 0.4rem 0.95rem;
    font-family: var(--hs-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 100px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: hsRise 0.6s ease both;
}

.search-eyebrow::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--hs-teal);
    box-shadow: 0 0 0 3px rgba(112, 203, 210, 0.35);
}

.search-header h1 {
    font-family: var(--hs-display);
    font-weight: 800;
    font-size: clamp(2.3rem, 5.5vw, 3.75rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 0.6rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.28);
    animation: hsRise 0.6s ease 0.08s both;
}

/* Mot accentué en marqueur surligné : blanc sur bloc teal profond.
   Contraste garanti sur n'importe quelle photo, sans concurrencer
   l'orange du CTA. box-decoration-break:clone pour un rendu propre
   si le titre passe à la ligne. */
.search-header h1 .accent {
    color: #fff;
    background: var(--hs-teal-deep);
    padding: 0.04em 0.3em;
    margin: 0 -0.04em;
    border-radius: 0.16em;
    text-shadow: none;
    box-shadow: 0 8px 22px -8px rgba(6, 80, 86, 0.65);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.search-subtitle {
    font-family: var(--hs-body);
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.95rem, 2vw, 1.12rem);
    font-weight: 400;
    margin: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    animation: hsRise 0.6s ease 0.16s both;
}

/* --------------------------------------------------------------------------
   3. BARRE DE RECHERCHE
   -------------------------------------------------------------------------- */

.search-bar-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    animation: hsRise 0.7s ease 0.24s both;
}

.search-bar {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: var(--hs-radius);
    box-shadow:
        0 28px 64px -22px rgba(8, 28, 31, 0.48),
        0 10px 24px -14px rgba(8, 28, 31, 0.30);
    overflow: visible;
    position: relative;
    /* Marge interne : chaque champ flotte légèrement décalé des bords, pour que
       le halo de focus (:focus-within) ne soit pas rogné en haut/bas. */
    padding: 6px;
}

/* --------------------------------------------------------------------------
   4. CHAMPS DE RECHERCHE
   -------------------------------------------------------------------------- */

.search-field {
    position: relative;
    padding: 0.85rem 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--hs-field-line);
}

.search-field:last-of-type {
    border-right: none;
}

.search-field--destination {
    flex: 1.3;
    border-radius: var(--hs-radius) 0 0 var(--hs-radius);
}

.search-field--dates {
    flex: 1.2;
}

.search-field--rooms {
    flex: 1;
}

.search-field--submit {
    flex: 0 0 auto;
    padding: 0.5rem;
    border-right: none;
    display: flex;
    align-items: center;
}

/* Labels — accent teal profond + icône orange */
.search-field__label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--hs-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hs-teal-deep);
    margin-bottom: 0.25rem;
    cursor: pointer;
}

.search-field__label svg {
    color: var(--hs-orange);
    opacity: 0.85;
}

/* Inputs */
.search-field__input {
    border: none;
    background: transparent;
    font-family: var(--hs-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--hs-ink);
    padding: 0;
    outline: none;
    width: 100%;
    cursor: pointer;
    line-height: 1.4;
}

.search-field__input::placeholder {
    color: #b8c2c2;
    font-weight: 400;
}

/* Drapeau du pays sélectionné, à gauche de la valeur du champ destination */
.search-field__value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.search-field__value .search-field__input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}
.search-field__flag {
    flex: 0 0 auto;
    width: 22px;
    height: 15px;
    display: block;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(8, 28, 31, 0.12);
}
.search-field__flag[hidden] {
    display: none;
}

.search-field__input:focus {
    box-shadow: none;
}

/* Trigger button (rooms) */
.search-field__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-family: inherit;
}

.search-field__chevron {
    color: var(--hs-teal-deep);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
    opacity: 0.7;
}

.search-field__trigger[aria-expanded="true"] .search-field__chevron {
    transform: rotate(180deg);
}

/* Hover tiède sur les champs */
.search-field:hover {
    background: #fbfcfc;
}

.search-field--submit:hover {
    background: transparent;
}

/* --------------------------------------------------------------------------
   5. BOUTON RECHERCHER — pill orange « coucher de soleil » + icône
   -------------------------------------------------------------------------- */

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, #f87b45 0%, var(--hs-orange) 52%, var(--hs-orange-deep) 100%);
    color: #fff;
    border: none;
    border-radius: var(--hs-radius-field);
    padding: 1rem 2.15rem;
    font-family: var(--hs-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 26px -10px rgba(244, 103, 50, 0.65);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.search-btn::before {
    content: '';
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E") center / contain no-repeat;
}

.search-btn:hover {
    filter: brightness(1.04);
    box-shadow: 0 16px 32px -10px rgba(244, 103, 50, 0.72);
    transform: translateY(-1px);
}

.search-btn:active {
    transform: translateY(0) scale(0.98);
}

/* --------------------------------------------------------------------------
   6. AUTOCOMPLETE
   -------------------------------------------------------------------------- */

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0.35rem;
    background: #fff;
    border-radius: var(--hs-radius-field);
    box-shadow: 0 18px 40px -12px rgba(8, 28, 31, 0.28);
    border: 1px solid var(--hs-line);
    max-height: 280px;
    overflow-y: auto;
}

.autocomplete-results .list-group-item {
    border: none;
    padding: 0.7rem 0.85rem;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
    font-size: 0.9rem;
    color: var(--hs-ink);
    background: transparent;
}

.autocomplete-results .list-group-item:hover {
    background: rgba(112, 203, 210, 0.14);
    color: var(--hs-teal-deep);
}

.autocomplete-results .list-group-item .text-muted {
    color: var(--hs-mute) !important;
}

/* Drapeau pays dans les suggestions (SVG vendorisé, /flags/4x3/) */
.hotel-ac__flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(8, 28, 31, 0.10);
    display: block;
}
.hotel-ac__text {
    min-width: 0;
    line-height: 1.25;
}
.hotel-ac__text .fw-bold {
    font-size: 0.9rem;
}
.hotel-ac__text small {
    font-size: 0.78rem;
}

/* En-tête de groupe (Villes / Hôtels) : libellé de section discret, pas un titre */
.hotel-ac__group-label {
    list-style: none;
    padding: 0.45rem 0.85rem 0.2rem;
    font-family: var(--hs-body);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--hs-mute);
    cursor: default;
}
.hotel-ac__group-label:not(:first-child) {
    margin-top: 0.3rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--hs-line);
}

/* Étoiles de catégorie dans les suggestions hôtels */
.hotel-ac__stars {
    color: #e3a008;
    letter-spacing: 0.5px;
}

/* Lignes de suggestion un peu plus compactes */
.autocomplete-results .list-group-item {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   7. DROPDOWN CHAMBRES
   -------------------------------------------------------------------------- */

.rooms-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 1040;
    width: 380px;
    background: #fff;
    border-radius: var(--hs-radius);
    box-shadow: 0 24px 56px -18px rgba(8, 28, 31, 0.34);
    border: 1px solid var(--hs-line);
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.rooms-dropdown__inner {
    padding: 1.25rem;
}

/* Config chambre */
.room-config {
    padding: 1rem;
    border-radius: 12px;
    background: var(--hs-sand);
    border: 1px solid var(--hs-line);
    margin-bottom: 0.75rem;
}

.room-config:last-child {
    margin-bottom: 0;
}

.room-config__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.room-config__title {
    font-family: var(--hs-body);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hs-teal-deep);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.room-config__remove {
    background: none;
    border: none;
    color: var(--hs-mute);
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 6px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
}

.room-config__remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Champs adultes/enfants */
.room-config__fields {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.room-config__field {
    flex: 1;
    min-width: 100px;
}

.room-config__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hs-slate);
    margin-bottom: 0.3rem;
}

.room-config__label small {
    color: var(--hs-mute);
    font-weight: 400;
}

.room-config__select {
    width: 100%;
    border: 1px solid var(--hs-line);
    border-radius: 9px;
    padding: 0.5rem 0.65rem;
    font-family: var(--hs-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hs-ink);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: auto;
}

.room-config__select:focus {
    border-color: var(--hs-orange);
    outline: none;
    box-shadow: 0 0 0 3px var(--hs-orange-soft);
}

/* Ages enfants */
.room-config__ages {
    width: 100%;
}

.ages-wrapper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.ages-wrapper:empty {
    margin-top: 0;
}

.ages-wrapper > div {
    flex: 1;
    min-width: 80px;
}

.ages-wrapper .form-label {
    font-size: 0.75rem !important;
    font-weight: 600;
    color: var(--hs-slate);
    margin-bottom: 0.25rem;
}

.ages-wrapper .form-select {
    border: 1px solid var(--hs-line);
    border-radius: 9px;
    padding: 0.5rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Actions du dropdown */
.rooms-dropdown__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--hs-line);
}

.rooms-dropdown__add {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    color: var(--hs-orange);
    font-family: var(--hs-body);
    font-size: 0.825rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.3rem 0;
    transition: opacity 0.15s ease;
}

.rooms-dropdown__add:hover {
    opacity: 0.8;
}

.rooms-dropdown__add:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.rooms-dropdown__hint {
    color: var(--hs-mute);
    font-size: 0.75rem;
}

.rooms-dropdown__done {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.7rem;
    background: var(--hs-orange);
    color: #fff;
    border: none;
    border-radius: 11px;
    font-family: var(--hs-body);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.rooms-dropdown__done:hover {
    background: var(--hs-orange-deep);
}

/* --------------------------------------------------------------------------
   8. INSPIRATIONS — destinations incontournables (cartes-photo sur fond sable)
   -------------------------------------------------------------------------- */

.destination-inspirations {
    position: relative;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    background:
        radial-gradient(60% 100% at 50% 0%, rgba(112, 203, 210, 0.10), transparent 70%),
        var(--hs-sand);
}

.destination-inspirations__eyebrow {
    display: block;
    text-align: center;
    font-family: var(--hs-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hs-teal-deep);
    margin-bottom: 0.4rem;
}

.destination-inspirations__title {
    font-family: var(--hs-display);
    font-size: clamp(1.5rem, 3.5vw, 2.15rem);
    font-weight: 800;
    color: var(--hs-ink);
    text-align: center;
    margin: 0 0 1.75rem;
    letter-spacing: -0.01em;
}

.destination-inspirations__grid {
    display: grid;
    /* 2 colonnes sur mobile, jusqu'à 5 de front sur desktop. */
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.7rem, 2vw, 1.15rem);
}

@media (min-width: 620px) {
    .destination-inspirations__grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Carte destination : <button> pour l'a11y native (déclenche le remplissage
   de la destination via le controller hotel--popular-chips). */
.destination-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 0;
    padding: 0;
    border-radius: var(--hs-radius);
    cursor: pointer;
    background: var(--hs-teal-deep);
    box-shadow: 0 1px 2px rgba(8, 28, 31, 0.06);
    transition: transform 0.22s ease, box-shadow 0.24s ease;
    /* Reset <button>. */
    font: inherit;
    color: #fff;
    text-align: left;
}

.destination-card__media,
.destination-card__fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.destination-card__media {
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

/* Fallback de marque tant qu'aucun visuel n'est ingéré (image = null).
   Dégradé teal/orange décliné par carte pour un rendu éditorial et non répétitif. */
.destination-card__fallback {
    background:
        radial-gradient(120% 80% at 20% 15%, rgba(255, 255, 255, 0.16), transparent 60%),
        linear-gradient(150deg, var(--hs-teal) 0%, var(--hs-teal-deep) 90%);
}

.destination-card:nth-child(5n + 2) .destination-card__fallback {
    background:
        radial-gradient(120% 80% at 20% 15%, rgba(255, 255, 255, 0.16), transparent 60%),
        linear-gradient(150deg, var(--hs-orange) 0%, #b23c15 92%);
}

.destination-card:nth-child(5n + 3) .destination-card__fallback {
    background:
        radial-gradient(120% 80% at 20% 15%, rgba(255, 255, 255, 0.14), transparent 60%),
        linear-gradient(150deg, #3f8f95 0%, var(--hs-ink) 95%);
}

.destination-card:nth-child(5n + 4) .destination-card__fallback {
    background:
        radial-gradient(120% 80% at 20% 15%, rgba(255, 255, 255, 0.16), transparent 60%),
        linear-gradient(150deg, var(--hs-teal-deep) 0%, var(--hs-ink) 95%);
}

.destination-card:nth-child(5n + 5) .destination-card__fallback {
    background:
        radial-gradient(120% 80% at 20% 15%, rgba(255, 255, 255, 0.18), transparent 60%),
        linear-gradient(150deg, #f0a04b 0%, var(--hs-orange-deep, #d94f1e) 95%);
}

/* Voile bas pour la lisibilité du libellé (photo comme fallback). */
.destination-card__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 28, 31, 0.62) 0%, rgba(8, 28, 31, 0.12) 42%, transparent 68%);
}

.destination-card__body {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.9rem 1rem 1rem;
}

.destination-card__name {
    font-family: var(--hs-display);
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 1px 8px rgba(8, 28, 31, 0.35);
}

.destination-card__country {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.destination-card__flag {
    width: 20px;
    height: 14px;
    flex: 0 0 auto;
    display: block;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.destination-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -16px rgba(8, 28, 31, 0.55);
}

.destination-card:hover .destination-card__media {
    transform: scale(1.06);
}

.destination-card:focus-visible {
    outline: 3px solid var(--hs-orange);
    outline-offset: 3px;
}

.destination-card[aria-busy="true"] {
    opacity: 0.6;
    cursor: progress;
}

@media (prefers-reduced-motion: reduce) {
    .destination-card,
    .destination-card__media {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   9. VALIDATION / ERREURS
   -------------------------------------------------------------------------- */

#hotel-search .invalid-feedback {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    padding: 0.4rem 0.65rem;
    background: #fef2f2;
    border-left: 2px solid #ef4444;
    border-radius: 4px;
    display: block;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

.search-field__input.is-invalid {
    box-shadow: inset 0 -2px 0 #ef4444;
}

/* --------------------------------------------------------------------------
   10. ENTRÉE / FOCUS VISIBLE
   -------------------------------------------------------------------------- */

@keyframes hsRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* Focus state sur le wrapper de champ (style carte détachée).
   .is-active : posé par JS quand le dropdown Voyageurs est ouvert (le focus
   peut alors être hors du champ, donc :focus-within ne suffit pas). */
.search-field:not(.search-field--submit):focus-within,
.search-field--rooms.is-active {
    background: #fff;
    border-radius: var(--hs-radius-field);
    box-shadow:
        0 0 0 2px rgba(244, 103, 50, 0.55),
        0 8px 18px -8px rgba(8, 28, 31, 0.2);
    z-index: 3;
}

.search-field:not(.search-field--submit):focus-within:hover,
.search-field--rooms.is-active:hover {
    background: #fff;
}

.search-field__input:focus-visible,
.search-field__trigger:focus-visible {
    box-shadow: none;
    outline: none;
}

.search-btn:focus-visible {
    outline: 3px solid rgba(244, 103, 50, 0.5);
    outline-offset: 2px;
}

.rooms-dropdown__done:focus-visible,
.rooms-dropdown__add:focus-visible {
    outline: 2px solid var(--hs-orange);
    outline-offset: 2px;
}

.room-config__select:focus-visible {
    border-color: var(--hs-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 103, 50, 0.2);
}

.room-config__remove:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

.destination-chip:focus-visible {
    outline: 2px solid var(--hs-orange);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   11. REDUCED MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .rooms-dropdown,
    #hotel-search .invalid-feedback,
    .search-eyebrow,
    .search-header h1,
    .search-subtitle,
    .search-bar-wrapper {
        animation: none;
    }
    .search-field,
    .search-field__chevron,
    .search-btn,
    .destination-chip,
    .destination-chip__flag,
    .autocomplete-results .list-group-item,
    .room-config__select,
    .room-config__remove,
    .rooms-dropdown__add,
    .rooms-dropdown__done {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE
   -------------------------------------------------------------------------- */

/* ── Tablette : grille 2 colonnes (palier intermédiaire avant le stack) ── */
@media (max-width: 919.98px) and (min-width: 620px) {
    .search-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .search-field {
        border-right: none;
        border-bottom: 1px solid var(--hs-field-line);
    }

    .search-field--destination {
        grid-column: 1 / -1;
        border-radius: var(--hs-radius) var(--hs-radius) 0 0;
    }

    .search-field--dates {
        grid-column: 1;
        border-right: 1px solid var(--hs-field-line);
    }

    .search-field--rooms {
        grid-column: 2;
    }

    .search-field--submit {
        grid-column: 1 / -1;
        border-bottom: none;
        padding: 0.75rem;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .rooms-dropdown {
        width: min(380px, calc(100vw - 2.5rem));
        right: 0;
    }
}

/* ── Mobile : empilement vertical ── */
@media (max-width: 619.98px) {
    #hotel-search {
        background-attachment: scroll;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-field {
        border-right: none;
        border-bottom: 1px solid var(--hs-field-line);
        padding: 0.9rem 1.15rem;
    }

    .search-field:last-of-type {
        border-bottom: none;
    }

    .search-field--destination,
    .search-field--dates,
    .search-field--rooms {
        border-radius: 0;
    }

    .search-field--submit {
        padding: 0.75rem;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
        padding: 0.95rem;
    }

    /* Dropdown ancré sur le champ (pleine largeur) — pas de transform parasite. */
    .rooms-dropdown {
        left: 0;
        right: 0;
        width: auto;
    }

    .room-config__fields {
        flex-direction: column;
        gap: 0.5rem;
    }

    .room-config__field {
        min-width: unset;
    }

    .ages-wrapper {
        flex-direction: column;
    }

    .popular-destinations__grid {
        gap: 0.55rem;
    }

    .destination-chip {
        padding: 0.5rem 0.95rem;
    }
}
