/* The Broker EG, "Midnight & Plum" (logo colours) design for project pages (preview, not approved).
   Loaded after the page's own styles; it only restyles. */

:root:not(#x) {
  --brand: #D58AC0; --brand-hi: #F3D9EA;
  --brand-grad: linear-gradient(135deg, #B0458F 0%, #7A2C62 55%, #5A1E47 100%);
  --text-grad: linear-gradient(135deg, #F7DFF0 0%, #E3A6D0 50%, #C06FA8 100%);
  --glass-line: rgba(255, 255, 255, 0.09); --glass-hi: rgba(255, 255, 255, 0.16);
  --bg: #06070C; --surface: #0F111A; --surface-2: #161927; --ink: #EEF0F6; --muted: #959BAF;
  --line: rgba(255, 255, 255, 0.08); --accent: #D58AC0; --accent-ink: #FFFFFF; --accent-soft: rgba(213, 138, 192, 0.11);
  --stone: #E7A9D3; --on-image: #FFFFFF; --shade: rgba(4, 5, 10, 0.82); --hero-plain: #10121C;
  --font-display: "Sora", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  color-scheme: dark;
}
::selection { background: rgba(213, 138, 192, 0.35); color: #fff; }
body {
  background:
    radial-gradient(1000px 560px at 90% -6%, rgba(110, 36, 88, 0.38), transparent 62%),
    radial-gradient(800px 520px at -10% 45%, rgba(44, 64, 122, 0.2), transparent 60%),
    var(--bg);
  background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
.wrap { gap: clamp(44px, 6vw, 72px); padding-top: 0; }
h1, h2, h3 { letter-spacing: -0.03em; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.eyebrow { color: var(--brand); letter-spacing: .2em; }
a { color: var(--brand); }

/* Top bar added by the design: back to all projects, compare, WhatsApp */
.tbe-top { position: sticky; top: 0; z-index: 40; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 10px max(16px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 10px; background: rgba(6, 7, 12, .6); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--glass-line); }
.tbe-top a { white-space: nowrap; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .04); }
.tbe-top a:hover { border-color: var(--glass-hi); }
.tbe-top .tbe-logo { border: 0; background: none; padding: 0; margin-inline-end: auto; }
.tbe-top .tbe-logo img { height: 26px; width: auto; filter: brightness(0) invert(1); display: block; }
.tbe-top .tbe-wa { background: var(--brand-grad); color: #FFFFFF; border: 0; font-weight: 600; }
@media (max-width: 520px) { .tbe-top { gap: 6px; } .tbe-top .tbe-cmp { display: none; } .tbe-top .tbe-logo img { height: 20px; } .tbe-top a { padding: 0 12px; font-size: .84rem; } }

/* Broker sign and section links */
.broker-sign { border-left: 0; padding-left: 0; }
.broker-name { background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; letter-spacing: .14em; }
.nav a { border-color: var(--glass-line); background: rgba(255, 255, 255, .04); padding: 8px 16px; }
.nav a:hover { border-color: rgba(213, 138, 192, .5); color: var(--brand-hi); }

/* Hero */
.hero { border-radius: 28px; min-height: clamp(440px, 72vh, 680px); border: 1px solid var(--glass-line); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .95); }
.hero:not(.plain)::after { background: linear-gradient(180deg, rgba(6, 7, 12, .1) 25%, rgba(6, 7, 12, .55) 62%, rgba(6, 7, 12, .92) 100%); }
.hero-text { padding: clamp(24px, 4vw, 44px); gap: 14px; }
.hero h1 { font-weight: 600; letter-spacing: -0.045em; line-height: 1; background: linear-gradient(180deg, #FFFFFF 35%, #EBC6DF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text .eyebrow { color: var(--brand-hi); }

/* Key facts: glass tiles */
.facts { gap: 10px; background: none; border: 0; border-radius: 0; overflow: visible; }
.fact { background: linear-gradient(180deg, rgba(22, 24, 36, .85), rgba(13, 14, 21, .85)); border: 1px solid var(--glass-line); border-radius: 18px; padding: 18px 20px; }
.fact b { font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.fact:first-child b { background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Unit finder */
.chip { background: rgba(255, 255, 255, .04); border-color: var(--glass-line); padding: 8px 15px; }
.chip[aria-pressed="true"] { background: rgba(213, 138, 192, .14); border-color: rgba(213, 138, 192, .55); color: var(--brand-hi); }
.ctl select, .ctl input[type="date"] { background: rgba(255, 255, 255, .04); border-color: var(--glass-line); border-radius: 10px; padding: 8px 10px; }
.ctl select option { background: #12141E; color: #EEF0F6; }
.units { border-color: var(--glass-line); border-radius: 22px; background: rgba(13, 15, 23, .85); }
.urow { padding: 14px 18px; border-top-color: var(--line); transition: background .2s; }
.urow.head { background: rgba(255, 255, 255, .03); }
.urow:not(.head):hover { background: rgba(255, 255, 255, .04); }
.urow[aria-current="true"] { background: rgba(213, 138, 192, .1); box-shadow: inset 3px 0 0 var(--brand); }
.price { color: var(--brand-hi); }

/* Payment calculator */
.panel { background: linear-gradient(180deg, rgba(22, 24, 36, .9), rgba(12, 13, 20, .92)); border-color: var(--glass-line); border-radius: 24px; padding: clamp(18px, 3vw, 26px); }
.tabs { background: rgba(255, 255, 255, .04); border: 1px solid var(--glass-line); border-radius: 16px; padding: 5px; }
.tab { border-radius: 12px; padding: 11px 8px; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.tab[aria-selected="true"] { background: rgba(213, 138, 192, .14); color: var(--brand-hi); box-shadow: inset 0 0 0 1px rgba(213, 138, 192, .45); }
.total { border-color: var(--glass-line); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.total.big { background: radial-gradient(400px 160px at 20% 0%, rgba(213, 138, 192, .2), transparent 70%), rgba(213, 138, 192, .07); border: 1px solid rgba(213, 138, 192, .3); }
.total.big b { background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; }
.est { background: rgba(217, 140, 60, .16); color: #F3B97A; border: 1px solid rgba(243, 185, 122, .4); }
.sched-wrap { border-color: var(--glass-line); border-radius: 14px; }
thead th { background: #141725; }
.btn { border-radius: 999px; border-color: rgba(213, 138, 192, .5); color: var(--brand-hi); min-height: 42px; padding: 9px 18px; }
.btn.solid { background: var(--brand-grad); color: #FFFFFF; border: 0; }

/* Photos, layouts, amenities */
.gallery { gap: 12px; }
.gallery button { border-radius: 18px; border: 1px solid var(--glass-line); }
.gallery img { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.gallery button:hover img { transform: scale(1.06); }
.layout { border-radius: 16px; border-color: var(--glass-line); }
.plan-img, .pins { border-radius: 16px; }
.amen span { background: rgba(255, 255, 255, .04); border: 1px solid var(--glass-line); padding: 8px 14px; }
dialog::backdrop { background: rgba(3, 4, 8, .88); backdrop-filter: blur(6px); }
dialog img { border-radius: 14px; }
footer { border-top-color: var(--glass-line); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .fact, .gallery button, .panel { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  }
}

/* Top bar hides while scrolling down and comes back when scrolling up (script added by build.php) */
.tbe-top { transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .35s; will-change: transform; }
.tbe-top.tbe-hide { transform: translateY(-110%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .tbe-top { transition: none; } }
