/* ===== Homepage — navy & gold ===== */
:root {
  --night: #0f1a2b; --night-2: #0a1322; --surface: #19273d; --surface-2: #213250; --line: #2a3b57;
  --gold: #f4b23e; --gold-d: #d9951c; --gold-ink: #172a45; --gold-soft: rgba(244, 178, 62, .14);
  --sun: #3f6aa8; --good: #4fd18f;
  --ink: #eef2f8; --ink-2: #b4c0d2; --muted: #8494ab;
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.1; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.w { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.ico { width: 15px; height: 15px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 15.5px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #f7c25e; }

/* nav */
.nav { position: sticky; top: 0; z-index: 1000; background: rgba(10, 19, 34, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; height: 70px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: #fff; min-width: 0; }
.logo img { width: auto; height: 54px; flex: none; object-fit: contain; }
.logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-weight: 600; color: var(--ink-2); }
.nav nav a:not(.btn):hover { color: #fff; }

/* hero: text on navy, live map fading in from the right */
.hero { position: relative; overflow: hidden; background: var(--night-2); min-height: 520px; display: flex; align-items: center; }
.hero-map { position: absolute; top: 0; bottom: 0; right: 0; width: 56%; z-index: 0; -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .5) 22%, #000 48%); mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .5) 22%, #000 48%); }
.hero-map .leaflet-control-container { display: none; }
.hero-in { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; width: 100%; pointer-events: none; }
.hero-in > * { pointer-events: auto; max-width: 600px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1; letter-spacing: -.045em; font-weight: 900; color: #fff; }
.lead { font-size: 19px; color: var(--ink-2); margin: 18px 0 28px; max-width: 40ch; }
.hs { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.hs input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0 14px; font-size: 16px; }
.hs input::placeholder { color: var(--muted); }
.tiles { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.tile { background: rgba(25, 39, 61, .85); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; min-width: 128px; }
.tile b { display: block; font-size: 30px; letter-spacing: -.035em; color: var(--day, var(--gold)); line-height: 1.1; }
.tile span { font-size: 14px; color: var(--ink-2); }
.tile.d-sun b { color: #8fb3ea; }

/* map pins (hero) */
.hp { width: 26px; height: 26px; border-radius: 50%; background: var(--day, var(--gold)); color: var(--day-ink, var(--gold-ink)); border: 2px solid var(--night-2); display: grid; place-items: center; font: 800 11px var(--font); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }

/* sections */
.blk { padding: 56px 0 0; }
.sh { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.sh h2 { font-size: 30px; color: #fff; }
.sh a { color: var(--gold); font-weight: 700; white-space: nowrap; }
.sh a:hover { text-decoration: underline; }

/* day colours */
.d-sat { --day: var(--gold); --day-ink: var(--gold-ink); --day-soft: #3a3424; }
.d-sun { --day: var(--sun); --day-ink: #fff; --day-soft: #23385a; }
.d-wk  { --day: #6b7a92; --day-ink: #fff; --day-soft: #253147; }

/* sale cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sc { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.sc:hover { border-color: var(--day); transform: translateY(-2px); }
.sc-link { position: absolute; inset: 0; z-index: 1; }
.sc-top { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--day-soft); }
.sc-date { width: 56px; height: 62px; flex: none; border-radius: 12px; background: var(--day); color: var(--day-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.sc-date span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.sc-date b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin: 2px 0; }
.sc-when { min-width: 0; }
.sc-sub { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 15px; color: #fff; }
.sc-sub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-sub .ico { color: var(--ink-2); }
.sc-time { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.sc-time em { font-style: normal; font-weight: 700; font-size: 12px; color: var(--ink); background: var(--surface-2); border-radius: 5px; padding: 1px 6px; margin-left: 4px; }
.sc-flag { display: block; font-size: 12.5px; font-weight: 700; color: var(--good); margin-top: 4px; }
.sc-flag::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 6px; vertical-align: 1px; }
.sc-flag.x { color: #ff8a80; }
.sc-flag.x::before { background: #ff8a80; }
.sc-x { opacity: .6; }
.sc-x h3 { text-decoration: line-through; }
.sc-body { padding: 14px 16px 6px; flex: 1; }
.sc h3 { font-size: 17px; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; color: #fff; margin-bottom: 12px; }
.sc-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-ic { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 5px 9px 5px 7px; }
.cat-ic svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.sc-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 14px; font-size: 13px; color: var(--muted); }
.sc-route { position: relative; z-index: 2; border: 0; background: var(--surface-2); color: var(--gold); font-weight: 700; font-size: 13px; padding: 6px 11px; border-radius: 8px; cursor: pointer; }
.sc-route:hover { background: var(--gold-soft); }
.sc-route.on { background: var(--gold); color: var(--gold-ink); }
.more { margin-top: 18px; text-align: center; }
.more a { display: inline-flex; padding: 11px 20px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 700; color: var(--ink); }
.more a:hover { border-color: var(--gold); color: var(--gold); }
.empty { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 34px; text-align: center; color: var(--ink-2); }
.empty b { display: block; color: #fff; font-size: 20px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* suburbs */
.subs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.sub { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; font-weight: 700; color: #fff; transition: border-color .15s; }
.sub:hover { border-color: var(--gold); }
.sub span { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }

/* the book */
.bookband { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bb-in { display: grid; grid-template-columns: 260px 1fr auto; gap: 40px; align-items: center; padding-top: 46px; padding-bottom: 46px; }
.cover { height: 220px; width: 166px; margin-left: 50px; border-radius: 4px 12px 12px 4px; background: var(--gold); color: var(--gold-ink); padding: 18px 16px; display: flex; flex-direction: column; box-shadow: inset 7px 0 0 rgba(0, 0, 0, .18), 10px 12px 0 rgba(0, 0, 0, .3); transform: rotate(-4deg); transition: transform .2s; }
.cover:hover { transform: rotate(-2deg) translateY(-3px); }
.cover small { font-weight: 700; opacity: .75; font-size: 12.5px; }
.cover b { font-size: 27px; line-height: .95; letter-spacing: -.035em; margin-top: 8px; }
.cover span { margin-top: auto; font-size: 12.5px; font-weight: 700; opacity: .75; }
.bookband h2 { font-size: 30px; color: #fff; margin-bottom: 8px; }
.bookband p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 46ch; }

/* ads */
.ads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ad { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .15s; }
.ad:hover { border-color: var(--gold); }
.ad img { width: 100%; aspect-ratio: 2.4 / 1; object-fit: cover; display: block; }
.ad-b { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.ad-k { font-size: 12px; font-weight: 600; color: var(--muted); }
.ad h3 { font-size: 16.5px; color: #fff; margin: 4px 0 6px; }
.ad p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.ad-c { margin-top: auto; color: var(--gold); font-weight: 700; font-size: 14px; }

/* closing call to action */
.cta { margin-top: 64px; background: var(--gold); color: var(--gold-ink); }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 42px; padding-bottom: 42px; }
.cta h2 { font-size: 32px; margin-bottom: 6px; }
.cta p { margin: 0; font-size: 17px; opacity: .85; }
.cta .btn { background: var(--night-2); color: #fff; }
.cta .btn:hover { background: var(--surface-2); }

.foot { background: var(--night-2); color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 26px; padding-bottom: 30px; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: #fff; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 10px); background: var(--gold); color: var(--gold-ink); font-weight: 700; padding: 11px 18px; border-radius: 12px; opacity: 0; transition: .2s; z-index: 2000; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { text-decoration: underline; pointer-events: auto; }

@media (max-width: 1080px) {
  .cards, .ads { grid-template-columns: repeat(2, 1fr); }
  .subs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .w { padding: 0 16px; }
  .nav-in { height: 62px; gap: 10px; }
  .logo { font-size: 16.5px; }
  .logo img { width: auto; height: 46px; }
  .nav nav { gap: 14px; font-size: 14.5px; }
  .nav nav a:not(.btn) { display: none; }
  .nav .btn { height: 38px; padding: 0 14px; font-size: 14px; }
  .hero { min-height: 0; display: block; }
  .hero-map { position: relative; width: 100%; height: 210px; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
  .hero-in { padding-top: 0; padding-bottom: 36px; margin-top: -34px; }
  .lead { font-size: 16.5px; margin: 14px 0 22px; }
  .hs input { padding: 0 10px; font-size: 15px; }
  .hs .btn { padding: 0 14px; }
  .tile { flex: 1; min-width: 0; padding: 10px 14px; }
  .tile b { font-size: 25px; }
  .tile span { font-size: 12.5px; }
  .blk { padding-top: 40px; }
  .sh h2 { font-size: 23px; }
  .cards, .ads { grid-template-columns: 1fr; gap: 12px; }
  .subs { grid-template-columns: 1fr 1fr; }
  .bb-in { grid-template-columns: 1fr; gap: 22px; padding-top: 36px; padding-bottom: 36px; }
  .cover { margin: 0 auto; }
  .bookband h2, .cta h2 { font-size: 25px; }
  .cta-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* brand logo */
.logo img { width: auto; height: 54px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.nav-in { height: 74px; }
.hero-logo { display: block; width: clamp(300px, 36vw, 470px); height: auto; margin: -10px 0 18px -6px; filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .45)); }
.hero h1 { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
@media (max-width: 760px) {
  .nav-in { height: 64px; }
  .logo img { width: auto; height: 46px; }
  .hero-logo { width: min(86%, 360px); margin: 0 auto 14px; }
  .hero h1 { font-size: 26px; }
}
.nav .logo img { transition: opacity .25s, transform .25s; }
.nav.logo-hide .logo img { opacity: 0; transform: translateY(-6px); pointer-events: none; }

/* sale card photo preview */
.sc-pic { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.sc-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.sc:hover .sc-pic img { transform: scale(1.04); }
.sc-pic::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, rgba(10, 19, 34, .55), transparent); pointer-events: none; }
.sc-count { position: absolute; right: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; background: rgba(10, 19, 34, .78); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sc-count .ico { width: 15px; height: 15px; }
/* with a photo, the date tile sits up over the bottom edge of the picture */
.sc.has-pic .sc-top { position: relative; padding-top: 10px; }
.sc.has-pic .sc-date { margin-top: -34px; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); border: 2px solid var(--surface); position: relative; z-index: 1; }
.sc-x .sc-pic img { filter: grayscale(1); }
.sc-pic.none { display: flex; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(120% 90% at 50% 20%, var(--surface-2), var(--night-2)); }
.sc-pic.none i { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--day-soft); color: var(--day); border: 1px solid var(--line); }
.sc-pic.none i svg { width: 32px; height: 32px; }
.sc-pic.none::after { display: none; }
