/* UniHomes — concept refresh. Mobile-first, brand colours from unihomes.co.uk. */
:root {
  --blue: #1ba2dc;
  --blue-600: #0090c8;
  --blue-700: #0077a8;
  --blue-800: #0b5d84;
  --navy: #0d2a3d;
  --blue-50: #f1f9fd;
  --blue-100: #e3f3fb;
  --blue-150: #d2ecf8;
  --orange: #f48831;
  --orange-600: #e2731b;
  --orange-50: #fff4ea;
  --green: #12a46a;
  --green-50: #e8f7f0;
  --ink: #23292c;
  --text: #3b4143;
  --muted: #5f6b73;
  --line: #e3e9ee;
  --line-2: #d3dde4;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 42, 61, 0.06), 0 1px 3px rgba(13, 42, 61, 0.06);
  --shadow: 0 2px 6px rgba(13, 42, 61, 0.06), 0 8px 24px rgba(13, 42, 61, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 42, 61, 0.16);
  --wrap: 1240px;
  --gutter: 16px;
  --header-h: 64px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue-700); text-underline-offset: 2px; }
a:hover { color: var(--blue-800); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.9rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.socials .i, .i[fill] { stroke: none; fill: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.hide-sm { display: none !important; }
@media (min-width: 900px) { .hide-sm { display: inline-flex !important; } .only-sm { display: none !important; } }

/* ---------------------------------------------------------------- buttons */
.btn { --b: var(--blue); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 0.975rem; text-decoration: none; line-height: 1.1; white-space: nowrap; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 0.9rem; }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(244, 136, 49, 0.3); }
.btn-accent:hover { background: var(--orange-600); color: #fff; }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-700); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--blue-50); color: var(--blue-700); }
.btn-soft { background: var(--blue-50); color: var(--blue-700); }
.btn-soft:hover { background: var(--blue-100); color: var(--blue-800); }
.btn-white { background: #fff; color: var(--blue-700); }
.btn-white:hover { background: var(--blue-50); color: var(--blue-800); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--blue-50); }
.icon-btn .i { width: 24px; height: 24px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--blue-700); }
.link-arrow .i { transition: transform 0.15s; }
.link-arrow:hover .i { transform: translateX(3px); }

/* -------------------------------------------------------------- poc bar */
.poc-bar { background: var(--navy); color: #cfe6f3; font-size: 0.8rem; }
.poc-bar .wrap { display: flex; align-items: center; gap: 12px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.poc-bar span { flex: 1; min-width: 0; }
.poc-bar strong { color: #fff; }
.poc-bar .i { color: var(--orange); margin-right: 4px; }
.poc-bar a { color: #fff; white-space: nowrap; font-weight: 600; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.poc-bar a .i { color: #fff; width: 14px; height: 14px; }
.poc-close { border: 0; background: transparent; color: #9fc3d6; padding: 4px; display: grid; place-items: center; border-radius: 6px; }
.poc-close .i { margin: 0; color: inherit; }
@media (max-width: 599px) { .poc-bar span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .poc-bar a { display: none; } }

/* --------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(13, 42, 61, 0.06); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 128px; height: auto; }
@media (min-width: 768px) { .brand img { width: 150px; } }
.nav-desktop { display: none; margin-left: 12px; flex: 1; }
.nav-desktop > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-btn { display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 12px; border-radius: 10px; border: 0; background: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: none; }
.nav-btn:hover, .nav-btn[aria-expanded='true'], .nav-btn.active { background: var(--blue-50); color: var(--blue-700); }
.nav-btn .caret { width: 16px; height: 16px; transition: transform 0.15s; }
.nav-btn[aria-expanded='true'] .caret { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; }
.nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.nav-menu a:hover { background: var(--blue-50); }
.nm-label { display: block; font-weight: 700; color: var(--ink); }
.nm-desc { display: block; font-size: 0.85rem; color: var(--muted); }
.tag { font-style: normal; font-size: 0.7rem; background: var(--orange); color: #fff; border-radius: 999px; padding: 2px 7px; margin-left: 4px; vertical-align: 2px; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (min-width: 1080px) { .nav-desktop { display: block; } .nav-toggle { display: none; } }

/* mobile drawer */
.mnav { position: fixed; inset: 0; z-index: 80; background: rgba(13, 42, 61, 0.45); }
.mnav-panel { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; padding: 12px var(--gutter) calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; animation: slideIn 0.22s ease-out; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.mnav-head { display: flex; justify-content: space-between; align-items: center; height: 52px; margin-bottom: 8px; }
.mnav-group { border-bottom: 1px solid var(--line); }
.mnav-group summary, .mnav-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; list-style: none; cursor: pointer; }
.mnav-group summary::-webkit-details-marker { display: none; }
.mnav-group[open] summary .caret { transform: rotate(180deg); }
.mnav-group ul { list-style: none; margin: 0 0 12px; padding: 0; }
.mnav-group li a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.mnav-group li a:hover { background: var(--blue-50); }
.mnav-actions { display: grid; gap: 10px; margin-top: 20px; }
body.nav-open { overflow: hidden; }

/* ----------------------------------------------------------------- search */
.search { position: relative; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 10px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.search-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.search-tabs::-webkit-scrollbar { display: none; }
.search-tab { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.search-tab[aria-selected='true'] { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }
.search-row { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field { min-width: 0; }
.field { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 58px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27, 162, 220, 0.15); }
.field label { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; display: flex; align-items: center; gap: 6px; }
.field label .i { width: 14px; height: 14px; color: var(--blue); }
.field input, .field select { border: 0; outline: 0; background: transparent; padding: 2px 0 0; font-size: 1rem; font-weight: 600; color: var(--ink); width: 100%; min-width: 0; appearance: none; -webkit-appearance: none; }
.field select { padding-right: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235f6b73' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center; cursor: pointer; }
.field input::placeholder { color: #8a979f; font-weight: 500; }
.field-loc { grid-column: 1 / -1; }
.search-go { grid-column: 1 / -1; min-height: 56px; border-radius: var(--radius); font-size: 1.05rem; }
.field-error { border-color: #d64545 !important; }
@media (min-width: 860px) {
  .search { padding: 12px; }
  .search-row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0; border: 1.5px solid var(--line); border-radius: 18px; }
  .search-row .field { border: 0; border-radius: 0; border-right: 1px solid var(--line); box-shadow: none; }
  .search-row .field:focus-within { background: var(--blue-50); }
  .search-row .field:first-child { border-radius: 16px 0 0 16px; }
  .field-loc { grid-column: auto; }
  .search-go { grid-column: auto; margin: 6px; min-height: 52px; padding: 0 28px; border-radius: 14px; }
}
/* autocomplete */
.ac-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: min(380px, 60vh); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); margin: 0; padding: 6px; list-style: none; }
.ac-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.ac-list li[aria-selected='true'], .ac-list li:hover { background: var(--blue-50); }
.ac-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-700); flex: none; }
.ac-ico .i { width: 18px; height: 18px; }
.ac-main { flex: 1; min-width: 0; }
.ac-name { font-weight: 700; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-name mark { background: none; color: var(--blue-700); }
.ac-sub { font-size: 0.82rem; color: var(--muted); }
.ac-count { font-size: 0.8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ac-head { font-size: 0.72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 12px 4px !important; cursor: default !important; background: none !important; }

/* ------------------------------------------------------------------ home */
.hero { position: relative; background: linear-gradient(160deg, var(--blue) 0%, var(--blue-600) 60%, var(--blue-700) 100%); color: #fff; padding: 28px 0 36px; isolation: isolate; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.12; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='white' stroke-width='3' stroke-linejoin='round'%3E%3Cpath d='M20 52 40 36l20 16v24H20z'/%3E%3Cpath d='M78 98l14-11 14 11v16H78z' transform='translate(-4 -14)'/%3E%3Ccircle cx='96' cy='30' r='6'/%3E%3C/svg%3E"); background-size: 180px; }
.hero h1 { color: #fff; margin-bottom: 6px; }
.hero-sub { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); color: #e4f5fd; margin-bottom: 20px; }
.hero-sub strong { color: #fff; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 0.9rem; color: #e4f5fd; }
.hero-stats > span { display: inline-flex; gap: 6px; align-items: center; }
.hero-stats .i { color: #fff; }
.hero-stats .stars .i { color: inherit; }
@media (min-width: 860px) { .hero { padding: 56px 0 64px; } .hero-sub { margin-bottom: 28px; } }

.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.quick a:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }
.quick a small { opacity: 0.8; font-weight: 500; }
.quick-label { font-size: 0.85rem; color: #d5eefa; align-self: center; margin-right: 2px; }

.section { padding: 40px 0; }
.section-tight { padding: 28px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-head .link-arrow { white-space: nowrap; }
@media (min-width: 860px) { .section { padding: 56px 0; } }

.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 2px var(--gutter); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; }
.tab:hover { border-color: var(--blue); }
.tab[aria-selected='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* horizontal rail of cards */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding: 0 var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 48px) / 4); margin: 0; padding: 4px 0 12px; scroll-padding: 0; } }
.rail-wrap { position: relative; }
.rail-btn { display: none; position: absolute; top: 34%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); color: var(--ink); place-items: center; }
.rail-btn.prev { left: -18px; } .rail-btn.next { right: -18px; }
@media (min-width: 1100px) and (hover: hover) { .rail-btn { display: grid; } .rail-btn:disabled { opacity: 0; pointer-events: none; } }

/* city tiles */
.city-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .city-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .city-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
.city { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--navy)); }
.city img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.city:hover img { transform: scale(1.05); }
.city::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(5, 25, 38, 0.82)); }
.city-label { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; }
.city-name { display: block; font-weight: 800; font-size: 1.05rem; line-height: 1.2; color: #fff; }
.city-count { font-size: 0.82rem; color: #d9eef8; }
.city:hover { color: #fff; }

.uni-list { columns: 1; column-gap: 24px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .uni-list { columns: 2; } }
@media (min-width: 1000px) { .uni-list { columns: 3; } }
.uni-list li { break-inside: avoid; }
.uni-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.uni-list a:hover { color: var(--blue-700); }
.uni-list small { color: var(--muted); font-weight: 600; white-space: nowrap; }

.az { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .az { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .az { grid-template-columns: repeat(6, 1fr); } }
.az a { display: block; padding: 6px 0; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.az a:hover { color: var(--blue-700); text-decoration: underline; }

/* bills strip */
.bills { display: grid; gap: 18px; align-items: center; background: var(--navy); color: #d3e7f2; border-radius: var(--radius-lg); padding: 24px; }
.bills h2 { color: #fff; margin-bottom: 4px; }
.bills p { margin: 0; }
.bills-icons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.bills-icons li { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 10px 12px; color: #fff; font-weight: 600; font-size: 0.95rem; }
.bills-icons .i { color: var(--orange); width: 22px; height: 22px; }
@media (min-width: 900px) { .bills { grid-template-columns: 1.2fr 2fr auto; padding: 28px 32px; } .bills-icons { grid-template-columns: repeat(4, 1fr); } }

/* steps */
.steps { display: grid; gap: 14px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding: 18px 18px 18px 64px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin: 4px 0 4px; font-size: 1rem; }
.steps p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* reviews */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 340px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; }
.reviews::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.review h3 { font-size: 1rem; margin: 0; }
.review p { margin: 0; font-size: 0.93rem; color: var(--text); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review footer { margin-top: auto; font-size: 0.82rem; color: var(--muted); }
.stars { display: inline-flex !important; gap: 2px !important; vertical-align: middle; flex: none; }
.stars .star { display: grid; place-items: center; gap: 0; padding: 0; width: 20px; height: 20px; background: #dcdce6; color: #fff; border-radius: 2px; }
.stars .star.on { background: #00b67a; }
.stars .star .i { width: 13px; height: 13px; margin: 0; fill: #fff; stroke: none; vertical-align: 0; }
.tp-score { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tp-score strong { color: var(--ink); font-size: 1.1rem; }

.cta-band { display: grid; gap: 16px; align-items: center; padding: 26px; border-radius: var(--radius-lg); background: var(--blue-50); border: 1px solid var(--blue-150); }
.cta-band h2 { margin: 0 0 4px; font-size: 1.3rem; }
.cta-band p { margin: 0; color: var(--muted); }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; padding: 28px 32px; } }

/* ----------------------------------------------------------------- cards */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.card:hover { box-shadow: var(--shadow); border-color: transparent; }
.card-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card-link:focus-visible { outline-offset: -3px; }
.card-media { position: relative; z-index: 3; aspect-ratio: 4 / 3; cursor: pointer; background: var(--blue-50); overflow: hidden; }
.card-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.card-track::-webkit-scrollbar { display: none; }
.card-track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.card-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--blue); }
.card-noimg .i { width: 48px; height: 48px; opacity: 0.4; }
.card-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow-sm); color: var(--ink); display: grid; place-items: center; opacity: 0; transition: opacity 0.15s; }
.card-nav .i { width: 18px; height: 18px; }
.card-nav.prev { left: 10px; } .card-nav.next { right: 10px; }
.card:hover .card-nav, .card-nav:focus-visible { opacity: 1; }
@media (hover: none) { .card-nav { display: none; } }
.card-dots { position: absolute; z-index: 3; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.card-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); transition: all 0.2s; }
.card-dots i.on { background: #fff; width: 16px; border-radius: 3px; }
.card-badges { position: absolute; z-index: 3; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.badge-featured { background: var(--orange); color: #fff; }
.badge-new { background: var(--green); color: #fff; }
.card-save { position: absolute; z-index: 3; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow-sm); }
.card-save:hover { color: #e0465e; }
.card-save .i { width: 18px; height: 18px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; color: var(--ink); }
.card-price strong { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.card-from, .card-unit { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.pill-bills { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 0.74rem; font-weight: 700; color: var(--green); background: var(--green-50); padding: 3px 8px; border-radius: 999px; align-self: center; }
.pill-bills .i { width: 13px; height: 13px; stroke-width: 3; }
.card-title { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.card-addr { display: flex; gap: 4px; align-items: flex-start; margin: 0; font-size: 0.9rem; color: var(--muted); }
.card-addr .i { width: 16px; height: 16px; margin-top: 3px; color: var(--blue); }
.card-addr span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 10px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--text); font-weight: 600; }
.card-facts li { display: inline-flex; align-items: center; gap: 6px; }
.card-facts .i { width: 17px; height: 17px; color: var(--muted); }
.card-avail { color: var(--muted); font-weight: 500 !important; }
.card-incentive { display: flex; gap: 6px; align-items: center; margin: 6px 0 0; font-size: 0.82rem; font-weight: 700; color: var(--orange-600); }
.card-incentive .i { width: 15px; height: 15px; }
.card.skeleton .card-media, .card.skeleton .sk { background: linear-gradient(90deg, #eef3f6 25%, #f7fafb 50%, #eef3f6 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
.card.skeleton .sk { height: 14px; border-radius: 6px; margin: 6px 0; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- listing */
.results-head { padding-top: 18px; padding-bottom: 8px; }
.results-head h1 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.2rem); margin-bottom: 4px; }
.results-head .lede { color: var(--muted); margin: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 10px; padding: 0; font-size: 0.85rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 4px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-700); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.searchbar { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 10px 0; }
.searchbar .wrap { display: flex; gap: 8px; align-items: center; }
.sb-loc { flex: 1; min-width: 0; position: relative; }
.sb-loc input { width: 100%; height: 46px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 16px 0 42px; font-weight: 600; font-size: 0.97rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%231ba2dc' stroke-width='2.2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 16px center; color: var(--ink); }
.sb-loc input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27, 162, 220, 0.15); }
.filters { display: none; gap: 8px; }
.chip-select { position: relative; }
.chip-select select { height: 46px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 34px 0 16px; font-weight: 600; font-size: 0.92rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235f6b73' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; color: var(--ink); cursor: pointer; max-width: 190px; }
.chip-select select:focus { outline: none; border-color: var(--blue); }
.chip-select select.on { border-color: var(--blue); background-color: var(--blue-50); color: var(--blue-800); }
.filter-btn { position: relative; }
.filter-btn .count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 0.72rem; font-weight: 800; display: grid; place-items: center; }
@media (min-width: 1000px) { .filters { display: flex; } .filter-btn { display: none !important; } }
.view-toggle { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 3px; background: #fff; }
.view-toggle button { border: 0; background: transparent; height: 36px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 0.88rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.view-toggle button[aria-pressed='true'] { background: var(--navy); color: #fff; }
.view-toggle .i { width: 16px; height: 16px; }
@media (max-width: 599px) { .view-toggle span { display: none; } .view-toggle button { padding: 0 10px; } }

.results-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 0 12px; }
.results-count { font-weight: 700; color: var(--ink); margin: 0; }
.results-count small { font-weight: 500; color: var(--muted); }
.source { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.source::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #9aa7af; }
.source.is-live { background: var(--green-50); color: var(--green); }
.source.is-live::before { background: var(--green); box-shadow: 0 0 0 0 rgba(18, 164, 106, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(18, 164, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 164, 106, 0); } }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.af { display: inline-flex; align-items: center; gap: 4px; border: 0; background: var(--blue-50); color: var(--blue-800); border-radius: 999px; padding: 5px 10px; font-size: 0.82rem; font-weight: 700; }
.af .i { width: 14px; height: 14px; }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 0 8px; }
.load-more p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.progress { width: 220px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--blue); }
.empty { text-align: center; padding: 48px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); }
.empty .i { width: 40px; height: 40px; color: var(--blue); }
.empty h2 { font-size: 1.2rem; margin: 10px 0 4px; }

.split { display: block; }
.map-pane { display: none; }
.view-map .map-pane { display: block; }
.map { width: 100%; height: calc(100vh - var(--header-h) - 160px); min-height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--blue-50); }
@media (max-width: 999px) { .view-map .list-pane { display: none; } }
@media (min-width: 1000px) {
  .view-map .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .view-map .list-pane .grid { grid-template-columns: repeat(2, 1fr); }
  .view-map .map-pane { position: sticky; top: calc(var(--header-h) + 80px); align-self: start; }
  .view-map .map { height: calc(100vh - var(--header-h) - 110px); }
}
.leaflet-popup-content { margin: 0 !important; width: 240px !important; }
.leaflet-popup-content-wrapper { padding: 0 !important; border-radius: 12px !important; overflow: hidden; }
.map-pop a { display: block; text-decoration: none; color: var(--ink); }
.map-pop img { width: 100%; height: 130px; object-fit: cover; }
.map-pop div { padding: 10px 12px; font-family: var(--font); }
.map-pop strong { font-size: 1.05rem; }
.map-pop span { display: block; font-size: 0.82rem; color: var(--muted); }
.pin { background: var(--navy); color: #fff; font: 800 12px/1 var(--font); padding: 6px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); border: 2px solid #fff; transform: translate(-50%, -50%); position: absolute; }
.pin-cluster { background: var(--blue); font-size: 12.5px; padding: 8px 11px; }
.pin.active, .pin:hover { background: var(--orange); z-index: 1000; }

.seo-copy { max-width: 820px; }
.seo-copy.collapsed { max-height: 280px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.subnav a { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.9rem; background: #fff; }
.subnav a:hover { border-color: var(--blue); color: var(--blue-700); }
.subnav small { margin-left: 6px; color: var(--muted); font-weight: 600; }

/* bottom sheet (mobile filters) */
.sheet { position: fixed; inset: 0; z-index: 90; background: rgba(13, 42, 61, 0.45); display: flex; align-items: flex-end; }
.sheet-panel { width: 100%; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 8px var(--gutter) calc(16px + env(safe-area-inset-bottom)); animation: up 0.22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 6px auto 10px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sheet-head h2 { font-size: 1.2rem; margin: 0; }
.sheet fieldset { border: 0; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--line); }
.sheet legend { font-weight: 800; color: var(--ink); margin-bottom: 10px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; min-width: 48px; justify-content: center; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); font-weight: 700; font-size: 0.92rem; cursor: pointer; }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.sheet-foot { position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); display: flex; gap: 10px; background: #fff; padding: 14px 0 0; }
.sheet-foot .btn { flex: 1; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type='range'] { flex: 1; accent-color: var(--blue); }
.range-row output { min-width: 74px; text-align: right; font-weight: 800; color: var(--ink); }

/* -------------------------------------------------------------- property */
.gallery { position: relative; display: grid; gap: 6px; margin: 0 calc(-1 * var(--gutter)); }
.gallery-main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-50); }
.gallery-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track button { flex: none; width: 100%; height: 100%; padding: 0; border: 0; scroll-snap-align: start; background: none; cursor: zoom-in; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(13, 42, 61, 0.78); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; border: 0; }
.gallery-thumbs { display: none; }
@media (min-width: 800px) {
  .gallery { margin: 0; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(340px, 42vw, 520px); border-radius: var(--radius-lg); overflow: hidden; }
  .gallery-main { grid-row: 1 / 3; aspect-ratio: auto; }
  .gallery-track { overflow: hidden; }
  .gallery-thumbs { display: contents; }
  .gallery-thumbs button { padding: 0; border: 0; background: var(--blue-50); overflow: hidden; cursor: zoom-in; }
  .gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s, opacity 0.2s; }
  .gallery-thumbs button:hover img { transform: scale(1.04); }
  .gallery.few { grid-template-columns: 1fr; grid-template-rows: 1fr; }
}
.prop-layout { display: grid; gap: 28px; padding: 20px 0 48px; }
@media (min-width: 1000px) { .prop-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding-top: 28px; } }
.prop-head h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: 6px; }
.prop-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-weight: 500; margin: 0 0 16px; }
.prop-sub span { display: inline-flex; gap: 6px; align-items: center; }
.prop-sub .i { color: var(--blue); width: 17px; height: 17px; }
.prop-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; color: var(--muted); font-weight: 600; }
.prop-price strong { font-size: 1.7rem; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; }
.prop-price .pill-bills { margin-left: 4px; }
@media (min-width: 900px) { .prop-price.only-sm { display: none !important; } }
.keyfacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; list-style: none; padding: 0; margin: 0 0 8px; }
@media (min-width: 640px) { .keyfacts { grid-template-columns: repeat(4, 1fr); } }
.keyfacts li { padding: 14px; border-radius: var(--radius); background: var(--bg-soft); }
.keyfacts .i { color: var(--blue); width: 22px; height: 22px; margin-bottom: 6px; display: block; }
.keyfacts strong { display: block; color: var(--ink); font-size: 1.05rem; }
.keyfacts span { font-size: 0.82rem; color: var(--muted); }
.prop-section { padding: 24px 0; border-top: 1px solid var(--line); }
.prop-section h2 { font-size: 1.3rem; margin-bottom: 14px; }
.desc { white-space: pre-line; }
.desc.collapsed { max-height: 220px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.features { display: grid; grid-template-columns: 1fr; gap: 8px 20px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 560px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { display: flex; gap: 10px; align-items: flex-start; }
.features .i { color: var(--green); margin-top: 3px; stroke-width: 3; width: 16px; height: 16px; }
.rooms { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rooms th, .rooms td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.rooms th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.rooms td strong { color: var(--ink); }
.status { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: var(--green-50); color: var(--green); }
.status.let { background: var(--bg-soft); color: var(--muted); }
.utilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .utilities { grid-template-columns: repeat(3, 1fr); } }
.utilities li { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--ink); }
.utilities .ub { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-600); flex: none; }
.utilities .ub .i { width: 19px; height: 19px; }
.prop-map { height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--blue-50); }
.price-box { position: sticky; top: calc(var(--header-h) + 16px); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); background: #fff; }
.price-box .big { font-size: 2.1rem; font-weight: 900; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.price-box .per { color: var(--muted); font-weight: 600; }
.price-box .pill-bills { margin: 10px 0 0; font-size: 0.82rem; padding: 5px 10px; }
.price-box dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 18px 0; font-size: 0.93rem; }
.price-box dt { color: var(--muted); }
.price-box dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.price-box .btn { width: 100%; margin-top: 10px; }
.price-box .fine { font-size: 0.8rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.mobile-cta { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(13, 42, 61, 0.08); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.mobile-cta .mc-price strong { display: block; font-size: 1.25rem; color: var(--ink); font-weight: 800; line-height: 1.1; }
.mobile-cta .mc-price span { font-size: 0.8rem; color: var(--muted); }
.mobile-cta .btn { flex: 1; }
@media (min-width: 1000px) { .mobile-cta { display: none; } }
body.has-mobile-cta { padding-bottom: 80px; }
@media (min-width: 1000px) { body.has-mobile-cta { padding-bottom: 0; } }
.aside-stack { display: grid; gap: 16px; align-content: start; }
@media (max-width: 999px) { .price-box { position: static; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 15, 22, 0.96); display: flex; flex-direction: column; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: #fff; font-weight: 700; }
.lb-top .icon-btn { color: #fff; }
.lb-top .icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.lb-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track figure { flex: none; width: 100%; height: 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; padding: 0 12px 20px; }
.lb-track img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; }
.lb-nav { position: absolute; top: 50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; display: grid; place-items: center; }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
@media (hover: none) { .lb-nav { display: none; } }

/* --------------------------------------------------------------- content */
.page-hero { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-700) 100%); color: #fff; padding: 36px 0 40px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; margin-bottom: 8px; max-width: 900px; }
.page-hero p { color: #e4f5fd; max-width: 720px; font-size: 1.08rem; margin: 0; }
.page-hero .crumbs a, .page-hero .crumbs { color: #cfeaf7; }
.page-hero .crumbs [aria-current] { color: #fff; }
.page-hero.has-img { padding: 64px 0 52px; }
.page-hero.has-img img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 30, 45, 0.25), rgba(5, 30, 45, 0.8)); z-index: 0; }
.page-hero .wrap { position: relative; z-index: 1; }
@media (min-width: 860px) { .page-hero { padding: 56px 0 60px; } .page-hero.has-img { padding: 120px 0 64px; } }
.prose { max-width: 760px; font-size: 1.04rem; line-height: 1.75; color: var(--text); }
.prose h2 { margin: 1.8em 0 0.6em; font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem); }
.prose h3 { margin: 1.6em 0 0.5em; font-size: 1.2rem; }
.prose h4 { margin: 1.4em 0 0.4em; font-size: 1.05rem; }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: var(--radius); margin: 1.5em auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose li p { margin: 0; }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; border-left: 4px solid var(--blue); background: var(--blue-50); border-radius: 0 var(--radius) var(--radius) 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.embed { position: relative; margin: 1.5em 0; }
.embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.embed iframe[src*='instagram'], .embed iframe[src*='tiktok'] { aspect-ratio: auto; height: 640px; max-width: 540px; display: block; margin: 0 auto; }
.content-layout { display: grid; gap: 40px; padding: 32px 0 56px; }
@media (min-width: 1000px) { .content-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 44px; } }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.side-card h2 { font-size: 1.05rem; margin-bottom: 12px; }
.side-card + .side-card { margin-top: 16px; }
.side-sticky { position: sticky; top: calc(var(--header-h) + 16px); }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.93rem; }
.side-links li:last-child a { border: 0; }
.side-links a:hover { color: var(--blue-700); }

/* blog */
.post-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: box-shadow 0.2s; }
.post:hover { box-shadow: var(--shadow); }
.post-img { aspect-ratio: 16 / 9; background: var(--blue-50); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post:hover .post-img img { transform: scale(1.04); }
.post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-meta { font-size: 0.8rem; color: var(--muted); font-weight: 600; display: flex; gap: 10px; }
.post h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a::after { content: ''; position: absolute; inset: 0; }
.post p { margin: 0; font-size: 0.92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-featured { display: grid; }
@media (min-width: 860px) { .post-featured { grid-template-columns: 1.3fr 1fr; } .post-featured .post-img { aspect-ratio: auto; min-height: 340px; } .post-featured .post-body { padding: 32px; justify-content: center; } .post-featured h3 { font-size: 1.6rem; } }
.blog-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.blog-search { flex: 1; min-width: 220px; height: 46px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 16px; font-weight: 500; }
.blog-search:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27, 162, 220, 0.15); }
.article-head { padding-top: 28px; }
.article-head h1 { max-width: 880px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-hero { margin: 24px 0 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 7; background: var(--blue-50); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .article-hero { margin: 18px calc(-1 * var(--gutter)) 0; border-radius: 0; aspect-ratio: 16 / 10; } }

/* city guide */
.guide-nav { position: sticky; top: var(--header-h); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.guide-nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; list-style: none; margin: 0; padding: 8px 0; }
.guide-nav ul::-webkit-scrollbar { display: none; }
.guide-nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.guide-nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.quote { margin: 0; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--navy); color: #e3f1f8; font-size: 1.05rem; }
.quote blockquote { margin: 0; padding: 0; border: 0; background: none; color: inherit; }
.quote p { margin: 0 0 10px; }
.quote::before { content: '“'; display: block; font-size: 3.4rem; line-height: 0.6; color: var(--orange); font-weight: 900; margin-bottom: 6px; }
.guide-copy .prose ul:has(> li > p + p) { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: k; }
.guide-copy .prose ul:has(> li > p + p) > li { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.guide-copy .prose ul:has(> li > p + p) > li > p:first-child { display: none; }
.guide-copy .prose ul:has(> li > p + p) > li > p:nth-child(2) { font-weight: 800; color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.guide-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .guide-index { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .guide-index { grid-template-columns: repeat(6, 1fr); } }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform 0.2s; color: var(--muted); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq .faq-a { padding: 0 0 16px; color: var(--text); }

/* feature tiles (marketing pages) */
.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles.three { grid-template-columns: repeat(3, 1fr); } .tiles.four { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.tile .ti { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-700); margin-bottom: 12px; }
.tile .ti .i { width: 22px; height: 22px; }
.tile h3 { margin-bottom: 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.stat { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 380px) { .stat { padding: 12px; } .stat strong { font-size: 1.45rem; } }
@media (min-width: 800px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius); padding: 16px; }
.stat strong { display: block; font-size: 1.8rem; color: #fff; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { font-size: 0.88rem; color: #dff2fb; }
.bar-chart { display: grid; gap: 10px; }
.bar-chart div { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; font-size: 0.92rem; font-weight: 600; }
.bar-chart i { display: block; height: 12px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.bar-chart i b { position: absolute; inset: 0 auto 0 0; background: var(--blue); border-radius: 6px; }
.bar-chart .us i b { background: var(--orange); }
.bar-chart .us { color: var(--ink); }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: #b9d3e1; margin-top: 0; padding: 44px 0 calc(24px + env(safe-area-inset-bottom)); font-size: 0.93rem; }
.site-footer a { color: #dcecf5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; gap: 32px; }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 320px 1fr; gap: 56px; } }
.footer-brand p { margin: 16px 0; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
@media (min-width: 760px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-col h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tp-mini { display: inline-flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.tp-mini span { font-size: 0.85rem; color: #b9d3e1; }
.tp-mini strong { color: #fff; }
.socials { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.socials a:hover { background: var(--blue); }
.footer-alerts { display: grid; gap: 14px; align-items: center; margin: 36px 0 0; padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); }
.footer-alerts h2 { color: #fff; font-size: 1.15rem; margin: 0 0 2px; }
.footer-alerts p { margin: 0; }
.footer-alerts .btn { color: #fff; }
.footer-alerts .btn:hover { text-decoration: none; }
@media (min-width: 760px) { .footer-alerts { grid-template-columns: 1fr auto; padding: 24px 28px; } }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.82rem; }
.footer-base p { margin: 0; }

/* misc */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--orange-50); color: #7a3d0c; border: 1px solid #fbd7b5; font-size: 0.93rem; }
.notice .i { color: var(--orange-600); margin-top: 2px; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 8px; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* overflow guards for narrow phones */
@media (max-width: 759px) { .footer-alerts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 799px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 899px) { .bills { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 999px) { .prop-layout, .content-layout, .footer-top { grid-template-columns: minmax(0, 1fr); } }
.prop-layout > *, .content-layout > *, .cta-band > *, .bills > * { min-width: 0; }
@media (max-width: 599px) { .bills .btn, .cta-band .btn, .footer-alerts .btn { white-space: normal; text-align: center; width: 100%; } .cta-band > div:last-child { width: 100%; } }
.prose { overflow-wrap: anywhere; }
.prose table { max-width: 100%; }
@media (max-width: 380px) { .bills-icons li, .utilities li { padding: 10px; gap: 8px; font-size: 0.88rem; } .utilities .ub { width: 30px; height: 30px; } .bills { padding: 20px 16px; } }
.bills-icons li, .utilities li { min-width: 0; overflow-wrap: anywhere; }
