/*
 * Phone layer of the agency sites' retained theme (loaded after themes.css and the site's own colour/token styles).
 * Brand: --primary (accent), --brand / --brand-on (header band), --ab-radius (site tokens). Behaviour: js/site-mobile.js.
 * Sections: page lock · header & menu drawer · listing (toolbar, filters sheet) · advert (gallery, viewer, facts,
 * description, similar, contact, action bar) · forms · tap targets · footer · back to top.
 */

/* ── Page lock while an overlay is open ─────────────────────────────────────────────────────────────────── */
html.ab-locked, html.ab-locked body { overflow: hidden; }
html.ab-locked body { padding-right: var(--ab-scrollbar, 0); touch-action: none; }
html.ab-locked .ab-drawer, html.ab-locked .ab-filters, html.ab-locked .ab-viewer { touch-action: auto; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* No horizontal scroll on phones: a stray wide element (embed, table, long word) never widens the page. */
@media (max-width: 991.98px) { body { overflow-x: clip; } }
img, video, iframe { max-width: 100%; }

/* ── Header ─────────────────────────────────────────────────────────────────────────────────────────────── */
.ab-burger { width: 44px; height: 44px; padding: 0 !important; margin-right: -10px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; }
.ab-burger__icon { font-size: 24px; line-height: 1; }
.ab-burger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 1199.98px) {
    /* A compact band: the logo plate and the button, no tall theme paddings. */
    .main-header .navbar { padding-top: 10px; padding-bottom: 10px; min-height: 64px; flex-wrap: nowrap; }
    .main-header .navbar-brand { padding: 0; margin-right: 12px; min-width: 0; max-width: calc(100% - 56px); }
    .main-header .navbar-brand .brand-mark img { max-height: 36px !important; }
    /* The desktop bar's collapses are never unfolded below their breakpoint (the drawer is the menu). */
    .main-header .navbar-collapse:not(.navbar-collapse--desktop) { display: none; }
}
@media (min-width: 1200px) { .main-header .navbar-expand-xl .navbar-collapse { display: flex !important; } }
@media (min-width: 992px) { .main-header .navbar-expand-lg .navbar-collapse { display: flex !important; } }
/* Header-02/03/04 lie over the page on a desktop and come back into the flow below their breakpoint (themes.css
   header-mobile-*): the band kept free for them under it is then an empty dark strip. */
@media (max-width: 1199.98px) {
    .main-header.header-mobile-xl ~ #content .ab-header-spacer, .main-header.header-mobile-xl ~ #content > .pt-12:empty { display: none; }
    .main-header.header-mobile-xl ~ #content .page-title.pt-12, .main-header.header-mobile-xl ~ #content > section.pt-12 { padding-top: 24px !important; }
    .main-header.header-mobile-xl ~ #content .ab-listing-title--dark { padding-bottom: 20px !important; }
}
@media (max-width: 991.98px) {
    .main-header.header-mobile-lg ~ #content .ab-header-spacer, .main-header.header-mobile-lg ~ #content > .pt-12:empty { display: none; }
    .main-header.header-mobile-lg ~ #content .page-title.pt-12, .main-header.header-mobile-lg ~ #content > section.pt-12 { padding-top: 24px !important; }
    .main-header.header-mobile-lg ~ #content .ab-listing-title--dark { padding-bottom: 20px !important; }
}

/* ── Menu drawer ────────────────────────────────────────────────────────────────────────────────────────── */
.ab-drawer { position: fixed; inset: 0; z-index: 1060; display: none; }
.ab-drawer.is-active { display: block; }
.ab-drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 18, 24, .5); opacity: 0; transition: opacity .28s ease; }
.ab-drawer.is-open .ab-drawer__backdrop { opacity: 1; }
.ab-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 400px); display: flex; flex-direction: column;
    background: #fff; color: #1f2933; box-shadow: -12px 0 32px rgba(0, 0, 0, .18); transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    padding-bottom: env(safe-area-inset-bottom, 0); }
.ab-drawer.is-open .ab-drawer__panel { transform: none; }
.ab-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; min-height: 64px; border-bottom: 1px solid #eceef1; }
.ab-drawer__brand { min-width: 0; display: inline-flex; }
.ab-drawer__brand .brand-wordmark { font-size: 1.15rem; color: #14181f; }
.ab-drawer__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3f4f6; color: #1f2933; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ab-drawer__close:focus-visible, .ab-drawer__link:focus-visible, .ab-drawer__lang:focus-visible { outline: 2px solid var(--primary, #1d4ed8); outline-offset: 2px; }
.ab-drawer__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px 0 16px; }
.ab-drawer__list, .ab-drawer__sub, .ab-drawer__langs { list-style: none; margin: 0; padding: 0; }
.ab-drawer__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 20px; color: #1f2933 !important;
    font-size: 17px; font-weight: 500; text-decoration: none !important; border-left: 3px solid transparent; cursor: pointer; }
.ab-drawer__link:hover, .ab-drawer__link:active { background: #f5f6f8; }
.ab-drawer__link.is-active { border-left-color: var(--primary, #1d4ed8); color: var(--primary, #1d4ed8) !important; background: rgba(0, 0, 0, .03); }
.ab-drawer__group > summary { list-style: none; }
.ab-drawer__group > summary::-webkit-details-marker { display: none; }
.ab-drawer__group > summary i { transition: transform .2s; font-size: 14px; }
.ab-drawer__group[open] > summary i { transform: rotate(180deg); }
.ab-drawer__sub .ab-drawer__link { padding-left: 36px; font-size: 16px; font-weight: 400; min-height: 48px; }
.ab-drawer__langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px 0; margin-top: 8px; border-top: 1px solid #eceef1; }
.ab-drawer__lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #d9dde3; border-radius: 999px; color: #1f2933 !important; font-size: 15px; }
.ab-drawer__lang.is-active { border-color: var(--primary, #1d4ed8); color: var(--primary, #1d4ed8) !important; font-weight: 600; }
.ab-drawer__foot { padding: 16px 20px; border-top: 1px solid #eceef1; display: grid; gap: 8px; }
.ab-drawer__call { min-height: 48px; display: flex !important; align-items: center; justify-content: center; font-size: 16px; }
.ab-drawer__mail { display: flex; align-items: center; justify-content: center; min-height: 44px; color: #4b5563 !important; font-size: 14px; word-break: break-all; }
@media (min-width: 1200px) { .ab-drawer { display: none; } }
@media (prefers-reduced-motion: reduce) { .ab-drawer, .ab-drawer__panel, .ab-drawer__backdrop, .ab-filters__panel, .ab-filters__backdrop { transition: none !important; } }

/* ── Listing: toolbar ───────────────────────────────────────────────────────────────────────────────────── */
.ab-ltools { background: #fff; border-bottom: 1px solid #eceef1; }
.ab-ltools__row { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.ab-ltools__filters { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #d0d5dc; border-radius: var(--ab-radius, 8px); background: #fff; color: #1f2933; font-weight: 600; font-size: 15px; }
.ab-ltools__filters:hover, .ab-ltools__filters:focus-visible { border-color: var(--primary, #1d4ed8); color: var(--primary, #1d4ed8); }
.ab-ltools__badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--primary, #1d4ed8); color: #fff; font-size: 12px; line-height: 22px; text-align: center; }
.ab-ltools__sort { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; min-width: 0; }
.ab-ltools__label { margin: 0; font-size: 14px; color: #5b6470; white-space: nowrap; }
.ab-ltools__select { width: auto !important; min-height: 44px; font-size: 15px; padding: 0 2rem 0 12px; background-color: #fff; border: 1px solid #d0d5dc; border-radius: var(--ab-radius, 8px); color: #1f2933; text-overflow: ellipsis; }
.ab-ltools__view { display: none; gap: 4px; }
.ab-ltools__view .btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
@media (min-width: 768px) { .ab-ltools__view { display: inline-flex; } }
@media (min-width: 992px) { .ab-ltools__filters { display: none; } }
@media (max-width: 575.98px) {
    .ab-ltools__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .ab-ltools__filters { flex: 0 0 auto; justify-content: center; }
    .ab-ltools__sort { flex: 1 1 0; margin-left: 0; }
    .ab-ltools__select { width: 100% !important; font-size: 16px; }
}
/* The listing's title band on a phone: less vertical padding, the count kept readable. */
@media (max-width: 767.98px) {
    .ab-listing-title.py-6 { padding-top: 20px !important; padding-bottom: 16px !important; }
    .ab-listing-title h1 { font-size: 22px !important; }
    .ab-listing-title .breadcrumb { padding-bottom: 8px !important; }
}

/* ── Listing: filters (sidebar / bar from 992 px, bottom sheet below) ────────────────────────────────────── */
.ab-filters__head, .ab-filters__backdrop { display: none; }
.ab-filterbar { padding-top: 24px; }
@media (min-width: 992px) {
    .ab-filters__body .property-search > .bg-white { border-radius: var(--ab-radius, 8px); }
}
@media (max-width: 991.98px) {
    .ab-filterbar { padding: 0; }
    .ab-filters { position: fixed; inset: 0; z-index: 1060; display: none; margin: 0 !important; }
    .ab-filters.is-active { display: block; }
    .ab-filters__backdrop { display: block; position: absolute; inset: 0; background: rgba(15, 18, 24, .5); opacity: 0; transition: opacity .3s ease; }
    .ab-filters.is-open .ab-filters__backdrop { opacity: 1; }
    .ab-filters__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; background: #fff;
        border-radius: 16px 16px 0 0; box-shadow: 0 -12px 32px rgba(0, 0, 0, .2); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
    .ab-filters.is-open .ab-filters__panel { transform: none; }
    .ab-filters__head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; min-height: 60px; border-bottom: 1px solid #eceef1; position: relative; }
    .ab-filters__head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #d0d5dc; }
    .ab-filters__title { font-size: 18px; font-weight: 700; margin: 0; flex: 1 1 auto; color: #14181f; }
    .ab-filters__reset { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 15px; color: var(--primary, #1d4ed8) !important; text-decoration: underline; }
    .ab-filters__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3f4f6; color: #1f2933; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
    .ab-filters__body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 4px 0; }
    .ab-filters__body .property-search > .bg-white { border: 0 !important; padding: 16px !important; }
    .ab-filters__body .property-search > .d-flex { padding: 12px 16px 0; }
    /* The search button stays in reach at the bottom of the sheet. */
    .ab-filters__body .ab-sf-submit { position: sticky; bottom: 0; z-index: 2; background: #fff; margin: 12px -16px -16px !important; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0)); border-top: 1px solid #eceef1; }
    .ab-filters__body .property-search .collapse:not(.show) { display: block; }
    .ab-filters__body .adv-toggle { display: none !important; }
    /* Sidebar layouts: the column keeps only what is not the sheet (« Coups de cœur »). */
    .col-lg-3 > .ab-filters--sidebar + .mt-5, .col-lg-3 > .ab-filters--sidebar ~ div { margin-top: 0 !important; }
}
/* Criteria fields: a comfortable height everywhere, 16 px text on phones (no zoom on focus). */
.ab-filters .form-control, .ab-filters .bootstrap-select .dropdown-toggle { min-height: 44px; font-size: 15px; }
.ab-filters label { font-size: 13px !important; font-weight: 600 !important; color: #3f4650 !important; text-transform: none !important; letter-spacing: 0 !important; margin-bottom: 4px !important; }
.ab-filters .custom-control-label { font-weight: 500 !important; font-size: 15px !important; }
.ab-filters .form-control { background-color: #fff; border: 1px solid #d0d5dc; }
.ab-filters .form-control:focus { border-color: var(--primary, #1d4ed8); }
.ab-filters .btn-primary.btn-sm { min-height: 48px; font-size: 16px; font-weight: 600; }
.ab-filters .custom-control { min-height: 44px; display: flex; align-items: center; }

/* ── Listing: cards and pagination ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .listing-page section.py-7 { padding-top: 20px !important; padding-bottom: 32px !important; }
    .listing-page .row > [class*="col-"] > .card { margin-bottom: 0; }
    .listing-page .mb-5 > .card, .listing-page .card.mb-6 { margin-bottom: 0; }
}
.pagination .page-link { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.js-load-more { min-height: 48px; }

/* ── Advert: phone gallery ──────────────────────────────────────────────────────────────────────────────── */
.ab-pgal-wrap { display: none; }
@media (max-width: 767.98px) {
    .ab-pgal-wrap { display: block; margin-bottom: 4px; }
    /* Edge to edge inside a layout's container. */
    .container .ab-pgal-wrap { margin-left: -15px; margin-right: -15px; }
    .ab-gal-desk { display: none; }
}
.ab-pgal { position: relative; background: #e9ecef; }
.ab-pgal__strip { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; aspect-ratio: 3 / 2; }
.ab-pgal__strip::-webkit-scrollbar { display: none; }
.ab-pgal__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.ab-pgal__slide a, .ab-pgal__slide picture { display: block; height: 100%; }
.ab-pgal__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ab-pgal__count { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 18, 24, .72); color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.ab-pgal__full { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(15, 18, 24, .72); color: #fff; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; }
body[class*="property-detail"] .ab-pgal img { object-fit: var(--ab-photo-fit, cover); }

/* ── Advert: full-screen viewer ─────────────────────────────────────────────────────────────────────────── */
.ab-viewer { position: fixed; inset: 0; z-index: 1070; background: #0b0d10; opacity: 0; transition: opacity .2s ease; display: none; flex-direction: column; }
.ab-viewer.is-active { display: flex; }
.ab-viewer.is-open { opacity: 1; }
.ab-viewer__bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; padding-top: max(8px, env(safe-area-inset-top, 0)); color: #fff; min-height: 60px; }
.ab-viewer__count { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ab-viewer__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; }
.ab-viewer__strip { flex: 1 1 auto; display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.ab-viewer__strip::-webkit-scrollbar { display: none; }
.ab-viewer__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding-bottom: env(safe-area-inset-bottom, 0); }
.ab-viewer__slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ab-viewer__step { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; display: none; }
.ab-viewer__step--prev { left: 12px; }
.ab-viewer__step--next { right: 12px; }
@media (hover: hover) and (pointer: fine) { .ab-viewer__step { display: inline-flex; align-items: center; justify-content: center; } }
.ab-viewer__close:focus-visible, .ab-viewer__step:focus-visible, .ab-pgal__full:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── Advert: head, key figures, description, similar ────────────────────────────────────────────────────── */
.ab-pfacts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: -8px 0 24px; padding: 0; }
.ab-pfacts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #e3e6ea; border-radius: var(--ab-radius, 10px); background: #fff; font-size: 14px; color: #3f4650; }
.ab-pfacts li strong { color: #14181f; font-weight: 700; }
.ab-pfacts .icon, .ab-pfacts i { width: 20px; height: 20px; font-size: 18px; color: var(--primary, #1d4ed8); fill: currentColor; flex-shrink: 0; }
@media (max-width: 767.98px) {
    .ab-ptop .breadcrumb { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; font-size: 12px; padding-top: 12px !important; padding-bottom: 8px !important; }
    .ab-ptop .breadcrumb-item { flex-shrink: 0; display: flex; align-items: center; }
    .ab-ptop .breadcrumb-item.active { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .ab-pmeta .badge { font-size: 11px; }
    .ab-pactions .btn { width: 44px; height: 44px !important; padding: 0 !important; justify-content: center; }
    .ab-pactions .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .ab-ptitle { font-size: 24px !important; line-height: 1.3 !important; margin: 8px 0 6px; }
    .ab-phead { margin-bottom: 16px !important; }
    .ab-pprice p { font-size: 24px !important; }
    .ab-pfacts { margin: 0 0 8px; gap: 6px; }
    .ab-pfacts li { padding: 6px 10px; font-size: 13px; }
    .ab-ptop { padding-bottom: 16px !important; }
    body[class*="property-detail"] .primary-content { padding-top: 12px !important; padding-bottom: 32px !important; }
    body[class*="property-detail"] .primary-content section.bg-white { padding-left: 16px !important; padding-right: 16px !important; }
    .ab-pdl dt { width: 45% !important; }
}
.ab-pdesc__text { font-size: 16px; line-height: 1.7; color: #3f4650; overflow-wrap: anywhere; }
.ab-js .ab-pdesc__text[data-ab-clamp]:not(.is-expanded) { max-height: 11.9em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ab-pdesc__more { display: none; min-height: 44px; font-weight: 600; color: var(--primary, #1d4ed8) !important; text-decoration: underline; }
.ab-js .ab-pdesc__more { display: inline-flex; align-items: center; }
.ab-video { position: relative; aspect-ratio: 16 / 9; }
.ab-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ab-similar__row { display: flex; gap: 16px; margin: 0; padding: 0 0 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.ab-similar__item { flex: 0 0 min(78%, 280px); scroll-snap-align: start; }
.ab-similar__card { display: flex; flex-direction: column; height: 100%; border: 1px solid #e3e6ea; border-radius: var(--ab-radius, 10px); overflow: hidden; color: inherit !important; text-decoration: none !important; background: #fff; }
.ab-similar__card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.ab-similar__card img, .ab-similar__noimg { display: block; width: 100%; height: auto; aspect-ratio: 400 / 260; object-fit: cover; background: #e9ecef; }
.ab-similar__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.ab-similar__price { font-weight: 700; font-size: 17px; color: #14181f; }
.ab-similar__title { font-size: 15px; color: #1f2933; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ab-similar__place { font-size: 13px; color: #5b6470; }

/* ── Advert: contact card ───────────────────────────────────────────────────────────────────────────────── */
#contactForm, .ab-form { scroll-margin-top: 88px; }
.ab-pform__label { display: block; font-size: 14px; font-weight: 500; color: #3f4650; margin-bottom: 4px; }
.ab-pcontact .form-control { min-height: 48px; border: 1px solid #d0d5dc; box-shadow: none; font-size: 16px; }
.ab-pcontact textarea.form-control { min-height: 112px; }
.ab-pcontact .form-control:focus { border-color: var(--primary, #1d4ed8); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.ab-tap { min-height: 32px; padding: 4px 0; }
/* The retained sidebar sticks only where it is a sidebar. */
@media (max-width: 991.98px) {
    .primary-sidebar .primary-sidebar-inner, .primary-map .primary-map-inner { position: static !important; transform: none !important; top: auto !important; width: auto !important; }
    /* hc-sticky's placeholder kept the sidebar's height above the contact card: a blank screen on phones. */
    .primary-sidebar .sticky-spacer, .primary-map .sticky-spacer { display: none !important; height: 0 !important; }
}

/* ── Advert: action bar ─────────────────────────────────────────────────────────────────────────────────── */
.ab-actionbar { display: none; }
@media (max-width: 991.98px) {
    body.has-ab-actionbar { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0)); }
    .ab-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; align-items: center; gap: 12px; padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
        background: #fff; border-top: 1px solid #e3e6ea; box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); transition: transform .25s ease; }
    .ab-actionbar.is-tucked { transform: translateY(110%); }
    .ab-actionbar__price { flex: 1 1 auto; min-width: 0; line-height: 1.2; }
    .ab-actionbar__price strong { display: block; font-size: 17px; color: #14181f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ab-actionbar__price small { font-size: 12px; color: #5b6470; }
    .ab-actionbar__actions { display: flex; gap: 8px; flex-shrink: 0; }
    .ab-actionbar .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; font-weight: 600; font-size: 15px; white-space: nowrap; }
    .ab-actionbar__call { border: 1px solid #d0d5dc; background: #fff; color: #1f2933; }
    .ab-actionbar__call span { display: none; }
    .ab-actionbar__call { width: 48px; padding: 0 !important; }
    .has-ab-actionbar .ab-to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0)); }
    .has-ab-actionbar #cookieBanner, .has-ab-actionbar .ab-consent { bottom: calc(72px + env(safe-area-inset-bottom, 0)); }
}
@media (min-width: 420px) and (max-width: 991.98px) { .ab-actionbar__call { width: auto; padding: 0 14px !important; } .ab-actionbar__call span { display: inline; } }
@media print { .ab-actionbar, .ab-drawer, .ab-viewer, .ab-to-top, .ab-ltools { display: none !important; } }

/* ── Forms ──────────────────────────────────────────────────────────────────────────────────────────────── */
.form-control:focus-visible { outline: 2px solid var(--primary, #1d4ed8); outline-offset: 1px; }
.form-control[aria-invalid="true"] { border-color: #c62828 !important; }
.ab-field-error { display: block; margin-top: 4px; font-size: 13px; color: #b42318; }
.custom-control + .ab-field-error { margin-top: -12px; margin-bottom: 12px; }
[aria-busy="true"] { opacity: .7; pointer-events: none; }
@media (max-width: 991.98px) {
    /* iOS zooms into any field under 16 px: every field is 16 px on phones and tablets. */
    input.form-control, select.form-control, textarea.form-control, .bootstrap-select .dropdown-toggle, .ab-ps__control,
    input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="date"], select, textarea { font-size: 16px !important; }
    .form-control, .form-control-sm, .form-control-lg { min-height: 48px; }
    textarea.form-control { min-height: 112px; }
    .ab-form .btn-lg, .ab-pform .btn-lg { width: 100%; }
    .custom-control-label::before, .custom-control-label::after { top: .1rem; width: 1.25rem; height: 1.25rem; }
    .custom-control { padding-left: 2rem; min-height: 32px; }
    .custom-control-label { padding-top: 2px; }
}

/* ── Tap targets and footer ─────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .breadcrumb { align-items: center; }
    .breadcrumb-item a { display: inline-block; padding: 8px 0; }
    footer.footer a, footer a.text-muted, footer .list-group-item a, footer li > a { display: inline-flex; align-items: center; min-height: 44px; }
    footer .d-block { display: flex !important; }
    footer .list-inline-item { margin-right: 4px; }
    .activimmo-made-with a { display: inline-block; padding: 8px 4px; }
    footer.footer { padding-bottom: 8px; }
}

/* ── Back to top ────────────────────────────────────────────────────────────────────────────────────────── */
.ab-wa-float { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0)); z-index: 1030; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #1a7f4b; color: #fff !important; box-shadow: 0 4px 14px rgba(15, 23, 42, .28); }
.ab-wa-float:hover { background: #156c3f; }
.ab-wa-float:focus-visible { outline: 3px solid var(--primary, #1d4ed8); outline-offset: 2px; }
@media (max-width: 991.98px) { .has-ab-actionbar .ab-wa-float { bottom: calc(84px + env(safe-area-inset-bottom, 0)); } }
@media print { .ab-wa-float { display: none !important; } }
.ab-to-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0)); z-index: 1030; width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; background: var(--primary, #1d4ed8); color: #fff !important; font-size: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
.ab-to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ab-to-top:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (min-width: 992px) { .ab-filters--bar .ab-sf-submit { max-width: 280px; margin-left: auto; } }

/* ── Consent banner (partials/consent-banner.njk) on phones ─────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .ab-consent__actions .btn { min-height: 44px; font-size: 15px; }
    .ab-consent__row { font-size: 14px; min-height: 32px; }
    .ab-consent__row input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
    .ab-consent__box { max-height: calc(100vh - 32px); overflow-y: auto; padding: 16px; }
}
.custom-control-input[aria-invalid="true"] ~ .custom-control-label::before { border-color: #c62828; }

/* ── Cards: the photo's link covers the photo (it was an inline box 17 px high around a block image) ────── */
.card-img-top > a, .card-photo-slider a, .hover-change-image > a { display: block; }
.ab-drawer__list:empty { display: none; }
.ab-drawer__list:empty + .ab-drawer__langs { border-top: 0; margin-top: 0; }

/* ── Guillaume port: card status tags and excerpt (every page with cards, not only document sections) ── */
/* Card badges (status tags, Guillaume port): they wrap inside the card instead of pushing past it. */
.ab-card-tags { min-width: 0; flex: 1 1 auto; row-gap: 4px; }
.ab-card-tags .list-inline-item { margin-bottom: 0; }
.status-tag { white-space: nowrap; }
.ab-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ab-card-excerpt { margin-top: 6px; line-height: 1.5; }
.ab-card-status { display: flex; flex-wrap: wrap; gap: 4px; }
.ab-card-status .status-tag { margin-left: 0 !important; }
