/* ADVTECH Real Estate Brokers — homepage preview.
   Layout: full-width sections on a warm off-white page, rounded media cards,
   one dark band (communities) and one deep-teal band (valuation). */
:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #121311;
  --muted: #6b6a64;
  --line: #e3e0d8;
  --sand: #ece5d8;
  --night: #111413;
  --teal: #123c46;
  --gold: #b08a52;
  --display: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --body: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
  --wrap: 1344px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: max(24px, env(safe-area-inset-left, 0px)) max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) { .wrap { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: 120px 0; }
@media (max-width: 640px) { .section { padding-block: 80px 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }
.on-dark .eyebrow::before { background: #fff; }
.h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; margin-top: 18px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 46ch; margin-top: 20px; line-height: 1.55; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; padding: 13px 20px; font-weight: 500; border: 1px solid var(--line); background: var(--paper); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; }
.round-btn:disabled { opacity: .4; cursor: default; }
.round-btn svg { width: 18px; height: 18px; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: #ebe8e1; }
.seg button { border: 0; background: transparent; padding: 9px 18px; border-radius: 10px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sample button { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 999px; padding: 3px 10px; margin-left: 6px; font-size: 12px; }
.sample button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.sample { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 50; background: var(--ink); color: #fff; font-size: 12px; padding: 7px 12px; border-radius: 999px; opacity: .85; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo .lm { width: 34px; height: 34px; flex: none; color: var(--teal); }
.logo .lm svg { width: 100%; height: 100%; }
.logo .lwrap { display: flex; flex-direction: column; line-height: 1; }
.lw { font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -0.03em; }
.lw-b { font-size: 21px; letter-spacing: 0.14em; font-weight: 700; }
.lw-c { font-weight: 500; letter-spacing: -0.01em; }
.lt { font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 600; }
.on-dark .logo, .footer .logo { color: #fff; }
.on-dark .logo .lm, .footer .logo .lm { color: #fff; --logo-cut: var(--night); }
.on-dark .lt, .footer .lt { color: rgba(255,255,255,.55); }

/* Header */
.header { position: relative; z-index: 30; background: var(--bg); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.nav { display: flex; gap: 28px; font-size: 15.5px; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; gap: 4px; }
.nav a svg { width: 13px; height: 13px; opacity: .6; }
.head-actions { display: flex; align-items: center; gap: 18px; font-size: 15.5px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; }
.icon-btn svg { width: 21px; height: 21px; }
.burger { display: none; }
@media (max-width: 1080px) { .nav, .head-actions .phone { display: none; } .burger { display: grid; } }
@media (max-width: 520px) { .head-actions .btn-dark { display: none; } .header .wrap { height: 70px; } }
.header .mobile-nav { display: none; height: auto; }
.header .mobile-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding-block: 8px 20px; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; }

/* Hero */
.hero { position: relative; margin-top: 4px; }
.hero-media { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 660px; background: #2a2d2c; display: flex; align-items: center; }
.hero-media video, .hero-media .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,12,.62) 0%, rgba(10,12,12,.25) 55%, rgba(10,12,12,.05) 100%), linear-gradient(0deg, rgba(10,12,12,.35), transparent 40%); }
.hero-copy { position: relative; z-index: 1; color: #fff; padding: 64px 64px 160px; max-width: 900px; }
.hero-copy .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; }
.hero-copy .tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #fff; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); line-height: .98; margin-top: 22px; letter-spacing: -0.045em; }
.hero-copy p { font-size: clamp(17px, 1.7vw, 21px); color: rgba(255,255,255,.84); max-width: 34ch; margin-top: 24px; }
.search { position: relative; z-index: 2; margin: -112px 64px 0; background: var(--paper); border-radius: 24px; padding: 20px 24px 22px; box-shadow: 0 30px 60px -30px rgba(17,20,19,.25); }
.search-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 0; align-items: center; margin-top: 16px; }
.field { padding: 6px 16px; border-left: 1px solid var(--line); min-width: 0; }
.field:first-child { border-left: 0; padding-left: 0; }
.field label { display: block; font-size: 13px; color: var(--muted); }
.field select { width: 100%; border: 0; background: transparent; font-size: 17px; padding: 4px 0; height: 34px; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121311' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; background-size: 15px; padding-right: 24px; }
.go { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; margin-left: 12px; }
.go svg { width: 20px; height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; font-size: 14.5px; }
.chips span { color: var(--muted); margin-right: 4px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; background: var(--paper); }
@media (max-width: 900px) {
  .hero-media { min-height: 560px; }
  .hero-copy { padding: 40px 28px 150px; }
  .search { margin: -120px 16px 0; }
  .search-row { grid-template-columns: 1fr 1fr; gap: 12px 0; }
  .field:nth-child(3) { border-left: 0; padding-left: 0; }
  .go { grid-column: 1 / -1; width: 100%; border-radius: 12px; margin: 6px 0 0; height: 50px; }
}
@media (max-width: 520px) {
  .hero-copy { padding: 32px 22px 140px; }
  .search { margin: -110px 0 0; padding: 16px; }
  .search-row { grid-template-columns: 1fr; }
  .field { border-left: 0; padding: 4px 0; border-top: 1px solid var(--line); }
  .field:first-child { border-top: 0; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-block: 1px solid var(--line); padding-block: 40px; margin-top: 56px; }
.stat b { white-space: nowrap; display: block; font-family: var(--display); font-size: clamp(32px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.stat span { display: block; color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 24ch; }
.stars { font-size: 16px; letter-spacing: 1px; vertical-align: middle; margin-left: 6px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; gap: 32px 20px; } }

/* Listings */
.listing-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; gap: 16px; }
.arrows { display: flex; gap: 8px; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 3.25); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 28px; padding-bottom: 4px; }
.track::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .track { grid-auto-columns: 70%; } }
@media (max-width: 520px) { .track { grid-auto-columns: 86%; } }
.card { scroll-snap-align: start; min-width: 0; }
.card[hidden] { display: none; }
.card-media { display: block; position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.badge { white-space: nowrap; position: absolute; top: 12px; left: 12px; background: var(--paper); border-radius: 8px; font-size: 13px; padding: 4px 9px; font-weight: 500; }
.fav { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.fav svg { width: 19px; height: 19px; }
.fav[aria-pressed="true"] { --heart-fill: #c0392b; --heart-stroke: #c0392b; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.price small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.card h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin-top: 6px; }
.card p { color: var(--muted); font-size: 14.5px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.specs { display: flex; gap: 18px; margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.specs span { display: inline-flex; align-items: center; gap: 6px; }
.specs svg { width: 17px; height: 17px; }

/* Communities */
.dark { background: var(--night); color: #fff; margin-top: 120px; padding-block: 120px; }
@media (max-width: 640px) { .dark { margin-top: 80px; padding-block: 80px; } }
.dark .lead { color: rgba(255,255,255,.62); }
.dark .btn { background: #fff; color: var(--ink); border-color: #fff; }
.areas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 56px; align-items: start; }
.area-list { border-top: 1px solid rgba(255,255,255,.14); }
.area { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.14); width: 100%; background: none; border-inline: 0; border-top: 0; text-align: left; color: rgba(255,255,255,.5); transition: color .25s; }
.area.active, .area:hover { color: #fff; }
.area .num { font-size: 12px; opacity: .7; }
.area h3 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 500; letter-spacing: -0.035em; }
.area p { font-size: 15px; margin-top: 4px; opacity: .8; }
.area .meta { text-align: right; font-size: 15px; font-weight: 600; }
.area .meta small { display: block; font-weight: 400; font-size: 12.5px; opacity: .7; margin-top: 4px; }
.area-view { position: sticky; top: 110px; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1 / 1; background: #222; }
.area-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease; }
.area-view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent 45%); }
.area-cap { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-size: 15px; }
.area-cap p { max-width: 40ch; }
.pill { background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; white-space: nowrap; }
@media (max-width: 520px) { .area-cap { flex-direction: column; align-items: flex-start; font-size: 14px; left: 16px; right: 16px; bottom: 16px; } .area h3 { font-size: 26px; } }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr; } .area-view { position: relative; top: 0; order: -1; aspect-ratio: 4 / 3; } }

/* Owners */
.owners { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; margin-top: 56px; align-items: start; }
.owners-img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3 / 4; position: sticky; top: 110px; }
.owners-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-list { display: flex; flex-direction: column; gap: 16px; }
.svc { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 30px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; }
.svc .ic { width: 44px; height: 44px; border-radius: 50%; background: #e4ecec; display: grid; place-items: center; color: var(--teal); }
.svc .ic svg { width: 20px; height: 20px; }
.svc h3 { font-size: 34px; letter-spacing: -0.035em; display: flex; align-items: baseline; gap: 8px; }
.svc h3 small { font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.svc p { color: var(--muted); margin-top: 10px; font-size: 15.5px; max-width: 52ch; }
.svc a { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-weight: 500; font-size: 15px; }
.svc a svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .owners { grid-template-columns: 1fr; } .owners-img { position: relative; top: 0; aspect-ratio: 16 / 10; } }
@media (max-width: 520px) { .svc { grid-template-columns: 1fr; padding: 24px; } }

/* Agents */
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.agent .ph { aspect-ratio: 16 / 17; border-radius: var(--r-md); display: grid; place-items: center; font-family: var(--display); font-size: 64px; font-weight: 600; letter-spacing: -0.04em; color: rgba(255,255,255,.92); }
.agent:nth-child(1) .ph { background: linear-gradient(160deg, #1c5260, #0d2a31); }
.agent:nth-child(2) .ph { background: linear-gradient(160deg, #b9976a, #86663e); }
.agent:nth-child(3) .ph { background: linear-gradient(160deg, #3d4a45, #1b2321); }
.agent:nth-child(4) .ph { background: linear-gradient(160deg, #7d8e8b, #4d5b59); }
.agent h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin-top: 18px; }
.agent p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.agent .tel { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 14.5px; }
.agent .tel svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .agents { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .agents { grid-template-columns: 1fr; } .agent .ph { aspect-ratio: 16 / 11; } }

/* Reviews */
.sandband { background: var(--sand); margin-top: 120px; padding-block: 110px; }
@media (max-width: 640px) { .sandband { margin-top: 80px; padding-block: 80px; } }
.rating { display: inline-flex; align-items: center; gap: 14px; background: var(--paper); border-radius: 14px; padding: 12px 18px; font-size: 14.5px; flex-wrap: wrap; }
.rating b { font-size: 16px; }
.reviews { grid-auto-columns: calc((100% - 40px) / 2.6); }
@media (max-width: 900px) { .reviews { grid-auto-columns: 82%; } }
.review { margin: 0; background: var(--paper); border-radius: 24px; padding: 34px; display: flex; flex-direction: column; gap: 22px; scroll-snap-align: start; min-width: 0; }
.review blockquote { margin: 0; font-size: 19px; line-height: 1.45; letter-spacing: -0.01em; flex: 1; }
.who { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; }
.who i { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 600; flex: none; }
.who small { display: block; color: var(--muted); font-size: 14px; }

/* Journal */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.post .card-media { aspect-ratio: 3 / 2; }
.post .meta { color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.post h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; margin-top: 8px; line-height: 1.25; }
.post p { color: var(--muted); font-size: 15px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* Valuation */
.val { margin-top: 120px; background: var(--teal); color: #fff; border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 520px; }
.val-copy { padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; }
.val .lead { color: rgba(255,255,255,.75); }
.val-form { display: flex; background: #fff; border-radius: 999px; padding: 6px; margin-top: 36px; max-width: 460px; }
.val-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; color: var(--ink); font-size: 16px; }
.val-form input::placeholder { color: #8a8984; }
.val-form .btn-dark { border-radius: 999px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; font-size: 14.5px; color: rgba(255,255,255,.8); }
.checks span { display: inline-flex; gap: 8px; align-items: center; }
.checks svg { width: 15px; height: 15px; }
.val-img { position: relative; }
.val-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.val-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--teal) 0%, rgba(18,60,70,0) 30%); }
@media (max-width: 900px) { .val { grid-template-columns: minmax(0, 1fr); margin-top: 80px; } .val-copy { padding: 44px 26px; } .val-img { min-height: 260px; order: -1; } .val-img::before { background: linear-gradient(0deg, var(--teal) 0%, rgba(18,60,70,0) 40%); } }

/* Footer */
.footer { background: var(--night); color: #fff; margin-top: 120px; border-radius: 36px 36px 0 0; padding-block: 80px 32px; }
@media (max-width: 640px) { .footer { margin-top: 80px; border-radius: 24px 24px 0 0; padding-block: 56px 28px; } }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-top h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.foot-top p { color: rgba(255,255,255,.6); font-size: 15px; margin-top: 14px; max-width: 40ch; }
.alerts { display: flex; background: #1e2221; border: 1px solid #2c312f; border-radius: 16px; padding: 6px; margin-top: 28px; max-width: 450px; }
.alerts input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 0 14px; font-size: 16px; }
.alerts input::placeholder { color: rgba(255,255,255,.4); }
.alerts button { background: #fff; color: var(--ink); border: 0; border-radius: 11px; padding: 12px 22px; }
.fcol h4 { margin: 0; font-size: 13px; color: rgba(255,255,255,.45); font-weight: 400; }
.fcol ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; }
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid #262a29; margin-top: 64px; padding-top: 32px; font-size: 13.5px; color: rgba(255,255,255,.55); }
.offices b { display: block; color: #fff; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.big-logo { margin-top: 40px; color: #fff; }
.big-logo .logo { display: flex; width: 100%; gap: clamp(14px, 2.4vw, 34px); }
.big-logo .lm { width: clamp(70px, 17vw, 240px); height: auto; aspect-ratio: 1; }
.big-logo .lw { font-size: clamp(60px, 21vw, 312px); line-height: .85; letter-spacing: -0.05em; }
.big-logo .lw-b { letter-spacing: 0.04em; font-size: clamp(44px, 14vw, 206px); }
.big-logo .lw-c { font-size: clamp(56px, 18vw, 270px); }
.big-logo .lt { display: none; }
.legal { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; border-top: 1px solid #262a29; margin-top: 40px; padding-top: 24px; font-size: 13.5px; color: rgba(255,255,255,.5); }
.legal nav { display: flex; gap: 22px; color: #fff; }
.credit { margin-top: 18px; font-size: 12px; letter-spacing: .02em; color: rgba(255,255,255,.35); }
.credit a:hover { color: rgba(255,255,255,.7); }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } .offices { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .foot-top { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card-media img, .area-view img { transition: none; } }
.card-media > a { display:block; width:100%; height:100%; }

/* Dropdown menus */
.nav { align-items: center; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 8px 0; font-weight: 500; font-size: 15.5px; }
.dd-btn svg { width: 13px; height: 13px; opacity: .6; transition: transform .2s; }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-panel { position: absolute; top: calc(100% + 10px); left: -18px; z-index: 40; min-width: 300px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: 0 24px 48px -20px rgba(17,20,19,.28); display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dd-panel.wide { grid-template-columns: 1fr 1fr; min-width: 560px; }
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd-panel a { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 12px; }
.dd-panel a:hover, .dd-panel a:focus-visible { background: var(--bg); }
.dd-panel b { font-weight: 600; font-size: 15px; }
.dd-panel small { color: var(--muted); font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) { .dd-panel, .dd-btn svg { transition: none; } }

/* Mobile accordion */
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 18px; font-weight: 500; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary svg { width: 16px; height: 16px; transition: transform .2s; }
.mobile-nav details[open] summary svg { transform: rotate(180deg); }
.mobile-nav details > div { display: flex; flex-direction: column; padding: 0 0 10px 12px; }
.header .mobile-nav details a { border-bottom: 0; padding: 8px 0; font-size: 16px; display: flex; flex-direction: column; }
.mobile-nav details small { color: var(--muted); font-size: 13.5px; font-weight: 400; }
.agent .ph { aspect-ratio: 5 / 4; }

/* ---------- Inner pages ---------- */
#page { padding-bottom: 0; }
.nav > a.cur, .dd-btn.cur { color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); }
.page-head { padding-block: 64px 40px; }
.h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.045em; margin-top: 18px; max-width: 18ch; }
.h1.small { font-size: clamp(32px, 4.2vw, 48px); max-width: 24ch; margin-top: 10px; }
.h2.sm { font-size: clamp(28px, 3.4vw, 40px); margin-block: 0 28px; }
.h3 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 14px; }
.body-text { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 62ch; }
.section-sm { padding-top: 88px; }
.narrow { max-width: 860px; }
.note { color: var(--muted); font-size: 13.5px; margin-top: 16px; }
.empty { color: var(--muted); font-size: 17px; padding: 40px 0; }
.empty a, .chip-on .link { color: var(--teal); text-decoration: underline; }
.link { background: none; border: 0; padding: 0; font-size: inherit; }
.eyebrow.light { color: #fff; }
.eyebrow.light::before { background: #fff; }
#page .val { margin-top: 120px; }
@media (max-width: 640px) { .page-head { padding-block: 40px 28px; } #page .val { margin-top: 80px; } .section-sm { padding-top: 64px; } }

/* Listings page */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 500; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f label { font-size: 13px; color: var(--muted); }
.f select, .f input, .f textarea { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 0 12px; height: 46px; font-size: 16px; }
.f textarea { height: auto; padding: 12px; resize: vertical; }
.f select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121311' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; padding-right: 34px; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .filters { grid-template-columns: 1fr; } }
.chip-on { margin-top: 16px; font-size: 15px; }
.count { color: var(--muted); margin: 24px 0 18px; font-size: 15px; }
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
@media (max-width: 900px) { .grid-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-cards { grid-template-columns: 1fr; } }

/* Property page */
.crumbs { color: var(--muted); font-size: 14px; padding-block: 28px 18px; }
.crumbs a { color: var(--ink); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(320px, 52vw, 560px); }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; min-height: 0; }
.gallery img:first-child { grid-row: 1 / 3; border-radius: 20px; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 420px; } .gallery img:first-child { grid-row: auto; grid-column: 1 / 3; } }
.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; margin-top: 36px; align-items: start; margin-bottom: 88px; }
@media (max-width: 960px) { .prop-layout { grid-template-columns: minmax(0, 1fr); } }
.badge.static { position: static; display: inline-block; background: var(--sand); }
.price.big { font-size: 30px; margin-top: 14px; }
.specs.lg { font-size: 16px; gap: 24px; flex-wrap: wrap; color: var(--ink); margin-top: 16px; }
.prop-main .body-text { margin-top: 24px; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.details div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 13px 0; font-size: 15px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 500; text-align: right; }
.details a { color: var(--teal); }
@media (max-width: 560px) { .details { grid-template-columns: 1fr; } }
.feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 15.5px; }
.feat li { display: flex; gap: 10px; align-items: center; }
.feat svg { width: 16px; height: 16px; color: var(--teal); flex: none; }
@media (max-width: 560px) { .feat { grid-template-columns: 1fr; } }
.enquire { position: sticky; top: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 960px) { .enquire { position: static; } }
.agent-mini { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.agent-mini i { width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: #fff; font-style: normal; display: grid; place-items: center; font-weight: 600; }
.agent-mini small { display: block; color: var(--muted); font-size: 14px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.btn.full { width: 100%; justify-content: center; }
.btn[data-fav][aria-pressed="true"] { --heart-fill: #c0392b; --heart-stroke: #c0392b; }
.done { background: #e4ecec; color: var(--teal); border-radius: 16px; padding: 18px 20px; font-size: 15.5px; line-height: 1.5; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
@media (max-width: 560px) { .panel { padding: 20px; } }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.dark-checks { color: var(--muted); margin-top: 4px; }

/* Communities */
.comm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .comm-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .comm-grid { grid-template-columns: 1fr; } }
.comm-card { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; display: block; color: #fff; }
.comm-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.comm-card:hover img { transform: scale(1.04); }
.comm-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent 55%); }
.comm-card div { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; }
.comm-card h3 { font-size: 30px; letter-spacing: -0.03em; }
.comm-card p { color: rgba(255,255,255,.8); font-size: 15px; margin-top: 4px; }
.comm-card span { display: inline-block; margin-top: 12px; background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.banner { position: relative; border-radius: var(--r-lg); overflow: hidden; margin-top: 8px; min-height: 440px; display: flex; align-items: flex-end; color: #fff; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,.05) 60%); }
.banner > div { position: relative; z-index: 1; padding: 48px; }
.banner p { font-size: 19px; color: rgba(255,255,255,.85); margin-top: 12px; }
@media (max-width: 640px) { .banner { min-height: 360px; } .banner > div { padding: 24px; } }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; padding-block: 56px 72px; align-items: start; }
.two-col .h3 { margin-top: 0; }
.two-col .feat { margin-top: 24px; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.facts { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 8px 24px; }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 13.5px; }
.facts dd { margin: 4px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }

/* Sell, landlords, about */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.split > img { border-radius: 24px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; position: sticky; top: 24px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split > img { position: static; aspect-ratio: 16 / 10; } }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.steps span { font-size: 14px; color: var(--muted); padding-top: 8px; }
.steps h3 { font-size: 28px; letter-spacing: -0.03em; }
.steps p { color: var(--muted); margin-top: 8px; font-size: 16px; max-width: 52ch; }
.fee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .fee-grid { grid-template-columns: 1fr; } }
.fee { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.fee h3 { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.fee b { display: block; font-family: var(--display); font-size: 44px; letter-spacing: -0.04em; margin-top: 10px; }
.fee p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.packages { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .packages { grid-template-columns: 1fr; } }
.pack { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.pack h3 { font-size: 32px; letter-spacing: -0.03em; margin: 14px 0 22px; }
.pack .feat { grid-template-columns: 1fr; }
.dark-pack { background: var(--teal); color: #fff; border-color: var(--teal); }
.dark-pack .feat svg { color: #fff; }
.values { display: flex; flex-direction: column; gap: 32px; }
.values h3 { font-size: 28px; letter-spacing: -0.03em; }
.values p { color: var(--muted); margin-top: 8px; font-size: 16.5px; max-width: 50ch; }
.join { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.join .h3 { margin: 0 0 8px; }

/* Journal article */
.article { padding-bottom: 24px; }
.article .page-head { padding-inline: 0; }
.article .meta { color: var(--muted); margin-top: 14px; font-size: 15px; }
.lead-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; margin-top: 28px; }
.prose { margin-top: 36px; font-size: 18px; line-height: 1.7; }
.prose p { margin: 0 0 18px; color: #2c2d2a; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: 36px 0 12px; }
.draft { background: var(--sand); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.post > a:last-child { display: block; }

/* Contact */
.contact-list { display: flex; flex-direction: column; }
.contact-list div { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list b { font-size: 13.5px; color: var(--muted); font-weight: 400; }
.contact-list span { font-size: 19px; font-weight: 500; }

/* Mega menus: full-width panel under the header bar */
.header > .wrap:first-child { position: relative; }
.header .dd { position: static; }
.mega { position: absolute; left: max(24px, env(safe-area-inset-left, 0px)); right: max(24px, env(safe-area-inset-right, 0px)); top: calc(100% - 6px); z-index: 40; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
/* Bridge only the strip between the buttons and the panel, so it never covers the other menu items. */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.dd.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-in { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 40px 80px -36px rgba(17,20,19,.32); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
.mega-cols { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 24px; }
.mega-cols h4 { margin: 4px 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mega-cols a { display: block; padding: 8px 0; font-size: 16px; font-weight: 500; transition: color .15s; }
.mega-cols a:hover, .mega-cols a:focus-visible { color: var(--teal); }
.mega-feat { position: relative; border-radius: 18px; overflow: hidden; min-height: 240px; display: block; color: #fff; }
.mega-feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mega-feat:hover img { transform: scale(1.04); }
.mega-feat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent 60%); }
.mega-feat span { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.mega-feat small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.mega-feat b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.mega-feat em { font-style: normal; font-size: 14.5px; opacity: .85; }
.is-tiles .mega-in { grid-template-columns: 1fr; gap: 16px; }
.mega-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mega-tiles a { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; }
.mega-tiles a:hover, .mega-tiles a:focus-visible { background: var(--bg); }
.mega-tiles img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.mega-tiles b { display: block; font-size: 16px; font-weight: 600; }
.mega-tiles small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.mega-all { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; padding: 4px 10px; color: var(--teal); }
.mega-all svg { width: 15px; height: 15px; }
@media (max-width: 1240px) { .mega-in { grid-template-columns: minmax(0, 1fr) 280px; } }
@media (prefers-reduced-motion: reduce) { .mega, .mega-feat img { transition: none; } }
.mobile-nav .m-h { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* Hover pill on mega-menu links: a light grey capsule shows what you are about to pick.
   The negative margin keeps the text aligned with the column heading. */
.mega-cols a { width: fit-content; max-width: calc(100% + 24px); padding: 8px 12px; margin-left: -12px; border-radius: 999px; transition: background-color .15s, color .15s; }
.mega-cols a:hover, .mega-cols a:focus-visible { background: #eeece6; color: var(--ink); }
.mega-all { border-radius: 999px; padding: 8px 14px; margin-left: -4px; transition: background-color .15s; }
.mega-all:hover, .mega-all:focus-visible { background: #eeece6; }
.mega-tiles a { transition: background-color .15s; }
.mega-tiles a:hover, .mega-tiles a:focus-visible { background: #eeece6; }

/* Cost calculator */
.calc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.calc-head .h1 { max-width: 15ch; }
.calc-tabs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: #ebe8e1; }
.calc-tabs a { flex: none; padding: 8px 15px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
.calc-tabs a.on { background: var(--ink); color: #fff; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-rows: auto auto 1fr; column-gap: 20px; align-items: start; margin-top: 8px; }
.calc-form { grid-column: 1; grid-row: 1 / 4; display: flex; flex-direction: column; gap: 26px; align-self: stretch; }
.calc-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.calc-label { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 500; }
.calc-label span { color: var(--muted); font-size: 13px; font-weight: 400; white-space: nowrap; }
.calc-hint { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.calc-money { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.calc-money span { color: var(--muted); font-size: 15px; font-weight: 500; }
.calc-money input { flex: 1; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-money input:focus { outline: none; }
.calc-money:focus-within { border-bottom-color: var(--ink); }
.calc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: none; cursor: pointer; }
.calc-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--ink) var(--p, 0%), var(--line) var(--p, 0%)); }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border: 1px solid var(--line); border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.calc-range::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--ink) var(--p, 0%), var(--line) var(--p, 0%)); }
.calc-range::-moz-range-thumb { width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.calc-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: -6px; color: var(--muted); font-size: 12.5px; }
.calc-choice, .calc-chips { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.calc-choice button, .calc-chips button { min-width: 0; min-height: 44px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; }
.calc-choice button[aria-pressed="true"], .calc-chips button[aria-pressed="true"] { border: 1.5px solid var(--ink); color: var(--ink); }
.calc-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; border-radius: 13px; background: #ebe8e1; }
.calc-seg button { min-width: 0; min-height: 40px; padding: 6px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; }
.calc-seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.calc-num { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 16px; }
.calc-hero, .calc-break { grid-column: 2; background: var(--night); color: #fff; padding-inline: 28px; }
.calc-hero { grid-row: 1; padding-block: 28px 0; border-radius: 24px 24px 0 0; }
.calc-eyebrow { display: block; color: rgba(255,255,255,.7); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.calc-amount { display: block; margin-top: 6px; font-size: clamp(38px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc-hero p { margin: 8px 0 0; color: rgba(255,255,255,.72); font-size: 14.5px; }
.calc-err { margin: 0 0 16px !important; padding: 10px 14px; border-radius: 12px; background: #f6e5e0; color: #8a2f1a !important; font-size: 14.5px; }
.calc-break { grid-row: 2; padding-block: 26px 28px; border-radius: 0 0 24px 24px; --rule: rgba(255,255,255,.14); --soft: rgba(255,255,255,.62); --d0: #f5f3ee; --d1: var(--gold); --d2: #7fa6ae; --d3: #6d7572; --d4: #c9bfa9; }
.calc-print { display: none; }
.calc-row-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-row-h h2 { margin: 0; font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.calc-row-h span { flex: none; color: var(--d1); font-size: 14px; font-weight: 500; }
.calc-more { margin-top: 22px; }
.calc-stack { display: flex; gap: 2px; height: 8px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: var(--rule); }
.calc-stack i { display: block; min-width: 3px; }
.calc-stack .d0, .dot.d0 { background: var(--d0); }
.calc-stack .d1, .dot.d1 { background: var(--d1); }
.calc-stack .d2, .dot.d2 { background: var(--d2); }
.calc-stack .d3, .dot.d3 { background: var(--d3); }
.calc-stack .d4, .dot.d4 { background: var(--d4); }
.calc-list { margin: 8px 0 0; }
.calc-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.calc-list > div:last-child { border-bottom: 0; }
.calc-list dt { display: flex; align-items: baseline; gap: 10px; min-width: 0; font-weight: 500; font-size: 15px; }
.calc-list dt small { color: var(--soft); font-size: 14px; font-weight: 400; }
.calc-list dd { flex: none; margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 2px; transform: translateY(-1px); }
.calc-lines { margin-top: 12px; border-top: 1px solid var(--rule); }
.calc-acts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; margin-top: 18px; }
.calc-acts .btn { justify-content: center; border-radius: 999px; min-height: 48px; min-width: 0; padding-inline: 12px; }
.calc-advisor { background: #fff; color: var(--ink); border-color: #fff; }
.calc-save { background: none; color: #fff; border-color: rgba(255,255,255,.35); cursor: pointer; }
.calc-info { grid-column: 2; grid-row: 3; margin-top: 12px; padding: 14px 18px; border-radius: 16px; background: #ebe8e1; color: var(--muted); font-size: 14px; line-height: 1.5; }
.calc-info p { margin: 0; }
.calc-note { max-width: 760px; margin: 20px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.calc-bar { display: none; }
@media (max-width: 1100px) { .calc-head { grid-template-columns: minmax(0, 1fr); gap: 20px; } .calc-tabs { justify-self: start; max-width: 100%; overflow-x: auto; scrollbar-width: none; } .calc-tabs::-webkit-scrollbar { display: none; } }
@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 12px; }
  .calc-hero, .calc-form, .calc-break, .calc-info { grid-column: 1; grid-row: auto; }
  .calc-hero { order: 1; padding: 22px 20px; border-radius: 20px; }
  .calc-amount { font-size: clamp(32px, 10vw, 44px); }
  .calc-form { order: 2; }
  .calc-break { order: 3; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); --rule: var(--line); --soft: var(--muted); --d0: var(--ink); --d1: var(--gold); --d2: var(--teal); --d3: #a9a79f; --d4: #d9d5cb; }
  .calc-info { order: 4; margin-top: 0; }
  .calc-acts { display: none; }
  .calc-tabs { padding: 0; gap: 6px; background: none; border-radius: 0; width: 100%; }
  .calc-tabs a { border: 1px solid var(--line); background: var(--paper); }
  .calc-tabs a.on { border-color: var(--ink); }
  .calc-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
  .calc-bar .btn { flex: 1; justify-content: center; border-radius: 999px; min-height: 48px; }
  .calc-bar .icon-btn { flex: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: #fff; display: grid; place-items: center; cursor: pointer; }
  .calc-bar svg { width: 20px; height: 20px; }
  body:has(.calc-bar) .footer { padding-bottom: 96px; }
  body:has(.calc-bar) .sample { bottom: 84px; }
}
@media (max-width: 420px) { .calc-money input { font-size: 27px; } .calc-chips button { font-size: 14px; padding-inline: 2px; } .calc-list dt { font-size: 14.5px; } }
@media print {
  @page { margin: 16mm; }
  body { background: #fff; }
  header.header, .footer, .sample, .calc-head, .calc-form, .calc-hero p .x, .calc-acts, .calc-bar, .calc-lead, .calc-tabs { display: none !important; }
  .calc { display: block; }
  .calc-print { display: block; margin-bottom: 18px; color: #121311; font-size: 13px; }
  .calc-print p { margin: 8px 0 0; }
  .brand-print .brand { height: 44px; }
  #page, .wrap { padding: 0; margin: 0; max-width: none; }
  .calc-hero, .calc-break { color: #121311; background: #fff; padding: 0; border: 0; border-radius: 0; --rule: #d9d5cb; --soft: #6b6a64; --d0: #121311; --d1: #b08a52; --d2: #123c46; --d3: #a9a79f; --d4: #d9d5cb; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .calc-hero { display: flex; flex-direction: column; order: 2; }
  .calc-eyebrow, .calc-hero p { color: #6b6a64; }
  .calc-amount { font-size: 36px; }
  .calc-break { margin-top: 20px; }
  .calc-info { margin-top: 16px; background: none; padding: 0; }
  .calc-note { margin-top: 12px; font-size: 11px; }
}

/* Nine menu items: labels stay on one line, the phone goes first and the burger takes over before they collide */
.nav { gap: 22px; }
.nav > a, .dd-btn { white-space: nowrap; }
@media (max-width: 1400px) { .head-actions .phone { display: none; } }
@media (max-width: 1240px) { .nav { display: none; } .burger { display: grid; } }
@media (max-width: 480px) { .search .seg { display: flex; } .search .seg button { flex: 1 1 auto; min-width: 0; padding: 9px 6px; font-size: 14px; } }
.foot-top > div { min-width: 0; }
.alerts { min-width: 0; }
.alerts button { flex: none; }
@media (max-width: 360px) { .alerts button { padding: 12px 14px; } }
.on-dark .btn { color: var(--ink); }
.on-dark .btn-dark { color: #fff; }
.head-actions .phone { white-space: nowrap; }
@media (max-width: 1520px) { .head-actions .phone { display: none; } }
@media (max-width: 360px) { .stat b { font-size: 27px; } }
.form-err { margin: 0; padding: 10px 14px; border-radius: 12px; background: #f6e5e0; color: #8a2f1a; font-size: 15px; }

/* Logo image */
.brand { display: block; width: auto; }
.brand-h-dark { height: 48px; }
.brand-wide-light { width: 100%; height: auto; }
[data-logo] { display: block; flex: none; }
@media (max-width: 480px) { .brand-h-dark { height: 40px; } }
@media (max-width: 360px) { .brand-h-dark { height: 34px; } }
@media (max-width: 1290px) { .nav { display: none; } .burger { display: grid; } }

/* WhatsApp on listing cards */
.card-media a.fav-wa { display: grid; position: absolute; inset: 62px 12px auto auto; width: 42px; height: 42px; color: #128c4b; }
.fav-wa svg { width: 21px; height: 21px; }

/* Off-plan shortlist and mortgage lead forms */
.shortlist { margin-top: 56px; }
.shortlist-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.shortlist-in .h2 { margin-top: 14px; }
.shortlist-in .lead { margin-top: 0; }
.shortlist-in .btn { justify-content: center; }
.calc-lead { margin-top: 20px; }
.calc-lead .h2 { margin-top: 0; }
@media (max-width: 900px) { .shortlist-in { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.f input[type="file"] { height: auto; min-height: 46px; padding: 9px 12px; font-size: 15px; }
.f input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }

/* Server-rendered page text, shown until the page script takes over */
.ssr { padding-block: 40px; }
.ssr p { max-width: 70ch; margin: 14px 0 0; }
.ssr ul { margin: 18px 0 0; padding-left: 20px; }
.ssr li { margin-top: 8px; }

/* The check only takes space when Cloudflare needs to ask the visitor something */
.ts-box:empty { display: none; }
.ts-box { max-width: 100%; overflow: hidden; }
#alerts .ts-box { position: absolute; }

.agent .ph img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.agent-mini i img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.agent-bio { margin-top: 6px; font-size: 14.5px; line-height: 1.45; }
.stats[hidden], .rating[hidden] { display: none; }

/* Cookie choice, shown only when analytics is configured */
.consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 18px 50px rgba(17, 20, 19, 0.16); padding: 18px 20px; display: flex; gap: 16px; align-items: center; }
.consent p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent p a { color: var(--ink); text-decoration: underline; }
.consent div { display: flex; gap: 8px; flex: 0 0 auto; }
.consent .btn { padding: 10px 16px; font-size: 14px; justify-content: center; }
@media (max-width: 560px) { .consent { flex-direction: column; align-items: stretch; } .consent div > * { flex: 1; } }
