/* Prime Property Group — site styles
   One hand-written stylesheet, no framework.
   Sections: tokens · base · buttons · header · hero · sections · cards ·
   scrollers · forms · listing page · agents · footer · utilities */

/* ---------- fonts ---------- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/manrope.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
    --navy-950: #01152a;
    --navy-900: #011d36;
    --navy-800: #0e2a47;
    --navy-700: #153a5f;
    --cyan: #00deff;            /* the logo's cyan */
    --cyan-soft: #d9f8ff;
    --azure: #0a6fa8;           /* readable link colour on light backgrounds */
    --azure-dark: #07557f;
    --ink: #0f2233;
    --body: #3d4d5c;
    --muted: #68778a;
    --line: #e3ddd3;
    --line-soft: #efeae2;
    --paper: #ffffff;
    --sand: #f7f4ee;
    --sand-deep: #efe9df;
    --gold: #c79a4b;
    --red: #c2362b;
    --green: #1f8a4c;
    --wa: #1faa59;

    --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
    --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(9, 30, 52, .06), 0 2px 8px rgba(9, 30, 52, .05);
    --shadow: 0 2px 4px rgba(9, 30, 52, .05), 0 12px 32px rgba(9, 30, 52, .10);
    --shadow-lg: 0 24px 60px rgba(9, 30, 52, .22);
    --header-h: 86px;
    --gutter: clamp(18px, 4vw, 40px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--body);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--azure); text-decoration: none; }
a:hover { color: var(--azure-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--cyan); color: var(--navy-900); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--cyan); color: var(--navy-900); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--azure); margin: 0 0 .9em; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--cyan); border-radius: 2px; }
.eyebrow-light { color: var(--cyan); }
.section-head-center .eyebrow, .page-head-center .eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 700; font-size: .95rem; line-height: 1; white-space: nowrap; text-decoration: none;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--cyan); color: var(--navy-900); box-shadow: 0 6px 20px rgba(0, 222, 255, .28); }
.btn-accent:hover { background: #5cebff; color: var(--navy-900); }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--navy-900); color: var(--ink); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178f49; color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.btn-row-center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.link-arrow .i { transition: transform .2s ease; color: var(--azure); }
.link-arrow:hover .i { transform: translateX(4px); }

.chip-btn, .icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px;
    border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
    font-weight: 700; font-size: .88rem; transition: border-color .15s, background-color .15s, color .15s;
}
.chip-btn { padding: 0 14px; }
.icon-btn { width: 40px; padding: 0; }
.chip-btn:hover, .icon-btn:hover { border-color: var(--navy-900); color: var(--ink); }
.icon-btn-wa { color: var(--wa); }
.icon-btn-wa:hover { background: var(--wa); border-color: var(--wa); color: #fff; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; transition: all .15s; }
.round-btn:hover:not(:disabled) { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.round-btn:disabled { opacity: .35; cursor: default; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); background: var(--navy-900); transition: background-color .25s ease, box-shadow .25s ease, height .25s ease; }
.has-hero .site-header:not(.is-stuck):not(.is-open) { background: transparent; }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(1, 21, 42, .3); --header-h: 74px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { flex: none; display: block; padding: 14px 0 2px; }      /* the wordmark sits high in its image: nudge it down so "Prime Property" lines up with the menu */
.brand img { height: 50px; width: auto; max-width: 260px; object-fit: contain; transition: height .25s ease; }
.is-stuck .brand img { height: 44px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link { position: relative; padding: 10px 13px; color: rgba(255, 255, 255, .88); font-weight: 600; font-size: .95rem; border-radius: 8px; white-space: nowrap; }
.nav-link:hover { color: #fff; }
.nav-link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--cyan); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: #fff; }
.nav-only-mobile { display: none; }
.nav-cta { margin-left: 10px; min-height: 46px; padding: 0 18px; font-size: .95rem; }
.nav-cta.is-active { border-color: var(--cyan); color: var(--cyan); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-listings { min-height: 46px; padding: 0 20px; font-size: .95rem; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.is-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

main { padding-top: var(--header-h); }
.has-hero main { padding-top: 0; }

@media (max-width: 1280px) { .nav-link { padding-inline: 9px; font-size: .95rem; } .nav-link::after { left: 9px; right: 9px; } .header-inner { gap: 14px; } }
@media (max-width: 1140px) {
    .nav-toggle { display: block; }
    .header-actions { margin-left: auto; }
    .nav {
        position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: 20px var(--gutter) 32px;
        flex-direction: column; align-items: stretch; gap: 2px; background: var(--navy-900);
        overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .is-open .nav { visibility: visible; opacity: 1; transform: none; }
    .nav-link { padding: 16px 4px; font-size: 1.15rem; border-bottom: 1px solid rgba(255, 255, 255, .1); border-radius: 0; }
    .nav-link::after { display: none; }
    .nav-link.is-active { color: var(--cyan); }
    .nav-only-mobile { display: block; }
    .nav-cta { margin: 22px 0 0; min-height: 52px; font-size: 1.05rem; }
    body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
    :root { --header-h: 70px; }
    .brand img, .is-stuck .brand img { height: 38px; max-width: 190px; }
    .header-listings { padding: 0 14px; }
}

/* ---------- flash messages ---------- */
.flash-wrap { position: fixed; top: calc(var(--header-h) + 14px); left: 50%; transform: translateX(-50%); z-index: 90; width: min(640px, calc(100% - 28px)); display: grid; gap: 10px; }
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); font-weight: 600; animation: flash-in .35s ease both; }
.flash p { margin: 0; flex: 1; }
.flash > .i { margin-top: 3px; width: 1.3em; height: 1.3em; }
.flash-success { border-color: #bfe6cf; background: #f1fbf5; }
.flash-success > .i { color: var(--green); }
.flash-info > .i { color: var(--azure); }
.flash-close { border: 0; background: none; padding: 2px; color: var(--muted); display: grid; place-items: center; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 3; min-height: min(860px, 100svh); display: flex; align-items: center; color: #fff; background: var(--navy-900); isolation: isolate; padding: calc(var(--header-h) + 48px) 0 56px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(90deg, rgba(6, 21, 37, .88) 0%, rgba(6, 21, 37, .62) 42%, rgba(6, 21, 37, .12) 78%),
    linear-gradient(180deg, rgba(6, 21, 37, .55) 0%, rgba(6, 21, 37, 0) 26%, rgba(6, 21, 37, 0) 60%, rgba(6, 21, 37, .7) 100%); }
.hero-inner { width: 100%; }
.hero h1 { color: #fff; max-width: 13ch; margin-bottom: .35em; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--cyan); }
.hero-lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 52ch; color: rgba(255, 255, 255, .88); margin-bottom: 2em; }

.search-panel { display: grid; grid-template-columns: 1.25fr 1.1fr 1.1fr .7fr auto; gap: 6px; max-width: 1080px; padding: 10px; background: rgba(255, 255, 255, .97); border-radius: 22px; box-shadow: var(--shadow-lg); }
.search-field { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 8px 14px 9px; border-radius: 14px; transition: background-color .15s; }
.search-panel .search-field + .search-field::before { content: ""; position: absolute; left: -3px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.search-field:hover, .search-field:focus-within { background: var(--sand); }
.search-field label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.search-field select, .search-field input {
    appearance: none; -webkit-appearance: none; border: 0; background: transparent; width: 100%; min-width: 0; padding: 2px 22px 2px 0;
    font-weight: 700; color: var(--ink); font-size: 1rem; text-overflow: ellipsis; outline: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2233' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right center; background-size: 16px;
}
.search-field input { background-image: none; padding-right: 0; cursor: text; }
.search-field input::placeholder { color: #9aa6b2; font-weight: 500; }
.search-go { min-height: 60px; border-radius: 14px; padding: 0 28px; font-size: 1rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 44px; }
.hero-stats li { display: flex; align-items: baseline; gap: 10px; }
.hero-stats strong { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; line-height: 1; color: #fff; }
.hero-stats span { font-size: .9rem; color: rgba(255, 255, 255, .8); }

@media (max-width: 860px) {
    .hero { min-height: 0; padding-bottom: 40px; }
    .hero::before { background: linear-gradient(180deg, rgba(6, 21, 37, .72) 0%, rgba(6, 21, 37, .6) 45%, rgba(6, 21, 37, .88) 100%); }
    .search-panel { grid-template-columns: 1fr 1fr; }
    .search-panel .search-field + .search-field::before { display: none; }
    .search-panel .search-field { background: var(--sand); }
    .search-go { grid-column: 1 / -1; min-height: 54px; }
    .picker-pop { left: 0; }
    .hero-stats { gap: 16px 28px; margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; }
    .hero-stats li { flex-direction: column; gap: 2px; }
}

/* ---------- inner page head: a plain heading on white ---------- */
.page-head { background: var(--paper); color: var(--body); padding: clamp(30px, 4.2vw, 54px) 0 0; }
.page-head h1 { color: var(--ink); font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0 0 .25em; letter-spacing: -.015em; }
.page-head p { max-width: 72ch; margin: 0; font-size: 1.04rem; color: var(--muted); }
.page-head-center { text-align: center; padding-bottom: clamp(20px, 3vw, 36px); }
.page-head-center p { margin-inline: auto; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; margin-bottom: 18px; color: rgba(255, 255, 255, .6); }
.crumbs a { color: rgba(255, 255, 255, .8); }
.crumbs a:hover { color: var(--cyan); }
.crumbs-dark { color: var(--muted); }
.crumbs-dark a { color: var(--body); }
.crumbs-dark a:hover { color: var(--azure); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-flush { padding-top: clamp(28px, 4vw, 44px); }
.section-tint { background: var(--sand); }
.section-dark { background: var(--navy-900); color: rgba(255, 255, 255, .8); padding-block: clamp(44px, 6vw, 72px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head h2 { margin: 0; }
.section-head-center { justify-content: center; text-align: center; }
.section-note { max-width: 44ch; margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- property cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.pcard { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.pcard:hover, .pcard:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pcard-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sand-deep); overflow: hidden; }
.pcard-photo { display: block; width: 100%; height: 100%; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-nophoto { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; background: linear-gradient(135deg, var(--sand), var(--sand-deep)); }
.pcard-nophoto .i { width: 34px; height: 34px; opacity: .6; }
.pcard-type { position: absolute; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 140px); left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(9, 30, 52, .82); backdrop-filter: blur(6px); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .03em; }
.pcard-type .i { width: 1em; height: 1em; flex: none; color: var(--cyan); }
.pcard-flag { position: absolute; right: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: #fff; font-size: .75rem; font-weight: 700; }
.pcard.is-sold .pcard-media img { filter: grayscale(.7) brightness(.8); }
.stamp { position: absolute; right: 14px; top: 16px; transform: rotate(8deg); padding: 3px 12px; border: 3px solid #fff; border-radius: 8px; color: #fff; font-family: var(--sans); font-weight: 800; font-size: 1.05rem; letter-spacing: .16em; text-transform: uppercase; background: transparent; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .45)); pointer-events: none; }
.stamp-lg { right: 22px; top: 24px; font-size: clamp(1.3rem, 2.6vw, 1.9rem); border-width: 4px; padding: 5px 20px; }
.pcard-body { padding: 18px 20px 16px; display: flex; flex-direction: column; flex: 1; }
.pcard-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.1; margin: 0 0 6px; letter-spacing: -.01em; }
.pcard-title { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; letter-spacing: 0; line-height: 1.35; margin: 0 0 4px; }
.pcard-title a { color: var(--ink); }
.pcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card is the link */
/* Description: scrolls inside the card. Sits above the whole-card link so the wheel and touch scroll work. */
.pcard-desc { position: relative; z-index: 2; display: block; height: 4.65em; margin: 2px 0 14px; padding-right: 6px; overflow-y: auto; overscroll-behavior: contain; font-size: .88rem; line-height: 1.55; color: var(--muted); white-space: pre-line; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.pcard-desc:hover { color: var(--body); }
.pcard-desc::-webkit-scrollbar { width: 5px; }
.pcard-desc::-webkit-scrollbar-thumb { background: var(--line); border-radius: 9px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.facts li { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .92rem; color: var(--ink); }
.facts .i { color: var(--muted); width: 1.2em; height: 1.2em; }
.pcard-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--sand); font-size: .86rem; font-weight: 600; color: var(--body); }
.avatars { display: inline-flex; }
.avatars img, .avatar-blank { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sand); background: var(--navy-800); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.avatars > * + * { margin-left: -9px; }
.pcard-agents { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-more { display: inline-flex; align-items: center; gap: 5px; color: var(--azure); font-weight: 700; }
.pcard-more .i { transition: transform .2s; }
.pcard:hover .pcard-more .i { transform: translateX(3px); }

/* ---------- type tiles ---------- */
.type-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.type-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; color: #fff; background: var(--navy-800); isolation: isolate; }
.type-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.type-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 21, 37, 0) 38%, rgba(6, 21, 37, .88) 100%); transition: background-color .3s; }
.type-tile:hover img { transform: scale(1.07); }
.type-tile:hover { color: #fff; }
.type-tile-text { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: grid; gap: 1px; }
.type-tile-text strong { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.15; }
.type-tile-text span { font-size: .82rem; font-weight: 600; color: var(--cyan); }
@media (max-width: 1000px) { .type-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .type-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .type-tile { aspect-ratio: 1; } }

/* ---------- split (about) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media::before { content: ""; position: absolute; z-index: -1; left: -18px; top: -18px; width: 46%; height: 46%; border-radius: var(--radius); background: var(--cyan-soft); }
.split-badge { position: absolute; right: -14px; bottom: -22px; background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); max-width: 230px; }
.split-badge strong { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--cyan); font-weight: 500; }
.split-badge span { font-size: .85rem; font-weight: 600; line-height: 1.3; }
.ticks { display: grid; gap: 12px; margin: 1.4em 0 0; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .i { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--cyan-soft); color: var(--azure-dark); margin-top: 2px; stroke-width: 3; }
.ticks strong { color: var(--ink); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split-badge { right: 12px; bottom: -18px; } .split-text { margin-top: 12px; } }

/* ---------- suburbs ---------- */
.area-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.area { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; background: linear-gradient(140deg, var(--navy-700), var(--navy-900)); }
.area img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.area:hover img { transform: scale(1.06); }
.area::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 21, 37, .05) 30%, rgba(6, 21, 37, .85) 100%); }
.area:hover { color: #fff; }
.area-text { position: absolute; left: 18px; right: 52px; bottom: 16px; z-index: 1; display: grid; }
.area-text strong { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.area-text span { font-size: .84rem; font-weight: 600; color: var(--cyan); }
.area-go { position: absolute; right: 14px; top: 14px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); transition: background-color .2s, color .2s, transform .2s; }
.area:hover .area-go { background: var(--cyan); color: var(--navy-900); transform: rotate(8deg); }
@media (max-width: 1000px) { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(18px, 2.4vw, 28px); }
.area-list a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 10px 9px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: .92rem; transition: border-color .15s, background-color .15s, color .15s; }
.area-list a:hover { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.area-list .i { color: var(--azure); width: 1em; height: 1em; }
.area-list a:hover .i { color: var(--cyan); }
.area-list em { font-style: normal; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--sand); color: var(--body); font-size: .8rem; text-align: center; }
.area-list a:hover em { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- horizontal scrollers (agents, testimonials) ---------- */
.scroller { position: relative; }
.scroller-track { display: grid; grid-auto-flow: column; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 14px; margin: -6px -2px 0; overscroll-behavior-x: contain; }
.scroller-track::-webkit-scrollbar { display: none; }
.scroller-track > * { scroll-snap-align: start; }
.scroller-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.acards { grid-auto-columns: calc((100% - 3 * clamp(14px, 2vw, 24px)) / 4); }
.tcards { grid-auto-columns: calc((100% - 2 * clamp(14px, 2vw, 24px)) / 3); align-items: start; }
@media (max-width: 1000px) { .acards { grid-auto-columns: calc((100% - 2 * 16px) / 3); } .tcards { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 700px) { .acards { grid-auto-columns: 62%; } .tcards { grid-auto-columns: 86%; } }
.listing-main .tcards { grid-auto-columns: calc((100% - clamp(14px, 2vw, 24px)) / 2); }
@media (max-width: 700px) { .listing-main .tcards { grid-auto-columns: 86%; } }

/* ---------- agent cards ---------- */
.agent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
@media (max-width: 1000px) { .agent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .agent-grid { grid-template-columns: 1fr; } }
.acard { position: relative; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.acard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.acard-photo { display: block; aspect-ratio: 4 / 5; background: var(--sand-deep); overflow: hidden; }
.acard-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.acard:hover .acard-photo img { transform: scale(1.04); }
.acard-blank { width: 100%; height: 100%; min-height: 160px; display: grid; place-items: center; background: linear-gradient(140deg, var(--navy-700), var(--navy-900)); color: var(--cyan); font-family: var(--serif); font-size: 3rem; }
.acard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.acard-name { font-size: 1.25rem; margin: 0 0 2px; }
.acard-name a { color: var(--ink); }
.acard-role { font-size: .82rem; color: var(--muted); font-weight: 600; margin: 0 0 4px; line-height: 1.4; }
.acard-count { font-size: .82rem; font-weight: 700; color: var(--azure); margin: 0; }
.acard-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.acard-actions .chip-btn { flex: 1; min-width: 0; white-space: nowrap; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; background: var(--navy-900); color: rgba(255, 255, 255, .88); overflow: hidden; }
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 78%; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 21, 37, .96) 0%, rgba(6, 21, 37, .82) 45%, rgba(6, 21, 37, .2) 100%); }
.cta-inner { padding-block: clamp(56px, 8vw, 100px); }
.cta-inner h2 { color: #fff; max-width: 18ch; }
.cta-inner p:not(.eyebrow) { max-width: 46ch; font-size: 1.08rem; margin: 0; }
@media (max-width: 760px) { .cta-band::before { background: rgba(6, 21, 37, .86); } }

/* ---------- testimonials ---------- */
.tcard { margin: 0; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px 24px 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.section-tint .tcard, .listing-main .tcard { background: var(--sand); box-shadow: none; }
.tcard-stars { color: var(--gold); letter-spacing: 3px; font-size: 1rem; margin-bottom: 12px; }
.stars-off { color: var(--line); }
.tcard-text { margin: 0; font-family: var(--serif); font-size: 1.08rem; line-height: 1.55; color: var(--ink); font-weight: 400; }
.tcard-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-more { align-self: flex-start; border: 0; background: none; padding: 6px 0 0; color: var(--azure); font-weight: 700; font-size: .88rem; }
.tcard-who { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.tcard-initials { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--navy-900); color: var(--cyan); display: grid; place-items: center; font-weight: 800; font-size: .85rem; letter-spacing: .04em; }
.tcard-who strong { display: block; color: var(--ink); line-height: 1.3; }
.tcard-who small { color: var(--muted); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; transition: transform .25s ease, background-color .25s; color: var(--ink); }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--cyan); }
.faq-answer { padding: 0 22px 20px; max-width: 70ch; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
    background: var(--paper); color: var(--ink); font-weight: 500; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2233' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 4px rgba(0, 222, 255, .22); }
.has-error input, .has-error textarea, .has-error select { border-color: var(--red); }
.form-error { margin: 0; font-size: .84rem; font-weight: 600; color: var(--red); }
.form-error-top { padding: 10px 14px; background: #fdf1f0; border-radius: var(--radius-sm); }
.form-small { margin: 0; font-size: .8rem; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- listings page ---------- */
.filters { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 22px; box-shadow: var(--shadow); padding: 10px; position: relative; z-index: 5; }
.filters-main { display: grid; grid-template-columns: 1.3fr 1.2fr 1.1fr .8fr auto auto; gap: 6px; align-items: stretch; }
.filters-main-fixed { grid-template-columns: 1.3fr 1.1fr .8fr auto auto; }
.filters-main .btn { min-height: 60px; border-radius: 14px; }
.filters .search-field + .search-field::before { content: ""; position: absolute; left: -3px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.input-icon { display: flex; align-items: center; gap: 8px; }
.input-icon .i { color: var(--muted); }
.filters-more { display: none; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.filters-more.is-open { display: block; }
.filters-row { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 6px; }
.filters-toggle[aria-expanded="true"] { border-color: var(--navy-900); }
.feature-picks { border: 0; margin: 8px 0 0; padding: 8px 14px 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feature-picks legend { float: left; margin-right: 6px; padding: 0; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--ink); background: var(--paper); transition: all .15s; }
.pick:hover span { border-color: var(--navy-900); }
.pick input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pick input:checked + span::before { content: "✓"; color: var(--cyan); font-weight: 800; }
.pick input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 1020px) {
    .filters-main, .filters-main-fixed { grid-template-columns: 1fr 1fr; }
    .filters-row { grid-template-columns: 1fr 1fr; }
    .filters-row .search-field-text { grid-column: 1 / -1; }
    .filters .search-field { background: var(--sand); }
    .filters .search-field + .search-field::before { display: none; }
    .filters-main .btn { min-height: 52px; }
    .filters-main-fixed .btn-primary { grid-column: 1 / -1; }
}

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin: 26px 0 22px; min-height: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--cyan-soft); color: var(--azure-dark); font-weight: 700; font-size: .86rem; }
.chip .i { width: 1em; height: 1em; }
a.chip:hover { background: var(--navy-900); color: #fff; }
.chip-clear { background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
a.chip-clear:hover { background: transparent; color: var(--ink); }
.chips-static .chip { background: var(--sand); color: var(--ink); }
.chips-static .chip .i { color: var(--azure); }
.sort { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sort label { font-size: .86rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sort select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 38px 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2233' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 15px; font-weight: 700; color: var(--ink); cursor: pointer; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: clamp(32px, 5vw, 56px); flex-wrap: wrap; }
.page-nums { display: flex; gap: 6px; }
.page-num, .page-btn { min-width: 46px; height: 46px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; color: var(--ink); background: var(--paper); }
a.page-num:hover, a.page-btn:hover { border-color: var(--navy-900); color: var(--ink); }
.page-num.is-current { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.page-btn.is-disabled { opacity: .4; }
@media (max-width: 520px) { .page-btn span { display: none; } }

.empty { text-align: center; padding: clamp(40px, 8vw, 80px) 20px; background: var(--sand); border-radius: var(--radius); }
.empty > .i { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--azure); }
.empty h2 { font-size: 1.6rem; }
.empty p { max-width: 52ch; margin-inline: auto; }

/* ---------- listing page ---------- */
.listing-top { padding-top: 22px; }
.listing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; }
.listing-place a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.listing-place a:hover { color: var(--azure); }
.listing-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); margin: 10px 0 6px; }
.listing-top + .section { padding-top: 26px; }
.listing-place { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-weight: 600; }
.listing-place .i { color: var(--azure); }
.listing-price { text-align: right; display: grid; }
.listing-price strong { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 600; color: var(--ink); line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; }
.listing-price span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { padding: 5px 12px; border-radius: 999px; background: var(--sand); color: var(--ink); font-weight: 700; font-size: .78rem; letter-spacing: .03em; }
.badge-sale { background: #e5f6ec; color: #136237; }
.badge-sold { background: #fbe6e3; color: #9c2a21; }
.badge-offer { background: #f8eedb; color: #7d5a1b; }
@media (max-width: 700px) { .listing-price { text-align: left; } }

.gallery { position: relative; margin-bottom: 26px; }
.gallery-stage { position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--navy-950); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; display: block; aspect-ratio: 16 / 9; max-height: min(680px, 74vh); cursor: zoom-in; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); transition: background-color .15s, transform .15s, opacity .15s; }
.gallery-nav:hover { background: var(--cyan); }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }
.gallery-nav .i { width: 24px; height: 24px; }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-count { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 999px; background: rgba(1, 29, 54, .82); backdrop-filter: blur(6px); color: #fff; font-weight: 700; font-size: .86rem; }
.gallery-count:hover { background: var(--navy-900); }
.gallery-flag { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--gold); color: #fff; font-weight: 700; font-size: .84rem; }
.gallery-flag .i { fill: currentColor; width: 1em; height: 1em; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gallery-thumb { flex: 0 0 auto; width: 116px; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--sand-deep); opacity: .62; transition: opacity .15s, box-shadow .15s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-current { opacity: 1; box-shadow: 0 0 0 3px var(--cyan); }
.gallery.is-sold .gallery-slide img { filter: grayscale(.6) brightness(.82); }
.gallery-empty { aspect-ratio: 16 / 7; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); font-weight: 600; background: var(--sand-deep); border-radius: calc(var(--radius) + 4px); }
.gallery-empty .i { width: 44px; height: 44px; opacity: .6; }
.gallery-empty p { margin: 0; }
@media (max-width: 700px) {
    .listing-top .container { padding-inline: 0; }
    .listing-top .crumbs, .listing-head { padding-inline: var(--gutter); }
    .gallery-stage { border-radius: 0; }
    .gallery-slide { aspect-ratio: 4 / 3; }
    .gallery-nav { display: none; }
    .gallery-thumbs { padding-inline: var(--gutter); }
    .gallery-thumb { width: 84px; }
}

.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.listing-main, .listing-side { min-width: 0; }
.listing-main > .h3 { margin-top: 1.9em; padding-top: 1.5em; border-top: 1px solid var(--line-soft); }
.listing-main > .h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.listing-side { position: sticky; top: calc(var(--header-h) + 18px); }
@media (max-width: 980px) { .listing-layout { grid-template-columns: minmax(0, 1fr); } .listing-side { position: static; } }

.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.keyfacts li { display: grid; justify-items: start; gap: 2px; padding: 16px 18px; background: var(--sand); border-radius: var(--radius); }
.keyfacts .i { width: 24px; height: 24px; color: var(--azure); margin-bottom: 8px; }
.keyfacts strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); line-height: 1.1; white-space: nowrap; }
.keyfacts span { font-size: .82rem; font-weight: 600; color: var(--muted); }

.p24 { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 16px 18px; border-radius: var(--radius); border: 1.5px solid var(--line); color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.p24:hover { border-color: var(--navy-900); box-shadow: var(--shadow-sm); color: var(--ink); transform: translateY(-1px); }
.p24-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--navy-900); color: var(--cyan); display: grid; place-items: center; }
.p24-icon .i { width: 22px; height: 22px; }
.p24 > span:nth-child(2) { flex: 1; display: grid; }
.p24 strong { line-height: 1.3; }
.p24 small { color: var(--muted); font-size: .86rem; }
.p24 > .i { color: var(--azure); width: 20px; height: 20px; }

.prose { color: var(--body); font-size: 1.03rem; max-width: 72ch; }
.prose p { margin-bottom: 1.05em; }
.prose ul { margin: 0 0 1.05em; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.prose.is-collapsed { max-height: 21em; overflow: hidden; position: relative; }
.prose.is-collapsed::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6em; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff); }
.prose-toggle { border: 0; background: none; padding: 4px 0; color: var(--azure); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.details dt { color: var(--muted); font-weight: 600; }
.details dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }
@media (max-width: 620px) { .details { grid-template-columns: 1fr; } }

.calc { padding: clamp(16px, 2.6vw, 28px); background: var(--sand); border-radius: var(--radius); }
.calc-tabs { display: flex; gap: 6px; padding: 5px; background: var(--paper); border-radius: 14px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.calc-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--body); font-weight: 700; font-size: .92rem; white-space: nowrap; transition: background-color .15s, color .15s; }
.calc-tab:hover { color: var(--ink); background: var(--sand); }
.calc-tab.is-current { background: var(--navy-900); color: #fff; }
.calc-tab.is-current .i { color: var(--cyan); }
.calc-shared { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.calc-shared-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc .field label small { display: block; font-weight: 500; color: var(--muted); }
.money { display: flex; align-items: center; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
.money:focus-within { border-color: var(--azure); box-shadow: 0 0 0 4px rgba(0, 222, 255, .22); }
.money > span { padding: 0 0 0 14px; font-weight: 800; color: var(--muted); }
.money-after > span { padding: 0 14px 0 0; }
.money input { border: 0 !important; box-shadow: none !important; background: transparent !important; padding-left: 8px !important; font-weight: 700 !important; min-width: 0; }
.calc-result { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--navy-900); color: rgba(255, 255, 255, .84); font-weight: 600; }
.calc-result strong { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 500; color: var(--cyan); line-height: 1; white-space: nowrap; }
.calc-lines { margin: 6px 0 0; }
.calc-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.calc-lines div:last-child { border-bottom: 0; }
.calc-lines dt { color: var(--body); font-weight: 600; }
.calc-lines dt small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.calc-lines dd { margin: 0; font-weight: 800; color: var(--ink); white-space: nowrap; }
.calc-panel > .calc-lines:first-child { margin: 0 0 12px; }
.calc-lines-total div { padding-top: 14px; }
.calc-lines-total dd { font-size: 1.1rem; }
.calc-note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
.qualify-lead { margin-top: 20px; padding: clamp(16px, 2.4vw, 24px); background: var(--paper); border-radius: var(--radius-sm); display: grid; gap: 14px; }
.qualify-lead h3 { margin: 0; }
.qualify-lead p { margin: 0; color: var(--body); font-size: .95rem; }
.qualify-lead .btn { justify-self: start; }
.qualify-link { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--cyan-soft); color: var(--ink); transition: background-color .15s; }
.qualify-link:hover { background: var(--cyan); color: var(--navy-900); }
.qualify-link > span { flex: 1; display: grid; line-height: 1.35; }
.qualify-link small { font-size: .8rem; color: var(--body); }
.qualify-link > .i:first-child { width: 26px; height: 26px; color: var(--azure-dark); }
.calc-explain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); margin-top: clamp(32px, 5vw, 56px); }
.calc-explain p { margin: 0; font-size: .97rem; }
.container.narrow-wide { max-width: 980px; }
@media (max-width: 620px) { .calc-tabs { flex-direction: column; } .calc-tab { justify-content: flex-start; } }
@media (max-width: 760px) { .calc-shared, .calc-shared-3 { grid-template-columns: 1fr 1fr; } .calc-shared-3 > :first-child { grid-column: 1 / -1; } .calc-explain { grid-template-columns: 1fr; } }

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 2em; padding-top: 1.5em; border-top: 1px solid var(--line-soft); }
.share > span { font-weight: 700; color: var(--ink); margin-right: 6px; }

.side-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: clamp(20px, 2.6vw, 28px); }
.side-card .h3 { margin: 0 0 6px; }
.side-note { margin: 0 0 6px; color: var(--muted); font-size: .93rem; }
.side-agent { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.side-agent-photo img, .side-agent-photo .avatar-blank { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 0; }
.side-agent-info { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.side-agent-info a { color: var(--ink); }
.side-agent-info small { color: var(--muted); font-size: .8rem; }
.side-agent-actions { display: flex; gap: 6px; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(4, 12, 22, .94); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.lightbox-close, .lightbox-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--cyan); color: var(--navy-900); }
.lightbox-close { right: 16px; top: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .i { width: 24px; height: 24px; }
.lightbox-counter { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: .9rem; background: rgba(255, 255, 255, .14); padding: 6px 14px; border-radius: 999px; }
.lightbox-counter:empty { display: none; }

/* ---------- "show all photos" button + collage ---------- */
.gallery-all { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink); font-weight: 800; font-size: .88rem; box-shadow: var(--shadow); transition: background-color .15s, transform .15s; }
.gallery-all:hover { background: var(--cyan); transform: translateY(-1px); }
.gallery-all .i { width: 1.1em; height: 1.1em; }
.gallery-all-short { display: none; }
@media (max-width: 560px) { .gallery-all-long { display: none; } .gallery-all-short { display: inline; } }

.collage { position: fixed; inset: 0; z-index: 250; overflow-y: auto; overscroll-behavior: contain; background: var(--sand); animation: collage-in .3s ease; }
.collage[hidden] { display: none; }
.collage-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); background: rgba(247, 244, 238, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.collage-title { min-width: 0; }
.collage-title strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.1rem, 2.2vw, 1.45rem); color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collage-title span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.collage-close { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; transition: background-color .15s; }
.collage-close:hover { background: var(--cyan); border-color: var(--cyan); }
.collage-close .i { width: 22px; height: 22px; }
.collage { container-type: inline-size; }
.collage-grid {
    /* full width; tiles about 425 px wide, so the column count follows the screen.
       A row is 3/4 of a column, so ordinary (4:3) photos show uncropped. */
    --cols: 3; --gap: 12px;
    padding: 22px var(--gutter) 64px;
    display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--gap);
    grid-auto-rows: calc((100vw - 2 * var(--gutter) - (var(--cols) - 1) * var(--gap)) / var(--cols) * .75);
    grid-auto-rows: calc((100cqw - 2 * var(--gutter) - (var(--cols) - 1) * var(--gap)) / var(--cols) * .75);
}
@media (min-width: 1700px) { .collage-grid { --cols: 4; } }
@media (min-width: 701px) and (max-width: 999px) { .collage-grid { --cols: 2; } }
.collage-tile { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--sand-deep); cursor: zoom-in; opacity: 0; transform: translateY(14px) scale(.985); animation: tile-in .5s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 28ms); }
.collage-tile.big { grid-column: span 2; grid-row: span 2; }
.collage-tile.tall { grid-row: span 2; }
.collage-tile.tall-r { grid-column: -2 / -1; grid-row: span 2; }
.collage-tile.big-r { grid-column: -3 / -1; grid-row: span 2; }
.collage-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .collage-tile:hover img { transform: scale(1.05); } .collage-tile:hover::after { box-shadow: inset 0 0 0 3px var(--cyan); } }
.collage-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px transparent; transition: box-shadow .2s; }
.collage-tile:focus-visible::after { box-shadow: inset 0 0 0 3px var(--cyan); }
@keyframes collage-in { from { opacity: 0; } }
@keyframes tile-in { to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
    /* phones: one photo per row, full width */
    .collage-grid { --cols: 1; --gap: 8px; padding-top: 12px; }
    .collage-tile.big, .collage-tile.big-r, .collage-tile.tall, .collage-tile.tall-r { grid-column: auto; grid-row: auto; }
    .collage-tile { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .collage, .collage-tile { animation: none; opacity: 1; transform: none; }
    .collage-tile img { transition: none; }
}

/* ---------- agent page ---------- */
.agent-hero { display: grid; grid-template-columns: minmax(150px, 200px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.agent-hero-photo { border-radius: var(--radius); overflow: hidden; background: var(--navy-800); aspect-ratio: 4 / 5; box-shadow: var(--shadow-sm); }
.agent-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-hero-text { padding: 0; }
.page-head .agent-role { color: var(--azure); font-weight: 700; margin-bottom: 16px; }
.agent-stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.agent-stats li { display: flex; align-items: baseline; gap: 8px; }
.agent-stats strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; color: var(--ink); line-height: 1; }
.agent-stats span { font-size: .88rem; }
@media (max-width: 700px) {
    .agent-hero { grid-template-columns: minmax(0, 1fr); }
    .agent-hero-photo { max-width: 130px; }
}

/* ---------- about ---------- */
.bigstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.bigstats li { display: grid; gap: 4px; }
.bigstats strong { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; color: var(--cyan); line-height: 1; }
.bigstats span { font-weight: 600; font-size: .95rem; }
@media (max-width: 700px) { .bigstats { grid-template-columns: 1fr 1fr; gap: 32px 16px; } }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 30px); }
.value { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: var(--sand); }
.value .i { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--navy-900); color: var(--cyan); margin-bottom: 18px; }
.value p { margin: 0; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }
.team-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); }
.team-face { display: grid; gap: 2px; color: var(--ink); text-align: center; }
.team-face img, .team-face .acard-blank { width: 100%; aspect-ratio: 4 / 5; min-height: 0; object-fit: cover; border-radius: var(--radius); margin-bottom: 10px; transition: transform .25s ease, box-shadow .25s ease; }
.team-face:hover img { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-face strong { line-height: 1.3; }
.team-face small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
@media (max-width: 1000px) { .team-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 620px) { .team-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-info { display: grid; gap: 12px; }
.info-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--sand); color: var(--ink); transition: background-color .2s, transform .2s; }
a.info-card:hover { background: var(--cyan-soft); color: var(--ink); transform: translateX(3px); }
.info-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--navy-900); color: var(--cyan); display: grid; place-items: center; }
.info-icon .i { width: 22px; height: 22px; }
.info-card > span:last-child { display: grid; min-width: 0; flex: 1; }
.info-card small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.info-card strong { line-height: 1.4; overflow-wrap: anywhere; }
.contact-form { position: relative; z-index: 2; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } .contact-form { margin-top: 0; order: -1; } }
.direct-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.direct-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line-soft); }
.direct-face img, .direct-face .avatar-blank { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 0; }
.direct-name { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.direct-name a:first-child { color: var(--ink); }
.direct-name a:last-child { font-size: .9rem; font-weight: 600; }

/* ---------- news ---------- */
.post { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line-soft); }
.post:last-child { border-bottom: 0; }
.post-image { width: 100%; border-radius: var(--radius); margin-bottom: 20px; }
.post-meta { color: var(--muted); font-weight: 600; font-size: .88rem; margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .9fr 1.3fr 1.4fr; gap: 40px clamp(28px, 4vw, 60px); padding-block: clamp(48px, 7vw, 80px) 40px; }
.footer-badge { width: 112px; height: 112px; margin-bottom: 18px; }
.footer-brand p { max-width: 36ch; }
.footer-title { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 6px 0 18px; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: var(--cyan); }
.footer-links { display: grid; gap: 10px; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .i { color: var(--cyan); margin-top: 4px; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-bottom { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- suburb / type picker (a searchable tick list built on a <select multiple>) ---------- */
.picker { position: relative; }
.picker select[multiple] { height: 28px; }                      /* before the script upgrades it */
.picker.is-ready select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.picker-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 2px 0; border: 0; background: transparent; font-weight: 700; font-size: 1rem; color: var(--ink); text-align: left; cursor: pointer; }
.picker-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-button .i { flex: none; width: 16px; height: 16px; transition: transform .2s; }
.picker.is-open .picker-button .i { transform: rotate(180deg); }
.picker-pop { position: absolute; left: -4px; top: calc(100% + 10px); z-index: 60; width: max(100%, 300px); max-width: min(360px, calc(100vw - 2 * var(--gutter))); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 10px; display: none; color: var(--ink); }
.picker.is-open .picker-pop { display: block; }
.picker .picker-search { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.picker .picker-search:focus-within { border-color: var(--azure); }
.picker .picker-search .i { color: var(--muted); }
.picker .picker-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; min-height: 42px; font-weight: 600; font-size: 1rem; color: var(--ink); cursor: text; padding: 0; }
.picker-list { max-height: min(280px, 42vh); overflow-y: auto; display: grid; gap: 2px; overscroll-behavior: contain; }
.picker .picker-option { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.picker .picker-option:hover { background: var(--sand); }
.picker .picker-option input { appearance: auto; -webkit-appearance: auto; width: 18px; height: 18px; flex: none; accent-color: var(--navy-900); cursor: pointer; padding: 0; background: none; }
.picker .picker-option span { flex: 1; }
.picker .picker-option em { font-style: normal; font-size: .8rem; color: var(--muted); font-weight: 600; }
.picker-empty { padding: 12px 10px; color: var(--muted); font-size: .92rem; margin: 0; }
.picker-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.picker-foot button { border: 0; background: none; font-weight: 700; font-size: .9rem; padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.picker-foot button:hover { background: var(--sand); color: var(--ink); }
.picker-foot .picker-done { background: var(--navy-900); color: #fff; padding-inline: 18px; }
.picker-foot .picker-done:hover { background: var(--navy-700); color: #fff; }

/* ---------- property card extras ---------- */
.pcard-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; opacity: 0; transition: opacity .2s, background-color .15s; box-shadow: var(--shadow-sm); }
.pcard-prev { left: 10px; }
.pcard-next { right: 10px; }
.pcard:hover .pcard-nav, .pcard-nav:focus-visible { opacity: 1; }
.pcard-nav:hover { background: var(--cyan); }
@media (hover: none) { .pcard-nav { opacity: 1; } }
.pcard-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(1, 29, 54, .78); backdrop-filter: blur(6px); color: #fff; font-size: .75rem; font-weight: 700; pointer-events: none; }
.pcard-count .i { width: 1em; height: 1em; }
.pcard-flag-featured { display: inline-flex; align-items: center; gap: 5px; }
.pcard-flag-featured .i { width: 1em; height: 1em; fill: currentColor; }
.pcard.is-featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow-sm); }

/* ---------- featured property ---------- */
.section-tight { padding: clamp(28px, 4vw, 48px) 0 0; }
.section-after-feature { padding-top: clamp(44px, 6vw, 72px); }
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--navy-900); color: rgba(255, 255, 255, .84); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: rgba(255, 255, 255, .84); }
.feature-media { position: relative; min-height: 320px; overflow: hidden; background: var(--navy-800); }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.feature:hover .feature-media img { transform: scale(1.04); }
.feature-flag { position: absolute; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--gold); color: #fff; font-weight: 700; font-size: .84rem; }
.feature-flag .i { fill: currentColor; width: 1em; height: 1em; }
.feature-body { padding: clamp(24px, 3.6vw, 48px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.feature-body .eyebrow { color: var(--cyan); }
.feature-body h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: .3em; }
.feature-price { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--cyan); margin: 0 0 .5em; line-height: 1.1; }
.feature-text { margin-bottom: 1.2em; }
.feature .facts { border-top-color: rgba(255, 255, 255, .16); margin: 0 0 1.6em; width: 100%; }
.feature .facts li { color: #fff; }
.feature .facts .i { color: var(--cyan); }
.feature .btn-primary { background: var(--cyan); color: var(--navy-900); }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature-media { min-height: 0; aspect-ratio: 16 / 10; } }

/* ---------- market assessment ---------- */
.assess { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 96px); }
.assess::before { content: ""; position: absolute; left: -10%; bottom: -70%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 222, 255, .16), rgba(0, 222, 255, 0)); pointer-events: none; }
.assess-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.assess-text h2 { color: #fff; }
.assess-text > p:not(.eyebrow) { font-size: 1.06rem; max-width: 48ch; }
.ticks-light strong, .ticks-light span { color: rgba(255, 255, 255, .9); }
.ticks-light .i { background: rgba(0, 222, 255, .16); color: var(--cyan); }
.assess .side-card { color: var(--body); }
.optional { font-weight: 500; color: var(--muted); font-size: .78rem; }
.steps { display: grid; gap: 14px; align-content: start; }
.step { display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--sand); }
.step > span { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-900); color: var(--cyan); display: grid; place-items: center; font-family: var(--serif); font-size: 1.25rem; }
.step h2 { margin: 4px 0 4px; }
.step p { margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .assess-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- suburbs ---------- */
.area-find { margin-top: clamp(18px, 2.4vw, 28px); }
.area-search { display: inline-flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 46px; width: min(100%, 320px); border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); margin-bottom: 14px; }
.area-search:focus-within { border-color: var(--azure); box-shadow: 0 0 0 4px rgba(0, 222, 255, .22); }
.area-search .i { color: var(--muted); }
.area-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-weight: 600; color: var(--ink); }
.area-search-lg { width: min(100%, 420px); min-height: 54px; margin-bottom: 22px; }
.area-find .area-list { margin-top: 0; }
.area-none { margin: 12px 0 0; color: var(--muted); }
.credits { margin-top: clamp(28px, 4vw, 44px); font-size: .82rem; color: var(--muted); }
.credits summary { cursor: pointer; font-weight: 700; color: var(--ink); width: max-content; }
.credits ul { margin-top: 12px; columns: 2 320px; column-gap: 32px; }
.credits li { break-inside: avoid; margin-bottom: 6px; line-height: 1.45; }
.credits strong { color: var(--ink); }
.section-note-wide { max-width: none; margin-top: 22px; }
.suburb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scard { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-soft); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.scard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.scard-media { flex: none; width: 84px; height: 66px; border-radius: 10px; overflow: hidden; background: var(--sand-deep); display: grid; place-items: center; }
.scard-media img { width: 100%; height: 100%; object-fit: cover; }
.scard-plain { background: linear-gradient(140deg, var(--navy-700), var(--navy-900)); color: var(--cyan); }
.scard-plain .i { width: 24px; height: 24px; }
.scard-text { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.scard-text strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.scard-text span { font-size: .84rem; color: var(--muted); font-weight: 600; }
.scard > .i { color: var(--azure); }
@media (max-width: 900px) { .suburb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .suburb-grid { grid-template-columns: 1fr; } }
.suburb-where { display: flex; align-items: center; gap: 8px; margin: -6px 0 18px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--azure); }
.suburb-about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .suburb-about { grid-template-columns: minmax(0, 1fr); } }

/* ---------- agents page ---------- */
.agent-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 24px; font-weight: 700; color: var(--ink); }
.agent-filter label { display: inline-flex; align-items: center; gap: 8px; }
.agent-filter label .i { color: var(--azure); }
.agent-filter select { appearance: none; -webkit-appearance: none; min-height: 46px; padding: 0 40px 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2233' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
/* Agents page: three tall cards, big photo on top */
.agent-grid-rich { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .agent-grid-rich { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .agent-grid-rich { grid-template-columns: minmax(0, 1fr); } }
.acard-photo { position: relative; }
.acard-badge { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: var(--cyan); color: var(--navy-900); font-size: .78rem; font-weight: 800; }
.acard-rich .acard-photo { aspect-ratio: 1 / 1; }
.acard-rich .acard-photo img { object-position: 50% 22%; }
.acard-rich .acard-body { padding: 20px 22px 20px; min-width: 0; }
.acard-rich .acard-name { font-size: 1.4rem; }
.acard-bio { font-size: .88rem; color: var(--body); margin: 8px 0 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acard-areas { display: flex; gap: 6px; align-items: flex-start; font-size: .82rem; font-weight: 600; color: var(--ink); margin: 10px 0 0; line-height: 1.4; }
.acard-areas .i { color: var(--azure); flex: none; margin-top: 2px; width: 1em; height: 1em; }
.acard-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: .9rem; }
.acard-rich .acard-actions { flex-wrap: nowrap; }
.acard-rich .acard-actions .chip-btn { flex: 1 1 auto; }
.acard-rich .acard-actions .icon-btn { flex: none; }

/* ---------- news ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.ncard { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.ncard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ncard-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--sand-deep); overflow: hidden; }
.ncard-media img { width: 100%; height: 100%; object-fit: cover; }
.ncard-blank { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.ncard-blank .i { width: 40px; height: 40px; opacity: .5; }
.ncard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ncard-body h2, .ncard-body h3 { margin: 0 0 8px; }
.ncard-body h2 a, .ncard-body h3 a { color: var(--ink); }
.ncard-body h2 a::after, .ncard-body h3 a::after { content: ""; position: absolute; inset: 0; }
.ncard-body p { font-size: .95rem; }
.ncard-body .link-arrow { margin-top: auto; }
.post { border: 0; padding-bottom: 0; margin-bottom: 0; }
.post-photos { display: grid; gap: 8px; margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; }
.post-photos .gallery-slide { aspect-ratio: 3 / 2; max-height: none; }
.post-photos-2 { grid-template-columns: 1fr 1fr; }
.post-photos-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-photos-3 .gallery-slide:first-child { grid-row: 1 / -1; aspect-ratio: auto; }
.post-photos-3 .gallery-slide:not(:first-child) { aspect-ratio: 4 / 3; }
.prose-lg { font-size: 1.1rem; max-width: none; }
@media (max-width: 560px) { .post-photos-3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .post-photos-3 .gallery-slide:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; } }

/* ---------- small-screen fixes ---------- */
@media (max-width: 720px) {
    .acard-actions .chip-btn { flex: 1 1 100%; }
    .acard-actions .icon-btn { flex: 1; }
}
@media (max-width: 520px) {
    .area { aspect-ratio: 1; }
    .area-text { left: 14px; right: 14px; bottom: 12px; }
    .area-text strong { font-size: 1.08rem; overflow-wrap: anywhere; }
    .area-go { display: none; }
    .info-card { padding: 16px; gap: 14px; }
    .info-card strong { font-size: .93rem; }
}

/* Property page on phones: contact buttons always within thumb reach */
.mobile-bar { display: none; }
@media (max-width: 980px) {
    .mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 80; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(9, 30, 52, .1); }
    .mobile-bar .btn { min-height: 46px; padding: 0 10px; font-size: .9rem; }
    .has-mobile-bar .site-footer { padding-bottom: 72px; }
}

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .cta-band, .listing-side, .share, .calc, .flash-wrap, .gallery-tools, .mobile-bar { display: none !important; }
    main { padding-top: 0; }
    body { color: #000; }
}

/* ---------- home: suburb explorer (postcards) ---------- */
.pc-section { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(120% 90% at 85% 0%, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%); color: rgba(255, 255, 255, .78); }
.pc-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/contours.svg") center / cover no-repeat; opacity: .09; }
.pc-section h2 { color: #fff; }
.pc-section h2 em { font-style: italic; color: var(--cyan); }
.pc-section.section { padding-block: clamp(36px, 6vh, 64px); }
.pc-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 32px; margin-bottom: 14px; }
.pc-head .eyebrow { margin-bottom: .55em; }
.pc-head h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }

/* the deck's height follows the screen; its width keeps the photo at 4:3 */
.pc { --pc-h: clamp(300px, min(57vh, 42vw), 540px); display: grid; grid-template-columns: calc(var(--pc-h) * 1.16) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }

/* the deck */
.pc-stage { position: relative; height: var(--pc-h); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; border-radius: 12px; }
.pc-stage:active { cursor: grabbing; }
.pc-stage:focus-visible { outline-offset: 6px; }
.pc-card {
    position: absolute; inset: 4% 5% 6% 3%;
    display: flex; flex-direction: column;
    padding: 12px 12px 0; border-radius: 6px;
    background: #fbf8f1; color: var(--ink);
    box-shadow: 0 2px 3px rgba(0, 0, 0, .18), 0 30px 60px rgba(0, 8, 20, .45);
    transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .45s ease, filter .45s ease;
    will-change: transform;
}
.pc-card.pc-pos-0 { z-index: 3; transform: none; }
.pc-card.pc-pos-1 { z-index: 2; transform: translate(-5%, 3%) rotate(-6deg) scale(.95); filter: brightness(.8); }
.pc-card.pc-pos-2 { z-index: 1; transform: translate(5.5%, -1%) rotate(5deg) scale(.92); filter: brightness(.66); }
.pc-card.is-gone-left { z-index: 4; transform: translate(-118%, 6%) rotate(-17deg); opacity: 0; }
.pc-card.is-gone-right { z-index: 4; transform: translate(118%, 6%) rotate(17deg); opacity: 0; }
.pc-card.no-anim { transition: none !important; }
.pc.is-intro .pc-pos-1 { animation: pc-fan-l 1.1s cubic-bezier(.3, .7, .2, 1) both; }
.pc.is-intro .pc-pos-2 { animation: pc-fan-r 1.1s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes pc-fan-l { 45% { transform: translate(-12%, 4%) rotate(-11deg) scale(.96); } }
@keyframes pc-fan-r { 45% { transform: translate(12%, 0) rotate(10deg) scale(.93); } }

.pc-photo { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 2px; background: var(--navy-800); }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pc-photo.is-tall { background: var(--pc-bg) center / cover; }
.pc-photo.is-tall::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(18px) brightness(.7); -webkit-backdrop-filter: blur(18px) brightness(.7); }
.pc-photo.is-tall img { position: relative; object-fit: contain; }
.pc-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), inset 0 -60px 80px -60px rgba(0, 0, 0, .35); pointer-events: none; }
.pc-blank { display: none; position: absolute; inset: 0; padding: 8%; flex-direction: column; justify-content: flex-end; background: url("../img/contours.svg") center / cover, linear-gradient(150deg, var(--navy-700), var(--navy-950)); color: #fff; }
.pc-photo.is-blank img { display: none; }
/* Google satellite pictures are shown whole (their logo and credit must stay visible) and unshaded */
.pc-photo.is-aerial img { object-fit: contain; }
.pc-photo.is-aerial::after { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.pc-photo.is-blank .pc-blank { display: flex; }
.pc-blank span { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.6vw, 1.3rem); color: var(--cyan); }
.pc-blank strong { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.02em; }

.pc-stamp {
    position: absolute; top: 14px; right: 14px; width: 84px; height: 99px; padding: 7px;
    background: #fbf8f1; transform: rotate(3deg);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 104'%3E%3Cmask id='m'%3E%3Crect width='88' height='104' fill='white'/%3E%3Cg fill='black'%3E%3Ccircle cx='4' cy='0' r='3.1'/%3E%3Ccircle cx='4' cy='104' r='3.1'/%3E%3Ccircle cx='12' cy='0' r='3.1'/%3E%3Ccircle cx='12' cy='104' r='3.1'/%3E%3Ccircle cx='20' cy='0' r='3.1'/%3E%3Ccircle cx='20' cy='104' r='3.1'/%3E%3Ccircle cx='28' cy='0' r='3.1'/%3E%3Ccircle cx='28' cy='104' r='3.1'/%3E%3Ccircle cx='36' cy='0' r='3.1'/%3E%3Ccircle cx='36' cy='104' r='3.1'/%3E%3Ccircle cx='44' cy='0' r='3.1'/%3E%3Ccircle cx='44' cy='104' r='3.1'/%3E%3Ccircle cx='52' cy='0' r='3.1'/%3E%3Ccircle cx='52' cy='104' r='3.1'/%3E%3Ccircle cx='60' cy='0' r='3.1'/%3E%3Ccircle cx='60' cy='104' r='3.1'/%3E%3Ccircle cx='68' cy='0' r='3.1'/%3E%3Ccircle cx='68' cy='104' r='3.1'/%3E%3Ccircle cx='76' cy='0' r='3.1'/%3E%3Ccircle cx='76' cy='104' r='3.1'/%3E%3Ccircle cx='84' cy='0' r='3.1'/%3E%3Ccircle cx='84' cy='104' r='3.1'/%3E%3Ccircle cx='0' cy='4' r='3.1'/%3E%3Ccircle cx='88' cy='4' r='3.1'/%3E%3Ccircle cx='0' cy='12' r='3.1'/%3E%3Ccircle cx='88' cy='12' r='3.1'/%3E%3Ccircle cx='0' cy='20' r='3.1'/%3E%3Ccircle cx='88' cy='20' r='3.1'/%3E%3Ccircle cx='0' cy='28' r='3.1'/%3E%3Ccircle cx='88' cy='28' r='3.1'/%3E%3Ccircle cx='0' cy='36' r='3.1'/%3E%3Ccircle cx='88' cy='36' r='3.1'/%3E%3Ccircle cx='0' cy='44' r='3.1'/%3E%3Ccircle cx='88' cy='44' r='3.1'/%3E%3Ccircle cx='0' cy='52' r='3.1'/%3E%3Ccircle cx='88' cy='52' r='3.1'/%3E%3Ccircle cx='0' cy='60' r='3.1'/%3E%3Ccircle cx='88' cy='60' r='3.1'/%3E%3Ccircle cx='0' cy='68' r='3.1'/%3E%3Ccircle cx='88' cy='68' r='3.1'/%3E%3Ccircle cx='0' cy='76' r='3.1'/%3E%3Ccircle cx='88' cy='76' r='3.1'/%3E%3Ccircle cx='0' cy='84' r='3.1'/%3E%3Ccircle cx='88' cy='84' r='3.1'/%3E%3Ccircle cx='0' cy='92' r='3.1'/%3E%3Ccircle cx='88' cy='92' r='3.1'/%3E%3Ccircle cx='0' cy='100' r='3.1'/%3E%3Ccircle cx='88' cy='100' r='3.1'/%3E%3C/g%3E%3C/mask%3E%3Crect width='88' height='104' mask='url(%23m)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 104'%3E%3Cmask id='m'%3E%3Crect width='88' height='104' fill='white'/%3E%3Cg fill='black'%3E%3Ccircle cx='4' cy='0' r='3.1'/%3E%3Ccircle cx='4' cy='104' r='3.1'/%3E%3Ccircle cx='12' cy='0' r='3.1'/%3E%3Ccircle cx='12' cy='104' r='3.1'/%3E%3Ccircle cx='20' cy='0' r='3.1'/%3E%3Ccircle cx='20' cy='104' r='3.1'/%3E%3Ccircle cx='28' cy='0' r='3.1'/%3E%3Ccircle cx='28' cy='104' r='3.1'/%3E%3Ccircle cx='36' cy='0' r='3.1'/%3E%3Ccircle cx='36' cy='104' r='3.1'/%3E%3Ccircle cx='44' cy='0' r='3.1'/%3E%3Ccircle cx='44' cy='104' r='3.1'/%3E%3Ccircle cx='52' cy='0' r='3.1'/%3E%3Ccircle cx='52' cy='104' r='3.1'/%3E%3Ccircle cx='60' cy='0' r='3.1'/%3E%3Ccircle cx='60' cy='104' r='3.1'/%3E%3Ccircle cx='68' cy='0' r='3.1'/%3E%3Ccircle cx='68' cy='104' r='3.1'/%3E%3Ccircle cx='76' cy='0' r='3.1'/%3E%3Ccircle cx='76' cy='104' r='3.1'/%3E%3Ccircle cx='84' cy='0' r='3.1'/%3E%3Ccircle cx='84' cy='104' r='3.1'/%3E%3Ccircle cx='0' cy='4' r='3.1'/%3E%3Ccircle cx='88' cy='4' r='3.1'/%3E%3Ccircle cx='0' cy='12' r='3.1'/%3E%3Ccircle cx='88' cy='12' r='3.1'/%3E%3Ccircle cx='0' cy='20' r='3.1'/%3E%3Ccircle cx='88' cy='20' r='3.1'/%3E%3Ccircle cx='0' cy='28' r='3.1'/%3E%3Ccircle cx='88' cy='28' r='3.1'/%3E%3Ccircle cx='0' cy='36' r='3.1'/%3E%3Ccircle cx='88' cy='36' r='3.1'/%3E%3Ccircle cx='0' cy='44' r='3.1'/%3E%3Ccircle cx='88' cy='44' r='3.1'/%3E%3Ccircle cx='0' cy='52' r='3.1'/%3E%3Ccircle cx='88' cy='52' r='3.1'/%3E%3Ccircle cx='0' cy='60' r='3.1'/%3E%3Ccircle cx='88' cy='60' r='3.1'/%3E%3Ccircle cx='0' cy='68' r='3.1'/%3E%3Ccircle cx='88' cy='68' r='3.1'/%3E%3Ccircle cx='0' cy='76' r='3.1'/%3E%3Ccircle cx='88' cy='76' r='3.1'/%3E%3Ccircle cx='0' cy='84' r='3.1'/%3E%3Ccircle cx='88' cy='84' r='3.1'/%3E%3Ccircle cx='0' cy='92' r='3.1'/%3E%3Ccircle cx='88' cy='92' r='3.1'/%3E%3Ccircle cx='0' cy='100' r='3.1'/%3E%3Ccircle cx='88' cy='100' r='3.1'/%3E%3C/g%3E%3C/mask%3E%3Crect width='88' height='104' mask='url(%23m)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
}
.pc-stamp > div { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: var(--navy-900); outline: 1px solid rgba(0, 222, 255, .55); outline-offset: -4px; color: #fff; text-align: center; }
.pc-stamp small { font-size: .5rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.pc-stamp b { font-family: var(--serif); font-weight: 500; font-size: 2.1rem; line-height: 1; color: var(--cyan); }
.pc-stamp span { font-size: .56rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pc-postmark { position: absolute; top: 74px; right: 66px; width: 150px; height: auto; transform: rotate(-11deg); opacity: .85; pointer-events: none; overflow: visible; }
/* the postmark's parts live in <defs> and are drawn through <use>, so they are styled by their own classes */
.pm-ring, .pm-wave { fill: none; stroke: #fff; stroke-width: 2.2; }
.pm-thin { stroke-width: 1.2; }
.pm-wave { stroke-width: 2; stroke-linecap: round; }
.pm-arc { fill: #fff; font-family: var(--sans); font-weight: 800; font-size: 8.4px; letter-spacing: .14em; }
.pc-postmark text { fill: #fff; font-family: var(--sans); font-weight: 800; text-anchor: middle; font-size: 11px; letter-spacing: .04em; }
.pc-postmark { filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .55)); }

.pc-caption { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 7px 4px 9px; font-size: .78rem; line-height: 1.3; }
.pc-caption span { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pc-caption a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .68rem; }
.pc-caption a:hover { color: var(--azure); }

/* the story */
.pc-info { position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; padding-block: 12px; }
.pc-info > * { transition: opacity .22s ease, transform .22s ease; }
.pc.is-swapping .pc-where, .pc.is-swapping .pc-name, .pc.is-swapping .pc-story, .pc.is-swapping .pc-cta { opacity: 0; transform: translateY(8px); }
.pc-where { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--cyan); }
.pc-name { margin: 0 0 14px; font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1; letter-spacing: -.025em; color: #fff; }
.pc-story { min-height: calc(1.65em * 6); margin: 0 0 22px; font-size: 1.02rem; line-height: 1.65; color: rgba(255, 255, 255, .86); max-width: 58ch; text-shadow: 0 1px 12px rgba(1, 21, 42, .9), 0 0 2px rgba(1, 21, 42, .6); }
.pc-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.pc-tally { display: flex; align-items: center; gap: 12px; color: #fff; max-width: 220px; }
.pc-tally:hover { color: #fff; }
.pc-tally strong { font-family: var(--serif); font-weight: 500; font-size: 2.8rem; line-height: 1; color: var(--cyan); font-variant-numeric: tabular-nums; }
.pc-tally span { font-size: .86rem; font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, .75); }

/* paging + map */
.pc-left { min-width: 0; width: min(100%, calc(var(--pc-h) * 1.16)); }
.pc-find { display: flex; align-items: center; gap: 22px; }
.pc-all { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.pc-all:hover { color: #fff; }
.pc-nav { display: flex; align-items: center; gap: 10px 14px; max-width: 560px; margin-top: clamp(18px, 3vh, 28px); padding-top: clamp(14px, 2.4vh, 20px); border-top: 1px solid rgba(255, 255, 255, .12); }
.pc-counter { display: flex; align-items: baseline; gap: 6px; margin: 0; white-space: nowrap; font-family: var(--serif); color: #fff; }
.pc-counter b { font-weight: 500; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pc-counter span { font-size: 1.05rem; color: rgba(255, 255, 255, .5); }
.pc-progress { flex: 1; min-width: 32px; height: 2px; background: rgba(255, 255, 255, .14); border-radius: 2px; overflow: hidden; }
.pc-progress i { display: block; height: 100%; background: var(--cyan); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.pc-buttons { display: flex; align-items: center; gap: 8px; }
.pc-section .round-btn { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.pc-section .round-btn:hover:not(:disabled) { background: var(--cyan); border-color: var(--cyan); color: var(--navy-900); }
.pc-shuffle { display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; font-size: .88rem; transition: background-color .15s, color .15s; }
.pc-shuffle:hover { background: rgba(255, 255, 255, .16); }
.pc-shuffle span { display: none; }
.pc-shuffle .i { color: var(--cyan); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.pc-shuffle:hover .i { transform: rotate(200deg); }

/* the minimap sits behind the description */
.pc-map { position: absolute; z-index: -1; right: -4%; top: 50%; width: min(340px, 72%); margin: 0; transform: translateY(-50%); }
.pc-map svg { width: 100%; height: auto; overflow: visible; }
.mm-cells path { fill: rgba(255, 255, 255, .035); stroke: rgba(255, 255, 255, .16); stroke-width: .8; stroke-linejoin: round; transition: fill .35s ease, stroke .35s ease; }
.mm-cells path.is-ours { fill: rgba(255, 255, 255, .075); cursor: pointer; }
.mm-cells path.is-ours:hover { fill: rgba(0, 222, 255, .22); }
.mm-cells path.is-on, .mm-cells path.is-on:hover { fill: rgba(0, 222, 255, .62); stroke: var(--cyan); stroke-width: 1.4; filter: drop-shadow(0 0 7px rgba(0, 222, 255, .75)); }
.mm-rough circle { fill: transparent; stroke: none; transition: fill .35s ease; }
.mm-rough circle.is-on { fill: rgba(0, 222, 255, .3); stroke: var(--cyan); stroke-width: 1.2; stroke-dasharray: 3 3; }
.mm-centre { fill: var(--gold); stroke: var(--navy-900); stroke-width: 1.5; }
.mm-here { transition: transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.mm-dot { fill: #fff; stroke: var(--navy-900); stroke-width: 1.4; }
.mm-pulse { fill: none; stroke: var(--cyan); stroke-width: 1.6; transform-origin: 0 0; animation: pc-pulse 2.2s ease-out infinite; }
@keyframes pc-pulse { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.mm-north path { fill: var(--cyan); }
.mm-north text { fill: rgba(255, 255, 255, .6); font: 800 10px var(--sans); text-anchor: middle; }
.pc-map figcaption { position: absolute; right: 4%; bottom: -4px; line-height: 1.3; text-align: right; }
.pc-map figcaption span, .pc-map figcaption .mm-key { display: none; }
.pc-mapcredit { position: absolute; right: 0; bottom: -8px; max-width: 560px; font-size: .62rem; color: rgba(255, 255, 255, .3); }
.mm-key { display: flex; align-items: center; gap: 8px; }
.mm-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

/* A to Z rail */
.pc-top { margin-bottom: clamp(16px, 3vh, 30px); }
.pc-top .area-search { flex: none; width: 240px; min-height: 42px; margin: 0; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); }
.pc-top .area-search input { color: #fff; }
.pc-top .area-search input::placeholder { color: rgba(255, 255, 255, .5); }
.pc-top .area-search .i { color: rgba(255, 255, 255, .5); }
.pc-rail { position: relative; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px; -webkit-mask: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); mask: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); padding-inline: 20px 36px; }
.pc-rail::-webkit-scrollbar { display: none; }
.pc-rail a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .82); font-weight: 700; font-size: .88rem; transition: background-color .15s, border-color .15s, color .15s; }
.pc-rail a:hover { border-color: rgba(255, 255, 255, .5); color: #fff; }
.pc-rail a[aria-current] { background: var(--cyan); border-color: var(--cyan); color: var(--navy-900); }
.pc-rail em { font-style: normal; font-size: .74rem; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); text-align: center; }
.pc-rail a[aria-current] em { background: rgba(1, 29, 54, .14); }
.pc-top .area-none { margin: 6px 0 0; color: rgba(255, 255, 255, .6); }
.pc-top .area-none a { color: var(--cyan); }
.pc-note { margin: clamp(14px, 2.5vh, 24px) 0 0; font-size: .9rem; color: rgba(255, 255, 255, .55); }
.pc-note a { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: var(--cyan); font-weight: 700; }

@media (max-width: 1180px) {
    .pc-name { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 10px; }
    .pc-story { font-size: .95rem; line-height: 1.58; margin-bottom: 16px; }
    .pc-cta { gap: 12px 18px; }
    .pc-tally strong { font-size: 2.3rem; }
}
@media (max-width: 960px) {
    .pc { grid-template-columns: minmax(0, 1fr); }
    .pc-stage { max-width: 620px; width: 100%; height: auto; aspect-ratio: 1.15; margin-inline: auto; }
    .pc-left { max-width: 620px; width: 100%; margin-inline: auto; }
    .pc-story { min-height: 0; }
}
@media (max-width: 640px) {
    .pc-stage { aspect-ratio: .98; }
    .pc-card { inset: 3% 4% 5% 2%; padding: 8px 8px 0; }
    .pc-stamp { width: 64px; height: 75px; padding: 5px; top: 10px; right: 10px; }
    .pc-stamp b { font-size: 1.55rem; }
    .pc-stamp small { display: none; }
    .pc-postmark { width: 112px; top: 52px; right: 46px; }
    .pc-caption { min-height: 0; padding: 8px 2px 10px; flex-direction: column; align-items: flex-start; gap: 2px; }
    .pc-caption a { max-width: 100%; }
    .pc-tally strong { font-size: 2.6rem; }
    .pc-map { width: 78%; right: -8%; }
    .pc-nav { padding-inline: 0; }
    .pc-shuffle span { display: none; }
    .pc-shuffle { width: 46px; padding: 0; justify-content: center; }
    .pc-hint { display: none; }
    .pc-find { width: 100%; gap: 14px; }
    .mm-north { display: none; }
    .pc-top .area-search { flex: 1; width: auto; min-width: 0; }
    .pc-top .area-search input { width: 100%; }
    .pc-rail { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); -webkit-mask: none; mask: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pc-card, .pc-info > *, .mm-here, .mm-cells path, .pc-progress i { transition: none; }
    .mm-pulse { animation: none; }
}

/* suburb page: the suburb photo sits with the write-up */
.suburb-photo { margin: 6px 0 18px; }
.suburb-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.suburb-photo-credit { display: block; margin-top: 6px; font-size: .74rem; color: var(--muted); }
.suburb-aerial img { aspect-ratio: 4 / 3; }
