/* ============================================================
   MAISON — Real Estate Pro vCard (realty-prime-vcard)
   Cinematic property-first dark luxe · ScaanMe next-gen
   Charcoal #101214 · champagne gold hairlines · ivory · deep forest
   Cormorant Garamond (display) + Outfit (body) + Almarai (Arabic)
   Mobile-first · RTL-safe (logical properties) · reduced-motion aware
   ============================================================ */

:root {
    --ink: var(--tk-bg, #101214);
    --ink-2: color-mix(in srgb, var(--tk-bg, #101214) 92%, white);
    --ink-3: color-mix(in srgb, var(--tk-bg, #101214) 86%, white);
    --panel: rgba(255, 255, 255, .025);
    --panel-2: rgba(255, 255, 255, .05);
    --line: rgb(from var(--tk-text, #F4F0E6) r g b / .08);
    --line-2: rgb(from var(--tk-text, #F4F0E6) r g b / .16);
    --gold: var(--tk-primary, #C8A96A);
    --gold-deep: color-mix(in srgb, var(--tk-primary, #C8A96A) 70%, black);
    --gold-line: rgb(from var(--tk-primary, #C8A96A) r g b / .26);
    --gold-faint: rgb(from var(--tk-primary, #C8A96A) r g b / .12);
    --ivory: var(--tk-text, #F4F0E6);
    --mist: color-mix(in srgb, var(--tk-text, #F4F0E6) 64%, var(--tk-bg, #101214));
    --faint: color-mix(in srgb, var(--tk-text, #F4F0E6) 38%, var(--tk-bg, #101214));
    --forest: var(--tk-secondary, #2E5444);
    --forest-tx: var(--tk-success, #8FB8A4);
    --wine: var(--tk-danger, #C97A6A);
    --r: 3px;
    --font-d: var(--tk-font-header, 'Cormorant Garamond'), 'Almarai', serif;
    --font-b: var(--tk-font-content, 'Outfit'), 'Almarai', system-ui, sans-serif;
    --bar-h: 76px;
    --ease: cubic-bezier(.19, 1, .22, 1);
    /* layered depth: surfaces sit on a faint vertical gradient, never flat */
    --surface: linear-gradient(168deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012) 62%);
    --surface-gold: linear-gradient(168deg, rgb(from var(--tk-primary, #C8A96A) r g b / .09), rgba(255, 255, 255, .012) 60%);
    --shadow-card: 0 30px 64px -26px rgba(0, 0, 0, .9), 0 2px 0 rgb(from var(--tk-text, #F4F0E6) r g b / .03) inset;
    --shadow-soft: 0 22px 48px -28px rgba(0, 0, 0, .85);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--font-b);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
strong, b { font-weight: 500; }
.hidden { display: none !important; }

::selection { background: var(--gold); color: #14161a; }

/* ---------- Ambient veil: vignette + grain, no neon ---------- */
.veil { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--ink); }
.veil::before { /* faint warm light from above */
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(120% 60% at 50% -10%, rgb(from var(--tk-primary, #C8A96A) r g b / .07), transparent 60%),
        radial-gradient(90% 70% at 50% 115%, rgb(from var(--tk-secondary, #2E5444) r g b / .14), transparent 55%);
}
.veil::after { /* grain */
    content: ""; position: absolute; inset: -50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: .05; mix-blend-mode: overlay;
}

/* ---------- Layout ---------- */
.mz-wrap { max-width: 700px; margin-inline: auto; padding-inline: 22px; padding-block-end: calc(var(--bar-h) + 30px); }
.sec { padding-block: 58px; position: relative; }
/* chapter punctuation: a hairline + centred gold diamond opening each section */
.sec + .sec::before {
    content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 50%;
    width: 1px; height: 26px; transform: translateX(-50%);
    background: linear-gradient(var(--gold-line), transparent);
}
.sec-head { margin-block-end: 34px; }
.kicker {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--font-b); font-size: 11px; font-weight: 600;
    letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
}
.kicker::before { content: ""; flex: 0 0 22px; height: 1px; background: var(--gold); opacity: .8; }
.kicker::after { content: ""; flex: 1 1 auto; max-width: 60px; height: 1px; background: linear-gradient(90deg, var(--gold-line), transparent); }
[dir="rtl"] .kicker::after { background: linear-gradient(-90deg, var(--gold-line), transparent); }
.sec-title {
    font-family: var(--font-d); font-size: clamp(2.15rem, 7.6vw, 3rem); font-weight: 600;
    letter-spacing: -.005em; line-height: 1.08; margin-block-start: 14px; color: var(--ivory);
}
.sec-title em { font-style: italic; font-weight: 500; color: var(--gold); }
.sec-sub { color: var(--mist); font-size: 15px; margin-block-start: 12px; max-width: 52ch; font-weight: 300; line-height: 1.65; }

/* ---------- Gold corner ticks ---------- */
.tick { position: relative; }
.tick::before, .tick::after { content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; z-index: 2; }
.tick::before { inset-block-start: -1px; inset-inline-start: -1px; border-block-start: 1px solid var(--gold); border-inline-start: 1px solid var(--gold); }
.tick::after { inset-block-end: -1px; inset-inline-end: -1px; border-block-end: 1px solid var(--gold); border-inline-end: 1px solid var(--gold); }

/* ---------- Gold underline sweep ---------- */
.sweep {
    background-image: linear-gradient(var(--gold), var(--gold));
    background-size: 0% 1px; background-repeat: no-repeat;
    background-position: left calc(100% - 1px);
    transition: background-size .45s var(--ease);
    padding-block-end: 3px;
}
[dir="rtl"] .sweep { background-position: right calc(100% - 1px); }
.sweep:hover, a:hover > .sweep { background-size: 100% 1px; }

/* ---------- Reveal choreography ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .1s; } .rv-d2 { transition-delay: .2s; } .rv-d3 { transition-delay: .3s; }

/* ---------- Topbar (floats over the hero) ---------- */
.topbar {
    position: sticky; inset-block-start: 0; z-index: 60;
    display: flex; align-items: center; gap: 12px;
    margin-inline: calc(50% - 50vw); padding: 13px max(22px, calc(50vw - 328px));
    background: linear-gradient(180deg, rgb(from var(--tk-bg, #101214) r g b / .72), rgb(from var(--tk-bg, #101214) r g b / .42));
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-block-end: 1px solid rgb(from var(--tk-primary, #C8A96A) r g b / .14);
}
.topbar-avatar { width: 36px; height: 36px; border-radius: var(--r); object-fit: cover; border: 1px solid var(--gold-line); }
.topbar-name { font-family: var(--font-d); font-weight: 600; font-size: 18px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-spacer { flex: 1; }

/* ---------- Hero: full-bleed cover, Ken Burns, bottom gradient ---------- */
.estate-hero {
    position: relative; margin-inline: calc(50% - 50vw);
    min-height: 88vh; min-height: 92svh;
    display: flex; align-items: flex-end;
    margin-block-start: -63px; /* slide under the topbar */
    overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img.kb {
    width: 100%; height: 100%; object-fit: cover;
    transform-origin: 50% 38%;
    animation: kenburns 30s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translateY(-2%); } }
.hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgb(from var(--tk-bg, #101214) r g b / .5), rgb(from var(--tk-bg, #101214) r g b / .12) 32%, rgb(from var(--tk-bg, #101214) r g b / .9) 80%, var(--ink) 100%),
        radial-gradient(120% 80% at 50% 112%, rgb(from var(--tk-secondary, #2E5444) r g b / .2), transparent 55%);
}
/* faint engraved house-number watermark — ambient, never readable as data */
.hero-shade::after {
    content: ""; position: absolute; inset-inline-end: -4%; inset-block-start: 10%;
    width: 1px; height: 38%;
    background: linear-gradient(transparent, var(--gold-line), transparent);
    opacity: .5;
}
.hero-body {
    position: relative; z-index: 1; width: 100%; max-width: 700px; margin-inline: auto;
    padding: 0 22px 52px;
    /* gold rule anchoring the editorial column */
    border-inline-start: 0;
}
.hero-rule { /* thin gold rule the name hangs from */
    width: 46px; height: 2px; margin-block-end: 22px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
[dir="rtl"] .hero-rule { background: linear-gradient(-90deg, var(--gold), transparent); }

.hero-chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--gold-line); background: rgb(from var(--tk-bg, #101214) r g b / .45);
    backdrop-filter: blur(8px);
    font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.hero-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgb(from var(--tk-primary, #C8A96A) r g b / .45); animation: dot-pulse 3s ease-out infinite; }
@keyframes dot-pulse { 70% { box-shadow: 0 0 0 8px rgb(from var(--tk-primary, #C8A96A) r g b / 0); } 100% { box-shadow: 0 0 0 0 rgb(from var(--tk-primary, #C8A96A) r g b / 0); } }

.hero-mark { display: flex; align-items: center; gap: 16px; margin-block-start: 0; }
.hero-portrait {
    width: 64px; height: 64px; border-radius: var(--r); object-fit: cover;
    border: 1px solid var(--gold); outline: 1px solid var(--gold-line); outline-offset: 4px;
    flex-shrink: 0;
}
.hero-name {
    font-family: var(--font-d); font-size: clamp(3.1rem, 13.5vw, 5.6rem);
    font-weight: 600; letter-spacing: -.01em; line-height: .96; color: var(--ivory);
    margin-block-start: 22px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}
.hero-role {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-d); font-style: italic; font-weight: 500;
    font-size: clamp(1.3rem, 5vw, 1.75rem); color: var(--gold);
    margin-block-start: 14px; letter-spacing: .01em;
}
.hero-role::before { content: ""; flex: 0 0 26px; height: 1px; background: var(--gold-line); }
.hero-desc { margin-block-start: 16px; color: var(--mist); font-size: 16px; max-width: 52ch; line-height: 1.66; }
.hero-desc p { margin-block-end: .55em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 30px; }
/* scroll cue at the foot of the hero */
.hero-scroll {
    position: absolute; inset-block-end: 16px; inset-inline-start: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 7px; z-index: 1;
    font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--mist);
}
.hero-scroll .line { width: 1px; height: 30px; background: linear-gradient(var(--gold), transparent); overflow: hidden; position: relative; }
.hero-scroll .line::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: -30px; height: 12px; background: var(--gold); animation: scroll-trail 2.4s var(--ease) infinite; }
@keyframes scroll-trail { 0% { transform: translateY(0); } 60%, 100% { transform: translateY(42px); } }

/* ---------- Hero page-load choreography (CSS-only, no JS hook) ---------- */
.estate-hero .hero-load { opacity: 0; transform: translateY(26px); animation: hero-rise 1s var(--ease) forwards; }
.hl-1 { animation-delay: .15s; } .hl-2 { animation-delay: .32s; } .hl-3 { animation-delay: .48s; }
.hl-4 { animation-delay: .64s; } .hl-5 { animation-delay: .8s; }
@keyframes hero-rise { to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn-gold {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 17px 30px; border: 1px solid var(--gold); border-radius: var(--r);
    background: linear-gradient(180deg, color-mix(in srgb, var(--tk-primary, #C8A96A) 72%, white), var(--gold) 52%, var(--gold-deep));
    color: #14161a; font-family: var(--font-b); font-weight: 600; font-size: 12px;
    letter-spacing: .2em; text-transform: uppercase;
    box-shadow: 0 16px 36px -14px rgb(from var(--tk-primary, #C8A96A) r g b / .5), 0 1px 0 rgba(255, 255, 255, .35) inset;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s ease;
}
.btn-gold::after { /* sweeping sheen on hover */
    content: ""; position: absolute; inset-block: 0; inset-inline-start: -60%;
    width: 50%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-18deg); transition: inset-inline-start .6s var(--ease); pointer-events: none;
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 22px 46px -14px rgb(from var(--tk-primary, #C8A96A) r g b / .58), 0 1px 0 rgba(255, 255, 255, .35) inset; }
.btn-gold:hover::after { inset-inline-start: 120%; }
.btn-gold:active { transform: translateY(0); }
.btn-line {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 26px; border: 1px solid var(--gold-line); border-radius: var(--r);
    background: rgb(from var(--tk-bg, #101214) r g b / .35); color: var(--ivory);
    font-family: var(--font-b); font-weight: 500; font-size: 12px;
    letter-spacing: .18em; text-transform: uppercase;
    backdrop-filter: blur(6px);
    transition: border-color .3s ease, background .3s ease, transform .3s var(--ease);
}
.btn-line:hover { border-color: var(--gold); background: var(--gold-faint); transform: translateY(-2px); }
.btn-line i, .btn-gold i { font-size: 13px; }
.lnk {
    display: inline-flex; align-items: center; gap: 8px;
    border: 0; background: transparent; color: var(--gold);
    font-family: var(--font-b); font-size: 12px; font-weight: 500;
    letter-spacing: .16em; text-transform: uppercase;
}
.lnk i { font-size: 11px; transition: transform .3s var(--ease); }
.lnk:hover i { transform: translateX(4px); }
[dir="rtl"] .lnk i { transform: scaleX(-1); }
[dir="rtl"] .lnk:hover i { transform: scaleX(-1) translateX(4px); }

/* ---------- Cover film (video covers) ---------- */
.film { margin-block-start: 26px; background: #000; border: 1px solid var(--line); }
.film iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* ---------- Ledger: signature framed champagne stat trio ---------- */
.ledger {
    position: relative;
    display: flex; flex-wrap: wrap; justify-content: center;
    margin-block-start: 42px; padding-block: 6px;
    background: var(--surface-gold);
    border: 1px solid var(--gold-faint);
    border-radius: var(--r);
    box-shadow: var(--shadow-soft);
}
.ledger::before, .ledger::after { /* champagne rules framing the ledger */
    content: ""; position: absolute; inset-inline: 14px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-line) 18%, var(--gold-line) 82%, transparent);
}
.ledger::before { inset-block-start: -1px; }
.ledger::after { inset-block-end: -1px; }
.ledger-item {
    position: relative;
    flex: 1 1 120px; min-width: 104px; text-align: center;
    padding: 26px 12px;
}
.ledger-item:not(:first-child)::before { /* hairline divider with a gold midpoint */
    content: ""; position: absolute; inset-inline-start: 0; inset-block: 22% 22%;
    width: 1px; background: linear-gradient(transparent, var(--line-2) 30%, var(--gold-line) 50%, var(--line-2) 70%, transparent);
}
[dir="rtl"] .ledger-item:not(:first-child)::before { inset-inline-start: auto; inset-inline-end: 0; }
.ledger-num {
    font-family: var(--font-d); font-weight: 600; font-style: italic;
    font-size: clamp(2.4rem, 9.5vw, 3.2rem); line-height: 1; color: var(--ivory);
    letter-spacing: .01em;
}
.ledger-label {
    margin-block-start: 9px; font-size: 9.5px; font-weight: 600;
    letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}

/* ---------- Quick actions (centered flex — rows balance at any count) ---------- */
.qa-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 32px; }
.qa-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    flex: 0 1 108px; min-width: 92px;
    padding: 20px 6px; border-radius: var(--r);
    background: var(--surface); border: 1px solid var(--line);
    color: var(--mist); font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
    transition: transform .3s var(--ease), border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.qa-item i { font-size: 19px; color: var(--gold); transition: transform .3s var(--ease); }
.qa-item:hover { transform: translateY(-3px); border-color: var(--gold-line); color: var(--ivory); box-shadow: var(--shadow-soft); }
.qa-item:hover i { transform: scale(1.12); }

/* ---------- Featured properties: listing-card carousel ---------- */
.car { position: relative; }
.car-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -22px; padding-inline: 22px; padding-block: 6px 10px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.car-track::-webkit-scrollbar { display: none; }
.prop-card {
    flex: 0 0 78%; max-width: 330px; scroll-snap-align: center;
    position: relative; overflow: hidden; border-radius: var(--r);
    border: 1px solid var(--line); background: var(--ink-2);
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-soft);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s ease;
}
.prop-card::after { /* gold tick on the top-inline-start corner of every listing */
    content: ""; position: absolute; inset-block-start: 12px; inset-inline-start: 12px;
    width: 14px; height: 14px; z-index: 2; pointer-events: none;
    border-block-start: 1px solid var(--gold); border-inline-start: 1px solid var(--gold);
    opacity: .85;
}
.prop-card:hover {
    transform: translateY(-6px); border-color: var(--gold-line);
    box-shadow: var(--shadow-card);
}
.prop-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.prop-card:hover img { transform: scale(1.06); }
.prop-bar {
    position: absolute; inset-block-end: 0; inset-inline: 0;
    padding: 13px 16px;
    background: rgb(from var(--tk-bg, #101214) r g b / .82);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-block-start: 1px solid var(--gold-line);
}
.prop-bar .cap { font-family: var(--font-d); font-weight: 600; font-size: 17.5px; letter-spacing: .02em; color: var(--ivory); line-height: 1.3; }
.prop-bar .cap-sub { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-block-start: 2px; }
.car-nav {
    position: absolute; inset-block-start: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: var(--r); border: 1px solid var(--gold-line);
    background: rgb(from var(--tk-bg, #101214) r g b / .85); color: var(--gold); backdrop-filter: blur(10px);
    display: grid; place-items: center; font-size: 13px; z-index: 5;
    transition: background .25s ease, border-color .25s ease;
}
.car-nav:hover { background: var(--ink-3); border-color: var(--gold); }
.car-nav.prev { inset-inline-start: -8px; }
.car-nav.next { inset-inline-end: -8px; }
[dir="rtl"] .car-nav i { transform: scaleX(-1); }
@media (max-width: 759px) { .car-nav { display: none; } } /* touch swipes on mobile */

/* ---------- Film tours (videos) ---------- */
.reel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -22px; padding-inline: 22px; padding-block-end: 8px; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel-item { flex: 0 0 86%; scroll-snap-align: center; border: 1px solid var(--line); background: #000; border-radius: var(--r); overflow: hidden; }
.reel-item:only-child { flex-basis: 100%; }
.reel-item iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.reel-label {
    padding: 12px 16px; background: var(--ink-2); border-block-start: 1px solid var(--gold-faint);
    font-family: var(--font-d); font-style: italic; font-weight: 500; font-size: 16px; color: var(--mist);
}

/* ---------- Client words (testimonials — horizontal bar) ---------- */
.tm-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -22px; padding-inline: 22px; padding-block: 6px 10px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tm-track::-webkit-scrollbar { display: none; }
.tm-card {
    flex: 0 0 84%; max-width: 380px; scroll-snap-align: center;
    position: relative; padding: 30px 24px 24px; border-radius: var(--r);
    background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}
.tm-card:only-child { margin-inline: auto; }
.tm-mark {
    position: absolute; inset-block-start: 10px; inset-inline-end: 18px;
    font-family: var(--font-d); font-style: italic; font-size: 64px; line-height: 1; color: var(--gold); opacity: .5;
}
.tm-stars { display: flex; gap: 4px; color: var(--gold); font-size: 12px; margin-block-end: 14px; }
.tm-text { font-family: var(--font-d); font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--ivory); }
.tm-who { display: flex; align-items: center; gap: 12px; margin-block-start: 18px; padding-block-start: 14px; border-block-start: 1px solid var(--line); }
.tm-who img { width: 42px; height: 42px; border-radius: var(--r); object-fit: cover; border: 1px solid var(--gold-line); }
.tm-name { font-weight: 500; font-size: 13.5px; letter-spacing: .06em; }
.tm-sub { color: var(--faint); font-size: 12px; }

/* ---------- The practice: numbered editorial service rows ---------- */
.prac-list { list-style: none; border-block-start: 1px solid var(--line-2); }
.prac-row {
    position: relative;
    display: flex; gap: 18px; align-items: flex-start;
    /* comfortable breathing room on BOTH inline edges — never let the
       number column or the copy crowd a border (founder spacing remark) */
    padding-block: 28px; padding-inline: 16px; border-block-end: 1px solid var(--line);
    transition: background .4s ease, padding-inline-start .4s var(--ease);
}
.prac-row::before { /* gold edge that grows on hover */
    content: ""; position: absolute; inset-block: 0; inset-inline-start: 0;
    width: 2px; background: var(--gold); transform: scaleY(0); transform-origin: top;
    transition: transform .4s var(--ease);
}
.prac-row:hover { background: linear-gradient(90deg, var(--gold-faint), transparent 65%); padding-inline-start: 24px; }
[dir="rtl"] .prac-row:hover { background: linear-gradient(-90deg, var(--gold-faint), transparent 65%); }
.prac-row:hover::before { transform: scaleY(1); }
.prac-no {
    flex: 0 0 auto; min-width: 56px;
    font-family: var(--font-d); font-style: italic; font-weight: 600;
    font-size: 36px; line-height: 1; color: var(--gold);
    opacity: .85;
}
.prac-no::after { content: ""; display: block; width: 26px; height: 1px; background: var(--gold-line); margin-block-start: 10px; }
.prac-body { flex: 1; min-width: 0; }
.prac-name { font-family: var(--font-d); font-weight: 600; font-size: 25px; letter-spacing: .01em; line-height: 1.18; color: var(--ivory); }
.prac-desc { color: var(--mist); font-size: 14px; margin-block-start: 7px; }
.prac-cta { display: flex; gap: 22px; flex-wrap: wrap; margin-block-start: 14px; }
.prac-thumb { flex: 0 0 auto; width: 62px; height: 62px; border-radius: var(--r); object-fit: cover; border: 1px solid var(--line-2); }

/* ---------- Private collection (products / exclusive listings) ---------- */
.col-grid { display: grid; gap: 18px; }
.col-card { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .5s var(--ease), border-color .3s ease, box-shadow .5s var(--ease); }
.col-card:hover { transform: translateY(-6px); border-color: var(--gold-line); box-shadow: var(--shadow-card); }
.col-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.col-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.col-card:hover .col-media img { transform: scale(1.05); }
.col-badge {
    position: absolute; inset-block-start: 12px; inset-inline-start: 12px;
    padding: 5px 12px; border-radius: var(--r);
    background: var(--gold); color: #14161a;
    font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.col-body { padding: 20px; }
.col-name { font-family: var(--font-d); font-weight: 600; font-size: 23px; letter-spacing: .015em; line-height: 1.2; }
.col-desc { color: var(--mist); font-size: 13.5px; margin-block-start: 6px; }
.col-price-row { display: flex; align-items: baseline; gap: 12px; margin-block-start: 14px; padding-block-start: 14px; border-block-start: 1px solid var(--line); }
.col-price { font-family: var(--font-d); font-style: italic; font-weight: 600; font-size: 27px; color: var(--gold); letter-spacing: .01em; }
.col-old { color: var(--faint); font-size: 14px; text-decoration: line-through; }
.col-status { font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; margin-block-start: 4px; }
.col-status.ok { color: var(--forest-tx); }
.col-status.out { color: var(--wine); }
.col-body .btn-line, .col-body .btn-gold { width: 100%; margin-block-start: 16px; }

/* ---------- Panels & forms ---------- */
.panel { border-radius: var(--r); padding: 30px 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.panel.viewing { background: linear-gradient(165deg, rgb(from var(--tk-secondary, #2E5444) r g b / .24), rgb(from var(--tk-primary, #C8A96A) r g b / .05) 50%, rgba(255, 255, 255, .012) 80%); border-color: var(--gold-faint); }
.f-label {
    display: block; font-size: 10.5px; font-weight: 500;
    letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
    margin-block: 16px 8px;
}
.f-input, select.f-input, textarea.f-input {
    width: 100%; padding: 14px 15px; border-radius: var(--r);
    background: rgb(from var(--tk-bg, #101214) r g b / .55); border: 1px solid var(--line-2);
    color: var(--ivory); font-family: var(--font-b); font-weight: 300; font-size: 15px;
    transition: border-color .25s ease, box-shadow .25s ease;
    appearance: none; -webkit-appearance: none;
}
.f-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(from var(--tk-primary, #C8A96A) r g b / .16); }
.f-input::placeholder { color: var(--faint); }
select.f-input { padding-inline-end: 40px; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8A96A' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: calc(100% - 16px) center; }
[dir="rtl"] select.f-input { padding-inline-end: 40px; padding-inline-start: 15px; }
[dir="rtl"] select.f-input { background-position: 16px center; }
select.f-input option { background: var(--ink-2); color: var(--ivory); }
.grid-2f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert-box { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--r); font-size: 13.5px; margin-block-end: 14px; }
.alert-error { background: rgb(from var(--tk-danger, #C97A6A) r g b / .1); border: 1px solid rgb(from var(--tk-danger, #C97A6A) r g b / .4); color: color-mix(in srgb, var(--tk-danger, #C97A6A) 78%, white); }
.alert-success { background: rgb(from var(--tk-secondary, #2E5444) r g b / .18); border: 1px solid rgb(from var(--tk-success, #8FB8A4) r g b / .35); color: var(--forest-tx); }

/* flatpickr — Maison skin */
.flatpickr-calendar { background: var(--ink-3) !important; border: 1px solid var(--gold-line) !important; border-radius: var(--r) !important; box-shadow: 0 28px 60px -16px rgba(0, 0, 0, .8) !important; color: var(--ivory) !important; }
.flatpickr-months, .flatpickr-weekdays { background: transparent !important; }
.flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year, .flatpickr-weekday { color: var(--ivory) !important; fill: var(--ivory) !important; }
.flatpickr-day { color: var(--mist) !important; border-radius: var(--r) !important; }
.flatpickr-day:hover { background: var(--panel-2) !important; border-color: transparent !important; }
.flatpickr-day.selected { background: var(--gold) !important; border-color: var(--gold) !important; color: #14161a !important; font-weight: 600; }
.flatpickr-day.today:not(.selected) { border-color: var(--gold-line) !important; }
.flatpickr-day.flatpickr-disabled { color: rgb(from var(--tk-text, #F4F0E6) r g b / .14) !important; }
.flatpickr-prev-month svg, .flatpickr-next-month svg { fill: var(--gold) !important; }

/* ---------- Index (links) ---------- */
.idx-list { border-block-start: 1px solid var(--line); }
.idx-row {
    display: flex; align-items: center; gap: 14px;
    padding-block: 16px; padding-inline: 16px; border-block-end: 1px solid var(--line);
    transition: background .3s ease, padding-inline-start .3s var(--ease);
}
.idx-row:hover { background: linear-gradient(90deg, var(--gold-faint), transparent 70%); padding-inline-start: 22px; }
[dir="rtl"] .idx-row:hover { background: linear-gradient(-90deg, var(--gold-faint), transparent 70%); }
.idx-ic { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; border: 1px solid var(--gold-line); color: var(--gold); font-size: 15px; flex-shrink: 0; }
.idx-label { font-weight: 500; font-size: 14.5px; letter-spacing: .04em; }
.idx-val { color: var(--faint); font-size: 12.5px; word-break: break-word; }
.idx-arrow { margin-inline-start: auto; color: var(--gold); font-size: 12px; }
[dir="rtl"] .idx-arrow i { transform: scaleX(-1); }
.iframe-wrap { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-block-end: 14px; }
.iframe-wrap iframe { width: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Hours (dotted ledger rows) ---------- */
.hr-row { display: flex; align-items: baseline; gap: 12px; padding-block: 12px; padding-inline: 4px; font-size: 14px; }
.hr-row .hr-day { color: var(--mist); font-weight: 400; letter-spacing: .06em; }
.hr-row .hr-dots { flex: 1; border-block-end: 1px dotted rgb(from var(--tk-text, #F4F0E6) r g b / .18); transform: translateY(-4px); }
.hr-row .hr-time { color: var(--ivory); font-weight: 400; }
.hr-row.today .hr-day, .hr-row.today .hr-time { color: var(--gold); font-weight: 500; }
.hr-24 { display: flex; align-items: center; gap: 12px; color: var(--forest-tx); font-weight: 400; font-size: 15px; letter-spacing: .04em; }
.hr-24 i { color: var(--gold); }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; filter: grayscale(.4) contrast(1.02); }

/* ---------- Payments ---------- */
.pay-grid { display: grid; gap: 12px; }
.pay-card { padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.pay-label { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-block-end: 7px; }
.pay-val { color: var(--mist); font-size: 14px; word-break: break-all; }
.pay-img { border-radius: var(--r); max-height: 220px; margin-inline: auto; }

/* ---------- Socials (centered flex — rows balance at any count) ---------- */
.soc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.soc-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    flex: 0 1 106px; min-width: 94px;
    padding: 20px 8px; border-radius: var(--r);
    background: var(--surface); border: 1px solid var(--line);
    font-size: 10.5px; color: var(--mist); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    transition: transform .3s var(--ease), border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.soc-item i { font-size: 21px; color: var(--gold); transition: transform .3s var(--ease); }
.soc-item:hover { transform: translateY(-3px); border-color: var(--gold-line); color: var(--ivory); box-shadow: var(--shadow-soft); }
.soc-item:hover i { transform: scale(1.12); }

/* ---------- Footer ---------- */
.footer { text-align: center; padding-block: 34px 8px; color: var(--faint); font-size: 12px; letter-spacing: .06em; }
.footer::before { content: "❖"; display: block; color: var(--gold-line); font-size: 12px; margin-block-end: 14px; }
.footer a { color: var(--mist); border-block-end: 1px solid var(--gold-line); }
.footer a:hover { color: var(--gold); }

/* ---------- Concierge bar (bottom action bar) ---------- */
.bar {
    position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 70;
    background: rgb(from var(--tk-bg, #101214) r g b / .92);
    border-block-start: 1px solid var(--gold-line);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    padding-block-end: env(safe-area-inset-bottom);
    transition: transform .4s var(--ease);
}
.bar.bar-hide { transform: translateY(110%); }
.bar-inner {
    max-width: 560px; margin-inline: auto;
    display: flex; align-items: center; justify-content: space-around;
    padding: 9px 10px;
}
.bar-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    min-width: 58px; padding: 7px 4px; border: 0; background: transparent;
    color: var(--mist); font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    border-radius: var(--r);
    transition: color .25s ease;
}
.bar-btn i { font-size: 17px; color: var(--mist); transition: color .25s ease; }
.bar-btn:hover, .bar-btn:focus-visible { color: var(--ivory); }
.bar-btn:hover i { color: var(--gold); }
.bar-save {
    width: 58px; height: 58px; margin-block-start: -24px;
    display: grid; place-items: center; gap: 0;
    border: 1px solid var(--gold); border-radius: var(--r);
    background: linear-gradient(180deg, color-mix(in srgb, var(--tk-primary, #C8A96A) 78%, white), var(--gold) 55%, var(--gold-deep));
    color: #14161a !important;
    box-shadow: 0 14px 30px -10px rgb(from var(--tk-primary, #C8A96A) r g b / .55);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.bar-save i { font-size: 19px; color: #14161a !important; }
.bar-save:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -10px rgb(from var(--tk-primary, #C8A96A) r g b / .6); }

/* ---------- Modals ---------- */
.mz-overlay {
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgba(10, 11, 12, .74); backdrop-filter: blur(8px);
    opacity: 0; transition: opacity .3s ease; padding: 16px;
}
.mz-overlay.show { opacity: 1; }
.mz-box {
    position: relative; /* anchors .mz-close inside the box */
    width: 100%; max-width: 470px; max-height: 86vh; overflow-y: auto;
    border-radius: var(--r); padding: 30px 24px 26px;
    background: var(--ink-2); border: 1px solid var(--line-2);
    transform: translateY(32px); transition: transform .4s var(--ease);
}
.mz-box::before { /* gold top hairline */
    content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.mz-overlay.show .mz-box { transform: none; }
.mz-title { font-family: var(--font-d); font-size: 26px; font-weight: 600; letter-spacing: .01em; line-height: 1.15; }
.mz-sub { color: var(--mist); font-size: 13.5px; margin-block-start: 5px; font-weight: 300; }
.mz-close {
    position: absolute; inset-block-start: 14px; inset-inline-end: 14px;
    width: 38px; height: 38px; border-radius: var(--r);
    border: 1px solid var(--line-2); background: transparent; color: var(--mist);
    display: grid; place-items: center;
    transition: border-color .25s ease, color .25s ease;
}
.mz-close:hover { border-color: var(--gold); color: var(--gold); }
.mz-head { position: relative; margin-block-end: 10px; padding-inline-end: 44px; }
.mz-actions { display: flex; gap: 10px; margin-block-start: 22px; }
.mz-actions .btn-line, .mz-actions .btn-gold { flex: 1; }
.qr-wrap { display: grid; place-items: center; padding: 16px; background: #fff; border: 1px solid var(--gold); border-radius: var(--r); width: fit-content; margin: 20px auto; }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block: 16px; }
.share-row a {
    width: 46px; height: 46px; border-radius: var(--r);
    display: grid; place-items: center;
    border: 1px solid var(--gold-line); background: var(--panel); color: var(--ivory); font-size: 16px;
    transition: transform .3s var(--ease), border-color .25s ease, color .25s ease;
}
.share-row a:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold); }

@media (min-width: 480px) {
    .mz-overlay { align-items: center; }
}

/* ---------- Desktop ≥760px ---------- */
@media (min-width: 760px) {
    .mz-wrap { max-width: 960px; }
    .topbar { padding-inline: max(22px, calc(50vw - 458px)); }
    .sec { padding-block: 82px; }
    .sec-head { margin-block-end: 40px; }
    .estate-hero { min-height: 92vh; min-height: 94svh; }
    .hero-body { max-width: 960px; padding-block-end: 72px; }
    .hero-name { font-size: clamp(4.6rem, 8.5vw, 6.6rem); max-width: 13ch; }
    .hero-desc { font-size: 17px; max-width: 48ch; }
    .ledger-item { padding-block: 36px; }
    .ledger-num { font-size: clamp(3rem, 4vw, 3.6rem); }
    .prop-card { flex-basis: 33%; max-width: none; }
    .reel-item { flex-basis: 56%; }
    .reel-item:only-child { flex-basis: 78%; margin-inline: auto; }
    .tm-card { flex-basis: 42%; }
    .col-grid { grid-template-columns: repeat(2, 1fr); }
    .prac-row { gap: 26px; padding-block: 30px; }
    .prac-no { font-size: 32px; min-width: 60px; }
    .prac-name { font-size: 26px; }
    .prac-thumb { width: 84px; height: 84px; }
    .soc-item { flex-basis: 136px; }
    .qa-item { flex-basis: 170px; }
    .map-wrap iframe { height: 340px; }
}

/* ---------- Language switcher ---------- */
.lang-wrap { position: relative; }
.lang-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: var(--r);
    border: 1px solid var(--gold-line); background: rgb(from var(--tk-bg, #101214) r g b / .4);
    color: var(--gold); font-family: var(--font-b); font-size: 11px; font-weight: 500;
    letter-spacing: .18em; text-transform: uppercase;
    transition: border-color .25s ease;
}
.lang-chip:hover { border-color: var(--gold); }
.lang-menu {
    position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 8px);
    min-width: 170px; max-height: 280px; overflow-y: auto;
    background: var(--ink-2); border: 1px solid var(--gold-line); border-radius: var(--r);
    padding: 6px; z-index: 80; box-shadow: 0 22px 50px -12px rgba(0, 0, 0, .8);
}
.lang-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); font-size: 13.5px; color: var(--mist); }
.lang-item:hover { background: var(--panel-2); color: var(--ivory); }
.lang-item.on { color: var(--gold); }

/* ---------- Intro loader ---------- */
#loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--ink); }
.spinner { width: 44px; height: 44px; border: 2px solid var(--gold-faint); border-block-start-color: var(--gold); border-radius: 50%; animation: mz-spin 1s linear infinite; }
@keyframes mz-spin { to { transform: rotate(360deg); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-media img.kb, .hero-chip .dot, .hero-scroll .line::after { animation: none !important; }
    .estate-hero .hero-load { animation: none !important; opacity: 1; transform: none; }
    .hero-scroll { display: none; }
    .rv { opacity: 1; transform: none; transition: none; }
    .prop-card, .prop-card img, .col-card, .col-media img, .btn-gold, .btn-line, .bar, .prac-row, .prac-row::before, .qa-item, .qa-item i, .soc-item, .soc-item i { transition: none; }
}


/* ============================================================
   GLOBAL CONTAINMENT BASELINE (founder remark: diagonal-scroll
   drift / horizontal "wiggle" on mobile + zoom-out).
   overflow-x:clip on html is sticky-safe (unlike hidden) and
   stops the horizontal pan; overscroll-behavior-x:none kills the
   rubber-band; max-width:100% + min-width:0 prevent any child
   from forcing the document wider than the viewport.
   ============================================================ */
html { overflow-x: clip; }
body { overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; }
/* horizontal scrollers keep their swipe to themselves */
.car-track, .reel, .film-reel, .tm-track, .letters, .marquee, .marquee-track,
[class*="-track"], [class*="-rail"], [class*="-carousel"], [class*="-scroll"] {
    overscroll-behavior-x: contain;
    max-width: 100vw;
}
