/* Homepage section 3 — «العقارات المتاحة» (owner design, 2026-10-17): live listings on a map with the
   selected listing's contact card beside it, then the full list filtered by property type.
   Scoped under #listings. typography.css pins h3 / p / span sizes with !important, so the few size
   rules that must win carry the ID and !important too; text blocks use div rather than p. */

#listings.aqls {
    --ls-d: #3b2a63;
    --ls-m: #5b4a8f;
    --ls-g: #f5b942;
    --ls-ink: #2b2340;
    --ls-soft: #6d6488;
    --ls-line: #ece7f6;
    --ls-wa: #1f8a4c;
    position: relative;
    z-index: 1;
    isolation: isolate;
    background: #fbfaff;
    color: var(--ls-ink);
}
/* White version of section 2's ground, as on «من نحن» (owner, 2026-10-19): the Sadu weave stays a
   faint texture at the edges and the middle is kept almost clean, so the map and list stay crisp. */
#listings.aqls::before,
#listings.aqls::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
#listings.aqls::before {
    background: url("/images/Home/sadu-pattern.svg") 0 0 / 100px 160px repeat;
    opacity: 0.045;
}
#listings.aqls::after {
    background:
        radial-gradient(ellipse 60% 30% at 50% 0, rgba(183, 160, 230, 0.14), transparent 70%),
        linear-gradient(90deg, rgba(251, 250, 255, 0) 0, rgba(251, 250, 255, 0.85) 18%, rgba(251, 250, 255, 0.85) 82%, rgba(251, 250, 255, 0) 100%);
}
#listings .aqls__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 96px 24px 88px;
}

/* ---------- Headings ---------- */
#listings .aqls__head,
#listings .aqls__units-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}
#listings .aqls__head h2,
#listings .aqls__units-head h2 {
    margin: 0;
    color: var(--ls-d);
    font-size: clamp(22px, 2.6vw, 32px) !important;
    font-weight: 800 !important;
    line-height: 1.3;
}
#listings .aqls__head h2 .aqls__dot { color: var(--ls-g); padding: 0 4px; }
/* The key words of each title sit over a hand-drawn gold brush stroke (as across the site). */
#listings .aqls__mark {
    padding: 0 0 0.34em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15C60 6 140 4 296 9' fill='none' stroke='%23f5b942' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M30 20C110 13 190 12 280 16' fill='none' stroke='%23f5b942' stroke-width='4' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") center bottom / 100% 0.4em no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
#listings .aqls__head-ico {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ebe5f8;
    color: var(--ls-d);
}
#listings .aqls__head-ico svg { width: 22px; height: 22px; }
/* The short rule under each title is gone; the titles keep its spacing. */
#listings .aqls__head,
#listings .aqls__units-head { margin-bottom: 30px; }
#listings .aqls__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    padding: 0 10px;
    border-radius: 99px;
    background: var(--ls-d);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
#listings [hidden] { display: none !important; }

/* ---------- Top row: the map across the whole row (owner 2026-10-29: the selected listing's
   contact card beside it was removed; a pin's card opens over the map on every screen) ---------- */
#listings .aqls__top {
    margin-bottom: 64px;
}

/* Saudi riyal sign (SVG, currentColor): sized to the price it follows. */
#listings .aqls__sar {
    display: inline-flex;
    vertical-align: -0.12em;
    color: currentColor;
}
#listings .aqls__sar svg { width: 0.9em; height: 1em; }
#listings .aqls__row-price em { display: inline-flex; align-items: baseline; gap: 3px; }
#listings .aqls__row-price .aqls__sar { color: var(--ls-d); }
#listings .aqls__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 10px;
    border: 1.5px solid #ddd3ee;
    border-radius: 12px;
    background: #fff;
    color: var(--ls-d);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
#listings .aqls__btn:hover { border-color: var(--ls-m); background: #f6f4fb; color: var(--ls-d); }
#listings .aqls__btn svg { width: 17px; height: 17px; flex: none; }
#listings .aqls__btn--wa { border-color: var(--ls-wa); background: var(--ls-wa); color: #fff; }
#listings .aqls__btn--wa:hover { border-color: #17733e; background: #17733e; color: #fff; }
#listings .aqls__btn:focus-visible,
#listings .aqls__chip:focus-visible,
#listings .aqls__more:focus-visible,
#listings .aqls__go:focus-visible {
    outline: 3px solid rgba(91, 74, 143, 0.35);
    outline-offset: 2px;
}

#listings .aqls__row--skel {
    display: block;
    border-radius: 12px;
    background: linear-gradient(100deg, #efebf8 30%, #f8f6fc 50%, #efebf8 70%);
    background-size: 300% 100%;
    animation: aqls-shimmer 1.4s linear infinite;
}
@keyframes aqls-shimmer { to { background-position: -150% 0; } }

/* ---------- Map ----------
   The controls are Home/MapListing's own (Shared/map-listing-controls.css); this block only places
   them on the smaller home map and draws Map Listing's price pills and count circles as HTML markers. */
#listings .aqls__map {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    border: 1px solid var(--ls-line);
    border-radius: 18px;
    background: #eef0f5;
    box-shadow: 0 1px 2px rgba(59, 42, 99, 0.04), 0 12px 30px rgba(59, 42, 99, 0.07);
}
/* Its own layer, so a raised marker never climbs over the toolbar or the tools. */
#listings .aqls__map-canvas { position: absolute; inset: 0; z-index: 0; }
/* Until (or unless) the live map loads, a drawn street plan stands in. */
#listings .aqls__map-canvas:empty {
    background:
        linear-gradient(115deg, transparent 47%, #fff 47%, #fff 50%, transparent 50%),
        linear-gradient(20deg, transparent 58%, #fff 58%, #fff 60.5%, transparent 60.5%),
        linear-gradient(80deg, transparent 30%, #fff 30%, #fff 32%, transparent 32%),
        radial-gradient(circle at 85% 15%, #dfe9d8 0 18%, transparent 18.5%),
        #eef0f5;
}

/* Toolbar pill: centred at the top, as on the full map. */
#listings .aqls__map-hdr {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 3;
    pointer-events: none;
}
#listings .aqls__map-hdr .hdr-bar__top-pill { pointer-events: auto; max-width: 100%; }
/* A link here (it continues on the full map), so it takes the site button type by hand. */
#listings .hdr-bar__filter { color: var(--T); font-size: 16px; font-weight: 700; text-decoration: none; }
#listings .hdr-bar__filter:hover { color: var(--PD); }
#listings .hdr-bar__pt-list { max-height: 280px; }
#listings .aqls__pt-count { margin-inline-start: 4px; font-size: 12px; opacity: 0.6; }
#listings .hdr-bar__pt-item.is-selected .aqls__pt-count { opacity: 0.85; }

/* Tool squares on the leading edge (right in Arabic), Mapbox zoom + compass on the other, as on the full map. */
#listings .aqls__map-tools {
    position: absolute;
    inset-inline-start: 12px;
    bottom: 14px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: bottom 0.25s ease;
}
#listings .mapboxgl-ctrl-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(28, 24, 41, 0.12);
}
/* The locate square drives Mapbox's geolocate control; only its stock button is hidden (the blue dot still works). */
#listings .mapboxgl-ctrl-group:has(> .mapboxgl-ctrl-geolocate) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    box-shadow: none;
}
#listings .mapboxgl-ctrl-bottom-left,
#listings .mapboxgl-ctrl-bottom-right { transition: bottom 0.25s ease; }

#listings .aqls__map-open {
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--P);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(59, 42, 99, 0.3);
    transform: translateX(-50%);
}
#listings .aqls__map-open svg { width: 15px; height: 15px; flex: none; }
#listings .aqls__map-open:hover { background: var(--PD); color: #fff; }
#listings .aqls__map-open:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* Price pill: white with the price (Map Listing's canvas pin); the chosen one turns brand purple with
   a pin tip under it; featured listings are gold with «مميز» above. */
#listings .aqls-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
#listings .aqls-pill__body {
    display: block;
    padding: 0 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 999px;
    background: #fff;
    color: #1c1829;
    font-size: 14px;
    font-weight: 700;
    line-height: 32px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(28, 24, 41, 0.2);
    transition: transform 0.15s ease;
}
#listings .aqls-pill:hover .aqls-pill__body { transform: translateY(-2px); }
#listings .aqls-pill:focus-visible { outline: none; }
#listings .aqls-pill:focus-visible .aqls-pill__body { outline: 2px solid var(--P); outline-offset: 2px; }
#listings .aqls-pill__feat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 3px;
    color: #78350f;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}
#listings .aqls-pill__feat svg { width: 11px; height: 11px; color: #b45309; }
#listings .aqls-pill.is-featured .aqls-pill__body { border-color: #eab308; background: #facc15; color: #78350f; }
#listings .aqls-pill__tip { display: none; }
#listings .aqls-pill.is-on { z-index: 4; }
#listings .aqls-pill.is-on .aqls-pill__body { border-color: #564a72; background: #6a5d8b; color: #fff; }
#listings .aqls-pill.is-on.is-featured .aqls-pill__body { border-color: #78350f; background: #92400e; color: #fff; }
#listings .aqls-pill.is-on .aqls-pill__tip {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    margin-bottom: 4px;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: #6a5d8b;
    transform: rotate(-45deg);
    box-shadow: -1px 1px 4px rgba(28, 24, 41, 0.3);
}
#listings .aqls-pill.is-on.is-featured .aqls-pill__tip { background: #92400e; }
#listings .aqls-pill.is-on .aqls-pill__tip::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
}

/* Counted circle when listings sit close together (Map Listing's cluster marker). */
#listings .aqls-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #4c3f72;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(28, 24, 41, 0.45);
    cursor: pointer;
}
#listings .aqls-cluster--lg { width: 44px; height: 44px; font-size: 15px; }
#listings .aqls-cluster:hover { background: #6a5d8b; }
#listings .aqls-cluster.is-on {
    z-index: 4;
    background: #6a5d8b;
    box-shadow: 0 0 0 4px rgba(106, 93, 139, 0.35), 0 2px 6px rgba(28, 24, 41, 0.45);
}

/* The chosen pin's card over the map. */
#listings .aqls__mapcard {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(28, 24, 41, 0.24);
}
#listings .aqls__mapcard[hidden] { display: none; }
/* Beyond a phone the map is wide: the card keeps a card's width, centred over the map's foot. */
@media (min-width: 641px) {
    #listings .aqls__mapcard {
        left: 50%;
        right: auto;
        width: min(460px, calc(100% - 24px));
        transform: translateX(-50%);
    }
}
#listings .aqls__mapcard-close {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f1f8;
    color: var(--ls-d);
    font-size: 20px;
    line-height: 30px;
    cursor: pointer;
}
#listings .aqls__mapcard-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 92px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1edfa;
    color: var(--ls-m);
}
#listings .aqls__mapcard-img img { width: 100%; height: 100%; object-fit: cover; }
#listings .aqls__mapcard-img > svg { width: 36px; height: 36px; }
#listings .aqls__mapcard-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-inline-end: 30px; }
#listings .aqls__mapcard-price { color: var(--ls-d); font-size: 13px; }
#listings .aqls__mapcard-price b { font-size: 18px; font-weight: 800; }
#listings .aqls__mapcard-price em { font-style: normal; }
#listings .aqls__mapcard-title {
    overflow: hidden;
    color: var(--ls-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#listings .aqls__mapcard-where {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--ls-soft);
    font-size: 12.5px;
}
#listings .aqls__mapcard-where > svg { width: 14px; height: 14px; flex: none; }
#listings .aqls__mapcard-where > span:first-of-type { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#listings .aqls__mapcard-acts { display: flex; gap: 8px; margin-top: 4px; }
#listings .aqls__mapcard-acts .aqls__btn { flex: 1; justify-content: center; min-height: 40px; padding: 8px 10px; }

/* With the card open, the tools, zoom and the full-map link move out of its way. */
#listings .aqls__map.has-card .aqls__map-tools { bottom: calc(var(--aqls-card-h, 120px) + 24px); }
#listings .aqls__map.has-card .mapboxgl-ctrl-bottom-left,
#listings .aqls__map.has-card .mapboxgl-ctrl-bottom-right { bottom: calc(var(--aqls-card-h, 120px) + 10px); }
#listings .aqls__map.has-card .aqls__map-open { display: none; }

/* ---------- Filters ---------- */
#listings .aqls__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}
#listings .aqls__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1.5px solid #e2dbf1;
    border-radius: 99px;
    background: #fff;
    color: var(--ls-d);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
#listings .aqls__chip:hover { border-color: var(--ls-m); }
#listings .aqls__chip b {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 99px;
    background: #f1edfa;
    color: var(--ls-m);
    font-size: 12px;
}
#listings .aqls__chip.is-on { border-color: var(--ls-d); background: var(--ls-d); color: #fff; }
#listings .aqls__chip.is-on b { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* ---------- List ---------- */
#listings .aqls__list {
    overflow: hidden;
    border: 1px solid var(--ls-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(59, 42, 99, 0.04), 0 12px 30px rgba(59, 42, 99, 0.07);
}
#listings .aqls__row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1.6fr) minmax(0, 1.4fr) minmax(0, 0.9fr) auto;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    border-bottom: 1px solid #f1edf8;
    cursor: pointer;
    transition: background 0.2s;
}
#listings .aqls__row:last-child { border-bottom: 0; }
#listings .aqls__row:hover { background: #fbfaff; }
#listings .aqls__row.is-on { background: #f6f2fe; box-shadow: inset 4px 0 0 var(--ls-g); }
#listings[dir="rtl"] .aqls__row.is-on { box-shadow: inset -4px 0 0 var(--ls-g); }
#listings .aqls__row--skel { height: 92px; margin: 10px 14px; border-bottom: 0; cursor: default; }

#listings .aqls__thumb {
    position: relative;
    width: 96px;
    height: 72px;
    overflow: hidden;
    border-radius: 12px;
    background: #ece7f6;
}
#listings .aqls__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
#listings .aqls__thumb svg {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 30px;
    height: 30px;
    color: #b9a7ea;
}
#listings .aqls__badge {
    position: absolute;
    top: 6px;
    inset-inline-start: 6px;
    padding: 1px 7px;
    border-radius: 6px;
    background: var(--ls-g);
    color: var(--ls-d);
    font-size: 10.5px !important;
    font-weight: 800;
}
#listings .aqls__title { min-width: 0; }
#listings .aqls__title h3 {
    margin: 0 0 4px;
    overflow: hidden;
    color: var(--ls-ink);
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#listings .aqls__where {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--ls-soft);
    font-size: 13px;
}
#listings .aqls__where svg { width: 14px; height: 14px; }
#listings .aqls__purpose {
    padding: 1px 8px;
    border-radius: 6px;
    background: #f1edfa;
    color: var(--ls-m);
    font-size: 11.5px;
    font-weight: 700;
}
#listings .aqls__purpose--rent { background: #fdf3dc; color: #7a5410; }
#listings .aqls__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: #4a3d72;
    font-size: 13px;
    font-weight: 600;
}
#listings .aqls__specs span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
#listings .aqls__specs svg { width: 16px; height: 16px; color: var(--ls-m); }
#listings .aqls__row-price {
    color: var(--ls-d);
    font-size: 17px !important;
    font-weight: 800 !important;
    white-space: nowrap;
}
#listings .aqls__row-price em { font-style: normal; font-size: 13px; color: var(--ls-soft); font-weight: 700; padding-inline-start: 4px; }
#listings .aqls__row-actions { display: flex; align-items: center; gap: 8px; }
#listings .aqls__fav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid #e2dbf1;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}
#listings .aqls__fav svg { width: 19px; height: 19px; }
#listings .aqls__fav:hover { border-color: #e11d48; }
#listings .aqls__go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--ls-d);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
#listings .aqls__go:hover { background: var(--ls-m); color: #fff; }
#listings .aqls__go svg { width: 15px; height: 15px; }
#listings[dir="ltr"] .aqls__go svg,
#listings[dir="ltr"] .aqls__btn--arrow svg { transform: scaleX(-1); }

#listings .aqls__empty {
    margin: 0;
    padding: 36px 20px;
    color: var(--ls-soft);
    text-align: center;
}

#listings .aqls__more-wrap { display: flex; justify-content: center; margin-top: 22px; }
#listings .aqls__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1.5px solid var(--ls-d);
    border-radius: 99px;
    background: #fff;
    color: var(--ls-d);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
#listings .aqls__more:hover { background: var(--ls-d); color: #fff; }
#listings .aqls__more svg { width: 17px; height: 17px; }
#listings[dir="ltr"] .aqls__more svg { transform: scaleX(-1); }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
    #listings .aqls__map { min-height: 440px; }
    #listings .aqls__row {
        grid-template-columns: 96px minmax(0, 1fr) auto;
        grid-template-areas: "thumb title price" "thumb specs actions";
        row-gap: 8px;
    }
    #listings .aqls__thumb { grid-area: thumb; }
    #listings .aqls__title { grid-area: title; }
    #listings .aqls__specs { grid-area: specs; }
    #listings .aqls__row-price { grid-area: price; text-align: end; }
    #listings .aqls__row-actions { grid-area: actions; justify-content: flex-end; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
    #listings .aqls__inner { padding: 72px 16px 64px; }
    #listings .aqls__head { flex-direction: column; gap: 8px; }
    #listings .aqls__map { min-height: 480px; }
    /* Map toolbar on a phone: kind switch + filter icon; the type chips right under the map pick the type. */
    #listings .aqls__map-hdr { left: 8px; right: 8px; top: 8px; }
    #listings .aqls__map-hdr .hdr-bar__top-pill { gap: 6px; padding: 5px 6px; }
    #listings .aqls__map-hdr .hdr-bar__pt-wrap { display: none; }
    #listings .aqls__map-hdr .hdr-bar__kind-btn { min-height: 40px; padding: 8px 12px; }
    #listings .aqls__map-hdr .hdr-bar__filter { min-width: 42px; min-height: 42px; padding: 8px 10px; }
    #listings .aqls__filter-text { display: none; }
    #listings .aqls__map-tools { inset-inline-start: 10px; gap: 6px; }
    #listings .aqls__map-tools .map-tool-square { width: 40px; height: 40px; border-radius: 11px; }
    #listings .aqls__map-tools .map-tool-square svg { width: 18px; height: 18px; }
    #listings .aqls__mapcard { left: 8px; right: 8px; bottom: 8px; grid-template-columns: 80px minmax(0, 1fr); }
    #listings .aqls__map.has-card .aqls__map-tools { bottom: calc(var(--aqls-card-h, 120px) + 18px); }
    #listings .aqls__filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    #listings .aqls__filters::-webkit-scrollbar { display: none; }
    #listings .aqls__chip { flex: none; }
    #listings .aqls__row {
        grid-template-columns: 84px minmax(0, 1fr);
        grid-template-areas: "thumb title" "thumb price" "specs specs" "actions actions";
        gap: 8px 12px;
        padding: 14px;
    }
    #listings .aqls__thumb { width: 84px; height: 68px; }
    #listings .aqls__row-price { text-align: start; }
    #listings .aqls__row-actions { justify-content: stretch; }
    #listings .aqls__go { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    #listings .aqls__row--skel { animation: none; }
    #listings .aqls-pill__body,
    #listings .aqls__map-tools,
    #listings .mapboxgl-ctrl-bottom-left,
    #listings .mapboxgl-ctrl-bottom-right { transition: none; }
}

/* Phones: both titles stay on one line, sized to the screen (~19.6× and ~15× their font size wide). */
@media (max-width: 640px) {
    #listings .aqls__head h2 {
        white-space: nowrap;
        font-size: min(22px, calc((100vw - 40px) / 20.4)) !important;
    }
    #listings .aqls__units-head { flex-wrap: wrap; }
    #listings .aqls__units-head h2 {
        white-space: nowrap;
        font-size: min(22px, calc((100vw - 96px) / 15.7)) !important;
    }
}
