/* Prime Property stock list. Brand tokens from prime-property.net.au.
   Neue Haas Grotesk (Adobe Fonts) → Inter Tight stand-in; Cofo Sans Mono → IBM Plex Mono. */
:root {
  --red: #B1122A;          /* primary dark red: headings, intro, buttons */
  --red-dark: #8f0e22;
  --logo-red: #E73539;
  --navy: #014F99;         /* logo blue, tags */
  --navy-dark: #003D77;
  --ink: #2C2C2C;
  --ink-2: #5b5b5b;
  --muted: #8a8a8a;
  --bg: #FAFAFA;
  --grey: #F2F2F2;
  --zebra: #F6F6F6;
  --line: #E6E6E6;
  --white: #fff;
  --ok-bg: #E3F1E6; --ok-ink: #1B6B34;
  --hold-bg: #FFF1CC; --hold-ink: #6B4E00;
  --sold-bg: #ECECEC; --sold-ink: #6b6b6b;
  --font: "Inter Tight", "Neue Haas Grotesk Text", "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Tight", "Neue Haas Grotesk Display", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Cofo Sans Mono", ui-monospace, monospace;
  --wrap: 1680px;
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 160px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
html.intro-on, html.intro-on body { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Supertitle: mono caps with the brand's corner triangle */
.supertitle { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.supertitle::before { content: ""; width: 10px; height: 10px; flex: none; background: currentColor; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 100; overflow: hidden; }
.intro__red { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--red); }
.intro__logo { width: min(280px, 70vw); height: auto; overflow: visible; }
.intro__grid { position: absolute; inset: 0; z-index: 10; pointer-events: none; display: none; }
.intro__ghost { position: absolute; inset: 0; z-index: 25; display: none; align-items: center; justify-content: center; pointer-events: none; }
.intro.is-dissolving .intro__grid { display: block; }
.intro.is-dissolving .intro__ghost { display: flex; }
html.no-intro .intro { display: none; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1.5px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 94px; height: auto; }
.site-header__meta { display: flex; align-items: center; gap: 20px; }
.updated { font: 400 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 4vw, 48px); }
.hero h1 { margin: 18px 0 16px; font: 500 clamp(48px, 7vw, 96px)/.95 var(--display); letter-spacing: -.035em; color: var(--red); }
.hero__lede { margin: 0; max-width: 560px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.5; color: var(--ink); }
.hero__stats { display: flex; flex-wrap: wrap; gap: 0; margin: 32px 0 0; padding: 0; border-top: 1.5px solid var(--line); max-width: 760px; }
.hero__stats div { flex: 1 1 160px; padding: 18px 24px 0 0; }
.hero__stats dt { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.hero__stats dd { margin: 8px 0 0; font: 500 clamp(26px, 2.6vw, 34px)/1 var(--display); letter-spacing: -.02em; color: var(--navy); }

/* ---------- Steps ---------- */
.steps { padding-bottom: clamp(32px, 4vw, 56px); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1.5px solid var(--line); background: var(--white); }
.step { position: relative; padding: 26px 28px 28px; border-right: 1.5px solid var(--line); }
.step:last-child { border-right: 0; }
.step::after { content: ""; position: absolute; right: -1.5px; bottom: -1.5px; width: 18px; height: 18px; background: var(--bg); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.step__num { font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--red); }
.step h3 { margin: 14px 0 8px; font: 500 22px/1.15 var(--display); letter-spacing: -.01em; }
.step p { margin: 0; color: var(--ink-2); }
.step a { color: var(--navy); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; word-break: break-word; }

.docs { display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap; margin-top: 22px; }
.docs__list { display: flex; flex-wrap: wrap; gap: 10px; }
.doc { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--white); border: 1.5px solid var(--line); text-decoration: none; font-weight: 500; font-size: 14px; transition: border-color .2s, color .2s, background .2s; }
.doc svg { width: 16px; height: 16px; fill: var(--navy); }
.doc svg:last-child { fill: currentColor; width: 14px; transition: transform .2s; }
.doc:hover { border-color: var(--navy); color: var(--navy); }
.doc:hover svg:last-child { transform: translateX(3px); }
.doc--soon { color: var(--muted); }
.doc--soon svg { fill: var(--muted); }
.doc--soon em { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal; padding: 4px 6px; background: var(--grey); color: var(--ink-2); }

/* ---------- Toolbar (sticky) ---------- */
.toolbar { position: sticky; top: 0; z-index: 30; background: rgba(250, 250, 250, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); transition: box-shadow .2s; }
.toolbar.is-stuck { box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .25); }
.toolbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.tabs button span { font: 500 11px/1 var(--mono); padding: 4px 6px; background: var(--grey); color: var(--ink-2); transition: inherit; }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.tabs button[aria-selected="true"] span { background: rgba(255, 255, 255, .18); color: var(--white); }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: var(--ink-2); pointer-events: none; }
.search input { width: 260px; height: 40px; padding: 0 12px 0 36px; border: 1.5px solid var(--line); background: var(--white); border-radius: 0; outline: none; transition: border-color .2s; }
.search input:focus { border-color: var(--navy); }
.select select { height: 40px; padding: 0 34px 0 12px; border: 1.5px solid var(--line); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%232C2C2C'/%3E%3C/svg%3E") no-repeat right 12px center; border-radius: 0; appearance: none; -webkit-appearance: none; cursor: pointer; }
.select select:focus { border-color: var(--navy); outline: none; }
.toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; user-select: none; font-weight: 500; }
.toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--red); cursor: pointer; }

/* ---------- Results ---------- */
.stock { padding-bottom: 80px; }
.results { margin: 20px 0 12px; font: 400 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.loading { padding: 60px 0; text-align: center; color: var(--ink-2); }
.empty { padding: 60px 0; text-align: center; }
.empty p { font: 500 20px/1.3 var(--display); margin: 0 0 16px; }
.muted { color: var(--muted); }

/* Buttons: square, brand red */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; background: var(--red); color: var(--white); border: 1.5px solid var(--red); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .01em; white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--sm { height: 32px; padding: 0 10px; font-size: 13px; gap: 6px; }
.btn--sm svg { width: 13px; height: 13px; }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--white); border-color: var(--navy); color: var(--navy); }
.btn--line { background: var(--white); color: var(--red); border-color: var(--red); }
.btn--line:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--disabled { background: var(--grey); border-color: var(--grey); color: var(--muted); cursor: default; }

/* Status tags */
.status { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.status--available { background: var(--ok-bg); color: var(--ok-ink); }
.status--hold, .status--on-hold { background: var(--hold-bg); color: var(--hold-ink); }
.status--sold, .status--under-contract { background: var(--sold-bg); color: var(--sold-ink); }
.status::before { content: ""; width: 6px; height: 6px; margin-right: 7px; background: currentColor; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.incentive { display: inline-block; color: var(--navy); font-weight: 600; font-size: 13px; line-height: 1.3; }

/* ---------- Table ---------- */
.table-wrap { background: var(--white); border: 1.5px solid var(--line); }
/* Frozen header rows, like the sheet's frozen rows */
.grid thead th { position: sticky; z-index: 5; }
.grid__groups th { top: var(--tb, 66px); }
.grid__cols th { top: calc(var(--tb, 66px) + 34px); }
.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.grid th, .grid td { padding: 0 7px; text-align: left; white-space: nowrap; }
.grid th:first-child, .grid td:first-child { padding-left: 14px; }
.grid__cols th { white-space: normal !important; }
.grid td { height: 52px; border-top: 1px solid var(--line); }
.grid__groups th { height: 34px; background: var(--red); color: var(--white); font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border-left: 1px solid rgba(255, 255, 255, .25); }
.grid__groups th:first-child { border-left: 0; }
.grid__cols th { height: 44px; background: var(--white); font: 500 10.5px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); }
.grid__section th { height: 46px; padding-top: 8px; background: var(--ink); color: var(--white); font: 500 15px/1 var(--display); letter-spacing: .01em; }
.grid__section th span { margin-left: 12px; font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.grid tbody tr:not(.grid__section):nth-child(even) td { background: var(--zebra); }
.grid tbody tr:not(.grid__section):hover td { background: #EEF3F9; }
.grid tr.is-held td:not(.k-status):not(.k-pack) { color: var(--ink-2); }
.grid small { margin-left: 2px; font-size: 11px; color: var(--muted); }
.grid .price { font-size: 15px; color: var(--ink); }
.grid tr.is-held .price { color: var(--ink-2); }
.grid .k-landPrice, .grid .k-buildPrice, .grid .k-packagePrice, .grid .k-rent, .grid .k-yield, .grid .k-lotSize, .grid .k-buildSize { text-align: right; }
.grid .k-incentives { white-space: normal; min-width: 112px; max-width: 170px; }
/* Long estate or suburb names wrap rather than push the table past its box. */
.grid td.k-estate, .grid td.k-suburb { white-space: normal; line-height: 1.2; }
.grid .status { height: 24px; padding: 0 7px; font-size: 10.5px; }
.grid .k-lot { text-align: right; }
.grid .k-packagePrice { background-image: linear-gradient(var(--line), var(--line)); background-size: 1px 100%; background-repeat: no-repeat; }
.grid .k-status { padding-right: 14px; }
.statuscell { display: flex; align-items: center; gap: 6px; }
.btn--hold { height: 24px; padding: 0 8px; font-size: 12px; gap: 5px; color: var(--navy); }
.btn--hold svg { width: 12px; height: 12px; }

/* ---------- Cards (below desktop) ---------- */
.cards { display: none; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1.5px solid var(--line); padding: 20px; }
.card::after { content: ""; position: absolute; right: -1.5px; bottom: -1.5px; width: 16px; height: 16px; background: var(--bg); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; background: var(--navy); color: var(--white); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.card h3 { margin: 16px 0 4px; font: 500 24px/1.1 var(--display); letter-spacing: -.015em; }
.card__where { margin: 0; color: var(--ink-2); }
.card__price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 14px; padding-bottom: 14px; border-bottom: 1.5px solid var(--line); }
.card__price strong { font: 500 30px/1 var(--display); letter-spacing: -.02em; color: var(--red); font-variant-numeric: tabular-nums; }
.card__price span { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.card.is-held .card__price strong { color: var(--ink-2); }
.card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0 0 14px; }
.card__facts dt { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card__facts dd { margin: 5px 0 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.card .incentive { margin: 0 0 14px; padding: 10px 12px; background: #EEF3F9; }
.card__actions { display: flex; gap: 8px; margin-top: auto; }
.card__actions .btn { flex: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1.5px solid var(--line); }
.site-footer__in { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.site-footer img { width: 74px; height: auto; }
.site-footer p { margin: 0; color: var(--ink-2); font-size: 13px; flex: 1 1 320px; }
.site-footer__links { display: flex; gap: 20px; justify-content: flex-end; flex: 0 0 auto !important; }
.site-footer__links a { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.site-footer__links a:hover { color: var(--red); }
.site-footer__links .quiet { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1399px) {
  .table-wrap { display: none; }
  .cards { display: grid; }
}
@media (min-width: 1400px) and (max-width: 1499px) {
  :root { --gutter: 22px; }
  .grid th, .grid td { padding-left: 5px; padding-right: 5px; }
  .grid th:first-child, .grid td:first-child { padding-left: 10px; }
}
@media (max-width: 1499px) {
  .btn--hold { width: 30px; padding: 0; font-size: 0; gap: 0; }
  .btn--hold svg { width: 13px; height: 13px; }
}
@media (max-width: 900px) {
  .steps__list { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1.5px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .search input { width: 100%; }
  .filters { width: 100%; }
  .search { flex: 1 1 100%; }
  .select { flex: 1 1 0; }
  .select select { width: 100%; }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .brand img { width: 76px; }
  .site-header .supertitle { display: none; }
  .toolbar { position: static; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; width: calc(100% + var(--gutter) * 2); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
  .toggle { flex: 1 1 100%; justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .card__actions { flex-direction: column; }
  .hero { padding-top: 28px; }
  .hero h1 { margin: 12px 0 10px; }
  .hero__stats { margin-top: 20px; }
  .hero__stats div { flex: 1 1 0; padding-right: 8px; }
  .hero__stats dd { font-size: 22px; }
  .step { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; padding: 14px 16px; }
  .step__num { grid-row: span 2; padding-top: 4px; }
  .step h3 { margin: 0 0 2px; font-size: 17px; }
  .step p { font-size: 14px; }
  .step::after { display: none; }
  .docs { gap: 10px; }
  .doc { padding: 9px 12px; font-size: 13px; }
  .site-footer__links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
