/* ============================================================================
   SaudiRental — app.css
   THE unified sheet for the PUBLIC tenant portal. App-wide, language-neutral and
   direction-neutral: every offset uses CSS logical properties, so nothing here
   needs an RTL twin. Direction-only fixes live in layouts/rtl.css (Arabic only);
   Arabic-only non-direction rules live in arabic.css.

   No view carries its own <style> block. If a rule is needed on more than one
   page, it belongs here.
   ============================================================================ */

:root {
    --brand-900: #1e1b4b;
    --brand-800: #312e81;
    --brand-700: #3730a3;
    --brand-600: #4338ca;
    --brand-500: #4f46e5;
    --brand-400: #6366f1;
    --brand-050: #eef2ff;
    --accent:    #06b6d4;

    --ink-900: #16202e;
    --ink-700: #2d3748;
    --ink-500: #5c6a7e;
    --ink-300: #94a3b8;
    --line:    #e5e9f0;
    --bg:      #f7f9fc;
    --card-bg: #ffffff;

    --ok:    #047857;
    --warn:  #b45309;
    --error: #b91c1c;
    --info:  #1d4ed8;

    --radius:    14px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(30, 27, 75, .06);
    --shadow-md: 0 8px 28px rgba(30, 27, 75, .12);
    --shadow-lg: 0 24px 64px rgba(30, 27, 75, .16);
    --t: .2s ease;

    /* Responsive no-JS fallback. home.js replaces this with exactly half of the
       rendered search-card height and keeps it current through ResizeObserver. */
    --hero-search-overlap: 290px;

    --bs-primary: #4338ca;
    --bs-primary-rgb: 67, 56, 202;
    --bs-link-color: #4338ca;
    --bs-link-color-rgb: 67, 56, 202;
    --bs-link-hover-color: #3730a3;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--ink-700);
    font-size: 15px;
    line-height: 1.6;
    /* Sticky footer: short pages (sign-in, verify, empty states) don't fill the viewport,
       so the shell is a column flexbox and #main takes the slack. dvh keeps it honest
       under the mobile browser chrome; the vh line is the fallback for older engines. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
#main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
a { text-decoration: none; color: var(--brand-600); }
a:hover { color: var(--brand-700); }

/* docs/04 accessibility: a visible focus ring everywhere, never `outline: none`. */
:focus-visible { outline: 3px solid #0e7490; outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: absolute; inset-inline-start: -9999px; inset-block-start: 0;
    background: var(--brand-700); color: #fff; padding: 10px 16px; z-index: 3000;
}
.skip-link:focus { inset-inline-start: 0; color: #fff; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-primary {
    --bs-btn-bg: var(--brand-600);
    --bs-btn-border-color: var(--brand-600);
    --bs-btn-hover-bg: var(--brand-700);
    --bs-btn-hover-border-color: var(--brand-700);
    --bs-btn-active-bg: var(--brand-800);
    --bs-btn-active-border-color: var(--brand-800);
}
.btn-outline-primary {
    --bs-btn-color: var(--brand-600);
    --bs-btn-border-color: var(--brand-600);
    --bs-btn-hover-bg: var(--brand-600);
    --bs-btn-hover-border-color: var(--brand-600);
}
.btn-icon { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ============================================================ PUBLIC CHROME */
.site-header {
    position: sticky; inset-block-start: 0; z-index: 1030;
    background: rgba(255, 255, 255, .94); border-bottom: 1px solid rgba(229, 233, 240, .9);
    box-shadow: 0 4px 18px rgba(30, 27, 75, .04);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
            backdrop-filter: saturate(150%) blur(14px);
}
.site-header .navbar { min-height: 68px; }
.site-header .navbar-brand { font-weight: 800; color: var(--brand-800); font-size: 19px; }
.site-header .navbar-brand img { height: 34px; }
.site-nav .nav-link { color: var(--ink-700); font-weight: 500; padding-inline: 14px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand-600); }

/* ---------------------------------------------------------------------------
   Primary supply-side call to action ("list my lease").

   It sits outside #siteNav in the markup so a phone never hides it behind the
   hamburger. Everything below is logical-property only, so it mirrors for ar-EG
   without a single rule in rtl.css.
   --------------------------------------------------------------------------- */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    white-space: nowrap;
    /* Touch target: 44px is the smallest reliably tappable height. */
    min-height: 44px;
}
.nav-cta .bi { font-size: 1.05em; }

@media (min-width: 992px) {
    /* Rejoin the action cluster at the end of the row on desktop, where the
       original design put it — order, not markup, so mobile keeps it up front. */
    .nav-cta { order: 5; margin-inline-start: 8px; }
}

@media (max-width: 991.98px) {
    /* Pushed to the end of the bar so it sits beside the hamburger: the two
       controls a phone user reaches for are then next to each other. */
    .nav-cta { margin-inline-start: auto; margin-inline-end: 8px; padding-inline: 14px; font-size: 14px; }
}

@media (max-width: 400px) {
    /* On the narrowest phones the wordmark plus a labelled button will not fit.
       The label collapses to the icon; the anchor carries aria-label so the
       accessible name survives (display:none removes text from the a11y tree). */
    .nav-cta span { display: none; }
    .nav-cta { padding-inline: 12px; }
}
.site-header .btn { min-height: 38px; border-radius: 10px; }

.site-footer { background: var(--brand-900); color: #cbd5e1; padding-block: 44px 24px; margin-block-start: 60px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer h6 { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.site-footer .foot-bottom { border-block-start: 1px solid rgba(255,255,255,.12); margin-block-start: 28px; padding-block-start: 18px; font-size: 13px; }

/* ============================================================ HOME PAGE
   The public landing page (docs/04). Direction-neutral like the rest of this
   sheet: every offset is a logical property, so the whole page mirrors in
   Arabic without a single rule in layouts/rtl.css.

   The artwork and photography are self-hosted under assets/images — the CSP
   allows `img-src 'self'` only, so no image may come from a CDN. */
/* No `overflow: hidden` here on purpose: the search panel is translated past the
   hero's bottom edge and must not be clipped. Nothing inside the hero overflows. */
.hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    background:
        radial-gradient(90% 120% at 85% 0%, rgba(6, 182, 212, .38), transparent 58%),
        radial-gradient(70% 100% at 8% 100%, rgba(99, 102, 241, .55), transparent 62%),
        linear-gradient(135deg, var(--brand-900) 6%, var(--brand-700) 48%, var(--brand-500) 100%);
    padding-block: 54px 0;
}
/* The Najdi tile: a texture, not a pattern you are meant to read. */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: url("../images/patterns/najdi.svg");
    background-size: 190px 190px;
    opacity: .45;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
            mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
/* The skyline sits on the hero's bottom edge and is purely decorative. */
.hero-skyline {
    position: absolute; inset-inline: 0; inset-block-end: 0; z-index: -1;
    width: 100%; height: 190px; object-fit: cover; object-position: bottom;
    opacity: .55; pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 30px; padding: 7px 16px; font-size: 13px; font-weight: 600;
    color: #fff; backdrop-filter: blur(6px);
}
.hero-eyebrow .bi { color: var(--accent); }
.hero h1 { font-weight: 800; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.2; margin-block: 18px 0; }
.hero h1 .hl { color: #a5f3fc; }
.hero p.lead { color: rgba(255, 255, 255, .9); font-size: 17px; max-width: 58ch; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 22px; }
.hero-trust span {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .94);
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px; padding: 8px 13px;
}
.hero-trust .bi { color: #67e8f9; font-size: 15px; }

.hero-art { position: relative; }
.hero-art img {
    width: 100%; height: auto; display: block;
    border-radius: 22px; box-shadow: 0 26px 60px rgba(9, 8, 40, .34);
    animation: hero-float 7s ease-in-out infinite;
}
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }

/* The search panel deliberately straddles the hero edge: it is the primary
   action on the page and should be the first thing a returning user hits. */
.hero-search {
    position: relative; z-index: 2;
    background: #fff; color: var(--ink-700);
    border-radius: 20px; box-shadow: var(--shadow-md);
    padding: 20px 22px; margin-block: 46px -38px;
}
.hero-search h2 {
    font-size: 16px; font-weight: 800; color: var(--ink-900);
    display: flex; align-items: center; gap: 8px; margin-block-end: 14px;
}
.hero-search h2 .bi { color: var(--brand-600); }
.hero-search .form-label { color: var(--ink-500); margin-block-end: 4px; }
.hero-search .form-select, .hero-search .form-control { border-color: var(--line); }

/* The first section after the hero clears the search panel's overhang. */
.after-hero { padding-block-start: 90px; }

/* ---- Intent selector: docs/04 "I need to transfer" / "I am looking for". */
.intent-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: var(--card-bg); border: 1px solid var(--line); border-radius: 20px;
    overflow: hidden; color: var(--ink-700);
    transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.intent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-400); color: var(--ink-700); }
.intent-card .art { background: var(--brand-050); aspect-ratio: 16 / 9; overflow: hidden; }
/* Crop from the ground up, never through the faces. */
.intent-card .art img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.intent-card .txt { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.intent-card .ic {
    width: 42px; height: 42px; border-radius: 12px; margin-block-end: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-050); color: var(--brand-600); font-size: 20px;
}
.intent-card.alt .ic { background: #cffafe; color: #0e7490; }
.intent-card b { display: block; font-size: 18px; font-weight: 800; color: var(--ink-900); }
.intent-card p { font-size: 14px; color: var(--ink-500); margin-block: 6px 0; }
.intent-card .go {
    margin-block-start: auto; padding-block-start: 14px;
    font-size: 14px; font-weight: 700; color: var(--brand-600);
    display: inline-flex; align-items: center; gap: 6px;
}
/* Logical, so the nudge follows the reading direction and never fights the
   scaleX flip layouts/rtl.css puts on .dir-icon. */
.intent-card .go .dir-icon { transition: margin var(--t); }
.intent-card:hover .go .dir-icon { margin-inline-start: 5px; }

/* ---- Real numbers from the catalogue — never a decorative placeholder. */
.stat-strip {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
    border-radius: 18px; overflow: hidden;
}
@media (min-width: 768px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-strip .stat { background: #fff; padding: 22px 18px; text-align: center; }
.stat-strip .stat .bi { font-size: 20px; color: var(--brand-500); }
.stat-strip .stat b { display: block; font-size: 26px; font-weight: 800; color: var(--ink-900); margin-block: 6px 2px; }
.stat-strip .stat span { font-size: 13px; color: var(--ink-500); }

/* ---- How it works: four steps joined by one rail on desktop. */
.how-rail { position: relative; }
.how-rail::before {
    content: ""; position: absolute; inset-block-start: 47px; inset-inline: 12%;
    height: 2px; background: repeating-linear-gradient(to right, var(--brand-400) 0 8px, transparent 8px 16px);
    opacity: .5;
}
@media (max-width: 991.98px) { .how-rail::before { display: none; } }
.how-step { position: relative; text-align: center; padding: 18px 12px; }
.how-step .num {
    position: relative; width: 58px; height: 58px; border-radius: 50%; margin-inline: auto;
    background: #fff; border: 2px solid var(--brand-400); color: var(--brand-700);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px;
    box-shadow: 0 0 0 8px rgba(99, 102, 241, .10);
}
.how-step .num .bi { font-size: 21px; }
.how-step .idx {
    position: absolute; inset-block-start: -6px; inset-inline-end: -6px;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--brand-600); color: #fff; font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.how-step h6 { font-weight: 800; margin-block: 16px 6px; color: var(--ink-900); }
.how-step p { font-size: 14px; color: var(--ink-500); margin: 0; }

/* ---- Why the platform: an illustrated trust block. */
.why-band { background: #fff; border-block: 1px solid var(--line); }
.why-card { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); transition: background var(--t); }
.why-card:hover { background: var(--bg); }
.why-card .ic {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
    background: var(--brand-050); color: var(--brand-600);
}
.why-card h6 { font-weight: 800; color: var(--ink-900); margin-block-end: 4px; }
.why-card p { font-size: 14px; color: var(--ink-500); margin: 0; }

.face-row { display: flex; align-items: center; }
.face-row img {
    width: 56px; height: 56px; border-radius: 50%; background: #fff;
    border: 3px solid #fff; box-shadow: var(--shadow-sm);
    margin-inline-start: -14px;
}
.face-row img:first-child { margin-inline-start: 0; }

/* ---- City + district discovery. */
.city-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 30px;
    padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--ink-700);
    transition: border-color var(--t), color var(--t), transform var(--t);
}
.city-chip:hover { border-color: var(--brand-400); color: var(--brand-700); transform: translateY(-2px); }
.city-chip .bi { color: var(--brand-500); }

.district-tile {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; height: 100%; color: var(--ink-700);
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.district-tile:hover { border-color: var(--brand-400); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--ink-700); }
.district-tile > span:first-child { min-width: 0; }
.district-tile > .pill { flex-shrink: 0; }
.district-tile strong { display: block; color: var(--ink-900); font-size: 14.5px; }
.district-tile small { color: var(--ink-500); }

/* ---- Closing call to action. */
.cta-band {
    position: relative; isolation: isolate; overflow: hidden; color: #fff;
    border-radius: 24px; padding: 44px 32px;
    background: linear-gradient(135deg, var(--brand-800), var(--brand-600) 62%, #0e7490);
}
.cta-band .cta-skyline {
    position: absolute; inset-inline: 0; inset-block: 0; z-index: -1;
    width: 100%; height: 100%; object-fit: cover; object-position: center 48%; opacity: .44;
    filter: saturate(.9) contrast(1.05); transform: scale(1.01);
}
.cta-band h2 { font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); margin: 0; }
.cta-band p { color: rgba(255, 255, 255, .88); margin-block: 10px 0; max-width: 60ch; }
.cta-band .btn-light { font-weight: 700; }

/* ---------------------------------------------------------------------------
   Account area wayfinding strip (Views/Shared/_AccountNav.cshtml).
   Scrolls horizontally rather than wrapping, so a seven-item strip never steals
   two lines from the content on a phone.
   --------------------------------------------------------------------------- */
.account-nav {
    overflow-x: auto;
    scrollbar-width: none;
    margin-block-end: 20px;
    border-block-end: 1px solid var(--line-200, #eaecf0);
    padding-block-end: 8px;
}
.account-nav::-webkit-scrollbar { display: none; }
.account-nav .nav { gap: 6px; }
.account-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-700);
    padding-block: 8px;
    padding-inline: 14px;
}
.account-nav .nav-link:hover { color: var(--brand-600); background: var(--brand-50, #eef2ff); }
.account-nav .nav-link.active { background: var(--brand-600); color: #fff; }
.account-nav .nav-link.active .bi { color: #fff; }

/* ---------------------------------------------------------------------------
   Dashboard tiles.

   Each tile is a link, not a div with a click handler: .stretched-link keeps
   keyboard focus, middle-click, open-in-new-tab and copy-link working, and gives
   screen readers a real link with an accessible name.
   --------------------------------------------------------------------------- */
.stat-card { transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.stat-card .card-body { position: relative; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md, 0 6px 18px rgba(16, 24, 40, .08)); border-color: var(--brand-300, #c7d2fe); }
/* :focus-within, so keyboard users get the same affordance as the mouse. */
.stat-card:focus-within { box-shadow: 0 0 0 3px var(--brand-200, #e0e7ff); border-color: var(--brand-500, #6366f1); }
.stat-card-go {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 14px;
    /* Vertical centring. The Arabic flip has to re-state this transform — see
       layouts/rtl.css — because scaleX(-1) would otherwise replace it outright. */
    transform: translateY(-50%);
    color: var(--ink-400, #98a2b3);
    transition: inset-inline-end var(--t), color var(--t);
}
.stat-card:hover .stat-card-go { inset-inline-end: 10px; color: var(--brand-600); }

/* The activation panel a brand-new account sees instead of a row of zeros. */
.dash-activate { border-color: var(--brand-300, #c7d2fe); background: var(--brand-50, #eef2ff); }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-title h2 { font-size: 21px; font-weight: 800; color: var(--ink-900); margin: 0; }
.section-title a { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.section-head { text-align: center; max-width: 680px; margin-inline: auto; margin-block-end: 28px; }
.section-head h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: var(--ink-900); }
.section-head p { color: var(--ink-500); margin: 0; }

/* ---- Conversion-focused home refresh. The selectors below intentionally sit after the
   base home primitives above: other public pages keep the shared design system while the
   landing page gets a stronger hierarchy and mobile discovery pattern. */
.home-section { padding-block: 0 clamp(48px, 6vw, 78px); }
.home-after-hero {
    padding-block-start: calc(var(--hero-search-overlap) + clamp(36px, 4vw, 64px));
}
.home-after-hero .home-section { padding-block: 0; }

.hero {
    --hero-villas-image: url("../images/home/hero-villas-960.jpg");
    /* The search card deliberately overhangs the hero. Keep this stacking context
       above the following section so its lower edge and shadow are never covered. */
    z-index: 1;
    padding-block: clamp(46px, 6vw, 76px) 0;
    background-color: #17143f;
    background-image:
        linear-gradient(180deg, rgba(11, 16, 40, .48) 0%, rgba(24, 23, 70, .60) 58%, rgba(18, 17, 58, .84) 100%),
        linear-gradient(90deg, rgba(17, 20, 55, .72) 0%, rgba(30, 28, 82, .22) 50%, rgba(17, 20, 55, .72) 100%),
        var(--hero-villas-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero::before { opacity: .16; }
.hero::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: min(34vw, 440px); aspect-ratio: 1; border-radius: 50%;
    inset-block-start: 0; inset-inline-end: 2%; transform: translateY(-34%);
    border: 1px solid rgba(255, 255, 255, .11);
    box-shadow: 0 0 0 54px rgba(255, 255, 255, .035), 0 0 0 108px rgba(255, 255, 255, .025);
    opacity: .55;
}
.hero-skyline { opacity: .18; }
.hero > .container { display: flow-root; }
.hero :focus-visible, .why-band :focus-visible, .cta-band :focus-visible { outline-color: #67e8f9; }
.hero-search :focus-visible { outline-color: #0e7490; }
.hero-main { position: relative; z-index: 1; }
.hero-copy { position: relative; z-index: 2; }
.hero-eyebrow {
    padding: 8px 15px; border-color: rgba(165, 243, 252, .34);
    background: rgba(15, 23, 42, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.hero h1 {
    max-width: 17ch; margin-block-start: 20px;
    font-size: clamp(38px, 4.65vw, 62px); line-height: 1.08; letter-spacing: -.025em;
    text-wrap: balance;
}
.hero h1 > span { display: block; }
.hero h1 .hl {
    color: #a5f3fc;
    background: linear-gradient(90deg, #a5f3fc, #67e8f9 54%, #c4b5fd);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { max-width: 53ch; font-size: clamp(16px, 1.45vw, 18px); line-height: 1.75; }

.hero-paths { display: grid; grid-template-columns: 1fr; gap: 10px; margin-block-start: 26px; max-width: 590px; }
.hero-path {
    display: grid; grid-template-columns: 82px minmax(0, 1fr) 24px; align-items: center; gap: 12px;
    min-height: 88px; padding-block: 8px; padding-inline: 8px 13px; border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 17px; color: #fff; overflow: hidden;
    transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t);
}
.hero-path:hover { color: inherit; transform: translateY(-2px); }
.hero-path.is-primary {
    background: rgba(255, 255, 255, .97); color: var(--ink-900);
    border-color: rgba(255, 255, 255, .9); box-shadow: 0 14px 32px rgba(9, 8, 40, .2);
}
.hero-path.is-primary:hover { color: var(--ink-900); box-shadow: 0 18px 38px rgba(9, 8, 40, .26); }
.hero-path.is-secondary { background: rgba(255, 255, 255, .11); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hero-path.is-secondary:hover { color: #fff; background: rgba(255, 255, 255, .17); border-color: rgba(165, 243, 252, .62); }
.hero-path-media { display: block; width: 82px; height: 70px; border-radius: 12px; overflow: hidden; }
.hero-path-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-path-copy { display: block; min-width: 0; line-height: 1.3; }
.hero-path-copy small { display: block; margin-block-end: 4px; font-size: 11.5px; font-weight: 700; color: var(--ink-500); }
.hero-path.is-secondary .hero-path-copy small { color: rgba(255, 255, 255, .7); }
.hero-path-copy strong { display: block; font-size: 15px; font-weight: 800; }
.hero-path > .bi { justify-self: end; font-size: 15px; }

.hero-trust { list-style: none; padding: 0; margin-block: 18px 0; }
.hero-trust li {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .9);
    background: transparent; border: 0; padding-block: 5px; padding-inline: 0; margin-inline-end: 10px;
}
.hero-trust li .bi { color: #67e8f9; font-size: 14px; }

.vision-alignment-card {
    display: grid; grid-template-columns: 104px minmax(0, 1fr) 16px; align-items: center; gap: 12px;
    max-width: 590px; margin-block-start: 18px; padding: 11px 13px;
    color: var(--ink-700); background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255, 255, 255, .9); border-radius: 17px;
    box-shadow: 0 14px 32px rgba(9, 8, 40, .2);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.vision-alignment-card:hover {
    color: var(--ink-700); border-color: #a5f3fc;
    box-shadow: 0 18px 38px rgba(9, 8, 40, .26); transform: translateY(-2px);
}
.vision-alignment-logo {
    display: flex; align-items: center; justify-content: center; align-self: stretch;
    padding-inline-end: 11px; border-inline-end: 1px solid #e3e7ef;
}
.vision-alignment-logo img { display: block; width: 92px; max-width: 100%; height: auto; }
.vision-alignment-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.vision-alignment-copy strong { color: var(--brand-800); font-size: 13.5px; font-weight: 800; }
.vision-alignment-copy small { margin-block-start: 2px; color: var(--ink-500); font-size: 11.5px; }
.vision-alignment-copy > span { margin-block-start: 3px; color: var(--ink-300); font-size: 10.5px; }
.vision-alignment-external { align-self: start; color: var(--ink-300); font-size: 13px; }

.hero-art { position: relative; isolation: isolate; padding: 14px; }
.hero-art::before {
    content: ""; position: absolute; z-index: -1;
    inset-block: 5% -4%; inset-inline: 9% -3%; border-radius: 32px;
    background: linear-gradient(145deg, rgba(103, 232, 249, .44), rgba(129, 140, 248, .15));
    filter: blur(22px); opacity: .8;
}
.hero-art-frame {
    position: relative; padding: 7px; border-radius: 30px;
    background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 30px 72px rgba(9, 8, 40, .38), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.hero-art img {
    width: 100%; height: auto; display: block; animation: none;
    border-radius: 23px; box-shadow: none;
}
.hero-process-card {
    position: absolute; inset-inline-start: -8px; inset-block-end: -24px; z-index: 2;
    width: min(330px, 82%); display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px;
    padding: 13px 15px; border-radius: 16px; color: var(--ink-700);
    background: rgba(255, 255, 255, .97); border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 18px 46px rgba(9, 8, 40, .24);
}
.hero-process-icon {
    width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--brand-700); background: linear-gradient(145deg, #eef2ff, #cffafe); font-size: 21px;
}
.hero-process-card > span:last-child { display: grid; line-height: 1.3; }
.hero-process-card small { color: var(--ink-500); font-size: 11px; font-weight: 700; margin-block-end: 3px; }
.hero-process-card strong { color: var(--ink-900); font-size: 13px; }
.hero-process-next { color: var(--brand-600); font-size: 12px; font-weight: 700; margin-block-start: 2px; }

.hero-search {
    z-index: 3;
    margin-block: clamp(56px, 7vw, 74px) calc(-1 * var(--hero-search-overlap));
    padding: 24px 26px 26px;
    border: 1px solid rgba(99, 102, 241, .2); border-radius: 24px;
    box-shadow: 0 26px 70px rgba(30, 27, 75, .18), 0 2px 8px rgba(30, 27, 75, .06);
}
.hero-search-head { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-block-end: 18px; }
.hero-search-icon {
    width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px; color: #fff; font-size: 19px;
    background: linear-gradient(145deg, var(--brand-600), #0891b2); box-shadow: 0 8px 18px rgba(67, 56, 202, .22);
}
.hero-search-copy { display: block; min-width: 0; }
.hero-search-copy h2 { display: block; margin: 0; color: var(--ink-900); font-size: 17px; }
.hero-search-copy > span { display: block; color: var(--ink-500); font-size: 12.5px; margin-block-start: 1px; }
.hero-search-all, .section-link {
    min-height: 44px; padding: 9px 14px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    color: var(--brand-700); background: var(--brand-050); font-size: 13px; font-weight: 700;
    transition: transform var(--t), background var(--t), color var(--t);
}
.hero-search-all:hover, .section-link:hover { color: #fff; background: var(--brand-600); transform: translateY(-1px); }
.hero-search .form-label { font-size: 12px; color: var(--ink-700); }
.hero-search .form-control, .hero-search .form-select, .hero-search .input-group-text {
    min-height: 50px; border-color: #dfe4ee; background-color: #fbfcff;
}
.hero-search .form-control, .hero-search .form-select { border-radius: 12px; }
.hero-search .input-group .form-control { border-start-end-radius: 0; border-end-end-radius: 0; }
.hero-search .input-group-text {
    border-start-end-radius: 12px; border-end-end-radius: 12px;
    color: var(--ink-500); font-size: 11px; font-weight: 700; white-space: nowrap;
}
.hero-search .form-control:focus, .hero-search .form-select:focus {
    border-color: var(--brand-400); box-shadow: 0 0 0 .2rem rgba(99, 102, 241, .13); background: #fff;
}
.hero-search-submit {
    min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: 12px; font-weight: 800;
    background: linear-gradient(135deg, var(--brand-600), #0891b2);
    box-shadow: 0 10px 22px rgba(67, 56, 202, .2);
}

.section-kicker {
    display: inline-flex; align-items: center; gap: 7px; margin-block-end: 8px;
    color: var(--brand-600); font-size: 12.5px; font-weight: 800;
}
.section-kicker .bi { color: #0891b2; }
.section-kicker.is-light { color: #a5f3fc; }
.section-kicker.is-light .bi { color: #67e8f9; }
.section-head { max-width: 740px; margin-block-end: 34px; }
.section-head h2, .section-title-rich h2 { font-size: clamp(24px, 2.7vw, 32px); line-height: 1.25; text-wrap: balance; }
.section-head h2 { margin-block-end: 10px; }
.section-head p { font-size: 15.5px; }
.section-title-rich { align-items: flex-end; margin-block-end: 22px; }
.section-title-rich h2 { display: flex; align-items: center; gap: 10px; }
.section-title-rich h2 > .bi { color: var(--brand-500); font-size: .82em; }

.home-listing-rail { scroll-padding-inline: 12px; }
.home-listing-rail .listing-card {
    border-radius: 18px; border-color: rgba(229, 233, 240, .9);
    box-shadow: 0 5px 20px rgba(30, 27, 75, .07);
}

.process-section {
    position: relative; padding-block: clamp(48px, 6vw, 78px) clamp(32px, 4vw, 52px);
    background: #fff; border-block: 1px solid var(--line);
}
.hero + .process-section {
    padding-block-start: calc(var(--hero-search-overlap) + clamp(48px, 6vw, 78px));
}
.how-rail::before {
    inset-block-start: 53px; inset-inline: 9%; z-index: 0;
    height: 2px; background: linear-gradient(90deg, transparent, #a5b4fc 10%, #67e8f9 90%, transparent);
    opacity: .75;
}
.how-step {
    position: relative; z-index: 1; height: 100%; padding: 22px 18px; text-align: center;
    border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 24px rgba(30, 27, 75, .06);
    transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.how-step:hover { transform: translateY(-3px); border-color: #c7d2fe; box-shadow: var(--shadow-md); }
.how-step .num {
    width: 62px; height: 62px; border: 0; border-radius: 18px;
    color: #fff; background: linear-gradient(145deg, var(--brand-600), #0891b2);
    box-shadow: 0 10px 24px rgba(67, 56, 202, .22);
}
.how-step .idx {
    inset-block-start: -9px; inset-inline-end: -10px; width: 29px; height: 29px;
    background: #fff; color: var(--brand-700); border: 1px solid #c7d2fe; box-shadow: var(--shadow-sm);
}
.how-step h3 { margin-block: 18px 7px; color: var(--ink-900); font-size: 16px; font-weight: 800; }
.how-step p { font-size: 13.5px; line-height: 1.65; }
.process-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    margin-block-start: 24px; padding: 14px 16px; border-radius: 14px; background: var(--brand-050);
}
.process-note { display: flex; align-items: flex-start; gap: 9px; margin: 0; color: var(--ink-500); font-size: 13px; }
.process-note .bi { color: var(--brand-600); flex-shrink: 0; margin-block-start: 2px; }
.process-footer .btn { min-height: 44px; flex-shrink: 0; border-radius: 11px; font-weight: 700; }

.why-band {
    --why-compound-image: url("../images/home/why-compound-960.jpg");
    position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(48px, 6vw, 78px); color: #fff; border: 0;
    background-color: #11152f;
    background-image:
        linear-gradient(180deg, rgba(10, 15, 35, .40) 0%, rgba(16, 18, 48, .68) 100%),
        linear-gradient(90deg, rgba(12, 15, 40, .56) 0%, rgba(26, 24, 68, .22) 50%, rgba(12, 15, 40, .56) 100%),
        var(--why-compound-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.why-band::before {
    content: ""; position: absolute; z-index: -1; inset: 0;
    background-image: url("../images/patterns/najdi.svg"); background-size: 190px 190px; opacity: .08;
}
.why-band + .home-section { padding-block-start: clamp(48px, 6vw, 78px); }
.why-lead h2 { max-width: 13ch; margin-block: 0 14px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; line-height: 1.2; text-wrap: balance; }
.why-lead > p { max-width: 52ch; color: rgba(255, 255, 255, .76); margin-block-end: 22px; }
.why-emblem { position: relative; width: 158px; height: 98px; margin-block: 12px 20px; }
.why-emblem > span {
    position: absolute; inset-block-start: 13px; inset-inline-start: 38px;
    width: 72px; height: 72px; border-radius: 22px; display: flex; align-items: center; justify-content: center;
    font-size: 34px; color: #fff; background: linear-gradient(145deg, var(--brand-500), #0891b2);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.why-emblem > i {
    position: absolute; width: 34px; height: 34px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center; color: #a5f3fc;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
}
.why-emblem > i:nth-of-type(1) { inset-block-start: 0; inset-inline-end: 4px; }
.why-emblem > i:nth-of-type(2) { inset-block-end: 0; inset-inline-end: 0; }
.why-emblem > i:nth-of-type(3) { inset-block-end: 4px; inset-inline-start: 0; }
.why-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.why-actions .btn, .cta-actions .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-weight: 800; }
.why-grid > li { display: flex; }
.why-card {
    width: 100%; height: 100%; padding: 20px; border-radius: 18px;
    background: rgba(14, 17, 45, .56); border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: transform var(--t), background var(--t), border-color var(--t);
}
.why-card:hover { transform: translateY(-3px); background: rgba(19, 23, 60, .68); border-color: rgba(165, 243, 252, .36); }
.why-card .ic { background: rgba(165, 243, 252, .13); color: #67e8f9; }
.why-card h3 { color: #fff; margin-block-end: 6px; font-size: 15.5px; font-weight: 800; }
.why-card p { color: rgba(255, 255, 255, .7); font-size: 13.5px; line-height: 1.65; }

.explore-section { padding-block-start: 0; }
.explore-panel {
    padding: clamp(24px, 4vw, 42px); background: #fff; border: 1px solid var(--line);
    border-radius: 26px; box-shadow: 0 14px 42px rgba(30, 27, 75, .08);
}
.city-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.city-chip { min-height: 44px; padding: 9px 17px; border-color: #dfe4ee; box-shadow: 0 2px 7px rgba(30, 27, 75, .03); }
.explore-divider { height: 1px; margin-block: 30px; background: linear-gradient(90deg, transparent, var(--line) 8%, var(--line) 92%, transparent); }
.district-heading { margin-block-end: 18px; }
.district-tile {
    display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 11px; min-height: 94px;
    padding: 13px; border-radius: 15px; background: #fbfcff;
}
.district-icon {
    width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--brand-600); background: var(--brand-050); font-size: 18px;
}
.district-copy { min-width: 0; }
.district-copy strong, .district-copy small { display: block; }
.district-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.district-copy small { font-size: 11.5px; line-height: 1.45; }
.district-count {
    min-width: 32px; height: 32px; padding-inline: 8px; border-radius: 20px;
    display: inline-flex; align-items: center; justify-content: center; align-self: center;
    color: var(--brand-700); background: var(--brand-050); font-size: 12px; font-weight: 800;
}

.closing-section { padding-block-start: 0; }
.cta-band {
    padding: clamp(30px, 5vw, 52px); border-radius: 28px;
    background:
        radial-gradient(70% 130% at 90% 0%, rgba(103, 232, 249, .26), transparent 58%),
        linear-gradient(135deg, var(--brand-900), var(--brand-600) 60%, #0e7490);
    box-shadow: 0 24px 58px rgba(30, 27, 75, .17);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); margin-block-start: 4px; text-wrap: balance; }
.cta-band p { font-size: 15.5px; }
.cta-actions { justify-content: flex-end; }
.cta-actions .btn { flex: 1 1 190px; }

/* ---- Saudi compliance and integration roadmap. Official brands are deliberately not
   reproduced here: each card uses a neutral icon until written brand approval exists. */
.compliance-panel {
    position: relative; z-index: 2;
    margin-block-start: -22px; margin-inline: clamp(12px, 3vw, 34px);
    padding: clamp(24px, 4vw, 38px);
    background: rgba(255, 255, 255, .985);
    border: 1px solid rgba(102, 112, 133, .17); border-radius: 24px;
    box-shadow: 0 24px 58px rgba(30, 27, 75, .14);
}
.compliance-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: clamp(18px, 4vw, 48px);
}
.compliance-head > div { max-width: 800px; }
.compliance-head h2 {
    margin-block: 6px 8px; color: var(--ink-900); font-weight: 800;
    font-size: clamp(24px, 3vw, 34px); line-height: 1.22; text-wrap: balance;
}
.compliance-head p { margin: 0; color: var(--ink-500); line-height: 1.75; max-width: 72ch; }
.compliance-emblem {
    width: 72px; height: 72px; flex: 0 0 72px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--brand-700); background: linear-gradient(145deg, #eef2ff, #ecfeff);
    border: 1px solid #c7d2fe; border-radius: 22px; font-size: 31px;
    box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(67, 56, 202, .12);
}
.compliance-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
    list-style: none; margin: 24px 0 0; padding: 0;
}
.compliance-grid > li { min-width: 0; }
.compliance-card {
    display: grid; grid-template-columns: 48px minmax(0, 1fr) 18px;
    align-items: start; gap: 12px; height: 100%; min-height: 154px; padding: 16px;
    color: var(--ink-700); background: #fbfcff; border: 1px solid #e3e7ef;
    border-radius: 17px; text-decoration: none;
    transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t);
}
.compliance-card:hover {
    color: var(--ink-700); background: #fff; border-color: #c7d2fe;
    box-shadow: 0 12px 28px rgba(30, 27, 75, .1); transform: translateY(-3px);
}
.compliance-card:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; }
.compliance-symbol {
    width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px; background: #eef2ff; color: var(--brand-700); font-size: 21px;
}
.compliance-copy {
    min-width: 0; align-self: stretch;
    display: flex; flex-direction: column; align-items: flex-start;
}
.compliance-copy strong { color: var(--ink-900); font-size: 14.5px; line-height: 1.4; }
.compliance-copy small { color: var(--ink-500); font-size: 11.75px; line-height: 1.5; }
.compliance-copy .compliance-authority {
    margin-block: 3px 5px; color: var(--brand-700); font-size: 10.75px; font-weight: 750;
}
.compliance-status {
    display: inline-flex; align-items: center; min-height: 25px; margin-block-start: auto;
    padding: 4px 9px; border-radius: 20px; color: #3730a3; background: #e0e7ff;
    font-size: 10.75px; font-weight: 800; line-height: 1.25;
}
.compliance-external { color: #98a2b3; font-size: 13px; }
.compliance-card.is-required .compliance-symbol,
.compliance-card.is-required .compliance-status { color: #92400e; background: #fef3c7; }
.compliance-card.is-integration .compliance-symbol,
.compliance-card.is-integration .compliance-status { color: #075985; background: #e0f2fe; }
.compliance-card.is-external .compliance-symbol,
.compliance-card.is-external .compliance-status { color: #0f766e; background: #ccfbf1; }
.compliance-card.is-conditional .compliance-symbol,
.compliance-card.is-conditional .compliance-status { color: #6b21a8; background: #f3e8ff; }
.compliance-card.is-ongoing .compliance-symbol,
.compliance-card.is-ongoing .compliance-status { color: #166534; background: #dcfce7; }
.compliance-card.is-guidance .compliance-symbol,
.compliance-card.is-guidance .compliance-status { color: #075985; background: #e0f2fe; }
.compliance-card.is-optional .compliance-symbol,
.compliance-card.is-optional .compliance-status { color: #475467; background: #eef1f6; }
.compliance-disclaimer {
    display: flex; align-items: flex-start; gap: 9px; margin: 18px 0 0; padding-block-start: 16px;
    border-block-start: 1px solid #e7eaf0; color: #667085; font-size: 11.5px; line-height: 1.65;
}
.compliance-disclaimer .bi { flex: 0 0 auto; margin-block-start: 2px; color: var(--brand-600); }

/* ---- Future official-organization marks. This is a separate section with positive
   spacing from the CTA; it renders only when approved local assets have been supplied. */
.official-organizations-section {
    margin-block-start: clamp(28px, 4vw, 48px);
    padding-block-end: clamp(48px, 6vw, 78px);
}
.official-organizations-panel {
    padding: clamp(24px, 4vw, 38px);
    background: #fff; border: 1px solid var(--line); border-radius: 24px;
    box-shadow: 0 14px 42px rgba(30, 27, 75, .08);
}
.official-organizations-head { max-width: 760px; margin-inline: auto; text-align: center; }
.official-organizations-head h2 {
    margin-block: 5px 8px; color: var(--ink-900); font-size: clamp(23px, 2.7vw, 32px);
    font-weight: 800; line-height: 1.25; text-wrap: balance;
}
.official-organizations-head p { margin: 0; color: var(--ink-500); line-height: 1.7; }
.official-logo-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px;
    list-style: none; margin: 26px 0 0; padding: 0;
}
.official-logo-link {
    min-height: 112px; padding: 18px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #e3e7ef; border-radius: 16px;
    transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.official-logo-link:hover {
    border-color: #c7d2fe; box-shadow: 0 10px 24px rgba(30, 27, 75, .09);
    transform: translateY(-2px);
}
.official-logo-link:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; }
.official-logo-link img {
    width: auto; height: auto; max-width: min(180px, 100%); max-height: 72px;
    object-fit: contain;
}

@media (min-width: 576px) {
    .hero { --hero-villas-image: url("../images/home/hero-villas-1672.jpg"); }
    .why-band { --why-compound-image: url("../images/home/why-compound-1672.jpg"); }
}

@media (min-width: 768px) {
    :root { --hero-search-overlap: 165px; }
}

@media (min-width: 992px) {
    :root { --hero-search-overlap: 125px; }
}

@media (min-width: 1200px) {
    :root { --hero-search-overlap: 90px; }
}

@media (max-width: 991.98px) {
    .hero { padding-block-start: 42px; }
    .hero h1 { max-width: 19ch; }
    .hero-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
    .hero-art { max-width: 760px; margin-inline: auto; margin-block-start: 10px; }
    .hero-process-card { inset-inline-start: 4px; }
    .how-rail::before { display: none; }
    .why-lead h2 { max-width: 18ch; }
    .cta-actions { justify-content: flex-start; }
    .compliance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .hero-paths { grid-template-columns: 1fr; }
    .home-listing-rail {
        display: grid; grid-auto-flow: column; grid-auto-columns: minmax(17rem, 84vw); grid-template-columns: none;
        gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory;
        margin-block-start: 0; margin-inline: -12px; padding: 4px 12px 16px;
        scrollbar-width: thin; scrollbar-color: #a5b4fc transparent;
    }
    .home-listing-rail > * {
        width: auto !important; max-width: none !important; padding-inline: 0;
        margin-block-start: 0; scroll-snap-align: start;
    }
    .process-footer { align-items: stretch; flex-direction: column; }
    .process-footer .btn { align-self: flex-start; }
    .compliance-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .compliance-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .home-section { padding-block: 0 48px; }
    .process-section.home-section { padding-block: 48px 32px; }
    .hero + .process-section.home-section {
        padding-block-start: calc(var(--hero-search-overlap) + 48px);
    }
    .why-band.home-section { padding-block: 48px; }
    .home-after-hero { padding-block-start: calc(var(--hero-search-overlap) + 36px); }
    .home-after-hero .home-section { padding-block: 0; }
    .hero {
        padding-block-start: 28px;
        background-image:
            linear-gradient(180deg, rgba(11, 16, 40, .62) 0%, rgba(24, 23, 70, .70) 55%, rgba(18, 17, 58, .88) 100%),
            linear-gradient(90deg, rgba(17, 20, 55, .68) 0%, rgba(30, 28, 82, .28) 50%, rgba(17, 20, 55, .68) 100%),
            var(--hero-villas-image);
        background-position: center top;
    }
    .hero::after { display: none; }
    .hero h1 { max-width: none; font-size: clamp(34px, 10.5vw, 44px); line-height: 1.12; }
    .hero p.lead { line-height: 1.65; }
    .hero-paths { grid-template-columns: 1fr; margin-block-start: 22px; }
    .hero-path { grid-template-columns: 74px minmax(0, 1fr) 22px; min-height: 82px; }
    .hero-path-media { width: 74px; height: 64px; }
    .hero-trust { gap: 2px; }
    .hero-trust li { width: 100%; padding-block: 3px; }
    .vision-alignment-card { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 10px; }
    .vision-alignment-logo { padding-inline-end: 9px; }
    .vision-alignment-logo img { width: 76px; }
    .vision-alignment-external { display: none; }
    .hero-art { padding: 6px; margin-block-start: 4px; }
    .hero-art-frame { padding: 5px; border-radius: 23px; }
    .hero-art img { border-radius: 18px; }
    .hero-process-card { display: none; }
    .hero-process-icon { width: 42px; height: 42px; }
    .hero-search {
        margin-block: 44px calc(-1 * var(--hero-search-overlap));
        padding: 18px 16px 20px; border-radius: 19px;
    }
    .hero-search-head { grid-template-columns: 42px minmax(0, 1fr); }
    .hero-search-icon { width: 42px; height: 42px; }
    .hero-search-all { grid-column: 1 / -1; justify-self: stretch; min-height: 42px; }
    .section-title-rich { align-items: flex-start; }
    .section-title-rich h2 { align-items: flex-start; }
    .section-link { min-width: 44px; padding-inline: 11px; }
    .how-step { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; padding: 17px; text-align: start; }
    .how-step .num { width: 58px; height: 58px; margin: 0; }
    .how-step h3 { margin-block: 2px 5px; }
    .why-emblem { transform: scale(.9); transform-origin: center; margin-block-end: 10px; }
    .why-actions, .cta-actions { display: grid; grid-template-columns: 1fr; }
    .why-actions .btn, .cta-actions .btn { width: 100%; }
    .explore-panel { border-radius: 20px; padding: 22px 16px; }
    .district-tile { min-height: 88px; }
    .cta-band { border-radius: 22px; }
    .compliance-panel {
        margin-inline: 8px; padding: 24px 16px; border-radius: 20px;
    }
    .compliance-head { gap: 14px; }
    .compliance-emblem { width: 52px; height: 52px; flex-basis: 52px; border-radius: 16px; font-size: 24px; }
    .compliance-grid { grid-template-columns: 1fr; gap: 10px; margin-block-start: 20px; }
    .compliance-card { min-height: 142px; }
    .official-organizations-section { margin-block-start: 24px; padding-block-end: 48px; }
    .official-organizations-panel { padding: 24px 16px; border-radius: 20px; }
    .official-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .official-logo-link { min-height: 94px; padding: 14px; }
}

@media (max-width: 399.98px) {
    .official-logo-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-path, .vision-alignment-card, .how-step, .why-card, .city-chip, .district-tile, .listing-card,
    .hero-search-all, .section-link, .compliance-card, .official-logo-link { transition: none !important; }
    .hero-path:hover, .vision-alignment-card:hover, .how-step:hover, .why-card:hover, .city-chip:hover,
    .district-tile:hover, .listing-card:hover, .hero-search-all:hover, .section-link:hover,
    .compliance-card:hover, .official-logo-link:hover {
        transform: none !important;
    }
}

@media (forced-colors: active) {
    .hero h1 .hl {
        color: Highlight; background: none;
        -webkit-text-fill-color: currentColor;
    }
}

/* ============================================================ LISTING CARD
   Visual hierarchy per docs/17: photo/location, rent + monthly equivalent,
   remaining duration, beds/size, verification badges, availability. */
.listing-card {
    position: relative; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    transition: box-shadow var(--t), transform var(--t);
}
.listing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.listing-card .media { position: relative; aspect-ratio: 4 / 3; background: #e8edf5; overflow: hidden; }
.listing-card .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-card .media .empty {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: var(--ink-300); font-size: 30px;
}
.listing-card .fav {
    position: absolute; inset-block-start: 10px; inset-inline-end: 10px; z-index: 2;
    width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.92); color: var(--ink-500);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.14); transition: color var(--t), transform var(--t);
}
.listing-card .fav:hover { transform: scale(1.08); }
.listing-card .fav.on { color: #e11d48; }
.listing-card .term-pill {
    position: absolute; inset-block-end: 10px; inset-inline-start: 10px;
    background: rgba(30,27,75,.86); color: #fff; font-size: 12px; font-weight: 700;
    padding: 5px 11px; border-radius: 20px;
}
.listing-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.listing-card .loc { font-size: 13px; color: var(--ink-500); display: flex; align-items: center; gap: 5px; }
.listing-card .title {
    margin-block: 7px 0; font-size: 15.5px; font-weight: 800; line-height: 1.4;
    display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.listing-card .title a { color: var(--ink-900); }
.listing-card .title a:hover { color: var(--brand-600); }
.listing-card .rent { font-size: 19px; font-weight: 800; color: var(--ink-900); margin-block: 6px 0; }
.listing-card .rent small { font-size: 13px; font-weight: 500; color: var(--ink-500); }
.listing-card .monthly { font-size: 13px; color: var(--ink-500); }
.listing-card .facts { display: flex; gap: 14px; font-size: 13px; color: var(--ink-700); margin-block: 10px; flex-wrap: wrap; }
.listing-card .facts span { display: inline-flex; align-items: center; gap: 5px; }
.listing-card .foot { margin-block-start: auto; padding-block-start: 10px; border-block-start: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* ============================================================ BADGES + STATUS
   docs/17: every status carries a text label AND an icon — never colour alone. */
.badge-trust {
    font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.badge-trust .bi { font-size: 12px; }
.trust-verified  { background: #d8f3e8; color: var(--ok); }
.trust-landlord  { background: #e0e7ff; color: var(--brand-700); }
.trust-mobile    { background: #e0f2fe; color: #0369a1; }
.trust-identity  { background: #ede9fe; color: #6d28d9; }
.trust-history   { background: #fef3c7; color: #92400e; }
.trust-muted     { background: #eef1f6; color: var(--ink-500); }

.pill { font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 30px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.pill-green { background: #d8f3e8; color: var(--ok); }
.pill-blue  { background: #dbeafe; color: var(--info); }
.pill-amber { background: #fdeccb; color: var(--warn); }
.pill-red   { background: #fde3e3; color: var(--error); }
.pill-grey  { background: #eef1f6; color: var(--ink-500); }
.pill-brand { background: var(--brand-050); color: var(--brand-700); }

/* ============================================================ SEARCH PAGE */
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filter-panel h6 { font-size: 13px; font-weight: 700; color: var(--ink-900); margin-block: 16px 8px; }
.filter-panel h6:first-child { margin-block-start: 0; }
@media (min-width: 992px) { .filter-panel { position: sticky; inset-block-start: 84px; max-height: calc(100vh - 110px); overflow-y: auto; } }

.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.result-bar .count { font-weight: 700; color: var(--ink-900); }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--brand-050); color: var(--brand-700);
    border: 1px solid #c7d2fe; border-radius: 20px;
    padding: 4px 12px; font-size: 12.5px; font-weight: 600;
}
.chip button { border: 0; background: none; color: inherit; padding: 0; line-height: 1; cursor: pointer; }

#map { height: 520px; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 991.98px) { #map { height: 380px; } }

/* ============================================================ LISTING DETAIL */
.gallery-main { aspect-ratio: 16 / 10; background: #e8edf5; border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-block-start: 8px; }
.gallery-thumbs img {
    width: 92px; height: 68px; object-fit: cover; border-radius: var(--radius-sm);
    cursor: pointer; border: 2px solid transparent; flex-shrink: 0;
}
.gallery-thumbs img.active { border-color: var(--brand-600); }

.lease-summary { background: var(--brand-050); border: 1px solid #c7d2fe; border-radius: var(--radius); padding: 18px 20px; }
.lease-summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.lease-summary dt { font-size: 13.5px; color: var(--ink-500); font-weight: 500; }
.lease-summary dd { font-size: 14.5px; font-weight: 700; color: var(--ink-900); margin: 0; text-align: end; }

.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.fact { display: flex; align-items: center; gap: 10px; }
.fact .ic {
    width: 38px; height: 38px; border-radius: 10px; background: var(--brand-050); color: var(--brand-700);
    display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0;
}
.fact .v { font-weight: 700; color: var(--ink-900); line-height: 1.2; }
.fact .k { font-size: 12.5px; color: var(--ink-500); }

.sticky-cta { position: sticky; inset-block-start: 84px; }
@media (max-width: 991.98px) {
    .sticky-cta {
        position: fixed; inset-inline: 0; inset-block-end: 0; inset-block-start: auto;
        background: #fff; border-block-start: 1px solid var(--line); padding: 12px 16px;
        z-index: 1040; box-shadow: 0 -4px 18px rgba(0,0,0,.08);
        padding-block-end: calc(12px + env(safe-area-inset-bottom));
    }
}

/* ============================================================ WIZARD */
.wizard-steps { display: flex; gap: 6px; overflow-x: auto; padding-block-end: 6px; margin-bottom: 22px; }
.wizard-step {
    flex: 1 0 auto; min-width: 118px; padding: 10px 12px; border-radius: var(--radius-sm);
    background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-500);
    display: flex; align-items: center; gap: 8px;
}
.wizard-step .n {
    width: 24px; height: 24px; border-radius: 50%; background: #eef1f6; color: var(--ink-500);
    display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.wizard-step.done { border-color: #a7f3d0; background: #ecfdf5; color: var(--ok); }
.wizard-step.done .n { background: var(--ok); color: #fff; }
.wizard-step.current { border-color: var(--brand-600); background: var(--brand-050); color: var(--brand-800); font-weight: 700; }
.wizard-step.current .n { background: var(--brand-600); color: #fff; }

.photo-tile { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: #e8edf5; border: 1px solid var(--line); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .tools { position: absolute; inset-block-start: 6px; inset-inline-end: 6px; display: flex; gap: 4px; }
.photo-tile .tools button { border: 0; border-radius: 6px; width: 28px; height: 28px; background: rgba(255,255,255,.92); color: var(--ink-700); font-size: 13px; cursor: pointer; }
.photo-tile .cover-flag { position: absolute; inset-block-end: 6px; inset-inline-start: 6px; background: var(--brand-600); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }

.upload-drop {
    border: 2px dashed #c7d2fe; border-radius: var(--radius); background: var(--brand-050);
    padding: 28px; text-align: center; color: var(--brand-700); cursor: pointer;
}
.upload-drop:hover { background: #e0e7ff; }

/* ============================================================ DEAL TIMELINE
   Vertical stepper (docs/17). The current step dominates; future steps stay
   visible but muted; state is carried by icon + text, not colour alone. */
.timeline { position: relative; padding-inline-start: 34px; }
.timeline::before {
    content: ""; position: absolute; inset-block: 10px; inset-inline-start: 12px;
    width: 2px; background: var(--line);
}
.timeline-item { position: relative; padding-block-end: 22px; }
.timeline-item:last-child { padding-block-end: 0; }
.timeline-item .dot {
    position: absolute; inset-inline-start: -34px; inset-block-start: 0;
    width: 26px; height: 26px; border-radius: 50%; background: #fff;
    border: 2px solid var(--line); color: var(--ink-300);
    display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.timeline-item.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline-item.current .dot { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: 0 0 0 5px rgba(67,56,202,.16); }
.timeline-item.skipped .dot { border-style: dashed; }
.timeline-item .t { font-weight: 600; color: var(--ink-700); }
.timeline-item.current .t { font-weight: 800; color: var(--ink-900); font-size: 16px; }
.timeline-item.future .t, .timeline-item.skipped .t { color: var(--ink-300); }
.timeline-item .when { font-size: 12.5px; color: var(--ink-300); }

.next-action {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: #fff; border-radius: var(--radius); padding: 20px 22px;
}
.next-action h6 { font-weight: 800; font-size: 17px; margin-block-end: 6px; }
.next-action p { color: rgba(255,255,255,.9); margin-block-end: 14px; font-size: 14px; }

/* ============================================================ EMPTY + ERROR
   docs/17: an empty state explains and offers a route out — never a dead screen. */
.state-block { text-align: center; padding: 48px 20px; }
.state-block .ic {
    width: 72px; height: 72px; border-radius: 50%; margin-inline: auto; margin-block-end: 16px;
    background: var(--brand-050); color: var(--brand-600);
    display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.state-block h5 { font-weight: 700; color: var(--ink-900); }
.state-block p { color: var(--ink-500); max-width: 460px; margin-inline: auto; }

/* ============================================================ MISC */
.applicant-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.applicant-card .av {
    width: 46px; height: 46px; border-radius: 50%; background: var(--brand-050); color: var(--brand-700);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex-shrink: 0;
}

.money { font-variant-numeric: tabular-nums; }

#loader { position: fixed; inset: 0; z-index: 2000; display: none; background: rgba(255,255,255,.6); align-items: center; justify-content: center; }
#loader.show { display: flex; }

@media print {
    .site-header, .site-footer, .sticky-cta, .no-print { display: none !important; }
}

/* Hide the validation summary box when ModelState is valid — the tag helper always
   renders the div, so a hardcoded .alert-danger would paint an empty red bar on GET. */
.validation-summary-valid { display: none; }
