/* Unihome — light, corporate, restrained. No dark theme by design. */
:root {
  color-scheme: light;
  --navy: #13294b;
  --navy-2: #1c3961;
  --blue: #1f5ea8;
  --blue-dark: #174a86;
  --blue-tint: #e9f0f9;
  --ink: #1c232c;
  --muted: #5b6672;
  --line: #dde3ea;
  --line-2: #eef1f5;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --ok: #2b7a3d;
  --ok-bg: #e7f3ea;
  --warn: #9a5b00;
  --warn-bg: #fbf0dc;
  --sold: #6f7882;
  --sold-bg: #eceff2;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(19, 41, 75, .06), 0 4px 16px rgba(19, 41, 75, .06);
  --container: 1240px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
img.img-failed { visibility: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #8fb6e6; outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ico { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

.skip { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .65em 1.1em; border-radius: var(--radius); border: 1px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap; background: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { color: var(--navy); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-tint); }
.btn-sm { padding: .45em .8em; font-size: .875rem; }
.btn-lg { padding: .8em 1.35em; font-size: 1rem; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font-size: .9rem; }
.linklike:hover { text-decoration: underline; }
.icon-btn { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--navy); padding: 4px 8px; }
.link-more { font-weight: 600; font-size: .95rem; display: inline-block; margin-top: .5em; }

/* Top bar + header */
.topbar { background: var(--navy); color: #d6deea; font-size: .85rem; }
.topbar-in { display: flex; gap: 22px; align-items: center; justify-content: flex-end; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.tb-lead { margin-right: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo img { height: 46px; width: auto; filter: invert(1); /* white-on-black artwork → black-on-white */ }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a { display: block; padding: 10px 11px; color: var(--ink); font-weight: 500; font-size: .93rem; border-radius: var(--radius); white-space: nowrap; }
.main-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang button { border: 0; background: #fff; padding: 6px 8px; font-size: .78rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.lang button + button { border-left: 1px solid var(--line); }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; position: relative; }
.burger-bars, .burger-bars::before, .burger-bars::after { position: absolute; left: 11px; width: 18px; height: 2px; background: var(--navy); content: ''; }
.burger-bars { top: 20px; }
.burger-bars::before { top: -6px; left: 0; }
.burger-bars::after { top: 6px; left: 0; }

/* Breadcrumbs + page head */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 18px 0 26px; }
.page-head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: .25em; }
.lead { color: var(--muted); max-width: 760px; margin: 0; font-size: 1.04rem; }
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 4px; color: #a7b0ba; }
.crumbs a { color: var(--muted); }
.page-top { margin-top: 22px; }

/* Layout */
.layout { display: block; padding-top: 28px; padding-bottom: 64px; }
.layout.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.sidebar-in { display: grid; gap: 18px; }
.sb-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.sb-box h2 { font-size: 1.05rem; }
.sb-meeting { border-top: 3px solid var(--blue); }
.sb-meeting .dept { padding: 12px 0; border-top: 1px solid var(--line-2); }
.sb-hours { font-size: .92rem; color: var(--muted); }
.sb-hours strong { color: var(--navy); }
.sb-all { display: inline-block; padding: 0 4px; }
.sb-upcoming { list-style: none; margin: 0; padding: 0; }
.sb-upcoming li { display: flex; flex-direction: column; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.sb-upcoming a { font-weight: 600; color: var(--navy); }
.sb-upcoming span { font-size: .85rem; color: var(--muted); }
.block { margin-bottom: 36px; }

/* Departments */
.dept-title { font-size: 1rem; margin-bottom: .3em; }
.dept-for { font-size: .875rem; color: var(--muted); margin-bottom: .5em; }
.dept address { display: flex; gap: 8px; font-size: .92rem; margin-bottom: .45em; }
.dept address .ico { margin-top: .2em; color: var(--muted); }
.phones { list-style: none; padding: 0; margin: 0; }
.phones a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 1.02rem; padding: 2px 0; }
.phones .ico { color: var(--blue); }

/* Hero */
.hero { position: relative; height: clamp(420px, 62vh, 600px); background: var(--navy); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 26, 48, .85) 0%, rgba(12, 26, 48, .6) 28%, rgba(12, 26, 48, .25) 48%, rgba(12, 26, 48, 0) 68%); display: flex; align-items: center; padding-bottom: 60px; }
.hero-overlay .container { width: 100%; }
.hero-text { max-width: 392px; color: #fff; }
.hero-kicker { font-size: .63rem; color: #cfd9e8; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hero-title { color: #fff; font-size: clamp(1.4rem, 2.94vw, 2.1rem); margin-bottom: .3em; }
.hero-lead { font-size: .76rem; color: #e6ecf4; }
.hero-ctas { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.hero-ctas .btn-lg { padding: .7em 1.2em; font-size: .78rem; }
.hero-nav { position: absolute; top: 45%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(12, 26, 48, .35); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-dots { position: absolute; bottom: 92px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 28px; height: 4px; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; }
.hero-dots button[aria-current="true"] { background: #fff; }

/* Search bar */
.home-search { position: relative; z-index: 5; margin-top: -70px; }
.home-search-box { background: #fff; border-radius: var(--radius); box-shadow: 0 6px 28px rgba(19, 41, 75, .14); padding: 22px 24px 14px; border: 1px solid var(--line); }
.hs-title { font-size: 1.15rem; margin-bottom: 14px; }
.searchbar { background: #fff; }
.page-top .searchbar { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 12px; box-shadow: var(--shadow); }
.sb-main { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(380px, 2fr) minmax(220px, 1fr) auto; gap: 18px 22px; align-items: end; }
.searchbar:not([data-mode="home"]) .sb-main { grid-template-columns: minmax(180px, .8fr) minmax(380px, 2fr) minmax(220px, 1fr); }
.sb-main-sale { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; }
.fld { border: 0; margin: 0; padding: 0; min-width: 0; }
.fld-label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 7px; padding: 0; }
.input, .select { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; background: #fff; font-size: .95rem; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%235b6672'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 20px; padding-right: 34px; cursor: pointer; }
.input:focus, .select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(31, 94, 168, .15); }
.fld-submit .btn { height: 48px; min-width: 210px; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-block; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 500; background: #fff; white-space: nowrap; }
.pill input:hover + span { border-color: #b7c3d1; }
.pill input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid #8fb6e6; outline-offset: 2px; }

.ms { position: relative; }
.ms-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; }
.ms-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-panel { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: 320px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.ms-opt { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: 4px; cursor: pointer; }
.ms-opt:hover { background: var(--bg-alt); }
.ms-opt input { width: 17px; height: 17px; accent-color: var(--navy); grid-row: span 2; }
.ms-opt small { color: var(--muted); font-size: .8rem; }

.range-vals { display: flex; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 4px; }
.range-track { position: relative; height: 28px; }
.range-track::before { content: ''; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--line); }
.range-fill { position: absolute; top: 12px; height: 4px; background: var(--blue); border-radius: 2px; }
.range input { position: absolute; left: 0; width: 100%; top: 0; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 2; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); cursor: grab; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.range input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); cursor: grab; }
.range input::-webkit-slider-runnable-track { background: none; }
.range input::-moz-range-track { background: none; }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(31, 94, 168, .3); }

.sb-adv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.adv-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-weight: 600; color: var(--navy); padding: 4px 0; font-size: .93rem; }
.adv-toggle .ico { transition: transform .15s; }
.adv-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.badge-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; }
.sb-adv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; padding: 16px 0 8px; }
.sb-adv .fld-wide { grid-column: span 2; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; margin-top: 10px; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 40px; height: 22px; margin: 0; cursor: pointer; }
.switch-ui { width: 38px; height: 22px; border-radius: 11px; background: #c5cdd7; position: relative; flex: none; transition: background .15s; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--navy); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid #8fb6e6; outline-offset: 2px; }
.sb-head-mobile, .sb-foot-mobile, .filters-open, .drawer-backdrop { display: none; }
.searchbar-simple { display: flex; align-items: end; gap: 22px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.searchbar-simple .fld { width: min(320px, 100%); }
.searchbar-simple .count-badge { margin: 0 0 10px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 12px 18px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--navy); text-decoration: none; }
.tabs a[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--blue); }

/* Results */
.results-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.count-badge { margin: 0; padding: 6px 12px; background: var(--blue-tint); border-radius: 999px; color: var(--navy); font-size: .92rem; }
.count-badge strong { font-weight: 800; }
.results-tools { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.sort-lbl { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.sort-lbl .select { width: auto; height: 38px; }
.view-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.view-toggle button { border: 0; background: #fff; padding: 8px 14px; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--muted); }
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid #c9d9ee; background: var(--blue-tint); border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; color: var(--navy); }
.notice span:nth-child(2) { flex: 1; }
.empty { padding: 32px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); grid-column: 1 / -1; }
.more { text-align: center; margin-top: 20px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
thead th { background: var(--bg-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; white-space: nowrap; }
thead th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
thead th button:disabled { cursor: default; }
thead th button:disabled .sort-ind { display: none; }
.sort-ind { color: #a5afba; font-size: .7rem; }
th[aria-sort] .sort-ind { color: var(--blue); }
.num { text-align: right; white-space: nowrap; }
thead th.num button { justify-content: flex-end; }
tbody tr:hover { background: #fafbfd; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.units-table td:first-child a { font-weight: 700; }
.price-cell { font-weight: 700; color: var(--navy); }
tr.is-sold td { color: #9aa2ab; }
tr.is-sold .price-cell, tr.is-sold td:first-child a { color: #9aa2ab; }
tr.is-sold .price-cell { text-decoration: line-through; }
tr.is-reserved td { background: #fffdf7; }

.status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.status-available { background: var(--ok-bg); color: var(--ok); }
.status-reserved { background: var(--warn-bg); color: var(--warn); }
.status-sold { background: var(--sold-bg); color: var(--sold); }
.page-head h1 .status { font-size: .85rem; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 4px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.badge-date { background: var(--navy); color: #fff; }
.badge-construction { background: var(--warn-bg); color: var(--warn); }
.badge-planned { background: var(--blue-tint); color: var(--blue-dark); }
.badge-completed { background: var(--ok-bg); color: var(--ok); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag { display: inline-block; padding: 2px 8px; margin: 2px 2px 2px 0; border: 1px solid var(--line); border-radius: 4px; font-size: .82rem; }

/* Unit cards */
.ucards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ucard { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ucard:hover { border-color: #b7c3d1; box-shadow: var(--shadow); }
.ucard-link { display: block; padding: 14px; color: var(--ink); }
.ucard-link:hover { text-decoration: none; }
.ucard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ucard-no { font-weight: 800; color: var(--navy); }
.ucard-plan { background: var(--bg-alt); border-radius: 4px; padding: 10px 18px; margin-bottom: 10px; }
.ucard p { margin: 0; }
.ucard-b { font-size: .85rem; color: var(--muted); }
.ucard-t { font-weight: 600; }
.ucard-price { font-weight: 800; color: var(--navy); font-size: 1.1rem; margin-top: 6px !important; }
.ucard-psm { font-size: .82rem; color: var(--muted); }
.ucard.is-sold { opacity: .55; }
.ucard.is-sold .ucard-price { text-decoration: line-through; }

/* Property cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #dfe6ef, #c9d4e1); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-title { margin-bottom: .15em; font-size: 1.15rem; }
.card-title a { color: var(--navy); }
.card-sub { color: var(--muted); font-size: .88rem; margin-bottom: .6em; }
.card-excerpt { font-size: .93rem; color: #3b4652; flex: 1; }
.card-foot { display: flex; gap: 14px; align-items: flex-end; justify-content: space-between; border-top: 1px solid var(--line-2); padding-top: 14px; }
.card-price { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; color: var(--muted); min-width: 0; }
.card-price strong { color: var(--navy); font-size: 1.12rem; font-weight: 800; }
.card-price .btn { margin-top: 8px; align-self: flex-start; }
.card-map { flex: none; }
.map-thumb { width: 122px; height: 100px; border-radius: 4px; border: 1px solid var(--line); object-fit: cover; }
.map-fallback { display: grid; place-items: center; color: var(--navy); background-color: #eef2ec;
  background-image: linear-gradient(90deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%), linear-gradient(0deg, transparent 58%, #fff 58%, #fff 64%, transparent 64%), linear-gradient(28deg, transparent 70%, #dce6f0 70%, #dce6f0 100%), repeating-linear-gradient(0deg, #e6ebe3 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, #e6ebe3 0 1px, transparent 1px 22px); }
.map-fallback .ico { width: 28px; height: 28px; fill: #c0392b; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }

.up-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.up-card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: #dfe6ef; }
.up-body { padding: 14px 16px; }
.up-body h3 { margin-bottom: .1em; }
.up-body h3 a { color: var(--navy); }
.up-meta { font-size: .88rem; font-weight: 600; margin: 0; }

/* Home sections */
.section { padding: 56px 0; }
.home-search + .section { padding-top: 48px; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.section-head p { color: var(--muted); margin: 0; }
.band { background: var(--navy); color: #d9e1ec; }
.band h2, .band h3 { color: #fff; }
.meeting { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.meeting-depts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.meeting-depts .dept { background: var(--navy-2); border-radius: var(--radius); padding: 20px; }
.band .dept-for, .band .dept address .ico, .band .muted { color: #aebbd0; }
.band .phones a { color: #fff; }
.band .phones .ico { color: #8fb6e6; }
.band .link-more { color: #b9d1ef; }
.why-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.why-n { font-weight: 800; color: var(--blue); font-size: .9rem; }
.why-stack { display: grid; gap: 14px; }

/* CTA box */
.cta-box { display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; background: var(--blue-tint); border: 1px solid #c9d9ee; border-radius: var(--radius); padding: 22px 24px; margin: 8px 0 36px; }
.cta-box h2 { font-size: 1.2rem; margin-bottom: .25em; }
.cta-box p { margin: 0; color: #3b4652; max-width: 520px; }
.cta-phones { display: flex; flex-direction: column; gap: 8px; }

/* Unit / project detail */
.unit-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 32px; }
.unit-price-box { display: flex; flex-direction: column; }
.unit-price { font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.15; }
.fp-figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.fp-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.fp { width: 100%; height: auto; max-width: 440px; margin: 0 auto; display: block; }
.fp text { fill: var(--navy); font-family: var(--font); font-weight: 600; }
.fp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 8px; }
.fp-grid .fp-figure { padding: 12px; }
.spec-table th { width: 40%; color: var(--muted); font-weight: 500; background: var(--bg-alt); }
.spec-table { border: 1px solid var(--line); }
.context-card { display: grid; grid-template-columns: 220px 1fr; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.context-card img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; border-radius: 4px; background: #dfe6ef; }
.context-card p { margin-bottom: .4em; }
.gallery { margin-bottom: 22px; }
.gallery-main { aspect-ratio: 16 / 9; background: #dfe6ef; border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; cursor: pointer; background: #dfe6ef; flex: none; width: 112px; height: 72px; overflow: hidden; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { padding: 12px 16px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); }
.lead-p { font-size: 1.05rem; }
.map-embed { aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-embed-sm { aspect-ratio: 16 / 10; margin-top: 14px; }

/* Construction */
.cons-list { display: grid; gap: 22px; margin-top: 28px; }
.cons-item { display: grid; grid-template-columns: 280px 1fr; gap: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cons-item img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; background: #dfe6ef; }
.cons-body { padding: 18px 20px 20px 0; }
.cons-body h2 { margin-bottom: .1em; }
.cons-body h2 a { color: var(--navy); }
.milestones { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: ms; }
.milestones li { font-size: .8rem; padding-top: 10px; border-top: 4px solid var(--line); color: var(--muted); }
.milestones li.done { border-top-color: var(--ok); color: var(--ink); }
.milestones li.current { border-top-color: var(--warn); color: var(--ink); font-weight: 600; }
.cons-stats { margin-bottom: 12px; }
.cons-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Content pages */
.article p { font-size: 1.05rem; max-width: 720px; }
.article-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; background: #dfe6ef; }
.model { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: m; }
.model li { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; counter-increment: m; }
.model li::before { content: counter(m); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: 10px; }
.model p { font-size: .9rem; margin: 0; color: var(--muted); }
.dept-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 36px; }
.dept-card { border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 24px; }
.dept-card .dept-title { font-size: 1.3rem; }
.dept-card .phones a { font-size: 1.25rem; }
.steps { padding-left: 1.2em; }
.steps li { margin-bottom: .5em; }
.sitemap ul { columns: 2; padding-left: 1.1em; margin-bottom: 24px; }

/* Footer */
.site-footer { background: #0e1f39; color: #b8c4d6; font-size: .93rem; }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 48px 0 36px; }
.footer-brand img { height: 64px; width: auto; mix-blend-mode: screen; margin-bottom: 14px; }
.footer-depts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.site-footer .dept-title { color: #fff; }
.site-footer .dept-for, .site-footer .muted { color: #8e9db3; }
.site-footer .phones a { color: #fff; }
.site-footer .phones .ico { color: #8fb6e6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #22385a; padding: 18px 0; font-size: .85rem; }
.footer-bottom ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-bottom a { color: #b8c4d6; }
.callbar { display: none; }

/* Cookie banner */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(19, 41, 75, .1); }
.cookie-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.cookie p { margin: 0; font-size: .92rem; }
.cookie-actions { display: flex; gap: 10px; flex: none; }

/* Auth modal */
.modal { border: 0; border-radius: 8px; padding: 28px; width: min(440px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal::backdrop { background: rgba(14, 31, 57, .55); }
.modal-x { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--muted); line-height: 1; padding: 4px 8px; }
.auth-form { display: grid; gap: 14px; margin-top: 10px; }
.auth-form > .linklike { justify-self: start; }
.fld-stack { display: grid; gap: 5px; font-size: .88rem; font-weight: 600; }
.check { display: flex; gap: 10px; font-size: .86rem; align-items: flex-start; }
.check input { margin-top: 3px; accent-color: var(--navy); }
.form-msg { margin: 0; font-size: .88rem; color: var(--ok); min-height: 1em; }
.form-msg.is-error { color: #b3261e; }
.auth-switch { font-size: .9rem; margin: 16px 0 0; text-align: center; }
.auth-demo { font-size: .78rem; color: var(--muted); margin: 14px 0 0; text-align: center; border-top: 1px solid var(--line-2); padding-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: #fff; z-index: 70; padding: 80px 16px 24px; box-shadow: -10px 0 30px rgba(0, 0, 0, .15); transform: translateX(105%); visibility: hidden; transition: transform .2s, visibility .2s; overflow: auto; }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); }
  .header-tools { margin-left: auto; }
  .burger { display: block; position: relative; z-index: 80; }
  .sb-main { grid-template-columns: 1fr 1fr !important; }
  .fld-submit .btn { width: 100%; }
}
@media (max-width: 1024px) {
  .layout.has-side { grid-template-columns: 1fr; }
  .sidebar-in { position: static; max-height: none; grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meeting { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .sb-adv { grid-template-columns: 1fr 1fr; }
  .tb-lead { display: none; }
}
/* Filter drawer for listing pages */
@media (max-width: 900px) {
  .filters-wrap { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); background: #fff; z-index: 90; transform: translateX(105%); visibility: hidden; transition: transform .2s, visibility .2s; overflow: auto; }
  .drawer-open .filters-wrap { transform: none; visibility: visible; }
  .drawer-open .drawer-backdrop { display: block; position: fixed; inset: 0; background: rgba(14, 31, 57, .5); z-index: 85; }
  .filters-wrap .searchbar { border: 0; box-shadow: none; padding: 0 20px 90px; border-radius: 0; }
  .filters-wrap .sb-head-mobile { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; z-index: 2; }
  .filters-wrap .sb-head-mobile h2 { margin: 0; }
  .filters-wrap .sb-foot-mobile { display: block; position: fixed; bottom: 0; right: 0; width: min(420px, 100%); padding: 12px 20px; background: #fff; border-top: 1px solid var(--line); }
  .filters-wrap .sb-main, .filters-wrap .sb-adv { grid-template-columns: 1fr !important; }
  .filters-wrap .sb-adv .fld-wide { grid-column: auto; }
  .filters-open { display: inline-flex; }
  .page-top .tabs { margin-bottom: 0; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .topbar { display: none; }
  .header-in { min-height: 62px; gap: 10px; }
  .logo img { height: 36px; }
  .login-btn span { display: none; }
  .lang button { padding: 6px 6px; }
  .hero { height: 520px; }
  .hero-overlay { background: linear-gradient(0deg, rgba(12, 26, 48, .9) 0%, rgba(12, 26, 48, .55) 60%, rgba(12, 26, 48, .25) 100%); align-items: flex-end; padding-bottom: 96px; }
  .hero-nav { display: none; }
  .hero-dots { bottom: 82px; }
  .home-search { margin-top: -56px; }
  .home-search-box { padding: 18px 16px 10px; }
  .sb-main, .sb-adv { grid-template-columns: 1fr !important; }
  .sb-adv .fld-wide { grid-column: auto; }
  .grid-2, .grid-3, .grid-4, .meeting-depts, .dept-cards, .footer-depts, .sidebar-in { grid-template-columns: 1fr; }
  .results-tools { margin-left: 0; width: 100%; }
  .view-toggle { display: none; }
  .sort-lbl { flex: 1; }
  .sort-lbl .select { flex: 1; }
  .ucards { grid-template-columns: 1fr; }
  .context-card, .cons-item { grid-template-columns: 1fr; }
  .cons-body { padding: 0 16px 18px; }
  .milestones { grid-template-columns: 1fr 1fr; }
  .model { grid-template-columns: 1fr 1fr; }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cookie-in { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
  .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); }
  body { padding-bottom: 68px; }
  .sitemap ul { columns: 1; }
  .unit-top .btn { width: 100%; }
  .cta-phones { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Compact unit table so every column (incl. CTA) fits beside the sidebar */
.units-table th, .units-table td { padding: 9px 8px; }
.units-table { font-size: .88rem; }
.units-table td:first-child { white-space: nowrap; }
.units-table td:nth-child(2) { min-width: 110px; }
@media (max-width: 760px) {
  .ucard-link { display: grid; grid-template-columns: 96px 1fr; column-gap: 14px; }
  .ucard-top { grid-column: 1 / -1; }
  .ucard-plan { grid-row: span 5; padding: 6px; margin: 0; align-self: start; }
  .callbar .btn { font-size: .9rem; padding: .75em .8em; }
}

/* Real floor plan images (Horizon) */
.fp-real { padding: 10px; }
.fp-real img { display: block; max-width: 100%; max-height: 380px; width: auto; height: auto; margin: 0 auto; border-radius: 4px; }
.fp-real a { display: block; cursor: zoom-in; }
@media (max-width: 640px) { .fp-real img { max-height: 300px; } }
/* Plan zoom (lightbox) */
.zoom-modal { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: transparent; }
.zoom-modal::backdrop { background: rgba(14, 31, 57, .85); }
.zoom-body { width: 100%; height: 100%; overflow: auto; display: flex; padding: 48px 16px 16px; box-sizing: border-box; }
.zoom-body img { margin: auto; max-width: 100%; max-height: 100%; background: #fff; border-radius: 4px; cursor: zoom-in; }
.zoom-modal.is-full .zoom-body { display: block; }
.zoom-modal.is-full .zoom-body img { display: block; max-width: none; max-height: none; width: max(200%, 1400px); cursor: zoom-out; }
.zoom-x { position: fixed; right: 14px; top: 8px; z-index: 2; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 4px 10px; }
.ucard-plan img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; background: #fff; }
.floor-pin-wrap { position: relative; }
.floor-pin-wrap img { width: 100%; height: auto; display: block; }
.floor-pin { position: absolute; width: 0; height: 0; }
.floor-pin::before { content: ''; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 4px solid #c0392b; background: rgba(192, 57, 43, .18); }
.floor-pin span { position: absolute; left: 26px; top: -13px; background: #c0392b; color: #fff; font-weight: 700; font-size: .78rem; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }

/* Floor plan viewer (project page) */
.unit-top-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fpv-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.fpv-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .88rem; font-weight: 600; color: var(--navy); cursor: pointer; white-space: nowrap; }
.fpv-tabs button:hover { border-color: #b7c3d1; }
.fpv-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.fpv-tabs button[aria-selected="true"] .badge-count { background: #fff; color: var(--navy); }
.fpv-stage { padding: 10px; }
.fpv-stage figcaption a { font-weight: 600; }
a.floor-pin.is-link { z-index: 2; }
a.floor-pin.is-link::before { width: 30px; height: 30px; left: -15px; top: -15px; border-width: 3px; transition: transform .12s; }
a.floor-pin.is-link span { left: 18px; top: -11px; font-size: .72rem; padding: 1px 5px; }
/* Small markers for parking spaces / storage (many per plan); label shows on hover */
.floor-pin.is-small::before { width: 22px; height: 22px; left: -11px; top: -11px; border-width: 3px; }
.floor-pin.is-small span { left: 14px; top: -10px; }
a.floor-pin.is-link.is-small::before { width: 14px; height: 14px; left: -7px; top: -7px; border-width: 2px; background: rgba(192, 57, 43, .45); }
a.floor-pin.is-link.is-small span { display: none; }
a.floor-pin.is-link.is-small:hover span, a.floor-pin.is-link.is-small:focus-visible span { display: block; }
a.floor-pin.is-link:hover, a.floor-pin.is-link:focus-visible { z-index: 3; text-decoration: none; }
a.floor-pin.is-link:hover::before, a.floor-pin.is-link:focus-visible::before { transform: scale(1.25); background: rgba(192, 57, 43, .35); }
.fpv-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.fpv-list a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: .88rem; }
.fpv-list a:hover { border-color: var(--blue); text-decoration: none; }
.fpv-list strong { color: var(--navy); grid-row: span 2; align-self: center; font-size: 1rem; }
.fpv-list b { color: var(--navy); }
@media (max-width: 760px) {
  a.floor-pin.is-link span { display: none; }
  .unit-top-actions { width: 100%; }
  .unit-top-actions .btn { flex: 1; }
}
/* Let the main column shrink so the horizontally-scrolling floor tabs never widen the page */
.layout .content, .layout .sidebar { min-width: 0; }
@media (max-width: 1024px) { .layout.has-side { grid-template-columns: minmax(0, 1fr); } }
/* Mobile call bar: never wider than the screen */
.callbar { overflow: hidden; }
.callbar .btn { white-space: normal; min-width: 0; max-width: 100%; text-align: center; }
/* Wide tables scroll inside their box instead of widening the mobile page */
.table-wrap { contain: paint; max-width: 100%; }

/* Contact page: both office cards equal height, maps aligned along the bottom */
.dept-card { display: flex; flex-direction: column; }
.dept-card > .dept { margin-bottom: 14px; }
.dept-card > .map-embed { margin-top: auto; }

/* About page slogan */
.about-tagline { margin-top: 1.5em; font-size: 1.35rem; font-weight: 700; font-style: italic; color: var(--navy, #13294b); }
