/* =========================
   BARRE RECHERCHE PREMIUM
   (bloc recherche rapide existant — inchangé)
   ========================= */

/* Le thème masque volontairement `.page .breadcrumb` dans custom.css.
   Cette exception rétablit uniquement le fil natif de la page de recherche. */
body#module-psclassifiedssearch-search.page .breadcrumb {
    display: flex !important;
}

.pscs-search-block {
    padding: 8px 10px;
    border-radius: 11px;
    background: #f9f9f9;
    margin-bottom: 5px;
}

/* Ligne unique desktop */
.pscs-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

/* Champs */
.pscs-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pscs-field label {
    font-size: 0.75rem;
    margin-bottom: 4px;
    color: #777;
    font-weight: 500;
}

/* Inputs compacts premium */
.pscs-field input,
.pscs-field select {
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    background: #ffffff;
    transition: all 0.2s ease;
}

.pscs-field input:focus,
.pscs-field select:focus {

    background: #fff;

    outline: none;
}

/* Bouton parfaitement aligné */
.pscs-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
}

.pscs-actions[hidden] {
    display: none !important;
}

.pscs-actions .btn {
    height: 38px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    color: #fff;
    transition: all 0.2s ease;
}

.pscs-actions .btn:hover {
    background: #e85d00;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Critères contextuels affichés uniquement pour les séjours. */
.pscs-search-form--stay {
    flex-wrap: wrap;
}

.pscs-stay-search[hidden] {
    display: none !important;
}

.pscs-stay-search {
    flex: 1 0 100%;
    display: grid;
    grid-template-columns: minmax(135px, 0.65fr) minmax(260px, 1.25fr) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 13px 14px;
    border: 1px solid #e1e5eb;
    border-radius: 11px;
    background: #f9f9f9;
}

.pscs-stay-search__actions {
    align-self: end;
    margin: 0;
}

.pscs-stay-search__actions .btn {
    height: 42px;
    padding: 0 22px;
    white-space: nowrap;
}

.pscs-stay-search__heading {
    align-self: center;
    min-width: 0;
}

.pscs-stay-search__title,
.pscs-stay-search__hint {
    display: block;
}

.pscs-stay-search__title {
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 700;
}

.pscs-stay-search__hint {
    margin-top: 3px;
    color: #687386;
    font-size: 0.7rem;
    line-height: 1.35;
}

.pscs-picker {
    position: relative;
    min-width: 0;
}

.pscs-picker > label {
    display: block;
    margin: 0 0 4px;
    color: #777;
    font-size: 0.75rem;
    font-weight: 500;
}

.pscs-picker__trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    height: 42px;
    padding: 0 11px;
    border: 1px solid #d8dde5;
    border-radius: 9px;
    background: #fff;
    color: #293342;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pscs-picker__trigger:hover,
.pscs-picker__trigger[aria-expanded="true"] {
    border-color: #e85d00;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 93, 0, 0.1);
}

.pscs-picker__icon,
.pscs-picker__chevron {
    display: inline-flex;
    flex: 0 0 auto;
    color: #e85d00;
}

.pscs-picker__icon svg {
    width: 19px;
    height: 19px;
}

.pscs-picker__chevron {
    margin-left: auto;
    color: #7b8492;
    transition: transform 0.18s ease;
}

.pscs-picker__chevron svg {
    width: 16px;
    height: 16px;
}

.pscs-picker__trigger[aria-expanded="true"] .pscs-picker__chevron {
    transform: rotate(180deg);
}

.pscs-picker__value {
    min-width: 0;
    overflow: hidden;
    color: #2e3948;
    font-size: 0.84rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pscs-picker__popover[hidden] {
    display: none !important;
}

.pscs-picker-backdrop {
    display: none;
}

.pscs-picker__popover {
    position: absolute;
    top: calc(100% + 8px);
    z-index: 110;
    border: 1px solid #e1e5eb;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 22px 55px -18px rgba(20, 32, 48, 0.34);
}

/* Ancrage technique du calendrier Flatpickr : invisible, mais présent dans le DOM. */
.pscs-flatpickr-anchor {
    position: absolute !important;
    right: 0;
    bottom: 0;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.pscs-picker__trigger.is-invalid {
    border-color: #c83d36;
    box-shadow: 0 0 0 3px rgba(200, 61, 54, 0.12);
}

.pscs-picker__error {
    display: block;
    margin-top: 5px;
    color: #a52f29;
    font-size: 0.7rem;
    line-height: 1.35;
}

.pscs-picker__error[hidden] {
    display: none !important;
}

/* Calendrier de plage robuste, aligné sur le style GoMyRoof. */
.flatpickr-calendar.pscs-flatpickr-calendar {
    z-index: 10050;
    overflow: hidden;
    border: 1px solid #e1e5eb;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 24px 58px -18px rgba(20, 32, 48, 0.38);
    font-family: inherit;
}

.pscs-flatpickr-calendar .flatpickr-months {
    padding: 5px 3px 1px;
}

.pscs-flatpickr-calendar .flatpickr-current-month,
.pscs-flatpickr-calendar .flatpickr-weekday {
    color: #2b3645;
    font-weight: 700;
}

.pscs-flatpickr-calendar .flatpickr-current-month {
    font-size: 0.94rem;
}

.pscs-flatpickr-calendar .flatpickr-day {
    color: #334155;
    font-weight: 600;
}

.pscs-flatpickr-calendar .flatpickr-day:hover,
.pscs-flatpickr-calendar .flatpickr-day:focus {
    border-color: #f3c8aa;
    background: #fff2e8;
    color: #b64700;
}

.pscs-flatpickr-calendar .flatpickr-day.today:not(.selected):not(.startRange):not(.endRange) {
    border-color: #e85d00;
}

.pscs-flatpickr-calendar .flatpickr-day.inRange {
    border-color: #fce8d8;
    background: #fce8d8;
    color: #93400a;
    box-shadow: -5px 0 0 #fce8d8, 5px 0 0 #fce8d8;
}

.pscs-flatpickr-calendar .flatpickr-day.selected,
.pscs-flatpickr-calendar .flatpickr-day.startRange,
.pscs-flatpickr-calendar .flatpickr-day.endRange,
.pscs-flatpickr-calendar .flatpickr-day.selected:hover,
.pscs-flatpickr-calendar .flatpickr-day.startRange:hover,
.pscs-flatpickr-calendar .flatpickr-day.endRange:hover {
    border-color: #e85d00;
    background: #e85d00;
    color: #fff;
    box-shadow: 0 4px 11px rgba(232, 93, 0, 0.25);
}

.pscs-flatpickr-calendar .flatpickr-day.flatpickr-disabled,
.pscs-flatpickr-calendar .flatpickr-day.flatpickr-disabled:hover {
    border-color: transparent;
    background: transparent;
    color: #c3c9d1;
    text-decoration: line-through;
}

.pscs-picker__done {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
}

.pscs-picker__done {
    border: 1px solid #e85d00;
    background: #e85d00;
    color: #fff;
}

.pscs-picker__done:hover {
    background: #c24c00;
    border-color: #c24c00;
}

.pscs-guests-popover {
    right: 0;
    width: min(330px, calc(100vw - 36px));
    padding: 8px 14px 12px;
}

.pscs-guests-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 66px;
    border-bottom: 1px solid #edf0f4;
}

.pscs-guests-row strong,
.pscs-guests-row small {
    display: block;
}

.pscs-guests-row strong {
    color: #293342;
    font-size: 0.84rem;
}

.pscs-guests-row small {
    margin-top: 2px;
    color: #7b8492;
    font-size: 0.68rem;
}

.pscs-counter {
    display: grid;
    grid-template-columns: 32px 30px 32px;
    align-items: center;
    gap: 4px;
}

.pscs-counter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #d6dce4;
    border-radius: 50%;
    background: #fff;
    color: #e85d00;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
}

.pscs-counter button:hover:not(:disabled) {
    border-color: #e85d00;
    background: #fff7f1;
}

.pscs-counter button:disabled {
    color: #c5cbd3;
    cursor: default;
    opacity: 0.7;
}

.pscs-counter output {
    color: #293342;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.pscs-guests-popover__footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 11px;
}

.pscs-picker button:focus-visible {
    outline: 3px solid rgba(232, 93, 0, 0.24);
    outline-offset: 2px;
}

.pscs-stay-search__error {
    grid-column: 1 / -1;
    padding: 9px 11px;
    border-radius: 8px;
    background: #fff1f0;
    color: #9f2f28;
    font-size: 0.78rem;
}

/* =========================
   RESPONSIVE BARRE DE RECHERCHE MOBILE
   ========================= */
@media (min-width: 769px) and (max-width: 1100px) {
    .pscs-stay-search {
        grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    }

    .pscs-stay-search__heading {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    body.pscs-picker-modal-open {
        overflow: hidden;
    }

    .flatpickr-calendar.pscs-flatpickr-calendar.open {
        position: fixed !important;
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;
        left: 50% !important;
        width: min(307px, calc(100vw - 16px));
        max-height: calc(100vh - 24px);
        overflow-x: hidden;
        overflow-y: auto;
        transform: translate(-50%, -50%) !important;
    }

    .pscs-flatpickr-calendar::before,
    .pscs-flatpickr-calendar::after {
        display: none;
    }

    .pscs-flatpickr-calendar .flatpickr-days,
    .pscs-flatpickr-calendar .dayContainer {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .pscs-flatpickr-calendar .flatpickr-day {
        max-width: 14.285714%;
    }

    /* Permet de passer les champs sur plusieurs lignes */
    .pscs-search-form {
        flex-wrap: wrap;       /* maintenant les champs peuvent se casser sur 2 lignes */
        gap: 8px;              /* espace vertical/horizontal entre champs */
    }

    .pscs-field {
        flex: 1 1 48%;         /* chaque champ prend environ la moitié de la largeur */
    }

    .pscs-actions {
        flex: 1 1 100%;        /* bouton prend toute la largeur */
        margin-top: 8px;
    }

    .pscs-actions .btn {
        width: 100%;           /* bouton 100% largeur */
    }

    .pscs-stay-search {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .pscs-stay-search__heading,
    .pscs-picker,
    .pscs-stay-search__actions,
    .pscs-stay-search__error {
        grid-column: 1;
    }

    .pscs-stay-search__actions {
        width: 100%;
        margin-top: 0;
    }

    .pscs-picker__popover {
        z-index: 130;
    }

    .pscs-picker-backdrop:not([hidden]) {
        position: fixed;
        inset: 0;
        z-index: 120;
        display: block;
        background: rgba(20, 32, 48, 0.38);
        backdrop-filter: blur(1px);
    }

    .pscs-guests-popover {
        position: fixed;
        top: auto;
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }

    .pscs-quicksearch__panel.is-open {
        max-height: 1500px;
        overflow: visible;
    }
}

@media (max-width: 420px) {
    .pscs-guests-popover {
        right: 8px;
        bottom: 8px;
        left: 8px;
    }
}

/* ============================================================
   MOTEUR SÉJOURS COMPACT — UNE SEULE LIGNE SUR ÉCRAN LARGE
   La catégorie 9 reste transmise, mais son sélecteur est invisible.
   ============================================================ */
.pscs-search-block {
    --pscs-bar-accent: var(--bs-primary, var(--primary, var(--theme-primary, var(--primary-color, #232323))));
    --pscs-bar-text: var(--bs-body-color, #232323);
    --pscs-bar-muted: var(--bs-secondary-color, #707070);
    --pscs-bar-surface: var(--bs-body-bg, #ffffff);
    --pscs-bar-soft: #f7f7f7;
    --pscs-bar-line: rgba(35, 35, 35, 0.12);
    --pscs-bar-line-strong: rgba(35, 35, 35, 0.22);
    padding: 12px;
    border: 1px solid var(--pscs-bar-line);
    border-radius: 16px;
    background: var(--pscs-bar-surface);
    color: var(--pscs-bar-text);
    box-shadow: 0 14px 34px -26px rgba(0, 0, 0, 0.32);
}

.pscs-search-form,
.pscs-search-form--stay {
    display: grid;
    grid-template-columns:
        minmax(125px, 0.78fr)
        minmax(145px, 0.88fr)
        minmax(130px, 0.82fr)
        minmax(235px, 1.35fr)
        minmax(205px, 1.12fr)
        auto;
    gap: 9px;
    align-items: end;
    width: 100%;
}

.pscs-field--project,
.pscs-stay-search__heading,
.pscs-actions--main {
    display: none !important;
}

.pscs-field,
.pscs-picker {
    min-width: 0;
}

.pscs-stay-search,
.pscs-stay-search:not([hidden]) {
    display: contents;
}

.pscs-field label,
.pscs-picker > label {
    min-height: 16px;
    margin: 0 0 5px;
    color: var(--pscs-bar-muted);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.pscs-field input,
.pscs-field select,
.pscs-picker__trigger,
.pscs-stay-search__actions .btn {
    height: 46px;
    min-height: 46px;
    border-radius: 11px;
}

.pscs-field input,
.pscs-field select,
.pscs-picker__trigger {
    width: 100%;
    border: 1px solid var(--pscs-bar-line);
    background: var(--pscs-bar-surface);
    color: var(--pscs-bar-text);
    box-shadow: none;
}

.pscs-field input,
.pscs-field select {
    padding: 0 11px;
    font-size: 0.82rem;
}

.pscs-field input:hover,
.pscs-field select:hover,
.pscs-picker__trigger:hover {
    border-color: var(--pscs-bar-line-strong);
    background: var(--pscs-bar-soft);
}

.pscs-field input:focus,
.pscs-field select:focus,
.pscs-picker__trigger:focus-visible,
.pscs-picker__trigger[aria-expanded="true"] {
    border-color: var(--pscs-bar-accent);
    outline: none;
    background: var(--pscs-bar-surface);
    box-shadow: 0 0 0 3px rgba(35, 35, 35, 0.10);
}

.pscs-picker__trigger {
    padding: 0 10px;
}

.pscs-picker__value {
    font-size: 0.79rem;
}

.pscs-search-block .pscs-picker__icon,
.pscs-search-block .pscs-counter button {
    color: var(--pscs-bar-accent);
}

.pscs-search-block .pscs-counter button:hover:not(:disabled) {
    border-color: var(--pscs-bar-accent);
    background: var(--pscs-bar-soft);
}

.pscs-search-block .pscs-picker__done {
    border-color: var(--pscs-bar-accent);
    background: var(--pscs-bar-accent);
}

.pscs-stay-search__actions {
    align-self: end;
    min-width: 118px;
    margin: 0;
}

.pscs-stay-search__actions .btn {
    width: 100%;
    padding: 0 19px;
    border: 0;
    background: var(--pscs-bar-accent);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 750;
    box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.55);
}

.pscs-stay-search__actions .btn:hover {
    background: var(--pscs-bar-accent);
    filter: brightness(0.9);
}

.pscs-stay-search__error {
    grid-column: 1 / -1;
}

/* Tablettes : deux lignes équilibrées, sans champ étriqué. */
@media (min-width: 769px) and (max-width: 1180px) {
    .pscs-search-form,
    .pscs-search-form--stay {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pscs-stay-search__actions {
        min-width: 0;
    }
}

/* Mobile : trois rangées maximum, avec une zone Dates pleine largeur. */
@media (max-width: 768px) {
    .pscs-search-block {
        padding: 8px;
        border-radius: 16px;
        background: var(--pscs-bar-soft);
    }

    .pscs-search-form,
    .pscs-search-form--stay {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .pscs-field,
    .pscs-picker {
        display: flex;
        flex: none;
        min-width: 0;
        padding: 8px 9px;
        border: 1px solid var(--pscs-bar-line);
        border-radius: 12px;
        background: var(--pscs-bar-surface);
    }

    .pscs-field:focus-within,
    .pscs-picker:focus-within {
        border-color: var(--pscs-bar-accent);
        box-shadow: 0 0 0 3px rgba(35, 35, 35, 0.08);
    }

    .pscs-field input,
    .pscs-field select,
    .pscs-picker__trigger,
    .pscs-field input:focus,
    .pscs-field select:focus,
    .pscs-picker__trigger:focus-visible,
    .pscs-picker__trigger[aria-expanded="true"] {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .pscs-stay-search__error {
        grid-column: 1 / -1;
    }

    .pscs-field input,
    .pscs-field select,
    .pscs-picker__trigger,
    .pscs-stay-search__actions .btn {
        height: 42px;
        min-height: 42px;
    }

    .pscs-stay-search__actions {
        width: 100%;
        min-width: 0;
        margin: 0;
    }
}

@media (max-width: 575px) {
    .pscs-search-form,
    .pscs-search-form--stay {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 6px;
    }

    .pscs-field--country,
    .pscs-field--region,
    .pscs-field--city {
        grid-column: span 4;
    }

    .pscs-date-range {
        grid-column: 1 / -1;
    }

    .pscs-guests-picker {
        grid-column: span 8;
    }

    .pscs-stay-search__actions {
        grid-column: span 4;
    }

    .pscs-field,
    .pscs-picker,
    .pscs-stay-search__actions .btn {
        min-height: 60px;
    }

    .pscs-field,
    .pscs-picker {
        padding: 7px 8px 6px;
    }

    .pscs-field label,
    .pscs-picker > label {
        min-height: 12px;
        margin-bottom: 2px;
        font-size: 0.56rem;
        letter-spacing: 0;
    }

    .pscs-field input,
    .pscs-field select,
    .pscs-picker__trigger {
        height: 29px;
        min-height: 29px;
        padding-right: 5px;
        padding-left: 5px;
        border: 0;
        background: transparent;
        font-size: 0.72rem;
        box-shadow: none;
    }

    .pscs-picker__trigger:hover,
    .pscs-picker__trigger[aria-expanded="true"] {
        background: transparent;
        box-shadow: none;
    }

    .pscs-picker__icon {
        display: none;
    }

    .pscs-date-range .pscs-picker__icon {
        display: inline-flex;
    }

    .pscs-date-range .pscs-picker__trigger {
        height: 38px;
        min-height: 38px;
    }

    .pscs-picker__trigger {
        gap: 4px;
    }

    .pscs-picker__value {
        font-size: 0.7rem;
    }

    .pscs-stay-search__actions .btn {
        padding: 0 5px;
        font-size: 0.68rem;
    }
}

/* ============================================================
   PAGE RÉSULTATS DE RECHERCHE — DESIGN PREMIUM
   Layout à deux colonnes (filtres à gauche / annonces à droite)
   + tiroir de filtres réduit sur mobile portable
   ============================================================ */

.pscs-page {
    /* Palette GoMyRoof, alignée sur les autres pages premium du site. */
    --pscs-ink:          #142b3f;
    --pscs-ink-soft:     #40566a;
    --pscs-muted:        #6b7c8c;
    --pscs-paper:        #ffffff;
    --pscs-card:         #ffffff;
    --pscs-line:         #e2e9f0;
    --pscs-accent:       #1d5a86;
    --pscs-accent-dark:  #102a43;
    --pscs-accent-soft:  #eef5fb;
    --pscs-highlight:    #ed731d;
    --pscs-forest:       #142b3f;
    --pscs-radius-lg:    20px;
    --pscs-radius:       15px;
    --pscs-radius-sm:    10px;
    --pscs-shadow:       0 10px 28px -16px rgba(16, 42, 67, 0.25);
    --pscs-shadow-lg:    0 24px 54px -22px rgba(16, 42, 67, 0.38);
    --font-display:      var(--bs-body-font-family, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    --font-body:         var(--bs-body-font-family, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);

    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    font-family: var(--font-body);
    color: var(--pscs-ink);
    background: var(--pscs-paper);
    padding: 28px clamp(16px, 3vw, 32px) 48px;
    border-radius: var(--pscs-radius-lg);
}

/* Charte typographique : on importe les polices une seule fois.
   En production, préférez un <link> dans le <head> de page.tpl pour la performance. */
.pscs-page {
    font-feature-settings: "tnum" 1;
}

/* -- Motif signature : la "règle graduée", écho au champ Surface (m²) -- */
.pscs-ruler {
    display: block;
    height: 7px;
    width: 88px;
    margin-top: 10px;
    background-image: repeating-linear-gradient(
        90deg,
        var(--pscs-ink) 0 1.5px,
        transparent 1.5px 10px
    );
    opacity: 0.55;
}

.pscs-ruler--soft {
    width: 100%;
    height: 5px;
    margin: 14px 0 18px;
    opacity: 0.25;
}

/* -- Barre de recherche du haut : normalement toujours visible.
      Sur mobile portable, elle se réduit en tiroir cliquable (voir media query). -- */
.pscs-quicksearch {
    margin-bottom: 22px;
}

.pscs-quicksearch__trigger {
    display: none; /* masqué en dehors du mobile portable */
}

.pscs-quicksearch__panel {
    /* pas de contrainte de hauteur en dehors du mobile : toujours pleinement visible */
}

/* -- En-tête de page -- */
.pscs-page__head h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--pscs-ink);
}

.pscs-page__intro {
    max-width: 880px;
    margin: 9px 0 0;
    color: var(--pscs-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.pscs-stay-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: var(--pscs-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.pscs-stay-summary__separator {
    color: var(--pscs-accent);
}

.pscs-result-count {
    margin: 0;
    font-size: 0.92rem;
    color: var(--pscs-muted);
    font-weight: 500;
}

.pscs-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.pscs-sort {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    min-height: 40px;
    padding-left: 12px;
    overflow: hidden;
    border: 1px solid var(--pscs-line);
    border-radius: 999px;
    background: #f4f6f8;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.pscs-sort:focus-within {
    border-color: var(--pscs-accent);
    background: var(--pscs-card);
    box-shadow: 0 0 0 3px var(--pscs-accent-soft);
}

.pscs-sort label {
    margin: 0;
    color: var(--pscs-muted);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.pscs-sort select {
    height: 40px;
    min-width: 155px;
    margin-left: 9px;
    padding: 0 34px 0 11px;
    border: 0;
    border-left: 1px solid var(--pscs-line);
    border-radius: 0;
    background-color: transparent;
    color: var(--pscs-ink);
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.pscs-sort select:focus {
    outline: none;
    box-shadow: none;
}

.pscs-sort__submit {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--pscs-line);
    border-radius: var(--pscs-radius-sm);
    background: var(--pscs-card);
    color: var(--pscs-ink);
    font-weight: 600;
}

/* -- Bouton déclencheur du tiroir de filtres (mobile uniquement) -- */
.pscs-filters-trigger {
    display: none;
}

/* -- Rideau d'arrière-plan du tiroir (mobile uniquement) -- */
.pscs-filters-backdrop {
    display: none;
}

/* -- Grille principale : filtres à gauche, résultats à droite -- */
.pscs-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 22px;
}

/* -- Panneau de filtres -- */
.pscs-filters {
    position: sticky;
    top: 24px;
    background: var(--pscs-card);
    border: 1px solid var(--pscs-line);
    border-radius: var(--pscs-radius-lg);
    padding: 22px 22px 24px;
    box-shadow: var(--pscs-shadow);
}

.pscs-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pscs-filters__header h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: var(--pscs-ink);
}

.pscs-filters__close {
    display: none;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--pscs-paper);
    border-radius: 50%;
    color: var(--pscs-ink);
    cursor: pointer;
    flex: 0 0 auto;
}

.pscs-filters__close svg {
    width: 16px;
    height: 16px;
}

.pscs-filters__group {
    margin-bottom: 18px;
}

.pscs-filters__group-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pscs-forest);
    margin-bottom: 10px;
}

.pscs-filters__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    min-width: 0;
}

.pscs-filters .pscs-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0; /* empêche l'input de forcer sa largeur intrinsèque hors de la colonne */
}

.pscs-filters .pscs-field label {
    font-size: 0.76rem;
    color: var(--pscs-muted);
    font-weight: 500;
}

.pscs-filters .pscs-field input {
    width: 100%;
    box-sizing: border-box; /* padding + bordure inclus dans la largeur, plus de débordement */
    max-width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--pscs-radius-sm);
    border: 1px solid var(--pscs-line);
    background: var(--pscs-paper);
    font-size: 0.92rem;
    font-family: var(--font-body);
    color: var(--pscs-ink);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.pscs-filters .pscs-field input::placeholder {
    color: #9aa3af;
}

.pscs-filters .pscs-field input:focus {
    outline: none;
    background: #fff;
    border-color: var(--pscs-accent);
    box-shadow: 0 0 0 3px var(--pscs-accent-soft);
}

.pscs-capacity-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 13px;
    border: 1px solid var(--pscs-line);
    border-radius: var(--pscs-radius-sm);
    background: var(--pscs-paper);
}

.pscs-capacity-summary__label {
    color: var(--pscs-muted);
    font-size: 0.74rem;
    font-weight: 600;
}

.pscs-capacity-summary strong {
    color: var(--pscs-ink);
    font-size: 0.86rem;
    line-height: 1.35;
}

.pscs-capacity-summary small {
    color: var(--pscs-muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.pscs-filters__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

/* -- Boutons -- */
.pscs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--pscs-radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pscs-btn--primary {
    background: var(--pscs-accent);
    color: #fff;
}

.pscs-btn--primary:hover {
    background: var(--pscs-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -6px rgba(232, 93, 0, 0.45);
}

.pscs-btn--ghost {
    background: transparent;
    border-color: var(--pscs-line);
    color: var(--pscs-ink);
}

.pscs-btn--ghost:hover {
    border-color: var(--pscs-ink);
    background: var(--pscs-paper);
}

/* -- Alertes -- */
.pscs-alert {
    padding: 13px 16px;
    border-radius: var(--pscs-radius-sm);
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.45;
}

.pscs-alert--info {
    background: #f7f8fa;
    color: var(--pscs-ink-soft);
    border: 1px solid var(--pscs-line);
}

.pscs-alert--error {
    background: #fdecea;
    color: #9a2f1f;
    border: 1px solid #f4c7bd;
}

/* -- Liste des annonces -- */
.pscs-ad-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.pscs-ad-card {
    background: var(--pscs-card);
    border: 1px solid var(--pscs-line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px -22px rgba(16, 42, 67, 0.42);
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.pscs-ad-card:hover {
    box-shadow: var(--pscs-shadow-lg);
    transform: translateY(-2px);
    border-color: #c9d9e6;
}

.pscs-ad-card__link {
    display: flex;
    gap: 18px;
    text-decoration: none;
    color: inherit;
    padding: 13px;
}

.pscs-ad-card__link:hover,
.pscs-ad-card__link:focus {
    color: inherit;
    text-decoration: none;
}

.pscs-ad-card__link:focus-visible {
    outline: 3px solid rgba(29, 90, 134, 0.24);
    outline-offset: -3px;
}

.pscs-ad-card__thumb {
    position: relative;
    flex: 0 0 220px;
    min-height: 185px;
    max-height: 225px;
    align-self: stretch;
    border-radius: 12px;
    overflow: hidden;
    background: #edf3f7;
}

.pscs-ad-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.pscs-ad-card:hover .pscs-ad-card__thumb img {
    transform: scale(1.035);
}

.pscs-ad-card__thumb-empty {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(29, 90, 134, 0.08), rgba(237, 115, 29, 0.06)),
        repeating-linear-gradient(135deg, #e6edf3 0 8px, #f4f7f9 8px 16px);
}

.pscs-ad-card__badge--image {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    max-width: calc(100% - 56px);
    overflow: hidden;
    box-shadow: 0 5px 16px rgba(16, 42, 67, 0.16);
    text-overflow: ellipsis;
}

.pscs-ad-card__image-action {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(16, 42, 67, 0.78);
    box-shadow: 0 5px 16px rgba(16, 42, 67, 0.2);
    color: #fff;
    backdrop-filter: blur(7px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.pscs-ad-card__image-action svg {
    width: 17px;
    height: 17px;
}

.pscs-ad-card:hover .pscs-ad-card__image-action {
    background: var(--pscs-highlight);
    transform: translate(1px, -1px);
}

.pscs-ad-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 3px 3px 2px 0;
}

.pscs-ad-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pscs-ad-card__heading {
    min-width: 0;
}

.pscs-ad-card__property {
    display: block;
    margin-bottom: 4px;
    overflow: hidden;
    color: var(--pscs-accent);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.pscs-ad-card__top h2 {
    font-family: var(--font-display);
    font-size: 1.13rem;
    font-weight: 750;
    line-height: 1.25;
    margin: 0;
    color: var(--pscs-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pscs-ad-card__price-block {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    padding: 1px 0 0 8px;
}

.pscs-ad-card__price-from {
    color: var(--pscs-muted);
    font-size: 0.68rem;
    font-weight: 550;
    line-height: 1.1;
}

.pscs-ad-card__price {
    white-space: nowrap;
    font-family: var(--font-display);
    font-weight: 780;
    font-size: 1.08rem;
    color: var(--pscs-accent-dark);
    font-feature-settings: "tnum" 1;
}

.pscs-ad-card__price-unit {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.73rem;
    color: var(--pscs-muted);
}

.pscs-ad-card__price-block--contextual {
    min-width: 142px;
    padding: 7px 9px;
    border: 1px solid rgba(29, 90, 173, 0.14);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(238, 245, 255, 0.92), rgba(255, 255, 255, 0.96));
}

.pscs-ad-card__price-block--contextual .pscs-ad-card__price {
    font-size: 1.14rem;
}

.pscs-ad-card__price-detail {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    white-space: nowrap;
    color: var(--pscs-muted);
    font-size: 0.68rem;
    font-weight: 520;
    line-height: 1.25;
}

.pscs-ad-card__badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--pscs-accent-soft);
    color: var(--pscs-accent-dark);
    font-family: var(--font-body);
    font-size: 0.67rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Catégorie 9 (prix / nuit) */
.pscs-ad-card__badge--nuit {
    background: #e2f2e6;
    color: #1f7a43;
}

/* Catégorie 2 (prix / mois) */
.pscs-ad-card__badge--mois {
    background: #e3edfb;
    color: #1d5aad;
}

.pscs-ad-card__location {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-size: 0.81rem;
    line-height: 1.35;
    color: var(--pscs-muted);
}

.pscs-ad-card__location svg {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    color: var(--pscs-highlight);
}

.pscs-ad-card__description {
    display: -webkit-box;
    margin: 1px 0 0;
    overflow: hidden;
    color: var(--pscs-ink-soft);
    font-size: 0.81rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pscs-ad-card__reviews {
    display: inline-flex;
    width: fit-content;
    align-self: flex-start;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--pscs-accent-dark);
    color: #fff;
    font-size: 0.79rem;
    line-height: 1.35;
}

.pscs-ad-card__reviews-star {
    color: #ffb15d;
    font-size: 0.9rem;
    line-height: 1;
}

.pscs-ad-card__reviews strong {
    font-size: 0.82rem;
    font-weight: 700;
}

.pscs-ad-card__reviews-label {
    font-weight: 600;
}

.pscs-ad-card__reviews-count {
    color: #fff;
}

.pscs-ad-card__specs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 1px 0 0;
    padding: 0;
    font-size: 0.76rem;
    color: var(--pscs-ink-soft);
}

.pscs-ad-card__specs li {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-height: 29px;
    padding: 5px 9px;
    border: 1px solid #e5ebf0;
    border-radius: 9px;
    background: #f8fafb;
}

.pscs-ad-card__specs li span {
    color: var(--pscs-muted);
    font-size: 0.68rem;
}

.pscs-ad-card__specs li strong {
    color: var(--pscs-ink);
    font-size: 0.78rem;
    font-weight: 750;
}

.pscs-ad-card__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #39735a;
    font-size: 0.72rem;
    font-weight: 650;
}

.pscs-ad-card__amenities li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pscs-ad-card__amenities li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e5f4eb;
    color: #1f7a43;
    font-size: 0.58rem;
    font-weight: 900;
}

.pscs-ad-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 31px;
    margin-top: auto;
    padding-top: 4px;
}

.pscs-ad-card__open {
    display: inline-flex;
    flex: 0 0 31px;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    margin-left: auto;
    border: 1px solid #d8e4ed;
    border-radius: 50%;
    background: #f7fafc;
    color: var(--pscs-accent);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pscs-ad-card__open svg {
    width: 16px;
    height: 16px;
}

.pscs-ad-card:hover .pscs-ad-card__open {
    border-color: var(--pscs-accent);
    background: var(--pscs-accent);
    color: #fff;
    transform: translateX(2px);
}

/* -- État vide -- */
.pscs-empty {
    background: var(--pscs-card);
    border: 1px dashed var(--pscs-line);
    border-radius: var(--pscs-radius-lg);
    padding: 48px 24px;
    text-align: center;
}

.pscs-empty__icon {
    display: inline-flex;
    color: var(--pscs-muted);
    margin-bottom: 12px;
}

.pscs-empty__icon svg {
    width: 40px;
    height: 40px;
}

.pscs-empty h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0 0 6px;
    color: var(--pscs-ink);
}

.pscs-empty p {
    margin: 0 0 18px;
    color: var(--pscs-muted);
    font-size: 0.9rem;
}

.pscs-empty__eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 9px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--pscs-accent-soft);
    color: var(--pscs-accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.pscs-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 2px 0 20px;
}

.pscs-empty__actions .pscs-btn {
    min-width: 190px;
    justify-content: center;
}

.pscs-empty__suggestions {
    width: 100%;
    max-width: 720px;
    margin: 4px auto 20px;
    text-align: left;
}

.pscs-empty__suggestions h3 {
    margin: 0 0 9px;
    color: var(--pscs-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pscs-empty__suggestion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.pscs-empty__suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--pscs-line);
    border-radius: var(--pscs-radius-sm);
    background: var(--pscs-paper);
    color: var(--pscs-ink);
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pscs-empty__suggestion:hover {
    border-color: var(--pscs-accent);
    background: var(--pscs-card);
    color: var(--pscs-ink);
    box-shadow: var(--pscs-shadow);
    transform: translateY(-1px);
}

.pscs-empty__suggestion span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.pscs-empty__suggestion strong {
    font-size: 0.84rem;
    line-height: 1.35;
}

.pscs-empty__suggestion small {
    color: var(--pscs-muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.pscs-empty__suggestion svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--pscs-accent);
}

/* -- Pagination -- */
.pscs-pagination-nav {
    margin-top: 26px;
    display: flex;
    justify-content: center;
}

.pscs-pagination {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.pscs-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--pscs-ink);
    text-decoration: none;
    border: 1px solid var(--pscs-line);
    background: var(--pscs-card);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pscs-pagination__item:not(.pscs-pagination__item--disabled) .pscs-pagination__link:hover {
    border-color: var(--pscs-ink);
}

.pscs-pagination__item--active .pscs-pagination__link {
    background: var(--pscs-ink);
    border-color: var(--pscs-ink);
    color: #fff;
}

.pscs-pagination__item--disabled .pscs-pagination__link {
    color: #aeb7c4;
    background: transparent;
    border-color: var(--pscs-line);
}

/* -- Blocs de hooks additionnels en bas de page -- */
.pscs-search-bottom {
    margin-top: 40px;
}

/* -- Accessibilité : focus clavier visible partout -- */
.pscs-page a:focus-visible,
.pscs-page button:focus-visible,
.pscs-page input:focus-visible {
    outline: 2px solid var(--pscs-accent);
    outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE — TABLETTE (768–991px) : grille resserrée
   ============================================================ */
@media (max-width: 991.98px) {
    .pscs-layout {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }

    .pscs-filters {
        padding: 18px;
    }

    .pscs-ad-card__thumb {
        flex-basis: 185px;
        min-height: 180px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE PORTABLE (< 768px)
   Les filtres se réduisent en une barre cliquable qui ouvre
   un tiroir, pour atteindre les annonces sans scroller.
   ============================================================ */
@media (max-width: 767.98px) {
    .pscs-page {
        padding: 18px 14px 36px;
        border-radius: var(--pscs-radius);
    }

    .pscs-results-toolbar {
        margin-bottom: 12px;
    }

    .pscs-page__intro {
        margin-top: 7px;
        font-size: 0.84rem;
        line-height: 1.48;
    }

    /* -- Barre de recherche du haut : même traitement que les filtres -- */
    .pscs-quicksearch {
        margin-bottom: 14px;
    }

    .pscs-quicksearch__trigger {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        border-radius: 999px;
        border: 1px solid var(--pscs-line);
        background: var(--pscs-card);
        box-shadow: var(--pscs-shadow);
        color: var(--pscs-ink);
        font-family: var(--font-body);
        font-size: 0.92rem;
        font-weight: 600;
        cursor: pointer;
    }

    .pscs-quicksearch__icon {
        display: inline-flex;
        color: var(--pscs-accent);
        flex: 0 0 auto;
    }

    .pscs-quicksearch__icon svg,
    .pscs-quicksearch__chevron svg {
        width: 18px;
        height: 18px;
    }

    .pscs-quicksearch__label {
        flex: 1;
        text-align: left;
    }

    .pscs-quicksearch__chevron {
        display: inline-flex;
        color: var(--pscs-muted);
        transition: transform 0.25s ease;
        flex: 0 0 auto;
    }

    .pscs-quicksearch__trigger[aria-expanded="true"] .pscs-quicksearch__chevron {
        transform: rotate(180deg);
    }

    .pscs-quicksearch__panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .pscs-quicksearch__panel.is-open {
        /* Le calendrier et le sélecteur de voyageurs restent visibles hors du panneau. */
        max-height: 1500px;
        margin-top: 10px;
        overflow: visible;
    }

    /* Bouton compact, sticky sous le titre */
    .pscs-filters-trigger {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin-top: 16px;
        padding: 12px 14px;
        border-radius: 999px;
        border: 1px solid var(--pscs-line);
        background: var(--pscs-card);
        box-shadow: var(--pscs-shadow);
        color: var(--pscs-ink);
        font-family: var(--font-body);
        font-size: 0.92rem;
        font-weight: 600;
        cursor: pointer;
        position: sticky;
        top: 8px;
        z-index: 30;
    }

    .pscs-filters-trigger__icon {
        display: inline-flex;
        color: var(--pscs-accent);
        flex: 0 0 auto;
    }

    .pscs-filters-trigger__icon svg,
    .pscs-filters-trigger__chevron svg {
        width: 18px;
        height: 18px;
    }

    .pscs-filters-trigger__label {
        flex: 1;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .pscs-filters-trigger__badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        border-radius: 999px;
        background: var(--pscs-accent);
        color: #fff;
        font-size: 0.72rem;
        font-weight: 700;
    }

    .pscs-filters-trigger__chevron {
        display: inline-flex;
        color: var(--pscs-muted);
        transition: transform 0.25s ease;
        flex: 0 0 auto;
    }

    .pscs-filters-trigger[aria-expanded="true"] .pscs-filters-trigger__chevron {
        transform: rotate(180deg);
    }

    /* Rideau derrière le tiroir */
    .pscs-filters-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(20, 32, 48, 0.46);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        z-index: 40;
    }

    .pscs-filters-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    /* La grille devient une colonne unique */
    .pscs-layout {
        grid-template-columns: 1fr;
        margin-top: 12px;
    }

    /* Le panneau de filtres devient un tiroir ancré en bas de l'écran */
    .pscs-filters {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        max-height: 86vh;
        overflow-y: auto;
        border-radius: 20px 20px 0 0;
        box-shadow: var(--pscs-shadow-lg);
        transform: translateY(102%);
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 50;
        padding: 18px 18px 22px;
    }

    .pscs-filters.is-open {
        transform: translateY(0);
    }

    .pscs-filters__close {
        display: inline-flex;
    }

    .pscs-filters__row {
        grid-template-columns: 1fr 1fr;
    }

    .pscs-filters__actions {
        position: sticky;
        bottom: 0;
        background: var(--pscs-card);
        padding-top: 10px;
        margin-top: 10px;
    }

    /* Empêche le scroll du corps de page quand le tiroir est ouvert */
    body.pscs-noscroll {
        overflow: hidden;
    }

    /* Cartes d'annonces : image au-dessus du texte */
    .pscs-ad-card__link {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .pscs-ad-card__thumb {
        flex-basis: auto;
        width: 100%;
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 10;
        border-radius: 0;
    }

    .pscs-ad-card__info {
        gap: 9px;
        padding: 15px 16px 16px;
    }

    .pscs-ad-card__top h2 {
        white-space: normal;
    }

    .pscs-ad-card__description {
        font-size: 0.8rem;
    }
}

/* ============================================================
   RESPONSIVE — TRÈS PETITS ÉCRANS (< 480px)
   ============================================================ */
@media (max-width: 479.98px) {
    .pscs-page__head h1 {
        font-size: 1.4rem;
    }

    .pscs-results-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
    }

    .pscs-sort {
        justify-content: space-between;
        width: 100%;
    }

    .pscs-sort select {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 190px;
    }

    .pscs-ad-card__top {
        flex-direction: column;
        gap: 8px;
    }

    .pscs-ad-card__price-block {
        align-items: flex-start;
        padding-left: 0;
    }

    .pscs-ad-card__price-block--contextual {
        width: 100%;
        min-width: 0;
        padding: 7px 9px;
    }

    .pscs-ad-card__price-detail {
        justify-content: flex-start;
        white-space: normal;
    }

    .pscs-ad-card__price {
        font-size: 1.04rem;
    }

    .pscs-ad-card__specs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pscs-ad-card__specs li {
        justify-content: space-between;
        min-width: 0;
    }

    .pscs-ad-card__footer {
        align-items: flex-end;
    }

    .pscs-empty {
        padding: 34px 16px;
    }

    .pscs-empty__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pscs-empty__actions .pscs-btn {
        width: 100%;
        min-width: 0;
    }

    .pscs-empty__suggestion-grid {
        grid-template-columns: 1fr;
    }

    .pscs-filters__row {
        grid-template-columns: 1fr;
    }
}

/* -- Respecte les préférences de mouvement réduit -- */
@media (prefers-reduced-motion: reduce) {
    .pscs-filters,
    .pscs-filters-backdrop,
    .pscs-ad-card,
    .pscs-ad-card__thumb img,
    .pscs-ad-card__image-action,
    .pscs-ad-card__open,
    .pscs-empty__suggestion,
    .pscs-btn--primary,
    .pscs-filters-trigger__chevron,
    .pscs-quicksearch__panel,
    .pscs-quicksearch__chevron {
        transition: none !important;
    }
}

/* ============================================================
   MOTEUR SÉJOURS — DESTINATION UNIFIÉE (V1)
   Le select pays, le select région et la ville restent présents dans
   le formulaire pour préserver strictement les routes et le contrôleur.
   ============================================================ */
.pscs-search-block {
    --pscs-destination-navy: #102a43;
    --pscs-destination-blue: #1d5a86;
    --pscs-destination-blue-soft: #eef5fb;
    --pscs-destination-orange: #bf4b00;
    --pscs-destination-orange-hover: #a94000;
    --pscs-destination-muted: #607386;
    --pscs-destination-line: #dce6ef;
    position: relative;
    overflow: visible;
    border-color: var(--pscs-destination-line);
    box-shadow: 0 18px 42px -30px rgba(16, 42, 67, 0.42);
}

.pscs-location-native-fields {
    display: none !important;
}

.pscs-search-form,
.pscs-search-form--stay {
    display: grid;
    grid-template-columns:
        minmax(290px, 1.7fr)
        minmax(225px, 1.15fr)
        minmax(190px, 0.95fr)
        minmax(128px, 0.55fr);
    gap: 10px;
    align-items: end;
}

.pscs-search-form .pscs-stay-search,
.pscs-search-form .pscs-stay-search:not([hidden]) {
    display: contents;
}

.pscs-field--destination {
    position: relative;
    z-index: 20;
    min-width: 0;
}

.pscs-field--destination > label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-height: 17px;
    margin: 0 2px 5px;
    color: var(--pscs-destination-navy);
    font-size: 0.72rem;
    font-weight: 800;
}

.pscs-field--destination > label small {
    overflow: hidden;
    color: var(--pscs-destination-muted);
    font-size: 0.61rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pscs-destination-combobox {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 54px;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid var(--pscs-destination-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px -20px rgba(16, 42, 67, 0.65);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pscs-field--destination:hover .pscs-destination-combobox {
    border-color: #b7c9d8;
    background: #fbfdff;
}

.pscs-field--destination:focus-within .pscs-destination-combobox,
.pscs-field--destination.is-open .pscs-destination-combobox {
    border-color: var(--pscs-destination-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 90, 134, 0.13), 0 14px 30px -24px rgba(16, 42, 67, 0.75);
}

.pscs-field--destination.is-invalid .pscs-destination-combobox {
    border-color: #c83d36;
    box-shadow: 0 0 0 3px rgba(200, 61, 54, 0.11);
}

.pscs-field--destination .pscs-destination-combobox input,
.pscs-field--destination .pscs-destination-combobox input:hover,
.pscs-field--destination .pscs-destination-combobox input:focus {
    flex: 1 1 auto;
    width: 100%;
    height: 52px;
    min-width: 0;
    padding: 0 62px 0 45px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--pscs-destination-navy);
    font-size: 0.9rem;
    font-weight: 720;
    text-overflow: ellipsis;
    box-shadow: none;
}

.pscs-field--destination .pscs-destination-combobox input::placeholder {
    color: #718496;
    font-weight: 600;
    opacity: 1;
}

.pscs-destination-combobox__icon,
.pscs-destination-combobox__chevron,
.pscs-destination-combobox__clear {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pscs-destination-combobox__icon {
    left: 14px;
    width: 22px;
    height: 22px;
    color: var(--pscs-destination-blue);
}

.pscs-destination-combobox__icon svg {
    width: 22px;
    height: 22px;
}

.pscs-destination-combobox__clear {
    right: 34px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef3f7;
    color: #4c6174;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
}

.pscs-destination-combobox__clear:hover,
.pscs-destination-combobox__clear:focus-visible {
    background: #dce8f1;
    color: var(--pscs-destination-navy);
}

.pscs-destination-combobox__clear[hidden] {
    display: none !important;
}

.pscs-destination-combobox__chevron {
    right: 12px;
    width: 17px;
    height: 17px;
    color: #6d8192;
    pointer-events: none;
    transition: transform 0.18s ease;
}

.pscs-destination-combobox__chevron svg {
    width: 17px;
    height: 17px;
}

.pscs-field--destination.is-open .pscs-destination-combobox__chevron {
    transform: rotate(180deg);
}

.pscs-destination-panel[hidden],
.pscs-destination-error[hidden],
.pscs-destination-empty[hidden] {
    display: none !important;
}

.pscs-destination-panel {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: 135;
    width: min(520px, calc(100vw - 32px));
    max-width: none;
    overflow: hidden;
    border: 1px solid var(--pscs-destination-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 70px -28px rgba(16, 42, 67, 0.56);
}

.pscs-destination-panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #edf2f6;
    background: linear-gradient(180deg, #fbfdff, #f5f9fc);
}

.pscs-destination-panel__head strong {
    color: var(--pscs-destination-navy);
    font-size: 0.81rem;
    font-weight: 820;
}

.pscs-destination-panel__head small {
    color: var(--pscs-destination-muted);
    font-size: 0.65rem;
}

.pscs-destination-options {
    max-height: min(365px, 52vh);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 6px;
    overscroll-behavior: contain;
    scrollbar-color: #b9cad8 transparent;
    scrollbar-width: thin;
}

.pscs-destination-option {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 8px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--pscs-destination-navy);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 0.14s ease, color 0.14s ease;
}

.pscs-destination-option:hover,
.pscs-destination-option.is-active,
.pscs-destination-option[aria-selected="true"] {
    outline: 0;
    background: var(--pscs-destination-blue-soft);
}

.pscs-destination-option:focus-visible {
    outline: 3px solid rgba(29, 90, 134, 0.2);
    outline-offset: -3px;
}

.pscs-destination-option__marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--pscs-destination-blue-soft);
    color: var(--pscs-destination-blue);
    font-size: 1rem;
    font-weight: 850;
}

.pscs-destination-option--all .pscs-destination-option__marker::before { content: "⌂"; }
.pscs-destination-option--country .pscs-destination-option__marker::before { content: "◎"; }
.pscs-destination-option--region .pscs-destination-option__marker::before { content: "◇"; }
.pscs-destination-option--city .pscs-destination-option__marker::before { content: "●"; font-size: 0.72rem; }

.pscs-destination-option__copy,
.pscs-destination-option__copy strong,
.pscs-destination-option__copy small,
.pscs-destination-option__meta,
.pscs-destination-option__meta small {
    display: block;
    min-width: 0;
}

.pscs-destination-option__copy strong {
    overflow: hidden;
    color: var(--pscs-destination-navy);
    font-size: 0.83rem;
    font-weight: 790;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pscs-destination-option__copy small {
    overflow: hidden;
    margin-top: 2px;
    color: var(--pscs-destination-muted);
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pscs-destination-option__meta {
    text-align: right;
}

.pscs-destination-option__type {
    color: var(--pscs-destination-blue);
    font-size: 0.59rem;
    font-weight: 820;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.pscs-destination-option__count {
    margin-top: 3px;
    color: var(--pscs-destination-muted);
    font-size: 0.61rem;
    white-space: nowrap;
}

.pscs-destination-empty {
    margin: 0;
    padding: 24px 16px;
    color: var(--pscs-destination-muted);
    font-size: 0.78rem;
    text-align: center;
}

.pscs-destination-error {
    display: block;
    margin: 5px 3px 0;
    color: #a52f29;
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.35;
}

.pscs-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.pscs-search-form .pscs-date-range,
.pscs-search-form .pscs-guests-picker {
    align-self: end;
}

.pscs-search-form .pscs-picker__trigger,
.pscs-search-form .pscs-stay-search__actions .btn {
    height: 54px;
    min-height: 54px;
    border-radius: 14px;
}

.pscs-search-form .pscs-stay-search__actions {
    align-self: end;
    min-width: 0;
}

.pscs-search-form .pscs-stay-search__actions .btn {
    border-color: var(--pscs-destination-orange);
    background: var(--pscs-destination-orange);
    font-size: 0.88rem;
    font-weight: 820;
    box-shadow: 0 12px 22px -15px rgba(169, 64, 0, 0.85);
}

.pscs-search-form .pscs-stay-search__actions .btn:hover,
.pscs-search-form .pscs-stay-search__actions .btn:focus-visible {
    border-color: var(--pscs-destination-orange-hover);
    background: var(--pscs-destination-orange-hover);
    filter: none;
}

/* Tablette portrait : destination seule, puis dates/voyageurs/recherche. */
@media (min-width: 769px) and (max-width: 991.98px) {
    .pscs-search-form,
    .pscs-search-form--stay {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .pscs-field--destination {
        grid-column: 1 / -1;
    }

    .pscs-search-form .pscs-date-range {
        grid-column: span 5;
    }

    .pscs-search-form .pscs-guests-picker {
        grid-column: span 4;
    }

    .pscs-search-form .pscs-stay-search__actions {
        grid-column: span 3;
    }
}

/* Mobile : trois lignes lisibles et zones tactiles de taille confortable. */
@media (max-width: 768px) {
    .pscs-search-block {
        padding: 8px;
        overflow: visible;
        border-radius: 17px;
        background: #f4f8fb;
    }

    .pscs-search-form,
    .pscs-search-form--stay {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 7px;
    }

    .pscs-field--destination,
    .pscs-search-form .pscs-date-range {
        grid-column: 1 / -1;
    }

    .pscs-search-form .pscs-guests-picker {
        grid-column: span 8;
    }

    .pscs-search-form .pscs-stay-search__actions {
        grid-column: span 4;
    }

    .pscs-field--destination,
    .pscs-search-form .pscs-picker {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 7px 8px 8px;
        border: 1px solid var(--pscs-destination-line);
        border-radius: 14px;
        background: #fff;
    }

    .pscs-field--destination:focus-within,
    .pscs-field--destination.is-open,
    .pscs-search-form .pscs-picker:focus-within {
        border-color: #afc5d6;
        box-shadow: 0 0 0 3px rgba(29, 90, 134, 0.08);
    }

    .pscs-field--destination > label,
    .pscs-search-form .pscs-picker > label {
        min-height: 13px;
        margin: 0 2px 3px;
        font-size: 0.62rem;
    }

    .pscs-field--destination > label small {
        max-width: 55%;
        font-size: 0.56rem;
    }

    .pscs-destination-combobox,
    .pscs-field--destination:focus-within .pscs-destination-combobox,
    .pscs-field--destination.is-open .pscs-destination-combobox,
    .pscs-field--destination.is-invalid .pscs-destination-combobox {
        height: 45px;
        min-height: 45px;
        overflow: visible;
        border: 0;
        border-radius: 10px;
        background: transparent;
        box-shadow: none;
    }

    .pscs-field--destination .pscs-destination-combobox input,
    .pscs-field--destination .pscs-destination-combobox input:hover,
    .pscs-field--destination .pscs-destination-combobox input:focus {
        height: 45px;
        min-height: 45px;
        padding-right: 64px;
        padding-left: 39px;
        font-size: 0.83rem;
    }

    .pscs-destination-combobox__icon {
        left: 8px;
    }

    .pscs-destination-combobox__chevron {
        right: 6px;
    }

    .pscs-destination-combobox__clear {
        right: 28px;
    }

    .pscs-search-form .pscs-picker__trigger,
    .pscs-search-form .pscs-stay-search__actions .btn {
        height: 46px;
        min-height: 46px;
        border-radius: 11px;
    }

    .pscs-search-form .pscs-picker__trigger {
        padding: 0 7px;
    }

    .pscs-search-form .pscs-picker__value {
        font-size: 0.73rem;
    }

    .pscs-search-form .pscs-stay-search__actions,
    .pscs-search-form .pscs-stay-search__actions .btn {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .pscs-search-form .pscs-stay-search__actions .btn {
        padding: 0 6px;
        font-size: 0.7rem;
    }

    .pscs-field--destination.is-open {
        z-index: 132;
    }

    .pscs-destination-panel {
        position: absolute;
        top: calc(100% + 7px);
        right: 0;
        bottom: auto;
        left: 0;
        z-index: 135;
        width: 100%;
        max-height: min(310px, 42vh);
        max-height: min(310px, 42svh);
        border-radius: 16px;
    }

    .pscs-destination-panel__head {
        padding: 13px 14px 9px;
    }

    .pscs-destination-options {
        max-height: min(250px, 34vh);
        max-height: min(250px, 34svh);
        padding: 5px;
    }

    .pscs-destination-option {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        min-height: 55px;
        padding: 7px 8px;
    }

    .pscs-destination-option__marker {
        width: 36px;
        height: 36px;
    }

    .pscs-destination-option__copy strong {
        font-size: 0.79rem;
    }

    .pscs-destination-option__copy small,
    .pscs-destination-option__count {
        font-size: 0.61rem;
    }
}

@media (max-width: 359.98px) {
    .pscs-field--destination > label small,
    .pscs-destination-option__count {
        display: none;
    }

    .pscs-search-form .pscs-picker__value {
        font-size: 0.68rem;
    }

    .pscs-search-form .pscs-stay-search__actions .btn {
        font-size: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pscs-destination-combobox,
    .pscs-destination-combobox__chevron,
    .pscs-destination-option {
        transition: none !important;
    }
}
