/* Kobil showroom: page shell over a full-screen 3D stage. Light theme only (the scene is a sky render). */
:root {
  --kob-accent: #e4001a;   /* Kobil red, from its logo (img/kobil-logo.png): model name, active dots, Contact button */
  --kob-ink: #2b2b2b;
  --kob-muted: #6b6b6b;
  --kob-line: #dddddd;
  --kob-paper: #ffffff;
  --kob-panel: rgba(255, 255, 255, 0.94);
  --kob-sky: #bfd4e4;      /* same as the scene background */
  /* the garden's grass beside the house: Chrome on iPhone keeps pages out of the notch and home-bar strips in landscape
     (viewport-fit=cover or not) and fills them with the page's background, which this blends into the scene */
  --kob-ground: #95a478;
  --kob-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  --kob-radius: 8px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter-l: max(12px, env(safe-area-inset-left, 0px));
  --gutter-r: max(12px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
html { overflow: hidden; }   /* the page never scrolls or pans, so a phone has nothing to zoom out to after a turn */
/* no text autosizing: Chrome on iPhone lays the page out wider than the screen for a moment during a turn, and iOS
   enlarged the text restyled then (a room card's "Walk in" turned to portrait) and kept it until the card was rebuilt */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--kob-ground); color: var(--kob-ink); font-family: var(--font-sans);
  overflow: hidden; touch-action: none; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--kob-ink); outline-offset: 2px; }

/* 3D stage and the layer for labels pinned to it (filled by the overlay) */
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; width: 100%; height: 100%; outline: none; }
#overlay-root { position: fixed; inset: 0; z-index: 2; pointer-events: none; }

/* Top bar: brand left, language and Contact right */
#topbar {
  position: fixed; z-index: 6; top: calc(var(--safe-t) + 12px); left: var(--gutter-l); right: var(--gutter-r);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none;
}
#topbar > * { pointer-events: auto; }
#brand {
  background: var(--kob-panel); box-shadow: var(--kob-shadow); border-radius: var(--kob-radius);
  padding: 6px 12px; font-size: 17px; line-height: 1.25; letter-spacing: 0.03em; white-space: nowrap;
}
#brand b { color: var(--kob-accent); font-weight: 700; }
/* Kobil's K mark (img/kobil-mark.png, cropped from the logo) before the name */
.brand-logo { width: 26px; height: 26px; vertical-align: middle; margin: -4px 6px -2px -4px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
#contactBtn {
  background: var(--kob-accent); color: #fff; border: 0; border-radius: var(--kob-radius); box-shadow: var(--kob-shadow);
  padding: 8px 14px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
/* the top bar's controls and the dock stay out of sight until they have content */
#langSwitch:empty, #contactBtn:empty, #dock:empty { display: none; }

/* Dock (bottom centre) and cards layer */
#dockWrap {
  position: fixed; z-index: 5; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 14px);
  display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none;
}
#dockWrap > * { pointer-events: auto; }
#dock {
  width: fit-content; max-width: 100%; box-sizing: border-box; display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 6px 8px; padding: 6px; background: var(--kob-paper); border-radius: var(--kob-radius); box-shadow: var(--kob-shadow);
}
/* Top bar language switch */
#langSwitch { display: flex; background: var(--kob-panel); box-shadow: var(--kob-shadow); border-radius: var(--kob-radius); padding: 2px; }
#langSwitch button { background: none; border: 0; border-radius: 6px; padding: 6px 10px; font-weight: 600; font-size: 13px; color: var(--kob-muted); }
#langSwitch button[aria-pressed="true"] { background: var(--kob-ink); color: #fff; }

/* Dock: view switch, price */
.seg { display: flex; gap: 2px; background: #f0f0f0; border-radius: 6px; padding: 2px; }
.seg-btn { background: none; border: 0; border-radius: 5px; padding: 7px 12px; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--kob-muted); }
.seg-btn[aria-pressed="true"] { background: var(--kob-ink); color: #fff; }
#priceBtn {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; white-space: nowrap;
  background: none; border: 0; border-left: 1px solid var(--kob-line); border-radius: 0; padding: 2px 6px 2px 12px; margin-left: 2px;
}
.price-label { font-size: 11px; color: var(--kob-muted); text-transform: uppercase; letter-spacing: 0.06em; }
#priceBtn b { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
#priceBtn[aria-pressed="true"] b { text-decoration: underline; text-underline-offset: 3px; }
/* the price opens its panel upwards: a chevron after the figure says so, pointing down while the panel shows */
#priceBtn b::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 2px 0 8px; vertical-align: 3px;
  border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg);
}
#priceBtn[aria-pressed="true"] b::after { transform: translateY(-3px) rotate(225deg); }
/* phones start with the price closed: it bounces once when the house is in view (js/dock.js nudgePrice) */
#priceBtn.is-nudged { animation: kob-nudge 1.1s ease-in-out 2; }
@keyframes kob-nudge {
  0%, 40%, 80%, 100% { transform: none; }
  20% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}
#cards { position: fixed; inset: 0; z-index: 7; pointer-events: none; }
#cards > * { pointer-events: auto; }

/* Labels pinned to the 3D scene (CSS2D): the layer lets taps through to the canvas, its children take them */
.overlay-layer { position: absolute; inset: 0; pointer-events: none; }
.overlay-layer > * { pointer-events: auto; }

/* Hotspot dots: orange, pulsing; ringed and still while their card is open; faded when their surface faces away */
.dot {
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none;
  display: grid; place-items: center; transition: opacity 0.2s;
}
.dot::before, .dot::after { content: ""; grid-area: 1 / 1; width: 14px; height: 14px; border-radius: 50%; background: var(--kob-accent); }
.dot::before { z-index: 1; box-sizing: border-box; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); transition: transform 0.15s; }
.dot::after { opacity: 0; animation: kob-pulse 1.8s ease-out infinite; }
@keyframes kob-pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(2.7); opacity: 0; } }
.dot:hover::before { transform: scale(1.15); }
.dot.on::before { transform: scale(1.15); box-shadow: 0 0 0 3px var(--kob-accent), 0 1px 6px rgba(0, 0, 0, 0.45); }
.dot.on::after, .dot.back::after { animation: none; }
.dot.back { opacity: 0.45; }
.dot:focus-visible { outline-offset: -2px; }

/* Inside view (js/inside.js): a label per room, tap for its card. Labels fade in and take taps once the roof is mostly
   off (body.roof-off), so they never float over the lifting roof. */
.overlay-layer > .room-label {
  pointer-events: none; opacity: 0; transition: opacity 0.2s;
  padding: 5px 11px; border: 0; border-radius: 999px; background: var(--kob-panel); color: var(--kob-ink);
  box-shadow: var(--kob-shadow); font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.roof-off .overlay-layer > .room-label { pointer-events: auto; opacity: 1; }
/* While the house is turned (body.house-moving, js/inside.js) the room labels step aside, all but the open room's */
.roof-off.house-moving .overlay-layer > .room-label:not(.on) { pointer-events: none; opacity: 0; }
/* While they show (roof off, the house still) they ping every 3 s, the first as soon as they have faded in: a faint
   orange ring, like the dots' pulse, spreads from the pill and fades; the pill itself stays put. The open room's doesn't. */
.room-label::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.roof-off:not(.house-moving) .overlay-layer > .room-label:not(.on)::after { animation: kob-pill-ping 3s ease-out 0.2s infinite; }
@keyframes kob-pill-ping {
  from { box-shadow: 0 0 0 0 rgba(154, 106, 58, 0.45); }
  30%, to { box-shadow: 0 0 0 6px rgba(154, 106, 58, 0); }
}
.room-label:hover { background: var(--kob-paper); }
.room-label.on { background: var(--kob-ink); color: #fff; }

/* The card: beside its dot (placed by js/cards.js), price above the dock on the right, contact under Contact */
.card {
  position: absolute; right: var(--gutter-r); bottom: calc(var(--dock-top, 70px) + 8px);
  box-sizing: border-box; width: min(300px, calc(100vw - 24px));
  max-height: calc(100vh - var(--bar-bottom, 60px) - var(--dock-top, 70px) - 24px);
  /* --view-h: the stage's height, measured by js/cards.js. On an iPhone, 100vh reaches under the browser's bars and
     Chrome's 100dvh differs from it too, so a turned phone's card ran over the dock (100dvh until it is measured) */
  max-height: calc(var(--view-h, 100dvh) - var(--bar-bottom, 60px) - var(--dock-top, 70px) - 24px);
  display: flex; flex-direction: column;
  background: var(--kob-paper); color: var(--kob-ink); border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  font-size: 14px; line-height: 1.4; animation: kob-card-in 0.14s ease-out;
}
.card[data-type="price"] { width: min(380px, calc(100vw - 24px)); }
.card[data-type="contact"] { top: calc(var(--bar-bottom, 60px) + 8px); bottom: auto; }
/* desktop, with the price panel open: Contact's card sits to the panel's left (js/cards.js sets .with-price) */
#cards.with-price .card[data-type="contact"] { right: calc(var(--gutter-r) + min(380px, 100vw - 24px) + 12px); }
.card.anchored { left: 0; top: 0; right: auto; bottom: auto; }
@keyframes kob-card-in { from { opacity: 0; } }
@keyframes kob-sheet-in { from { opacity: 0; translate: 0 32px; } }
.card-head { display: flex; align-items: flex-start; gap: 8px; padding: 10px 6px 6px 16px; }
.card-head h3 { flex: 1; padding-top: 5px; font-size: 18px; line-height: 1.25; letter-spacing: 0.02em; }
.card-close {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--kob-muted);
}
.card-close svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.card-close:hover { background: #f0f0f0; color: var(--kob-ink); }
/* a room's "Walk in" has a copy here, left of the X (js/cardContent.js head), shown on landscape phones only (below) */
.card-head-extra { display: none; }
.card-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; }
.card-body p { margin: 0 0 8px; }
.card-body > :first-child { margin-top: 0; }
.card-body > :last-child { margin-bottom: 0; }
p.card-sub { font-size: 13px; color: var(--kob-muted); }
h4.card-sub {
  margin: 14px 0 4px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kob-muted);
}
.inc-list { margin: 0; padding-left: 18px; }
.inc-list li { padding: 2px 0; }
.price-big { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.1; }
.card-body .price-big { margin-bottom: 2px; }
.note { font-size: 12.5px; color: var(--kob-muted); background: #f5f5f3; border-radius: 6px; padding: 7px 10px; }
.card-body > * + .note { margin-top: 10px; }
.walk-in {
  width: 100%; margin-top: 14px; padding: 10px 14px; border: 0; border-radius: var(--kob-radius);
  background: var(--kob-ink); color: #fff; font-weight: 600;
}
.contact-links { display: flex; flex-direction: column; gap: 6px; }
.contact-links a {
  display: block; padding: 9px 12px; border-radius: var(--kob-radius); background: #f3f3f3;
  color: var(--kob-ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere;
}
.contact-links a:hover { background: #e8e8e8; }

/* Small floating notices */
#hint, #texPill {
  position: fixed; z-index: 4; left: 50%; transform: translateX(-50%);
  background: var(--kob-panel); box-shadow: var(--kob-shadow); border-radius: 999px;
  font-size: 12.5px; color: var(--kob-muted); padding: 6px 13px; box-sizing: border-box;
  white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}
/* the Macedonian hints are long: let them wrap on narrow screens instead of cutting them off. Above the dock at whatever
   height it wraps to (--dock-top, set by js/cards.js, is the dock column's top edge from the bottom, safe area
   included) */
#hint {
  bottom: calc(var(--dock-top, 64px) + 14px); width: max-content; white-space: normal; text-align: center;
  border-radius: 16px; line-height: 1.35;
}
#texPill { top: calc(var(--safe-t) + 64px); font-variant-numeric: tabular-nums; }
#walkBack {
  position: fixed; z-index: 6; top: calc(var(--safe-t) + 64px); left: var(--gutter-l);
  background: var(--kob-ink); color: #fff; border: 0; border-radius: var(--kob-radius); box-shadow: var(--kob-shadow);
  padding: 8px 14px; font-weight: 600; font-size: 14px;
}

/* Walk joystick (touch only) */
#joy {
  position: fixed; z-index: 5; width: 112px; height: 112px; border-radius: 50%;
  left: max(20px, calc(env(safe-area-inset-left, 0px) + 12px)); bottom: calc(var(--dock-top, 64px) + 32px);
  border: 1.5px solid var(--kob-line); background: var(--kob-panel); touch-action: none;
}
#joy i {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: var(--kob-ink); opacity: 0.8;
}

/* Loader: the logo, the model, progress bar, status line */
#loader {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  background: var(--kob-paper); transition: opacity 0.4s ease;
}
#loader.is-done { opacity: 0; pointer-events: none; }
.loader-box { width: min(320px, calc(100vw - 48px)); display: flex; flex-direction: column; gap: 14px; }
.loader-model {
  margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 12vw, 64px);
  line-height: 1; letter-spacing: 0.02em; color: var(--kob-accent);
}
/* Kobil's logo (img/kobil-logo.png), the name already in it */
.loader-logo { width: 240px; max-width: 100%; height: auto; align-self: flex-start; }
.loader-track { height: 3px; background: var(--kob-line); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.loader-track i { display: block; height: 100%; width: 0; background: var(--kob-ink); transition: width 0.2s; }
#loader.is-indeterminate .loader-track i { width: 30%; animation: kob-slide 1.2s ease-in-out infinite; }
@keyframes kob-slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
#loadText { margin: 0; font-size: 13px; color: var(--kob-muted); line-height: 1.45; }
#loader.is-error .loader-track { display: none; }
#loader.is-error #loadText { color: var(--kob-ink); font-weight: 600; }

/* Portrait phones: turn-your-phone prompt over the loader and the house (js/turn.js) */
/* "Powered by Nebbula Solutions": the bottom-left corner, level with the dock's bottom edge, on wide screens; below
   1200 px (the Macedonian dock reaches the corner), centred under the dock, which moves up for it; on short screens
   (landscape phones) in the top bar's middle, level with it, so the dock keeps its place and the house its height */
#credit {
  position: fixed; z-index: 4; left: var(--gutter-l); bottom: calc(var(--safe-b) + 14px);
  font-size: 11px; line-height: 14px; color: var(--kob-muted); text-decoration: none; white-space: nowrap;
  text-shadow: 0 0 3px #fff, 0 0 8px rgba(255, 255, 255, 0.8);   /* readable over grass and sky */
}
#credit b { font-weight: 600; color: var(--kob-ink); }
#credit:hover b { text-decoration: underline; }
@media (max-width: 1199px) and (min-height: 481px) {
  #credit { left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 4px); }
  #dockWrap { bottom: calc(var(--safe-b) + 24px); }
}
@media (max-height: 480px) {
  /* Landscape phones: the walk stick sits just above the dock and shrinks to the room left under "Back to the plan"
     (its bottom edge is about 98 px below the safe area, + 10 px clear), between 80 and its full 112 px */
  #joy {
    --joy: clamp(80px, calc(var(--view-h, 100dvh) - var(--dock-top, 64px) - var(--safe-t) - 118px), 112px);
    width: var(--joy); height: var(--joy); bottom: calc(var(--dock-top, 64px) + 10px);
  }
  /* --bar-bottom (js/cards.js) is the top bar's bottom edge, which starts 12 px below the safe area */
  #credit { left: 50%; transform: translateX(-50%); bottom: auto; top: calc((var(--bar-bottom, 56px) + var(--safe-t) + 12px) / 2 - 7px); }
  /* a room's "Walk in" goes in its card's header, left of the X: at the card's foot it was out of sight under the lists */
  .card-head-extra:not(:empty) { display: block; flex: none; margin-top: 2px; }
  .card-head .walk-in { width: auto; margin: 0; padding: 7px 12px; font-size: 13px; line-height: 1.2; white-space: nowrap; }
  .card-body .walk-in { display: none; }
}

#turnPrompt {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px;
  background: var(--kob-panel); transition: opacity 0.3s ease;
}
#turnPrompt:focus { outline: none; }
#turnPrompt.is-done, #turnPrompt.is-turned { opacity: 0; pointer-events: none; }
#turnPrompt.is-turned { transition: opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1); }   /* ease-out cubic */
.turn-box { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 300px; text-align: center; }
.turn-icon { width: 96px; height: 96px; margin-bottom: 6px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.turn-phone { stroke: var(--kob-ink); transform-box: view-box; transform-origin: 50% 50%; animation: kob-turn 2.6s ease-in-out infinite; }
.turn-arrow { stroke: var(--kob-accent); }
@keyframes kob-turn { 0%, 20% { transform: rotate(0); } 45%, 75% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .turn-phone { animation: none; transform: rotate(-90deg); } }
#turnTitle { font-size: 28px; line-height: 1.15; letter-spacing: 0.02em; }
.turn-text { margin: 0; font-size: 15px; line-height: 1.45; color: var(--kob-muted); }
.turn-go {
  margin-top: 14px; min-height: 44px; padding: 0 22px; border: 1px solid var(--kob-ink); border-radius: 999px;
  background: none; font-size: 15px;
}
.turn-go:active { background: var(--kob-ink); color: #fff; }

/* Phones, and landscape phones too narrow for the compact dock below (an iPhone SE turned, 667 px): the dock spans the
   gutters in one row, the view switch and the price. Tap targets stay >= 32 px. */
@media (max-width: 640px), (max-height: 480px) and (max-width: 719px) {
  #dockWrap { left: var(--gutter-l); right: var(--gutter-r); }
  #dock { width: 100%; padding: 4px; gap: 0 4px; flex-wrap: nowrap; }
  #dock > .seg { flex: 1 1 auto; }
  .seg-btn { flex: 1 1 auto; padding: 7px 4px; font-size: 12.5px; min-height: 32px; box-sizing: border-box; }
  #priceBtn { align-self: stretch; justify-content: center; min-height: 32px; padding: 2px 2px 2px 8px; margin-left: 0; }
  /* the label stays in the accessible name; the figure alone is shown */
  .price-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #priceBtn b { font-size: 16px; }
}

@media (max-width: 640px) {
  /* Phones: the top bar, the dock and the card sheet keep 16 px from the sides */
  :root {
    --gutter-l: max(16px, env(safe-area-inset-left, 0px));
    --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  }

  /* Compact top bar: the model name alone (still in the accent colour), a tighter language switch and Contact */
  #topbar, .topbar-actions { gap: 6px; }
  #brand { font-size: 15px; padding: 6px 10px; }
  .brand-model { display: none; }
  #langSwitch button { padding: 6px 9px; }
  #contactBtn { padding: 7px 11px; }


  /* Hint and walk stick above the dock; while walking the hint goes above the stick */
  #hint { bottom: calc(var(--dock-top, 110px) + 10px); }
  #joy { left: var(--gutter-l); bottom: calc(var(--dock-top, 110px) + 12px); }
  #joy:not([hidden]) ~ #hint { bottom: calc(var(--dock-top, 110px) + 134px); }

  /* The card is a sheet just above the dock, so the price stays in sight. Small cards keep to the bottom 40 % and the
     house shows above them (js/cards.js moves the picture up so the card's dot sits in that space);
     the price sheet takes up to 70 %. Both scroll inside. */
  .card, .card.anchored, .card[data-type] {
    left: var(--gutter-l); right: var(--gutter-r); top: auto; bottom: calc(var(--dock-top, 110px) + 8px); width: auto;
    max-height: min(40vh, calc(100vh - var(--bar-bottom, 60px) - var(--dock-top, 110px) - 16px));
    max-height: min(calc(var(--view-h, 100dvh) * 0.4), calc(var(--view-h, 100dvh) - var(--bar-bottom, 60px) - var(--dock-top, 110px) - 16px));
    border-radius: 14px; box-shadow: 0 6px 28px rgba(0, 0, 0, 0.24);
    animation-name: kob-sheet-in;
  }
  .card[data-type="price"] {
    max-height: min(70vh, calc(100vh - var(--bar-bottom, 60px) - var(--dock-top, 110px) - 16px));
    max-height: min(calc(var(--view-h, 100dvh) * 0.7), calc(var(--view-h, 100dvh) - var(--bar-bottom, 60px) - var(--dock-top, 110px) - 16px));
  }
  .card-head { align-items: center; padding: 4px 4px 0 16px; }
  .card-head h3 { padding-top: 0; }
  .card-close { width: 44px; height: 44px; }
  .card-close svg { width: 14px; height: 14px; }
  /* a room's "Walk in" stays in sight at the foot of its sheet while the lists above it scroll */
  .card-body .walk-in { position: sticky; bottom: 0; box-shadow: 0 0 0 6px var(--kob-paper), 0 6px 0 6px var(--kob-paper); }

  /* 3D labels: larger dots to tap; smaller room labels */
  .dot { width: 40px; height: 40px; }
  .overlay-layer > .room-label { padding: 4px 8px; font-size: 11px; }
}
/* Landscape phones from 720 px wide (the desktop layout, up to 480 px tall): the dock stays one compact row, so the
   house keeps the height; at full size it wraps on an iPhone and leaves the price alone on a second row. Inside the
   notch's safe area, and the price as its figure alone (the label stays in the accessible name), as on phones. */
@media (max-height: 480px) and (min-width: 720px) {
  #dockWrap { left: var(--gutter-l); right: var(--gutter-r); }
  #dock { padding: 4px; gap: 4px 6px; }
  .seg-btn { padding: 5px 8px; font-size: 12.5px; }
  .price-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #priceBtn { padding: 2px 4px 2px 10px; }
  #priceBtn b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
