/* Suburb market page, themed to match lodge.co.nz:
   brand red #d92121 panels with white type, a geometric sans (Figtree as the
   closest free match to the site's typeface), white pages, thin red rules and
   pill-shaped red buttons. */

:root {
  --sidebar-w: 355px;
  --red: #d92121;
  --red-dark: #b81a1a;
  --ink: #1f1f1f;
  --muted: #5f5f5f;
  --line: #e4e4e4;
  --field: #ffffff;

  --slide-bg: var(--red);
  --slide-text: #ffffff;
  --pop: #ffffff;       /* accents on red slides */
  --title-dark: #1d2327; /* title-card backdrop when no suburb photo */

  --ui-font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --slide-font: var(--ui-font);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--ui-font); color: var(--ink); background: #fff; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.page { min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  background: #fff; border-right: 1px solid var(--line); overflow-y: auto;
  display: flex; flex-direction: column;
}
/* Red block with the white wordmark, like the site header */
.sidebar__logo {
  background: var(--red); height: 98px; flex-shrink: 0; padding: 0 32px;
  display: flex; align-items: center; justify-content: flex-start;
}
.sidebar__logo img { height: 40px; width: auto; max-width: 100%; display: block; }

.sidebar__photo { text-align: center; }
.profile-photo { width: 200px; height: 200px; margin: 24px auto 0; border-radius: 50%; object-fit: cover; display: block; }

.agent { padding: 28px 32px 8px; }
.agent__name { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.agent__name--lead { font-size: 32px; }
.agent__agency { margin: 6px 0 18px; font-size: 14px; font-weight: 600; color: var(--red); }
.agent__agency::after { content: ''; display: block; width: 48px; height: 2px; background: var(--red); margin-top: 14px; }
.agent__contact { list-style: none; margin: 0 0 18px; padding: 0; }
.agent__contact li { padding: 3px 0; }
.agent__contact a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.agent__contact a:hover { color: var(--red); }
.agent__contact .icon { width: 18px; text-align: center; color: var(--red); }
.agent__blurb { margin: 0; color: var(--muted); font-size: 14px; }

.enquiry { padding: 18px 32px 24px; display: grid; gap: 12px; }
.enquiry__field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.enquiry input, .enquiry textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid #d6d6d6; border-radius: 4px; background: var(--field); padding: 10px 12px; width: 100%;
}
.enquiry input::placeholder, .enquiry textarea::placeholder { color: #9a9a9a; }
.enquiry textarea { resize: vertical; min-height: 96px; }
.enquiry input:focus, .enquiry textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: var(--red); }
/* Pill button, as the site's Search button */
.enquiry__send {
  justify-self: start; font: inherit; font-size: 15px; font-weight: 700;
  background: var(--red); color: #fff; border: 0; padding: 12px 34px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
}
.enquiry__send::after { content: '\2192'; font-weight: 400; }
.enquiry__send:hover { background: var(--red-dark); }
.enquiry__send:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.enquiry__status { margin: 0; font-size: 13px; min-height: 1em; }
.enquiry__status.is-ok { color: #1c6b3a; }
.enquiry__status.is-error { color: var(--red-dark); }
.enquiry__send:disabled { opacity: .6; cursor: wait; }
.enquiry [aria-invalid="true"] { border-color: var(--red); }
.enquiry__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.sidebar__footer { margin-top: auto; padding: 16px 32px; border-top: 1px solid var(--red); }
.attribution { margin: 0; font-size: 11px; color: #8a8a8a; }

/* ---------- Right pane ---------- */
.viewer { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.viewer__header { background: var(--red); color: #fff; height: 98px; display: flex; align-items: center; padding: 0 40px; }
.viewer__header h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }

.player { padding: 32px 40px; width: 100%; max-width: 1360px; }

/* 16:9 stage, same aspect as the original 1280x720 video. Slides are
   absolutely positioned and cross-faded with CSS. */
.stage {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: var(--slide-bg); color: var(--slide-text); overflow: hidden;
  font-family: var(--slide-font); container-type: inline-size;
}
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.03);
  transition: opacity .9s ease, transform 1.2s ease, visibility 0s linear .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .9s ease, transform 1.2s ease; }

/* Staggered entrance for text on the active slide. --d sets the order. */
.anim { opacity: 0; transform: translateY(1.2cqw); transition: opacity .6s ease, transform .6s ease; }
.is-active .anim { opacity: 1; transform: none; transition-delay: calc(.25s + var(--d, 0) * .16s); }
.stage:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.slide__inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6cqw; }

.kicker { margin: 0 0 1.6cqw; font-size: 2cqw; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--pop); opacity: .9; }
.big-num { font-size: 13cqw; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.big-num--price { font-size: 10cqw; }
.mid-num { font-size: 4.4cqw; line-height: 1; font-weight: 700; }
.stat-note { margin: 2.2cqw 0 0; font-size: 2cqw; opacity: .85; }
/* 12-month change badge (stat slides from Web_App_Sales.csv) */
.change { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .5cqw 1cqw; margin: 2.2cqw 0 0; padding: .9cqw 1.8cqw; border-radius: 99px; background: rgba(255, 255, 255, .16); border: .15cqw solid rgba(255, 255, 255, .45); font-size: 2.1cqw; line-height: 1.2; }
.change__arrow { font-size: .85em; }
.nowrap { white-space: nowrap; }
/* Median price by bedrooms */
.beds { list-style: none; margin: .4cqw 0 0; padding: 0; display: grid; gap: 1.4cqw; }
.beds__row { display: grid; grid-template-columns: auto auto; grid-template-areas: 'label price' 'meta price'; align-items: center; column-gap: 3cqw; text-align: left; padding-bottom: 1.2cqw; border-bottom: .15cqw solid rgba(255, 255, 255, .35); }
.beds__row:last-child { border-bottom: 0; padding-bottom: 0; }
.beds__label { grid-area: label; white-space: nowrap; font-size: 2cqw; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.beds__meta { grid-area: meta; font-size: 1.6cqw; opacity: .85; }
.beds__price { grid-area: price; justify-self: end; font-size: 4.6cqw; font-weight: 700; line-height: 1; }
.beds__chg { font-weight: 700; margin-left: .6cqw; }
.beds__chg--down { color: #2b3237; }
.change__num { font-weight: 700; }
.change__label { opacity: .85; }
.change--up .change__arrow { color: #fff; }
.change--down .change__arrow { color: #2b3237; }
/* Short white rule under stat slides, echoing the site's thin rules */
.slide--stat .slide__inner::after { content: ''; width: 8cqw; height: .3cqw; background: #fff; margin-top: 3cqw; opacity: .9; }

/* Title card: dark hero backdrop (or the suburb photo under a dark overlay) */
.title-card__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 24, 28, .82) 0%, rgba(20, 24, 28, .55) 60%, rgba(20, 24, 28, .35) 100%),
    var(--suburb-image, linear-gradient(135deg, #2b3237 0%, var(--title-dark) 100%)) center / cover no-repeat;
}
.is-active .title-card__bg { animation: kenburns 9s ease-out forwards; }
.slide--title .slide__inner { align-items: flex-start; text-align: left; padding-left: 8cqw; }
.title-card__name { margin: 0; font-size: 10.5cqw; line-height: .95; font-weight: 700; letter-spacing: -.02em; }
/* The site's heading ends in a long dash; the red bar plays the same role */
.title-card__name::after { content: ''; display: block; width: 12cqw; height: .6cqw; background: var(--red); margin-top: 2.4cqw; }
.title-card__region { margin: 1.4cqw 0 0; font-size: 3cqw; font-weight: 500; }
.title-card__sub { margin: 1.6cqw 0 0; font-size: 2.2cqw; opacity: .8; }
.slide--title .kicker { color: #fff; }

/* House / unit split */
.split { display: flex; align-items: center; gap: 6cqw; }
.split__col { display: flex; flex-direction: column; align-items: center; }
.split__label { font-size: 2.4cqw; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; margin-top: 1cqw; }
.split__rule { width: .25cqw; align-self: stretch; background: rgba(255, 255, 255, .6); }
.split--small { margin-top: 3cqw; gap: 4cqw; }
.split--small .split__label { font-size: 1.8cqw; }

/* Animated isometric houses (title + stat slides) */
.scene { position: absolute; top: 12%; bottom: 6%; right: 3%; width: 46%; pointer-events: none; }
.scene__svg { width: 100%; height: 100%; overflow: visible; }
.slide--scene.slide--stat .slide__inner { right: 46%; padding-right: 2cqw; }
.slide--title.slide--scene .slide__inner { right: 44%; }
.slide--scene .big-num--price { font-size: 7.6cqw; }
.slide--scene .title-card__name { font-size: 8.5cqw; }
.slide--title.slide--scene .scene { opacity: .9; }
.house { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
/* Solid shades (not see-through) so overlapping houses read cleanly */
.house__front { fill: #ec6a6a; }
.house__side { fill: #c51d1d; }
.house__roof { fill: #f6b4b4; }
.house__win { fill: #a31515; }
.slide--title .house__front { fill: #3b4247; }
.slide--title .house__side { fill: #2a2f33; }
.slide--title .house__roof { fill: #d92121; }
.slide--title .house__win { fill: #1b1f22; }
.is-active .house {
  animation: house-drop .9s cubic-bezier(.2, .9, .3, 1.25) both, house-bob 4.5s ease-in-out infinite;
  animation-delay: calc(.25s + var(--i) * .16s), calc(1.3s + var(--i) * .37s);
}
.is-active .scene { animation: scene-drift 12s ease-out both; }
@keyframes house-drop { from { opacity: 0; transform: translateY(-30%) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes house-bob { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4%); } }
@keyframes scene-drift { from { transform: scale(.97) translateX(2%); } to { transform: scale(1.03) translateX(-1%); } }

/* Recent sale: photo left, thumbs underneath, red detail panel right */
.slide--sale { display: grid; grid-template-columns: 64% 36%; grid-template-rows: 1fr auto; background: #fff; }
.sale__hero { grid-row: 1; grid-column: 1; position: relative; overflow: hidden; }
.sale__hero img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 60% 50%; }
.is-active .sale__hero img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.slide--sale-nothumbs .sale__hero { grid-row: 1 / span 2; }
.sale__thumbs { grid-row: 2; grid-column: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4cqw; padding: .4cqw 0 0; background: #fff; }
.sale__thumbs > * { aspect-ratio: 3 / 2; }
/* Fetched Data properties have 3 photos: main + two wide ones underneath */
.sale__thumbs--2 { grid-template-columns: repeat(2, 1fr); }
.sale__thumbs--2 > * { aspect-ratio: 2 / 1; }
.sale__thumbs--1 { grid-template-columns: 1fr; }
.sale__thumbs--1 > * { aspect-ratio: 4 / 1; }
.sale__thumbs--3 { grid-template-columns: repeat(3, 1fr); }
.sale__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sale__panel { grid-row: 1 / span 2; grid-column: 2; padding: 5cqw 3.5cqw; display: flex; flex-direction: column; justify-content: center; background: var(--red); }
.sale__price { margin: 0; font-size: 5.6cqw; line-height: 1; font-weight: 700; letter-spacing: -.01em; }
.sale__address { margin: 1.4cqw 0 2.6cqw; font-size: 2.2cqw; }
.sale__features { list-style: none; margin: 0; padding: 2.2cqw 0 0; display: flex; gap: 2.6cqw; border-top: .15cqw solid rgba(255, 255, 255, .45); }
.sale__features li { display: flex; align-items: center; gap: .8cqw; font-size: 2.4cqw; font-weight: 600; }
.sale__features svg { width: 2.8cqw; height: 2.8cqw; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.img-placeholder { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #eee 0 12px, #e4e4e4 12px 24px); color: #999; display: flex; align-items: center; justify-content: center; font-size: 1.6cqw; }

/* Recent sales list (fallback when no sale has photos) */
.slide--list .slide__inner { padding: 5cqw 9cqw; }
.sales-list { list-style: none; margin: 1cqw 0 0; padding: 0; width: 100%; }
.sales-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 4cqw; align-items: baseline; padding: 1.3cqw 0; border-bottom: .15cqw solid rgba(255, 255, 255, .35); text-align: left; }
.sales-list li:last-child { border-bottom: 0; }
.sales-list__addr { font-size: 2.8cqw; font-weight: 600; }
.sales-list__date { font-size: 1.9cqw; opacity: .8; }
.sales-list__price { font-size: 2.8cqw; font-weight: 700; min-width: 16cqw; text-align: right; }

/* Dwelling stats tiles (slide type currently disabled) */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3cqw 8cqw; }
.tile { display: flex; flex-direction: column; align-items: center; }
.tile__num { font-size: 6cqw; line-height: 1; font-weight: 700; }
.tile__label { font-size: 1.8cqw; text-transform: uppercase; letter-spacing: .12em; margin-top: .8cqw; opacity: .85; }

/* Closing contact slide: white wordmark on red */
.contact__logo { width: 24cqw; margin-bottom: 3.4cqw; }
.contact__name { margin: 0; font-size: 5cqw; line-height: 1; font-weight: 700; }
.contact__line { margin: 1cqw 0 0; font-size: 2.6cqw; font-weight: 500; }
.contact__cta {
  margin: 3.4cqw 0 0; font-size: 2cqw; font-weight: 700;
  background: #fff; color: var(--red); padding: 1.2cqw 3cqw; border-radius: 999px;
}

/* Player controls: white bar, red round play button, red progress */
.controls { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-top: 0; padding: 10px 12px; }
.ctrl { background: none; border: 0; color: var(--ink); width: 38px; height: 38px; font-size: 16px; cursor: pointer; border-radius: 50%; }
.ctrl:hover { background: #f1f1f1; color: var(--red); }
.ctrl:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.ctrl:disabled { opacity: .3; cursor: default; background: none; color: var(--ink); }
.ctrl--play { background: var(--red); color: #fff; font-size: 12px; }
.ctrl--play:hover { background: var(--red-dark); color: #fff; }
.ctrl--play .i-play { display: none; }
.is-paused .ctrl--play .i-play { display: inline; }
.is-paused .ctrl--play .i-pause { display: none; }
.ctrl--sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ctrl--sound .i-sound { display: none; }
.ctrl--sound.is-on .i-sound { display: inline; }
.ctrl--sound.is-on .i-muted { display: none; }
.ctrl--sound.is-on { color: var(--red); }
/* Preference is on but the browser blocked autoplay: nudge the viewer */
.ctrl--sound.is-blocked { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 33, 33, .45); } 50% { box-shadow: 0 0 0 7px rgba(217, 33, 33, 0); } }
.timerbar { flex: 1; height: 4px; background: #e6e6e6; border-radius: 2px; overflow: hidden; }
.timerbar__fill { height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.ctrl__count { font-size: 13px; font-weight: 600; color: var(--ink); min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.stage__replay {
  position: absolute; right: 2cqw; bottom: 2cqw; z-index: 3;
  font: 700 14px var(--ui-font);
  background: #fff; color: var(--red); border: 0; padding: 11px 22px; border-radius: 999px; cursor: pointer;
}
.stage__replay:hover { background: #f4f4f4; }
.stage__replay[hidden] { display: none; }

/* On-slide sound button: a big "Tap for sound" pill while sound is off,
   shrinking to a small mute icon once it's on. Mirrors .ctrl--sound. */
.stage__sound {
  position: absolute; top: 2.2cqw; right: 2.2cqw; z-index: 4;
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 15px var(--ui-font); letter-spacing: .01em;
  background: #fff; color: var(--red); border: 0; padding: 11px 20px 11px 14px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  animation: sound-pulse 2s ease-in-out infinite;
  transition: background .2s, padding .2s;
}
.stage__sound:hover { background: #f4f4f4; }
.stage__sound svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stage__sound .i-sound { display: none; }
.stage__sound.is-on { padding: 10px; background: rgba(0, 0, 0, .45); color: #fff; box-shadow: none; animation: none; }
.stage__sound.is-on:hover { background: rgba(0, 0, 0, .65); }
.stage__sound.is-on .i-sound { display: block; }
.stage__sound.is-on .i-muted, .stage__sound.is-on .stage__sound-label { display: none; }
@keyframes sound-pulse { 0%, 100% { box-shadow: 0 4px 16px rgba(0, 0, 0, .25), 0 0 0 0 rgba(255, 255, 255, .7); } 50% { box-shadow: 0 4px 16px rgba(0, 0, 0, .25), 0 0 0 10px rgba(255, 255, 255, 0); } }

/* Index page */
.index { max-width: 760px; margin: 48px auto; padding: 0 24px; }
.index h1 { font-size: 34px; letter-spacing: -.01em; margin-bottom: 4px; }
.index h1::after { content: ''; display: block; width: 56px; height: 3px; background: var(--red); margin-top: 12px; }
.muted { color: var(--muted); }
.suburb-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.suburb-table th { text-align: left; font-size: 13px; font-weight: 700; color: #fff; background: var(--red); padding: 10px 12px; cursor: pointer; user-select: none; }
.suburb-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.suburb-table tr:hover td { background: #fbf3f3; }
.suburb-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.suburb-table a { color: var(--red); font-weight: 600; text-decoration: none; }
.suburb-table a:hover { text-decoration: underline; }
.suburb-list { columns: 2; padding-left: 0; list-style: none; }
.suburb-list li { margin: 6px 0; break-inside: avoid; }
.suburb-list a { color: var(--red); font-weight: 600; text-decoration: none; }
.suburb-list a:hover { text-decoration: underline; }

/* ---------- Slide only (Publish dialog preview): fit the window ---------- */
.page--slide { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #1b1b1b; }
.viewer--slide { margin: 0; min-height: 0; width: 100%; align-items: center; }
.viewer--slide .player { padding: 0; width: min(100vw, calc((100vh - 60px) * 16 / 9)); }
@media (max-width: 640px) {
  .viewer--slide .player { width: min(100vw, calc((100vh - 60px) * 4 / 5)); }
}

/* ---------- Narrow screens: sidebar stacks under the slideshow ---------- */
@media (max-width: 900px) {
  .page { display: flex; flex-direction: column-reverse; }
  .sidebar { position: static; width: auto; border-right: 0; }
  .sidebar__logo { height: 76px; }
  .viewer { margin-left: 0; min-height: 0; }
  .viewer__header { height: 64px; padding: 0 16px; }
  .viewer__header h1 { font-size: 20px; }
  .player { padding: 12px; }
}

/* Phones: a taller stage and larger type, so the slides stay readable.
   Sizes are in cqw (percent of the stage width), so they scale up here. */
/* Keyed to the player's width (not the window's) so the stage shape always
   matches the @container type sizes below: a narrow player beside the sidebar
   on a small laptop window gets the phone layout too. */
.player { container: player / inline-size; }
@container player (max-width: 640px) {
  .stage { aspect-ratio: 4 / 5; }
}
@container (max-width: 640px) {
  .scene { top: auto; bottom: 3%; left: 18%; right: 18%; width: auto; height: 34%; }
  .slide--scene .slide__inner { bottom: 34%; }
  .slide--title.slide--scene .slide__inner { right: 0; }
  .slide--scene .big-num--price { font-size: 15cqw; }
  .slide--scene .title-card__name { font-size: 14cqw; }
  .slide--scene.slide--stat .slide__inner { right: 0; padding-right: 6cqw; }
  .stage__sound { font-size: 13px; padding: 9px 15px 9px 11px; gap: 7px; }
  .stage__sound svg { width: 20px; height: 20px; }
  .kicker { font-size: 3.4cqw; letter-spacing: .12em; }
  .stat-note, .title-card__sub { font-size: 4cqw; }
  .change { font-size: 3.6cqw; padding: 1.4cqw 3cqw; margin-top: 3cqw; }
  .beds { gap: 2.4cqw; }
  .beds__label { font-size: 3.8cqw; }
  .beds__meta { font-size: 3.2cqw; }
  .beds__price { font-size: 8cqw; }
  .title-card__name { font-size: 16cqw; }
  .title-card__region { font-size: 5cqw; }
  .big-num { font-size: 26cqw; }
  .big-num--price { font-size: 15cqw; }
  .split__label { font-size: 4.2cqw; }
  .mid-num { font-size: 7cqw; }
  .split--small .split__label { font-size: 3.2cqw; }

  .slide--list .slide__inner { padding: 10cqw 6cqw 6cqw; justify-content: flex-start; }
  .sales-list li { grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 3cqw; row-gap: .6cqw; padding: 2.6cqw 0; }
  .sales-list__addr { font-size: 4.8cqw; }
  .sales-list__price { font-size: 4.8cqw; grid-row: 1 / span 2; grid-column: 2; align-self: center; min-width: 0; }
  .sales-list__date { font-size: 3.4cqw; }

  .slide--sale { grid-template-columns: 1fr; grid-template-rows: 48% auto 1fr; }
  .sale__hero, .slide--sale-nothumbs .sale__hero { grid-row: 1; }
  .sale__thumbs { grid-row: 2; }
  .sale__thumbs--2 > * { aspect-ratio: 3 / 1; }
  .slide--sale:has(.sale__thumbs--2) { grid-template-rows: 42% auto 1fr; }
  .slide--sale .sale__panel { padding-top: 4cqw; padding-bottom: 4cqw; }
  .sale__panel { grid-row: 3; grid-column: 1; padding: 5cqw 6cqw; justify-content: flex-start; }
  .sale__price { font-size: 11cqw; }
  .sale__address { font-size: 4.6cqw; margin: 2cqw 0 3cqw; }
  .sale__features { gap: 5cqw; padding-top: 3cqw; }
  .sale__features li { font-size: 5cqw; gap: 1.6cqw; }
  .sale__features svg { width: 5.4cqw; height: 5.4cqw; }

  .tile__num { font-size: 10cqw; }
  .tile__label { font-size: 3cqw; }
  .contact__logo { width: 46cqw; }
  .contact__name { font-size: 8cqw; }
  .contact__line { font-size: 4.6cqw; }
  .contact__cta { font-size: 3.6cqw; padding: 2cqw 5cqw; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active, .anim, .is-active .anim { transition: none; transform: none; }
  .anim { opacity: 1; }
  .is-active .sale__hero img, .is-active .title-card__bg, .ctrl--sound.is-blocked, .stage__sound { animation: none; }
  .house, .is-active .house, .is-active .scene { animation: none; opacity: 1; }
}
