/* =====================================================================
   Emlak — the public website (home designs, list designs, property page designs).
   Like base.css it never writes a theme colour: every colour is a --cs-* slot from
   css/themes/<theme>.css, so a new theme re-colours the whole site.
   The only fixed colours are parts that are dark on purpose in both modes (photo veils,
   the full-screen photo viewer, glass cards over photos) and the WhatsApp green.
   Sections:  1 frame (menu, footer, sections)   2 property card + row   3 search boxes
              4 home designs   5 list designs   6 property page   7 phones
   ===================================================================== */

/* ---------- 1. Frame ---------- */
.cs-public { font-size: 1rem; }
.cs-public main { min-height: 60vh; }

/* Touch is a tap, not a selection */
.cs-pcard, .cs-prow, .cs-gallery-thumb, .cs-gallery-main img, .cs-mosaic-tile, .cs-cine-slide, .cs-airy-photo, .cs-btq-arch a, .cs-btq-about-pic,
.cs-sticky-bar, .cs-search-kind label, .cs-filter-pills label, .cs-lightbox, .btn, .nav-link, .dropdown-item, .page-link, .badge {
    -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.cs-public img { -webkit-touch-callout: none; }
.cs-noscroll { overflow: hidden; }
.cs-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.cs-narrow { max-width: 560px; }
.cs-w-auto { width: auto !important; }

/* Menu (always the theme's dark navigation colours) */
.cs-pubnav { background: var(--cs-nav-bg); color: var(--cs-nav-text); padding-block: .4rem; border-bottom: 2px solid var(--cs-nav-line); }
.cs-pubnav .nav-link { color: var(--cs-nav-text); font-weight: 500; padding-inline: .7rem !important; border-radius: 8px; }
.cs-pubnav .nav-link:hover, .cs-pubnav .nav-link:focus-visible { color: var(--cs-nav-active-text); background: var(--cs-nav-active-bg); }
.cs-pubnav .nav-link.active { color: var(--cs-nav-active-text); }
.cs-pub-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--cs-nav-text); text-decoration: none; min-width: 0; }
.cs-pub-brand:hover { color: var(--cs-nav-text); }
.cs-pub-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }
.cs-pub-logo { height: 34px; width: auto; max-width: 120px; object-fit: contain; border-radius: 6px; }
.cs-pub-mark { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--cs-accent); color: var(--cs-on-accent); flex: 0 0 34px; }
.cs-pub-tools { display: flex; align-items: center; gap: .35rem; margin-inline-start: .75rem; }
/* A see-through button on the dark menu or on a photo banner: light text, a light outline */
.cs-pub-ghost { --bs-btn-color: var(--cs-nav-text); --bs-btn-bg: transparent; --bs-btn-border-color: var(--cs-nav-muted);
    --bs-btn-hover-color: var(--cs-nav-bg); --bs-btn-hover-bg: var(--cs-nav-text); --bs-btn-hover-border-color: var(--cs-nav-text);
    --bs-btn-active-color: var(--cs-nav-bg); --bs-btn-active-bg: var(--cs-nav-muted); --bs-btn-active-border-color: var(--cs-nav-muted);
    --bs-btn-focus-shadow-rgb: 255, 255, 255; }
.cs-pub-toggler { border: 1px solid var(--cs-nav-muted); color: var(--cs-nav-text); font-size: 1.35rem; line-height: 1; padding: .2rem .45rem; }
.cs-pub-toggler:focus { box-shadow: 0 0 0 .2rem var(--cs-nav-line); }

/* Footer (same dark colours as the menu) */
.cs-pubfoot { background: var(--cs-nav-bg); color: var(--cs-nav-text); padding-top: 1.75rem; margin-top: 1rem; }
.cs-pubfoot a { color: var(--cs-nav-text); text-decoration: none; }
.cs-pubfoot a:hover { color: var(--cs-nav-active-text); text-decoration: underline; }
.cs-pubfoot-muted { color: var(--cs-nav-muted); }
.cs-pubfoot-bottom { border-top: 1px solid var(--cs-nav-bg-2); margin-top: 1.25rem; padding: .5rem 0 calc(.5rem + env(safe-area-inset-bottom)); color: var(--cs-nav-muted); }
.cs-pubfoot-bottom a { color: var(--cs-nav-muted); }

/* Sections and headings */
.cs-section { padding: 2.5rem 0; }
.cs-section-tight { padding: 1.25rem 0; }
.cs-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem 1rem; margin-bottom: 1rem; }
.cs-section-head > :last-child:not(:first-child) { margin-inline-start: auto; }
.cs-section-heading { font-weight: 800; font-size: clamp(1.35rem, 2.6vw, 1.9rem); letter-spacing: -.01em; margin: 0; color: var(--cs-text); }
.cs-head-count { font-size: .8em; font-weight: 600; color: var(--cs-muted); }
.cs-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cs-accent-text); margin-bottom: .35rem; }
.cs-eyebrow-hero { color: var(--cs-hero-accent); }
.cs-more-link { font-weight: 600; text-decoration: none; color: var(--cs-accent-text); }
.cs-more-link:hover { text-decoration: underline; color: var(--cs-text); }
.cs-pagehead { background: var(--cs-surface); border-bottom: 1px solid var(--cs-border); padding: 1.25rem 0 1rem; }
.cs-pagehead-title { font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .6rem; color: var(--cs-text); }

/* Dark photo banner (hero colours from the theme, the same in both modes) */
.cs-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--cs-hero-from), var(--cs-hero-to)); color: var(--cs-hero-text); }
.cs-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--cs-hero-to) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .35) 100%); }
.cs-hero-title { font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; color: var(--cs-hero-text); max-width: 16ch; margin-bottom: .75rem; }
.cs-hero-title em { font-style: normal; color: var(--cs-hero-accent); }
.cs-hero-text { font-size: 1.1rem; color: var(--cs-hero-muted); max-width: 38rem; margin-bottom: 1.25rem; }

/* The about band (dark, both modes) and figures */
.cs-band { background: linear-gradient(135deg, var(--cs-hero-from), var(--cs-hero-to)); color: var(--cs-hero-text); padding: 2.5rem 0; }
.cs-band .cs-section-heading { color: var(--cs-hero-text); }
.cs-band-text { color: var(--cs-hero-muted); font-size: 1.05rem; }
.cs-stat { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 1rem .5rem; color: var(--cs-hero-text); }
.cs-stat b { display: block; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--cs-hero-accent); line-height: 1.1; }
.cs-stat span { font-size: .82rem; color: var(--cs-hero-muted); }
/* The same figures on a normal page (both modes) */
.cs-stat-plain, .cs-stat-card { background: var(--cs-surface); border-color: var(--cs-border); color: var(--cs-text); }
.cs-stat-plain b, .cs-stat-card b { color: var(--cs-accent-text); }
.cs-stat-plain span, .cs-stat-card span { color: var(--cs-muted); }
.cs-soft-band { background: var(--cs-surface-2); border-block: 1px solid var(--cs-border); }

.cs-why .bi { font-size: 1.6rem; color: var(--cs-accent-text); }
.cs-contact-strip { border-inline-start: 4px solid var(--cs-accent); }
.cs-contact-row { display: flex; gap: .75rem; align-items: flex-start; }
.cs-contact-row > .bi { font-size: 1.25rem; color: var(--cs-accent-text); flex: 0 0 auto; margin-top: .1rem; }

/* Sale / rent badges (theme slots, both modes) */
.cs-kind-sale { background: var(--cs-primary); color: var(--cs-on-primary); }
.cs-kind-rent { background: var(--cs-rent); color: var(--cs-on-rent); }
.cs-btn-whatsapp { --bs-btn-color: #fff; --bs-btn-bg: #0f7a3f; --bs-btn-border-color: #0f7a3f;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #0b6434; --bs-btn-hover-border-color: #0b6434;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #09552c; --bs-btn-active-border-color: #09552c; --bs-btn-focus-shadow-rgb: 15, 122, 63; }

/* ---------- 2. Property card and row ---------- */
.cs-pcard { height: 100%; display: flex; flex-direction: column; background: var(--cs-surface); color: var(--cs-text); border: 1px solid var(--cs-border);
    border-radius: 14px; overflow: hidden; box-shadow: var(--cs-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.cs-pcard-pic { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--cs-surface-2); overflow: hidden; }
.cs-pcard-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cs-nopic { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.5rem; color: var(--cs-muted); }
.cs-pcard-badges { position: absolute; top: .5rem; inset-inline-start: .5rem; display: flex; flex-wrap: wrap; gap: .25rem; }
.cs-pcard-badges .badge, .cs-prow-pic .badge { font-size: .72rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.cs-pcard-media { position: absolute; bottom: .5rem; inset-inline-end: .5rem; display: flex; gap: .4rem; padding: .1rem .45rem; border-radius: 999px;
    background: rgba(0, 0, 0, .6); color: #fff; font-size: .75rem; }
.cs-pcard-body { padding: .65rem .8rem .75rem; display: flex; flex-direction: column; gap: .2rem; flex: 1 1 auto; }
.cs-pcard-price { font-size: 1.2rem; font-weight: 800; color: var(--cs-accent-text); line-height: 1.2; }
.cs-pcard-price small { font-size: .7em; font-weight: 600; color: var(--cs-muted); margin-inline-start: .25rem; }
.cs-pcard-title { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-pcard-title a { color: var(--cs-text); text-decoration: none; }
.cs-pcard-title a:hover { color: var(--cs-accent-text); }
.cs-pcard-place { font-size: .85rem; color: var(--cs-muted); }
.cs-pcard-facts { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .82rem; color: var(--cs-muted); margin-top: auto; padding-top: .35rem; border-top: 1px solid var(--cs-border); }
.cs-pcard-facts .bi { color: var(--cs-accent-text); }
@media (hover: hover) {
    .cs-pcard:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .14); }
    .cs-pcard:hover .cs-pcard-pic img { transform: scale(1.04); }
    .cs-prow:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .12); }
}
/* Many small cards (catalogue): tighter */
.cs-cards-compact .cs-pcard-body { padding: .45rem .55rem .55rem; }
.cs-cards-compact .cs-pcard-price { font-size: 1.02rem; }
.cs-cards-compact .cs-pcard-title { font-size: .9rem; }
.cs-cards-compact .cs-pcard-facts { font-size: .76rem; gap: .1rem .55rem; }

.cs-prow { display: flex; background: var(--cs-surface); color: var(--cs-text); border: 1px solid var(--cs-border); border-radius: 14px; overflow: hidden; box-shadow: var(--cs-shadow); height: 100%; }
.cs-prow-pic { position: relative; flex: 0 0 38%; max-width: 300px; min-height: 150px; background: var(--cs-surface-2); }
.cs-prow-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-prow-pic .badge { position: absolute; top: .5rem; inset-inline-start: .5rem; }
.cs-prow-body { padding: .65rem .85rem; display: flex; flex-direction: column; gap: .25rem; min-width: 0; flex: 1 1 auto; }
.cs-prow-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: auto; }
.cs-rows-wrap { max-width: 1000px; }

/* ---------- 3. Search boxes ---------- */
.cs-search { background: var(--cs-surface); color: var(--cs-text); border: 1px solid var(--cs-border); border-radius: 16px; box-shadow: var(--cs-shadow); padding: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.cs-search-kind { display: inline-flex; gap: .25rem; padding: .2rem; border-radius: 999px; background: var(--cs-surface-2); border: 1px solid var(--cs-border); align-self: flex-start; }
.cs-search-kind .btn { border-radius: 999px; border: 0; color: var(--cs-muted); font-weight: 600; padding: .3rem .9rem; }
.cs-search-kind .btn-check:checked + .btn { background: var(--cs-primary); color: var(--cs-on-primary); }
.cs-search-kind .btn:hover { color: var(--cs-text); }
.cs-search-kind .btn-check:checked + .btn:hover { color: var(--cs-on-primary); }
.cs-search-kind .btn-check:focus-visible + .btn { box-shadow: 0 0 0 .2rem rgba(var(--cs-primary-rgb), .35); }
.cs-search-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .5rem; }
.cs-search-fields .btn { white-space: nowrap; padding-inline: 1.25rem; }
/* Floating over the lower edge of a banner */
.cs-search-float { position: relative; z-index: 3; margin-top: -2.75rem; }
/* Flat inside a light area (airy) */
.cs-search-plain { box-shadow: none; }
/* In a slim strip (catalogue): kind and boxes on one line */
.cs-search-inline { flex-direction: row; flex-wrap: wrap; align-items: center; padding: .5rem; }
.cs-search-inline .cs-search-fields { flex: 1 1 520px; }

/* ---------- 4. Home designs ---------- */
/* Showroom */
.cs-sr-hero { padding: 4.5rem 0 5.5rem; min-height: 440px; display: flex; align-items: center; }

/* Light and airy */
.cs-airy-hero { padding-top: 2.5rem; }
.cs-airy-title { font-weight: 300; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; color: var(--cs-text); margin-bottom: .75rem; }
.cs-airy-title em { font-style: normal; font-weight: 700; color: var(--cs-accent-text); }
.cs-airy-text { font-size: 1.1rem; color: var(--cs-muted); max-width: 34rem; margin-bottom: 1.25rem; }
.cs-airy-photo { position: relative; display: block; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--cs-surface-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .16); }
.cs-airy-photo img { width: 100%; height: 100%; object-fit: cover; }
.cs-airy-photo-empty { display: grid; place-items: center; font-size: 5rem; color: var(--cs-accent-text); }
.cs-airy-photo-tag { position: absolute; inset-inline-start: 1rem; bottom: 1rem; max-width: calc(100% - 2rem); display: flex; flex-direction: column; padding: .55rem .85rem;
    border-radius: 14px; background: var(--cs-surface); color: var(--cs-text); box-shadow: var(--cs-shadow); }
.cs-airy-photo-tag b { color: var(--cs-accent-text); font-size: 1.1rem; }
.cs-airy-photo-tag span { font-size: .85rem; color: var(--cs-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-airy-cards .cs-pcard { border-radius: 20px; }

/* Catalogue */
.cs-cat-head { background: var(--cs-surface); border-bottom: 1px solid var(--cs-border); padding: 1rem 0 .85rem; }
.cs-cat-title { font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 0; color: var(--cs-text); }
.cs-cat-count { color: var(--cs-muted); font-size: .9rem; }

/* Editorial */
.cs-ed-head { padding-bottom: 1rem; }
.cs-ed-kicker { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cs-muted); margin-bottom: .5rem; }
.cs-ed-title { font-family: Georgia, "Times New Roman", "Noto Naskh Arabic", serif; font-weight: 400; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.02em; color: var(--cs-text); max-width: 18ch; }
.cs-ed-title em { color: var(--cs-accent-text); }
.cs-ed-rule { border: 0; border-top: 3px solid var(--cs-accent); opacity: 1; width: 6rem; margin: 1.25rem 0 0; }
.cs-ed-lead-pic { display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--cs-surface-2); }
.cs-ed-lead-pic img { width: 100%; height: 100%; object-fit: cover; }
.cs-ed-lead-title { font-family: Georgia, "Times New Roman", "Noto Naskh Arabic", serif; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; margin-bottom: .5rem; }
.cs-ed-lead-title a { color: var(--cs-text); text-decoration: none; }
.cs-ed-lead-price { font-size: 1.5rem; font-weight: 700; color: var(--cs-accent-text); margin-bottom: .75rem; }
.cs-ed-lead-price small { font-size: .6em; color: var(--cs-muted); }
.cs-ed-facts { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.1rem; padding-block: .6rem; border-block: 1px solid var(--cs-border); }
.cs-ed-facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cs-muted); }
.cs-ed-facts dd { margin: 0; font-weight: 700; color: var(--cs-text); }
.cs-ed-section-head { border-bottom: 1px solid var(--cs-border); padding-bottom: .5rem; }
.cs-ed-subtitle { font-family: Georgia, "Times New Roman", "Noto Naskh Arabic", serif; font-size: 1.6rem; margin: 0; color: var(--cs-text); }
.cs-ed-about { border-top: 1px solid var(--cs-border); }
.cs-ed-quote { font-family: Georgia, "Times New Roman", "Noto Naskh Arabic", serif; font-size: 1.3rem; line-height: 1.55; color: var(--cs-text); }

/* Boutique (home + property page): large serif words, an arched photo, calm lines. Follows light / dark;
   every colour comes from the theme slots. Goes best with the Forest & Cream theme. */
.cs-btq-hero { padding: 2.25rem 0 4.25rem; background: var(--cs-page); color: var(--cs-text); }
.cs-btq-kicker, .cs-btq-eyebrow { display: flex; align-items: center; gap: .6rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cs-accent-text); margin-bottom: .6rem; }
.cs-btq-kicker::before, .cs-btq-eyebrow::before { content: ""; width: 1.75rem; border-top: 1px solid var(--cs-accent-text); }
.cs-btq-title { font-family: Georgia, "Times New Roman", "Noto Naskh Arabic", serif; font-weight: 400; font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -.025em; color: var(--cs-text); margin-bottom: .9rem; }
.cs-btq-title em, .cs-btq-heading em { color: var(--cs-primary); }
.cs-btq-lead { color: var(--cs-muted); font-size: 1.05rem; max-width: 34rem; margin-bottom: 1.25rem; }
.cs-btq-arch { position: relative; aspect-ratio: 4 / 3; border-radius: 48% 48% 14px 14px / 40% 40% 14px 14px; overflow: hidden; background: var(--cs-surface-2); box-shadow: var(--cs-shadow); }
.cs-btq-arch a { display: block; height: 100%; }
.cs-btq-arch img { width: 100%; height: 100%; object-fit: cover; }
.cs-btq-arch-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; color: var(--cs-primary); background: var(--cs-soft); }
.cs-btq-float { position: absolute; bottom: 1rem; inset-inline-start: 1rem; max-width: calc(100% - 2rem); display: flex; align-items: center; gap: .55rem; padding: .55rem .8rem;
    background: var(--cs-surface); color: var(--cs-text); border: 1px solid var(--cs-border); border-radius: 10px; box-shadow: var(--cs-shadow); }
.cs-btq-float .bi { color: var(--cs-primary); font-size: 1.1rem; }
.cs-btq-float small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cs-muted); }
.cs-btq-float b { display: block; font-size: .88rem; color: var(--cs-text); }
.cs-search-btq { border-radius: 12px; }
.cs-search-btq .cs-search-kind { border-radius: 8px; }
.cs-search-btq .cs-search-kind .btn { border-radius: 6px; }

.cs-btq-strip { padding: 1.25rem 0 0; }
.cs-btq-strip-row { display: flex; flex-wrap: wrap; gap: .75rem 0; border-block: 1px solid var(--cs-border); padding-block: .9rem; }
.cs-btq-strip-row > div { flex: 0 1 220px; display: flex; flex-direction: column; padding-inline: 1rem; border-inline-start: 1px solid var(--cs-border); }
.cs-btq-strip-row > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.cs-btq-strip-row b { font-family: Georgia, "Times New Roman", "Noto Naskh Arabic", serif; font-weight: 400; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.15; color: var(--cs-primary); }
.cs-btq-strip-row span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cs-muted); }

.cs-btq-heading { font-family: Georgia, "Times New Roman", "Noto Naskh Arabic", serif; font-weight: 400; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em; color: var(--cs-text); margin: 0 0 .75rem; }
.cs-section-head .cs-btq-heading { margin-bottom: 0; }
.cs-btq-text { color: var(--cs-muted); line-height: 1.7; }
.cs-btq-about-pic { display: block; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: var(--cs-surface-2); }
.cs-btq-about-pic img { width: 100%; height: 100%; object-fit: cover; }

.cs-btq-person { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; padding: .7rem .8rem; margin-top: 1rem;
    background: var(--cs-surface); color: var(--cs-text); border: 1px solid var(--cs-border); border-radius: 12px; }
.cs-btq-person-plain { padding: 0; margin: 0; border: 0; background: transparent; }
.cs-btq-avatar { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center;
    background: var(--cs-primary); color: var(--cs-on-primary); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.cs-btq-person-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cs-btq-person-name small { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cs-accent-text); }
.cs-btq-person-name b { color: var(--cs-text); }
.cs-btq-person-name span { font-size: .82rem; color: var(--cs-muted); }
.cs-btq-person-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-inline-start: auto; }

.cs-btq-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--cs-border); }
.cs-btq-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cs-btq-step-top .bi { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: var(--cs-surface); color: var(--cs-primary); border: 1px solid var(--cs-border); }
.cs-btq-step-top .num { font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; color: var(--cs-muted); }
.cs-btq-step h3 { font-size: .98rem; font-weight: 700; margin: 0 0 .25rem; color: var(--cs-text); }
.cs-btq-step p { font-size: .85rem; color: var(--cs-muted); margin: 0; }

.cs-btq-band { background: var(--cs-surface-2); color: var(--cs-text); }
.cs-btq-faq { border-top: 1px solid var(--cs-border); }
.cs-btq-faq details { border-bottom: 1px solid var(--cs-border); }
.cs-btq-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--cs-text);
    -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cs-btq-faq summary::-webkit-details-marker { display: none; }
.cs-btq-faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--cs-primary); }
.cs-btq-faq details[open] summary::after { content: "\2212"; }
.cs-btq-faq summary:focus-visible { outline: 2px solid var(--cs-primary); outline-offset: 2px; }
.cs-btq-faq p { margin: 0 0 .9rem; color: var(--cs-muted); }
@media (hover: hover) { .cs-btq-faq summary:hover { color: var(--cs-primary); } }

/* Boutique property page */
.cs-btq-detail .cs-phead { margin-bottom: 1rem; }
.cs-phead-btq .cs-phead-title { font-family: Georgia, "Times New Roman", "Noto Naskh Arabic", serif; font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: -.02em; }
.cs-phead-btq .cs-phead-price { font-family: Georgia, "Times New Roman", "Noto Naskh Arabic", serif; font-weight: 400; color: var(--cs-primary); }
.cs-facts.cs-facts-btq { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--cs-border); border-radius: 12px; overflow: hidden; background: var(--cs-surface); }
.cs-facts-btq .cs-fact { flex-direction: row; align-items: center; text-align: start; gap: .5rem; border: 0; border-radius: 0; border-bottom: 1px solid var(--cs-border); padding: .55rem .75rem; }
.cs-facts-btq .cs-fact .bi { color: var(--cs-primary); }
.cs-facts-btq .cs-fact b { order: 2; margin-inline-start: auto; }
.cs-facts-btq .cs-fact span { order: 1; font-size: .8rem; }
.cs-btq-side { background: var(--cs-surface); color: var(--cs-text); }
.cs-btq-side .cs-actions { margin-top: .25rem; }
/* The viewing form sits right under this card (and phones have the bottom bar), so its "Book a viewing"
   button is not repeated; a card left with nothing in it is hidden */
.cs-btq-side [data-cs-go-viewing] { display: none; }
.cs-btq-side:not(:has(.cs-btq-person, .cs-actions > :not([data-cs-go-viewing]))) { display: none; }
.cs-btq-side .cs-actions:not(:has(> :not([data-cs-go-viewing]))) { display: none; }

/* Map first (home): the map fills the screen under one slim bar; the list sits beside it (under it on phones).
   Pins and pop-ups use the theme slots; the map tiles are darkened in dark mode. */
.cs-maphome-bar { background: var(--cs-surface); color: var(--cs-text); border-bottom: 1px solid var(--cs-border); padding-block: .4rem; }
.cs-maphome-wrap { max-width: 1600px; }
.cs-maphome-title { font-size: 1.05rem; font-weight: 800; margin: 0; color: var(--cs-text); }
.cs-maphome-bar .cs-search-kind { align-self: center; }
.cs-maphome-split { display: grid; grid-template-columns: 380px minmax(0, 1fr); height: calc(100vh - 106px); min-height: 460px; background: var(--cs-page); }
.cs-maphome-map { order: 2; min-height: 0; background: var(--cs-surface-2); z-index: 0; }
.cs-maphome-list { order: 1; overflow-y: auto; padding: .5rem; display: flex; flex-direction: column; gap: .4rem; border-inline-end: 1px solid var(--cs-border); background: var(--cs-page); }
.cs-maprow { display: flex; gap: .6rem; padding: .4rem; border-radius: 10px; background: var(--cs-surface); color: var(--cs-text); border: 1px solid var(--cs-border); cursor: pointer;
    -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: border-color .15s, box-shadow .15s; }
.cs-maprow[hidden] { display: none; }
.cs-maprow.active { border-color: var(--cs-primary); box-shadow: 0 0 0 2px rgba(var(--cs-primary-rgb), .35); }
.cs-maprow:focus-visible { outline: 2px solid var(--cs-primary); outline-offset: 2px; }
@media (hover: hover) { .cs-maprow:hover { border-color: var(--cs-primary); } }
.cs-maprow-pic { flex: 0 0 96px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--cs-surface-2); color: var(--cs-muted); display: grid; place-items: center; font-size: 1.5rem; }
.cs-maprow-pic img { width: 100%; height: 100%; object-fit: cover; }
.cs-maprow-body { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.cs-maprow-price { font-weight: 800; color: var(--cs-accent-text); line-height: 1.2; }
.cs-maprow-price small { font-size: .72em; font-weight: 600; color: var(--cs-muted); }
.cs-maprow-title { font-size: .9rem; font-weight: 700; margin: 0; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-maprow-title a { color: var(--cs-text); text-decoration: none; }
.cs-maprow-title a:hover { color: var(--cs-accent-text); }
.cs-maprow-facts { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .55rem; font-size: .78rem; color: var(--cs-muted); }
.cs-maprow-facts .badge { font-size: .68rem; }
.cs-maprow-more { font-size: .82rem; color: var(--cs-muted); padding: .4rem; text-decoration: none; }
.cs-maprow-more:hover { color: var(--cs-accent-text); }

/* Price pins: the point is at the bottom middle of the pin */
.cs-pin-wrap { background: transparent; border: 0; }
.cs-pin { position: absolute; transform: translate(-50%, calc(-100% - 6px)); white-space: nowrap; padding: .15rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3); border: 2px solid var(--cs-surface); cursor: pointer; transition: transform .12s; }
.cs-pin::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: inherit; }
.cs-pin-sale { background: var(--cs-primary); color: var(--cs-on-primary); }
.cs-pin-sale::after { border-top-color: var(--cs-primary); }
.cs-pin-rent { background: var(--cs-rent); color: var(--cs-on-rent); }
.cs-pin-rent::after { border-top-color: var(--cs-rent); }
.cs-pin-hot .cs-pin, .leaflet-marker-icon:focus-visible .cs-pin { transform: translate(-50%, calc(-100% - 6px)) scale(1.12); box-shadow: 0 0 0 3px var(--cs-accent), 0 4px 12px rgba(0, 0, 0, .35); }
.leaflet-marker-icon:focus { outline: none; }
.cs-pin-area { stroke: var(--cs-primary); stroke-dasharray: 5 5; stroke-width: 2; fill: var(--cs-primary); fill-opacity: .08; }

/* Pop-up card */
.cs-maphome .leaflet-popup-content-wrapper { background: var(--cs-surface); color: var(--cs-text); border-radius: 12px; padding: 0; overflow: hidden; }
.cs-maphome .leaflet-popup-tip { background: var(--cs-surface); }
.cs-maphome .leaflet-popup-content { margin: 0; width: 240px !important; }
.cs-maphome .leaflet-container a.leaflet-popup-close-button { color: #fff; background: rgba(0, 0, 0, .55); border-radius: 50%; width: 24px; height: 24px; top: 6px; right: 6px; font: 18px/24px sans-serif; text-align: center; }
.cs-pop { display: block; color: var(--cs-text); text-decoration: none; }
.cs-pop img { display: block; width: 100%; height: 130px; object-fit: cover; background: var(--cs-surface-2); }
.cs-pop-body { display: flex; flex-direction: column; gap: .1rem; padding: .5rem .65rem .6rem; }
.cs-pop-body b { color: var(--cs-accent-text); font-size: 1rem; }
.cs-pop-body b small { color: var(--cs-muted); font-weight: 600; }
.cs-pop-title { font-weight: 700; font-size: .88rem; line-height: 1.25; color: var(--cs-text); }
.cs-pop-place, .cs-pop-note { font-size: .76rem; color: var(--cs-muted); }
.cs-pop-open { margin-top: .25rem; font-size: .82rem; font-weight: 700; color: var(--cs-accent-text); }
.cs-maphome .leaflet-container { font: inherit; background: var(--cs-surface-2); }
.cs-maphome .leaflet-control-zoom a { background: var(--cs-surface); color: var(--cs-text); border-color: var(--cs-border); }
.cs-maphome .leaflet-control-zoom a:hover { background: var(--cs-surface-2); color: var(--cs-text); }
.cs-maphome .leaflet-control-attribution { background: rgba(255, 255, 255, .85); color: #333; }
.cs-maphome .leaflet-control-attribution a { color: #0b5d8a; }
[data-bs-theme="dark"] .cs-map-tiles { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.7); }

/* Split screen (property page): every photo down the left, the facts and form staying in view on the right.
   Phones: a photo strip to swipe, then title and price, the story, the form. Follows light / dark. */
.cs-split-wrap { max-width: 1500px; }
.cs-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "photos side" "body side"; gap: 1rem 1.25rem; align-items: start; }
.cs-split-photos { grid-area: photos; display: flex; flex-direction: column; gap: .5rem; }
.cs-split-photo { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--cs-surface-2); color: var(--cs-muted); cursor: zoom-in;
    -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cs-split-photo img { width: 100%; height: 100%; object-fit: cover; }
.cs-split-photo:focus-visible { outline: 3px solid var(--cs-primary); outline-offset: 2px; }
.cs-split-count { position: absolute; bottom: .5rem; inset-inline-end: .5rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .75rem; }
.cs-split-side { grid-area: side; position: sticky; top: 64px; max-height: calc(100vh - 76px); overflow-y: auto; display: flex; flex-direction: column; gap: .75rem; padding-inline-end: 2px; }
.cs-split-head { background: var(--cs-surface); color: var(--cs-text); }
.cs-split-head .cs-actions { margin-top: 0; }
.cs-split-body { grid-area: body; }

/* Cinematic (always dark: photos under a veil) */
.cs-cine { position: relative; background: #000; color: #fff; }
.cs-cine-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: min(78vh, 720px); min-height: 380px; }
.cs-cine-track::-webkit-scrollbar { display: none; }
.cs-cine-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; color: #fff; text-decoration: none; }
.cs-cine-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-cine-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, .25) 100%); }
.cs-cine-caption { position: absolute; z-index: 1; inset-inline: 0; bottom: 0; padding: 2rem max(1rem, calc((100vw - 1296px) / 2 + 12px)) 4.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.cs-cine-title { font-size: clamp(1.6rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.1; max-width: 22ch; color: #fff; }
.cs-cine-place { color: #e5e7eb; }
.cs-cine-price { font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 800; color: var(--cs-hero-accent); }
.cs-cine-arrow { position: absolute; z-index: 2; top: 45%; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.2rem; display: grid; place-items: center; }
.cs-cine-arrow:hover { background: rgba(0, 0, 0, .7); }
.cs-cine-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cs-cine-prev { inset-inline-start: 1rem; }
.cs-cine-next { inset-inline-end: 1rem; }
.cs-cine-dots { position: absolute; z-index: 2; bottom: 3.6rem; inset-inline: 0; display: flex; justify-content: center; gap: .4rem; }
.cs-cine-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .45); }
.cs-cine-dots button.active { background: var(--cs-hero-accent); width: 26px; border-radius: 6px; }
.cs-cine + .container .cs-search-float { margin-top: -2.5rem; }

/* Store */
.cs-store-bar { position: sticky; top: 56px; z-index: 5; background: var(--cs-surface); border-bottom: 1px solid var(--cs-border); padding: .45rem 0; box-shadow: var(--cs-shadow); }
.cs-store-status { display: flex; justify-content: center; align-items: center; gap: .5rem; padding: 1rem 0; color: var(--cs-muted); min-height: 3rem; }
.cs-store-status [data-cs-store-retry] { display: none; }
.cs-store-status[data-state="error"] { color: var(--cs-danger-text); }
.cs-store-status[data-state="error"] [data-cs-store-retry] { display: inline-block; }
.cs-store-status[data-state="loading"]::before { content: ""; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--cs-border); border-top-color: var(--cs-accent); animation: cs-spin .8s linear infinite; }
@keyframes cs-spin { to { transform: rotate(360deg); } }
.cs-filter-pills .btn.active { background: var(--cs-primary); color: var(--cs-on-primary); border-color: var(--cs-primary); }

/* ---------- 5. List designs ---------- */
.cs-list-filters { display: flex; flex-direction: column; gap: .5rem; }
.cs-list-fields { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)) repeat(3, minmax(0, .8fr)) minmax(0, 1fr) auto; gap: .4rem; }
.cs-list-actions { display: flex; gap: .3rem; }
.cs-list-actions .btn { white-space: nowrap; }
.cs-filter-pills .btn-check:checked + .btn { background: var(--cs-primary); color: var(--cs-on-primary); border-color: var(--cs-primary); }
.cs-list-filters-stacked .cs-list-fields { grid-template-columns: 1fr 1fr; }
.cs-list-filters-stacked .cs-list-fields > :first-child,
.cs-list-filters-stacked .cs-list-fields > select:nth-of-type(4),
.cs-list-filters-stacked .cs-list-actions { grid-column: 1 / -1; }
.cs-list-filters-stacked .cs-list-actions .btn-primary { flex: 1 1 auto; }
.cs-more-toggle { display: none; }
.cs-side-filter { position: sticky; top: 70px; }
.cs-result-line { font-size: .9rem; color: var(--cs-muted); margin-bottom: .5rem; }

/* ---------- 6. Property page ---------- */
.cs-sticky-side { position: sticky; top: 70px; }
.cs-phead { display: flex; flex-direction: column; gap: .3rem; }
.cs-back { font-size: .85rem; color: var(--cs-muted); text-decoration: none; align-self: flex-start; }
.cs-back:hover { color: var(--cs-accent-text); }
.cs-phead-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.cs-ref { font-size: .8rem; color: var(--cs-muted); }
.cs-phead-title { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 800; line-height: 1.2; margin: 0; color: var(--cs-text); }
.cs-phead-place { color: var(--cs-muted); }
.cs-phead-price { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--cs-accent-text); line-height: 1.15; }
.cs-phead-note { font-size: .85rem; color: var(--cs-muted); }
.cs-phead-wide .cs-phead-title { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cs-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.cs-actions .btn-lg { font-size: 1rem; }

/* Gallery */
.cs-gallery { display: flex; flex-direction: column; gap: .5rem; }
.cs-gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--cs-surface-2); }
.cs-gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.cs-gallery-empty { display: grid; place-items: center; font-size: 4rem; color: var(--cs-muted); }
.cs-gallery-count { position: absolute; bottom: .6rem; inset-inline-end: .6rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .8rem; }
.cs-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.1rem; display: grid; place-items: center; }
.cs-gallery-arrow:hover { background: rgba(0, 0, 0, .75); }
.cs-gallery-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cs-gallery-prev { inset-inline-start: .6rem; }
.cs-gallery-next { inset-inline-end: .6rem; }
.cs-gallery-thumbs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.cs-gallery-thumb { flex: 0 0 92px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--cs-surface-2); opacity: .7; }
.cs-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cs-gallery-thumb.active { border-color: var(--cs-accent); opacity: 1; }
.cs-gallery-thumb:focus-visible { outline: 2px solid var(--cs-primary); outline-offset: 1px; }

/* Facts as tiles */
.cs-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .4rem; }
.cs-fact { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .1rem; padding: .55rem .35rem; border-radius: 12px; background: var(--cs-surface); border: 1px solid var(--cs-border); color: var(--cs-text); }
.cs-fact .bi { font-size: 1.2rem; color: var(--cs-accent-text); }
.cs-fact b { font-size: .95rem; line-height: 1.2; }
.cs-fact span { font-size: .72rem; color: var(--cs-muted); }
/* On one line, label beside value (gallery design) */
.cs-facts-line { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cs-facts-line .cs-fact { flex-direction: row; text-align: start; gap: .5rem; padding: .45rem .6rem; }
.cs-facts-line .cs-fact b { order: 2; }
.cs-facts-line .cs-fact span { order: 1; font-size: .8rem; }

.cs-pcard-sec .card-header { font-size: 1rem; padding-block: .55rem; }
.cs-pcard-sec .card-body { padding: .75rem .9rem; }
.cs-description { white-space: pre-line; line-height: 1.65; }
.cs-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .35rem 1rem; }
.cs-features .bi { color: var(--cs-success-text); margin-inline-end: .3rem; }
.cs-video { width: 100%; max-height: 520px; border-radius: 10px; background: #000; }
.cs-video-frame { border-radius: 10px; overflow: hidden; background: #000; }
.cs-map { aspect-ratio: 16 / 9; max-height: 420px; width: 100%; }
.cs-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.cs-map-note { font-size: .8rem; color: var(--cs-muted); padding: .4rem .9rem; border-top: 1px solid var(--cs-border); }
.cs-viewing { border-top: 3px solid var(--cs-accent); }
.cs-viewing .card-header { font-size: 1.05rem; }

/* Showcase: photos behind a dark veil, glass cards over them (fixed dark palette, both modes) */
.cs-show-hero { position: relative; overflow: hidden; padding: 2rem 0; background: var(--cs-hero-to); color: #f3f4f6; }
.cs-show-bg img { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(6px); opacity: 0; transition: opacity 1.2s ease; }
.cs-show-bg img.active { opacity: 1; }
.cs-show-veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8, 10, 16, .55) 0%, rgba(8, 10, 16, .72) 50%, rgba(8, 10, 16, .92) 100%); }
.cs-glass { background: rgba(17, 22, 34, .62); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px; padding: 1rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); color: #f3f4f6; }
.cs-gallery-glass .cs-gallery-main { background: rgba(255, 255, 255, .06); }
.cs-gallery-glass .cs-gallery-thumb { background: rgba(255, 255, 255, .06); }
.cs-phead-glass .cs-back, .cs-phead-glass .cs-ref, .cs-phead-glass .cs-phead-place, .cs-phead-glass .cs-phead-note { color: #c7cdd8; }
.cs-phead-glass .cs-back:hover { color: var(--cs-hero-accent); }
.cs-phead-glass .cs-phead-title { color: #fff; }
.cs-phead-glass .cs-phead-price { color: var(--cs-hero-accent); }
.cs-phead-glass .cs-badge-muted { background: rgba(255, 255, 255, .1); color: #e5e7eb; border-color: rgba(255, 255, 255, .25); }
.cs-facts-glass { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-facts-glass .cs-fact { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #f3f4f6; transition: background .2s, border-color .2s; }
.cs-facts-glass .cs-fact .bi { color: var(--cs-hero-accent); }
.cs-facts-glass .cs-fact span { color: #b8c0cc; }
@media (hover: hover) { .cs-facts-glass .cs-fact:hover { background: rgba(255, 255, 255, .1); border-color: var(--cs-hero-accent); } }
.cs-glass .btn-outline-secondary { --bs-btn-color: #f3f4f6; --bs-btn-bg: rgba(255, 255, 255, .06); --bs-btn-border-color: rgba(255, 255, 255, .35);
    --bs-btn-hover-color: #0b1220; --bs-btn-hover-bg: #f3f4f6; --bs-btn-hover-border-color: #f3f4f6;
    --bs-btn-active-color: #0b1220; --bs-btn-active-bg: #d1d5db; --bs-btn-active-border-color: #d1d5db; }
.cs-glass .btn-primary { --bs-btn-color: var(--cs-on-accent); --bs-btn-bg: var(--cs-accent); --bs-btn-border-color: var(--cs-accent);
    --bs-btn-hover-color: var(--cs-on-accent); --bs-btn-hover-bg: var(--cs-accent-hover); --bs-btn-hover-border-color: var(--cs-accent-hover);
    --bs-btn-active-color: var(--cs-on-accent); --bs-btn-active-bg: var(--cs-accent); --bs-btn-active-border-color: #fff; }

/* Gallery design: photo wall */
.cs-mosaic { position: relative; display: grid; gap: .4rem; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: min(62vh, 520px); border-radius: 16px; overflow: hidden; }
.cs-mosaic-tile { padding: 0; border: 0; background: var(--cs-surface-2); overflow: hidden; cursor: zoom-in; }
.cs-mosaic-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
@media (hover: hover) { .cs-mosaic-tile:hover img { transform: scale(1.04); } }
.cs-mosaic-tile:first-child { grid-row: 1 / 3; }
.cs-mosaic-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.cs-mosaic-1 .cs-mosaic-tile:first-child { grid-row: auto; }
.cs-mosaic-2 { grid-template-columns: 2fr 1fr; }
.cs-mosaic-2 .cs-mosaic-tile:nth-child(2) { grid-row: 1 / 3; }
.cs-mosaic-3 { grid-template-columns: 2fr 1fr; }
.cs-mosaic-4 { grid-template-columns: 2fr 1fr 1fr; }
.cs-mosaic-4 .cs-mosaic-tile:nth-child(4) { grid-column: 2 / 4; }
.cs-mosaic-all { position: absolute; bottom: .75rem; inset-inline-end: .75rem; background: var(--cs-surface); color: var(--cs-text); border: 1px solid var(--cs-border); box-shadow: var(--cs-shadow); font-weight: 600; }
.cs-mosaic-all:hover { background: var(--cs-surface-2); color: var(--cs-text); }

/* Full-screen photo viewer (always dark) */
.cs-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(5, 7, 12, .96); display: flex; align-items: center; justify-content: center; color: #fff; }
.cs-lightbox[hidden] { display: none; }
.cs-lightbox img { max-width: 100%; max-height: calc(100vh - 6rem); object-fit: contain; }
.cs-lightbox-close, .cs-lightbox-arrow { position: absolute; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.2rem; }
.cs-lightbox-close:hover, .cs-lightbox-arrow:hover { background: rgba(255, 255, 255, .22); }
.cs-lightbox-close:focus-visible, .cs-lightbox-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cs-lightbox-close { top: max(.75rem, env(safe-area-inset-top)); inset-inline-end: .75rem; }
.cs-lightbox-prev { inset-inline-start: .75rem; top: 50%; transform: translateY(-50%); }
.cs-lightbox-next { inset-inline-end: .75rem; top: 50%; transform: translateY(-50%); }
.cs-lightbox-caption { position: absolute; bottom: 0; inset-inline: 0; text-align: center; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); color: #d1d5db; font-size: .9rem; }

/* Phones: price + main buttons fixed at the bottom of a property page */
.cs-sticky-bar { position: fixed; z-index: 1020; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: .4rem;
    padding: .4rem .6rem calc(.4rem + env(safe-area-inset-bottom)); background: var(--cs-surface); color: var(--cs-text); border-top: 1px solid var(--cs-border); box-shadow: 0 -4px 16px rgba(0, 0, 0, .12); }
.cs-sticky-price { flex: 1 1 auto; min-width: 0; font-weight: 800; color: var(--cs-accent-text); font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-sticky-bar .btn { min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }

/* ---------- 7. Phones and tablets ---------- */
@media (max-width: 991.98px) {
    .cs-pubnav .navbar-collapse { padding-top: .35rem; }
    .cs-pubnav .nav-link { padding-block: .55rem !important; }
    .cs-pub-tools { margin: .35rem 0 .25rem; flex-wrap: wrap; }
    .cs-list-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cs-list-fields > :first-child { grid-column: 1 / -1; }
    .cs-list-actions { grid-column: span 2; }
    .cs-sticky-side, .cs-side-filter { position: static; }
    .cs-show-hero { padding: 1rem 0; }
    .cs-btq-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Map first: map on top (most of the screen), the list under it */
    .cs-maphome-split { display: flex; flex-direction: column; height: auto; min-height: 0; }
    .cs-maphome-map { order: 1; height: calc(100vh - 150px); min-height: 320px; max-height: 640px; }
    .cs-maphome-list { order: 2; overflow: visible; border-inline-end: 0; padding: .4rem; }
    /* Split screen: one column in reading order (photos, title and price, story, form) */
    .cs-split { display: flex; flex-direction: column; gap: .75rem; }
    .cs-split-side { display: contents; }
    .cs-split-photos { order: 1; }
    .cs-split-head { order: 2; }
    .cs-split-body { order: 3; }
    .cs-split-form { order: 4; }
    /* Room for the fixed bottom bar of a property page */
    body:has(.cs-sticky-bar) .cs-pubfoot { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 767.98px) {
    .cs-section { padding: 1.5rem 0; }
    .cs-section-tight { padding: .85rem 0; }
    .cs-pagehead { padding: .85rem 0 .7rem; }
    .cs-public .form-control, .cs-public .form-select, .cs-public .cs-phone .form-control, .cs-public .cs-phone .form-select, .cs-public .cs-phone .input-group-text { min-height: 44px; }
    .cs-search { padding: .6rem; border-radius: 14px; }
    .cs-search-kind { align-self: stretch; justify-content: space-between; }
    .cs-search-kind .btn { flex: 1 1 0; padding-inline: .4rem; }
    .cs-search-fields { grid-template-columns: 1fr 1fr; gap: .4rem; }
    .cs-search-fields .btn { grid-column: 1 / -1; min-height: 44px; }
    .cs-search-inline { flex-direction: column; align-items: stretch; }
    .cs-search-inline .cs-search-fields { flex: 1 1 auto; }
    .cs-sr-hero { padding: 2.5rem 0 4rem; min-height: 0; }
    .cs-hero-text { font-size: 1rem; }
    .cs-cine-track { height: 64vh; min-height: 320px; }
    .cs-cine-arrow { display: none; }
    .cs-cine-caption { padding: 1rem 1rem 3.75rem; }
    .cs-cine-dots { bottom: 3.1rem; }
    .cs-list-fields { grid-template-columns: 1fr 1fr; }
    .cs-list-actions { grid-column: 1 / -1; }
    .cs-list-actions .btn-primary { flex: 1 1 auto; min-height: 44px; }
    /* Phones: the words box and the buttons only; the other filters open with "More filters" (open when any is in use) */
    .cs-list-filters:not(.cs-open) .cs-more { display: none; }
    .cs-more-toggle { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; }
    .cs-list-filters.cs-open .cs-more-toggle { display: none; }
    .cs-prow { flex-direction: column; }
    .cs-prow-pic { flex: 0 0 auto; max-width: none; aspect-ratio: 16 / 10; min-height: 0; }
    /* Photos and the photo wall go edge to edge */
    .cs-gallery-main, .cs-mosaic { border-radius: 0; margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5); }
    .cs-mosaic { height: auto; aspect-ratio: 4 / 3; grid-template-columns: 1fr; grid-template-rows: 1fr; }
    .cs-mosaic .cs-mosaic-tile:not(:first-child) { display: none; }
    .cs-mosaic .cs-mosaic-tile:first-child { grid-row: auto; grid-column: auto; }
    .cs-gallery-thumb { flex-basis: 72px; height: 52px; }
    .cs-glass { padding: .6rem; border-radius: 14px; }
    .cs-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; }
    .cs-facts-line { grid-template-columns: 1fr 1fr; }
    .cs-fact { padding: .4rem .25rem; }
    .cs-pcard-sec .card-body { padding: .6rem .7rem; }
    .cs-lightbox-arrow { display: none; }
    .cs-ed-facts { gap: .9rem; }
    .cs-maphome-bar { padding-block: .3rem; }
    /* The bar keeps one row on phones: the heading stays for screen readers only */
    .cs-maphome-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    /* Split screen: the photos become a strip to swipe, edge to edge */
    .cs-split-photos { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: .35rem; margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5); padding-inline: .35rem; scrollbar-width: none; }
    .cs-split-photos::-webkit-scrollbar { display: none; }
    .cs-split-photo { flex: 0 0 88%; aspect-ratio: 4 / 3; border-radius: 8px; scroll-snap-align: center; }
    .cs-split-photo:only-child { flex-basis: 100%; }
    .cs-maphome-bar .cs-search-kind { flex: 1 1 auto; }
    .cs-maphome-bar .btn-outline-primary { min-height: 36px; }
    .cs-maphome-map { height: calc(100vh - 190px); }
    .cs-btq-hero { padding: 1rem 0 3.75rem; }
    .cs-btq-lead { font-size: 1rem; margin-bottom: .9rem; }
    .cs-btq-arch { aspect-ratio: 4 / 3; margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5); border-radius: 40% 40% 0 0 / 28% 28% 0 0; }
    .cs-btq-float { bottom: .6rem; inset-inline-start: .6rem; padding: .4rem .6rem; }
    .cs-btq-strip { padding-top: .75rem; }
    .cs-btq-strip-row { padding-block: .6rem; gap: .5rem 0; }
    .cs-btq-strip-row > div { flex: 1 1 40%; padding-inline: .6rem; }
    .cs-btq-strip-row > div:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
    .cs-btq-about-pic { border-radius: 10px; }
    .cs-btq-person { padding: .55rem .6rem; }
    .cs-btq-person-actions { margin-inline-start: 0; width: 100%; }
    .cs-btq-person-actions .btn { flex: 1 1 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; }
    .cs-btq-steps { gap: .9rem; margin-top: 1.25rem; padding-top: 1rem; }
    .cs-btq-step-top { margin-bottom: .35rem; }
    .cs-facts.cs-facts-btq { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
    .cs-glass .cs-gallery-main { margin-inline: 0; border-radius: 10px; }
}
