/* RevalHome App — brand: Reval Ink #143B42, Harbor Amber #DC8A3C, Linen #F6F0E6 */
:root {
  --ink: #143b42;
  --clay: #dc8a3c;
  /* SAMA bränd, loetav kontrast. Harbor Amber #DC8A3C annab valge tekstiga
     suhte 2,71:1 ja WCAG AA nõuab 4,5:1 (suurel tekstil 3:1, UI-piiridel 3:1)
     — st iga nupp, aktiivne vaheleht, uksekood ja tšätimull kukkusid läbi.
     REEGEL: `--clay` on DEKORATIIV (logo, täitejooned, ikoonaktsendid,
     kaardi soojad ääred), `--clay-deep` on kõik, mida peab LUGEMA või mis
     annab olekut edasi (nupud, tekst, fookusring, valikupiir).
     Valge #a5601f peal = 4,8:1; #a5601f valgel = 4,6:1. */
  --clay-deep: #a5601f;
  --linen: #f6f0e6;
  --sand: #ece2d2;
  --line: #ddd2bf;
  --muted: #5f6f6c; /* was #6e7f7c — darkened for WCAG AA contrast at small sizes */
  --ok: #3e7c4f;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* `hidden` peab ALATI peitma. Brauseri oma reegel on ainult `[hidden]{display:none}`
   ja iga klass, mis annab `display: flex/grid/inline-flex`, võidab selle
   spetsiifilisuselt → `el.hidden = true` jääb VAIKSELT mõjuta (JS ütleb hidden:true,
   ekraanil paistab). Siin oli see varem lapitud klassi kaupa (.logout-btn, .tabbar,
   .tabbar button); üks rida katab kõik ja järgmine display-klass ei too viga tagasi.
   Ära lisa klassipõhiseid `[hidden]` erandeid. Sama rida on booking.css-is. */
[hidden] { display: none !important; }
/* overflow-x: clip on the ROOT stops iOS Safari from widening the layout
   viewport to fit any element a few px wider than the screen (the cause of the
   whole-app horizontal shift on iPhone). clip — not hidden — so it does not
   become a scroll container and position: sticky (topbar) keeps working. */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--linen);
  color: var(--ink);
  min-height: 100svh;
  max-width: 100%;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  overflow-x: clip;
  overflow-wrap: break-word;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; letter-spacing: -0.01em; }

/* boot spinner (index.html ships it inside #view; the first render() replaces it) */
.boot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 55svh; }
.boot-logo { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.6rem; }
.boot-logo span { color: var(--clay); }
.boot-spin {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--clay);
  animation: boot-rotate 0.9s linear infinite;
}
@keyframes boot-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .boot-spin { animation-duration: 2.5s; } }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  /* env(safe-area-inset-*) keeps the bar clear of the iOS status bar / notch
     when the PWA runs standalone (status-bar-style: black-translucent). */
  padding: calc(14px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right))
           12px calc(18px + env(safe-area-inset-left));
  background: rgba(246, 240, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.25rem; }
.brand span { color: var(--clay); }
.brand-app {
  font-style: normal; font-family: "Inter", sans-serif; font-weight: 600;
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-left: 7px; vertical-align: 2px;
}
.top-actions { display: flex; gap: 8px; align-items: center; }
/* 320 px: „APP" silt peitu, keelevalik KINDLA laiusega (select mõõdab end pikima
   VALIKU järgi — „Русский" 16 px kirjas on 134 px — seega `min-width` +
   `flex-shrink: 0` ei aita), välja-logimisel jääb ainult ikoon (audit
   2026-09-03 P1-5, v1-te toodud 2026-09-04). */
@media (max-width: 360px) {
  .brand-app { display: none; }
  .top-actions { flex-shrink: 0; }
  .lang-sel { width: 96px; min-width: 0; flex: 0 0 auto; padding-left: 8px; padding-right: 8px; }
  .logout-btn { padding: 7px 10px; gap: 0; }
  .logout-btn span { display: none; }
}
.lang-sel {
  -webkit-appearance: none; appearance: none;
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.8rem; font-weight: 600;
  line-height: 1.2; color: var(--ink); cursor: pointer;
  text-align: center; text-align-last: center; /* centre the language name */
}
.logout-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 13px; font: inherit; font-size: 0.78rem; font-weight: 600;
  color: var(--ink); cursor: pointer; white-space: nowrap;
}
.logout-btn .i { width: 15px; height: 15px; }
.logout-btn:hover { border-color: var(--clay-deep); color: var(--clay-deep); }

/* inline SVG icons */
.i {
  width: 1.05em; height: 1.05em; vertical-align: -0.18em; flex: 0 0 auto;
}
h2 .i { width: 1em; height: 1em; margin-right: 2px; color: var(--clay); }
.btn .i { width: 1.1em; height: 1.1em; margin-right: 4px; vertical-align: -0.2em; }
.big-i { width: 44px; height: 44px; color: var(--muted); }
.done-i .big-i { color: var(--ok); }

/* layout */
.view { max-width: 560px; margin: 0 auto; padding: 20px 18px 30px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 14px;
}
/* ⚠️ Animatsioon käib AINULT siis, kui `#view` kannab klassi `.view-enter`, mille
   render() lisab ainult PÄRIS vaatevahetusel (vt viewKey app.js-is). Varem oli
   see kaardil tingimusteta, seega iga re-render — korviklõps, tärnivajutus,
   valideerimisviga, keelevahetus — animeeris terve lehe uuesti ja ekraan
   „vilkus". Ära too animatsiooni `.card` külge tagasi. */
.view-enter .card { animation: fadeUp 0.5s var(--ease) both; }
.view-enter .card + .card { animation-delay: 0.06s; }
@media (prefers-reduced-motion: reduce) { .view-enter .card { animation: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card h2 { font-size: 1.25rem; margin-bottom: 10px; }
.card h3 { font-size: 1.02rem; margin: 14px 0 6px; }
.muted { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.small { font-size: 0.8rem; }

/* hero-ish header on stay view */
.stay-head { padding: 6px 2px 10px; }
.stay-head .eyebrow {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clay-deep); font-weight: 700;
}
.stay-head h1 { font-size: 1.7rem; margin-top: 4px; }
/* the inline "Open map" pill is taller than the address line, so the line box
   grows; 10px here + 10px section padding below keeps the address block sitting
   evenly between the property name and the datebar */
.stay-head .muted { margin-top: 10px; }
/* "Open map" as a tappable pill, not a buried text link. It sits inline right
   after the address text (nowrap so the pill itself never breaks in two); if
   the line is full it simply wraps to the next line, still left-aligned. */
.map-btn {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: -0.15em;
  white-space: nowrap; margin-left: 4px;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--clay-deep); font-weight: 700; font-size: 0.85rem;
  text-decoration: none;
}
.map-btn .i { width: 15px; height: 15px; }

.datebar {
  display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; margin-bottom: 14px;
}
.datebar > div { flex: 1; padding: 14px; text-align: center; }
.datebar > div + div { border-left: 1px solid var(--line); }
.datebar .lbl { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.datebar .val { font-weight: 600; margin-top: 3px; font-size: 0.95rem; }
.datebar .sub { color: var(--muted); font-size: 0.75rem; margin-top: 2px; }

/* Kiirtoimingute riba avalehel (v2 tiilide disain, omanik 2026-09-04):
   Parkimine · Wi-Fi · Jaga ligipääsu. Grid täidab rea ise (auto-fit) — puuduv
   tiil (nt jagatud lingil „Jaga ligipääsu") jäetakse ära ja ülejäänud venivad.
   Silt võib teises keeles murduda kahele reale („Поделиться доступом"); grid
   venitab rea tiilid sama kõrgeks, seega rida jääb ühtlane. */
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.qa-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 4px; min-height: 62px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  font: inherit; color: var(--ink); cursor: pointer;
}
.qa-tile .i { width: 21px; height: 21px; color: var(--clay-deep); }
.qa-lbl { font-size: 0.66rem; font-weight: 700; text-align: center; line-height: 1.25; }

/* buttons */
.btn {
  display: inline-block; width: 100%; text-align: center; cursor: pointer;
  background: var(--clay-deep); color: #fff; border: 0; border-radius: 999px;
  padding: 15px 22px; font: inherit; font-weight: 700; font-size: 0.95rem;
  transition: transform 0.15s var(--ease), opacity 0.2s;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn.secondary { background: var(--ink); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
/* Boxless button: SAME tap area, no frame. For a dismiss that must not read as
   an equal choice next to the real action (review popup "Later" vs the stars).
   The border is TRANSPARENT, not 0 — `border:0` would shrink the button by the
   ghost's 2px and this class exists precisely to keep the hit box identical. */
.btn.plain { background: transparent; color: var(--muted); border: 1px solid transparent; font-weight: 600; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn + .btn { margin-top: 10px; }
.btn-row { display: flex; gap: 10px; margin-top: 16px; }
.btn-row .btn { margin: 0; }

/* checklist */
.todo {
  display: flex; gap: 14px; align-items: flex-start;
}
.todo .dot {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px;
  border: 2px solid var(--clay-deep); color: var(--clay-deep);
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
}
.todo.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.todo .grow { flex: 1; }
.todo strong { display: block; margin-bottom: 2px; }

/* forms */
label.f { display: block; margin: 12px 0 0; font-size: 0.8rem; font-weight: 600; }
label.f span { display: block; margin-bottom: 5px; color: var(--ink); }
/* font-size on TÄPSELT 1rem (16 px) ja see on TEADLIK: iOS Safari zoomib
   fookuse peale lehe sisse iga välja puhul, mille font on alla 16 px, ja
   see zoom JÄÄB pärast klaviatuuri sulgemist alles (abi-lehe „Kirjuta sõnum…"
   iPhone 14 Pro Maxil, 2026-09-05). Ära pane siia 0.95rem tagasi ega peida
   viga viewporti `maximum-scale=1`-ga — see keelab külalisel suurendamise. */
input, select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
/* Fookusring oli AINULT input+select — textarea (probleemiteade, arvustus) ja
   iga nupp jäid klaviatuurikasutajal ilma nähtava fookuseta. `:focus-visible`
   nuppudel, et hiirekliki peale ringi ei tekiks. */
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--clay-deep); outline-offset: 1px; border-color: var(--clay-deep);
}
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--clay-deep); outline-offset: 2px;
}
/* brand-styled dropdowns (native arrow replaced with a clay chevron) */
label.f select, .dob-row select, .qty-sel {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23dc8a3c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 38px; cursor: pointer;
}
.dob-row select { background-position: right 8px center; padding-right: 26px; }
.qty-sel { background-position: right 9px center; padding-right: 28px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 0.9rem; }
.check input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; }
.err { color: #a33; font-size: 0.85rem; margin-top: 10px; }

/* wizard */
.steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--sand); }
.steps i.on { background: var(--clay); }
.guest-block { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; position: relative; }
.guest-block .rm {
  position: absolute; top: 10px; right: 12px; background: none; border: 0;
  color: var(--muted); font-size: 0.78rem; cursor: pointer; text-decoration: underline;
}
.review-table { width: 100%; font-size: 0.88rem; border-collapse: collapse; margin-top: 8px; }
.review-table td { padding: 5px 0; vertical-align: top; }
.review-table td:first-child { color: var(--muted); width: 42%; padding-right: 10px; }

/* Uksekoodid — ÜKS kompaktne kaart lehe tipus (2026-07-27). Varem oli see kaks
   eraldi kaarti 2,6rem numbritega, mis koos 20px paddinguga sõid ~260px ja
   lükkasid „kuidas sisse saada" telefonis kerimise taha. Kaks lahtrit kõrvuti
   mahuvad ~110px sisse ja number on 1,75rem juures endiselt käeulatusest loetav. */
.codes-card { padding: 16px; }
.codes-grid { display: grid; grid-template-columns: 1fr 1fr; }
.codes-grid.one { grid-template-columns: 1fr; }
.code-cell { text-align: center; padding: 0 6px; min-width: 0; }
.code-cell + .code-cell { border-left: 1px solid var(--line); }
.code-cell .lbl {
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.code-val {
  font-family: "Fraunces", Georgia, serif; font-size: 1.75rem; font-weight: 600;
  letter-spacing: 0.04em; margin-top: 2px; color: var(--ink);
  overflow-wrap: anywhere;
}
/* Toa kood EI OLE alati 4 numbrit: kui need 4 on lukule „liiga lihtne" jada,
   pikeneb see numbri kaupa (roomCodeFromPhone) — 8 tähemärki murdus kahe
   lahtri puhul kahele reale. Kitsam samm kahe lahtri jaoks hoiab koodi ühel real. */
.codes-grid:not(.one) .code-val { font-size: 1.4rem; letter-spacing: 0.01em; }
.code-val.amber { color: var(--clay-deep); }
.codes-note { margin-top: 10px; text-align: center; }
/* Iga koodi ALL oma kehtivuse rida (hoone kood kehtib kohe, toa kood aktiveerub
   check-ini ajal) — varem oli üks ühine rida mõlema lahtri all ja see ütles
   hoone koodi kohta valet. */
.code-when { margin-top: 6px; font-size: 0.72rem; line-height: 1.35; color: var(--muted); }
/* „Kood ei ava veel ust" — saabumisjuhise esimene plokk. EI OLE `.card`: see
   kuulub juhise SISSE (selle kohta, mida külaline just proovis), mitte selle
   kõrvale omaette kaardiks. Värv on `--clay-deep`, mitte `--clay`: see plokk
   annab OLEKUT edasi ja peab olema loetav (vt :root kommentaar). */
.code-wait {
  border: 1px solid var(--clay-deep); border-radius: 12px;
  background: #fdf5ea; padding: 12px 14px; margin: 0 0 14px;
}
.code-wait .cw-row { display: flex; gap: 10px; align-items: flex-start; }
.code-wait .cw-i { width: 20px; height: 20px; flex: 0 0 auto; color: var(--clay-deep); margin-top: 2px; }
.code-wait .cw-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.code-wait .cw-txt strong { color: var(--clay-deep); font-size: 0.97rem; line-height: 1.3; }
.code-wait .cw-txt .muted { font-size: 0.85rem; line-height: 1.4; }
.code-wait .cw-offer {
  margin: 12px 0 10px; font-size: 0.85rem; line-height: 1.45;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.code-wait .cw-offer b { color: var(--clay-deep); white-space: nowrap; }
/* Täislaiuses: see on ploki ainus tegevus. `margin-top: 0` tühistab
   `.btn + .btn` reegli, mis siia ei kuulu (sama lõks mis `.door-row`).
   `text-wrap: balance` on soome/poola sildi jaoks: need on eesti omast pikemad
   ja kui rida siiski murdub, murdub ta keskelt, mitte üksiku sõnaga alla. */
.code-wait .cw-btn { width: 100%; margin-top: 0; font-size: 0.95rem; line-height: 1.3; text-wrap: balance; }
/* Avalehe pakkumiskaart (2026-09-03) kannab sama kesta mis uksekoodi
   ootamisplokk — üks visuaalne keel „ajavärav + ost". Nupu vahe tuleb siit,
   sest siin ei ole `.cw-offer` lõiku, mis ootamisplokis selle vahe annab. */
.home-offer .cw-btn { margin-top: 12px; }
/* ---------- ostetud lennujaamasõit (omanik 2026-09-04) ----------
   Avalehe kaart „Lennujaamatransfer" (ainult TULEVASED sõidud) + Lisade
   „Ostetud" ploki read. Rüü on TAHTLIKULT olemasolev: kest on tavaline
   `.card` (Fraunces pealkiri, valge taust), sõidu rida on `--linen` plokk
   nagu ukse-kaardil (`.kdoor`) ja märgis kannab sama rohelist mis Lisade
   voucher. Nii ei tule avalehele kolmandat visuaalset keelt juurde. */
.tr-head { margin-bottom: 12px; }
.tr-head h2 { display: flex; align-items: center; gap: 9px; margin: 6px 0 0; min-width: 0; }
.tr-head h2 .i { width: 22px; height: 22px; color: var(--clay-deep); flex: 0 0 auto; }
.tr-vehicle { margin: -4px 0 12px; color: var(--muted); font-size: 0.9rem; }
/* Märgis seisab pealkirja KOHAL (sama koht kus lehe päise „SINU PEATUMINE"):
   kõrvuti ei mahu „VIP-lennujaamatransfer" ja „Tellitud" 375px ekraanile ära. */
.tr-badge {
  display: inline-block;
  background: #eef6ef; color: var(--ok); border: 1px solid #9cc4a4; border-radius: 999px;
  padding: 3px 11px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.tr-rides { display: flex; flex-direction: column; gap: 8px; }
.tr-ride {
  display: flex; align-items: center; gap: 14px;
  background: var(--linen); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
/* Kellaaeg on rea ANKUR — seda otsib külaline lehelt esimesena (millal takso
   tuleb), seega ta seisab eraldi veerus ja on suur; kuupäev tema all. */
.tr-when {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  min-width: 62px; padding-right: 14px; border-right: 1px solid var(--line);
}
.tr-time { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.3rem; line-height: 1.05; }
.tr-date {
  margin-top: 3px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted); text-align: center;
}
.tr-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.tr-dir { font-size: 0.94rem; font-weight: 700; line-height: 1.25; }
.tr-meta { margin-top: 3px; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
/* Lennunumber ei tohi kunagi kahe rea peale murduda — vt rideMeta() app.js-is */
.tr-bit { white-space: nowrap; }
/* Juhi number: TERVE rida on link (puuteala 52px), number rea paremas servas —
   sama muster mis ukse-kaardi real (silt vasakul, tegevus paremal). */
.tr-call {
  display: flex; align-items: center; gap: 10px; min-height: 52px; margin-top: 10px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--linen); color: var(--ink); text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
}
.tr-call .i { width: 18px; height: 18px; color: var(--clay-deep); flex: 0 0 auto; }
.tr-call b { margin-left: auto; color: var(--clay-deep); white-space: nowrap; font-size: 0.95rem; }
.tr-note { margin-top: 10px; }
/* --- sõidu muutmine äpist (omanik 2026-09-04) --- */
/* „Muuda" on pill sõidu real paremal — sama muster mis ukse-kaardi „Ava" nupp
   (silt vasakul, tegevus paremal), et kaks kaarti käituksid ühtemoodi. */
.tr-ride .tr-edit {
  width: auto; margin: 9px 0 0; min-height: 40px;
  padding: 8px 14px; font-size: 0.78rem;
}
.tr-ride.editing { border-color: var(--clay-deep); }
/* Miks nuppu ei ole (alla 2 h / kodulehe ost) — sama real, mitte eraldi
   kaardil: vastus kuulub küsimuse kõrvale. */
.tr-lock { margin-top: 5px; font-size: 0.78rem; line-height: 1.4; color: var(--clay-deep); }
.tr-form {
  /* `align-items: end` — pikem silt („Suuri kotte/kohvreid") murdub kahele
     reale ja ilma selleta jäid kõrvutiste väljade rippmenüüd eri kõrgusele. */
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end;
  margin: -2px 0 8px; padding: 12px 14px 14px;
  background: #fff; border: 1px solid var(--clay-deep); border-top: 0;
  border-radius: 0 0 12px 12px;
}
.tr-fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tr-fld.wide { grid-column: 1 / -1; }
.tr-fld span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tr-fld select, .tr-fld input {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 0.92rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--linen); color: var(--ink);
}
.tr-err { grid-column: 1 / -1; font-size: 0.82rem; line-height: 1.4; color: #a8452e; }
.tr-actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.tr-actions .btn { margin: 0; flex: 1 1 auto; min-height: 48px; }
.tr-actions .btn.plain { flex: 0 0 auto; }
/* Lisade „Ostetud" plokk (roheline voucher) — read pärivad ploki värvi */
.tr-line { font-size: 0.85rem; line-height: 1.45; }
.tr-callmini {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  min-height: 40px; padding: 6px 0; color: var(--ok);
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.tr-callmini .i { width: 16px; height: 16px; }

.copy-btn {
  border: 1px solid var(--line); background: var(--linen); border-radius: 999px;
  padding: 6px 14px; min-height: 40px; font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; margin-top: 6px;
}
.locked { text-align: center; padding: 30px 20px; }
.locked .big { font-size: 2rem; margin-bottom: 10px; }
ol.entry { padding-left: 20px; margin-top: 8px; }
ol.entry li { margin: 8px 0; line-height: 1.5; font-size: 0.93rem; }

/* step-by-step "how to get in" guide — a vertical timeline; steps with a remote
   unlock button are boxed so button + text + door photo read as one unit */
.step-num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 0.95rem;
  position: relative; z-index: 1;
}
.step-img {
  display: block; width: 100%; max-width: 320px; margin-top: 10px;
  border-radius: 12px; border: 1px solid var(--line);
}
/* the parking photo fills the width of its card (not capped like step photos) */
.parking-img { max-width: 100%; }
/* the fallback door code, highlighted inside the step text */
.code-chip {
  display: inline-block; padding: 1px 8px; border-radius: 8px;
  background: var(--sand); border: 1px solid var(--line);
  font-weight: 800; letter-spacing: 0.06em; white-space: nowrap;
}
ul.plain { padding-left: 20px; margin-top: 6px; }
ul.plain li { margin: 6px 0; line-height: 1.5; font-size: 0.9rem; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.kv:last-child { border-bottom: 0; }
.kv b { font-weight: 600; }

/* login */
.login-wrap { max-width: 420px; margin: 6vh auto 0; }
.login-logo { text-align: center; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 2rem; margin-bottom: 4px; }
.login-logo span { color: var(--clay); }
.login-tag { text-align: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 26px; }
.login-info { margin-top: 16px; padding: 4px 18px; }
.acc { border-bottom: 1px dashed var(--line); }
.acc:last-child { border-bottom: 0; }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc-head { display: flex; flex-direction: column; gap: 2px; }
.acc-head b { font-weight: 600; font-size: 0.95rem; }
.acc-chev { color: var(--muted); transition: transform 0.2s; flex: none; }
.acc[open] .acc-chev { transform: rotate(180deg); }
.acc > p { margin: 0 0 14px; font-size: 0.9rem; line-height: 1.5; }
.acc .btn { margin: 0 0 10px; width: 100%; }
.acc .btn:last-child { margin-bottom: 14px; }

/* tab bar */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-around;
  background: #fff; border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.tabbar button {
  flex: 1; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font: inherit; font-size: 0.68rem; font-weight: 600; color: var(--muted);
  padding: 4px 0; border-radius: 10px;
}
.tabbar button.on { color: var(--clay-deep); }
.tabbar .ic { display: block; height: 22px; }
.tabbar .ic .i { width: 22px; height: 22px; }

/* Lugemata tugisõnumi märk Abi-nupul (auditi E2). Nupp ise on `flex-column`,
   seega märk paigutatakse absoluutselt ikooni paremasse ülanurka — muidu
   lükkaks ta teksti paigast ja tabbari nupud jääksid eri kõrgusega.
   `position: relative` on nupul, mitte ribal: riba on `position: fixed`. */
.tabbar button { position: relative; }
.tab-badge {
  position: absolute; top: 0; left: 50%; margin-left: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--clay-deep); color: #fff;
  font-size: 0.6rem; font-weight: 700; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px #fff; /* eraldab märgi ikoonist ka siis, kui need kattuvad */
}

/* chat */
.chat-thread {
  max-height: 46vh; min-height: 90px; overflow-y: auto;
  margin: 12px 0 4px; padding: 4px 2px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-empty { text-align: center; padding: 20px 10px; }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 85%; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-bubble {
  padding: 10px 14px; border-radius: 16px; font-size: 0.92rem; line-height: 1.45;
  background: var(--linen); border: 1px solid var(--line); color: var(--ink);
  border-bottom-left-radius: 6px; white-space: pre-wrap; word-break: break-word;
}
.chat-msg.mine .chat-bubble {
  background: var(--clay-deep); border-color: var(--clay-deep); color: #fff;
  border-bottom-left-radius: 16px; border-bottom-right-radius: 6px;
}
.chat-msg.host .chat-bubble { background: var(--ink); border-color: var(--ink); color: #fff; }
.chat-meta { font-size: 0.68rem; color: var(--muted); margin-top: 3px; padding: 0 4px; }
/* Tõlkenupp + tõlge. Tõlge on VISUAALSELT teisejärguline (kaldkiri, hall
   ääris): originaal jääb tõeks — uksekood ja kellaaeg on seal —, tõlge on
   abivahend selle mõistmiseks. Sama valik mis admini postkastis. */
.chat-trbtn {
  margin-top: 4px; padding: 6px 4px; min-height: 32px; background: none; border: 0;
  font: inherit; font-size: 0.74rem; color: var(--muted); text-decoration: underline;
  cursor: pointer; text-align: left;
}
.chat-trbtn:disabled { cursor: default; text-decoration: none; opacity: 0.7; }
.chat-tr {
  margin-top: 5px; padding: 8px 12px; border-left: 3px solid var(--line);
  background: var(--sand); border-radius: 0 12px 12px 0;
  font-size: 0.88rem; line-height: 1.45; font-style: italic;
  white-space: pre-wrap; word-break: break-word;
}
.chat-tr b {
  display: block; margin-bottom: 3px; font-style: normal; font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted);
}
/* „Juba sinu keeles" EI OLE viga — muidu näeks õnnestunud kontroll rikke moodi. */
.chat-trnote { margin-top: 4px; font-size: 0.74rem; color: var(--muted); padding: 0 4px; }
.chat-trerr { margin-top: 4px; font-size: 0.74rem; color: #b3261e; padding: 0 4px; }
.chat-sys {
  align-self: center; text-align: center; font-size: 0.78rem; color: var(--muted);
  background: var(--sand); border-radius: 999px; padding: 6px 14px; max-width: 90%;
}
.chat-row { display: flex; gap: 8px; margin-top: 10px; }
.chat-row input { flex: 1; border-radius: 999px; padding: 12px 16px; }
.chat-send {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 999px; border: 0;
  background: var(--clay-deep); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.chat-send .i { width: 20px; height: 20px; }
.chat-send[disabled] { opacity: 0.5; }

/* qty items — 3-column grid [1fr | button | 1fr]: the "Osta" button lives in the
   centre column so it is ALWAYS card-centred (same width/position as non-qty
   cards), "Kogus" sits in the left column on the SAME row (same height), and the
   equal side columns guarantee they can never overlap. */
.qty-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.qty-row .qty-lbl {
  grid-column: 1; justify-self: start;
  flex-direction: column; align-items: flex-start; gap: 4px;
}
.qty-row .buy-btn { grid-column: 2; margin: 0; }
.qty-lbl {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600;
}
.qty-sel { width: 66px; padding: 12px 8px; border-radius: 12px; }
.voucher {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: #eef6ef; border: 1px dashed #9cc4a4; color: var(--ok);
  font-size: 0.9rem; display: flex; flex-direction: column; gap: 3px;
}
.voucher .i { width: 18px; height: 18px; }
.voucher b { color: var(--ok); }
.perk-free { color: var(--ok); }

/* remote door-unlock button — one at the top of its "how to get in" step */
.door-btn {
  width: 100%; margin: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 14px; line-height: 1.25;
}
.door-btn .i { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
.door-btn.ok { background: var(--ok); }
.door-btn.fail { background: #a8452e; font-size: 0.82rem; text-align: left; }
.door-btn[disabled] { opacity: 1; } /* state colors carry the meaning; don't dim */
.i.spin { animation: rh-spin 0.9s linear infinite; }
@keyframes rh-spin { to { transform: rotate(360deg); } }
/* ---------- sissepääsu akordion (omanik 2026-09-04) ----------
   ÜKS kaart: iga juhise samm = rida (number + pealkiri + nool), uksega sammul
   paremal „Ava" pill; rea päis avab teksti + foto. Enne esimest sees käimist on
   kõik read lahti (`.open`), pärast seda kinni — sama markup, vt app.js
   entryStepsCard. Nupp on eraldi tsoonis rea paremas servas: vihmas ukse ees ei
   vajuta keegi „Ava" asemel noolt. */
.estep-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.estep { background: var(--linen); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; }
.estep-row { display: flex; align-items: center; gap: 8px; }
.estep-hd {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 4px 0; min-height: 44px;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.estep-hd .step-num { width: 28px; height: 28px; font-size: 0.9rem; }
.estep.has-door .step-num { background: var(--clay-deep); }
.estep-ttl { font-size: 0.92rem; font-weight: 700; }
.estep-hd .chev { width: 16px; height: 16px; color: var(--muted); flex: 0 0 auto; transition: transform 0.2s; }
.estep.open .estep-hd .chev { transform: rotate(90deg); }
.estep-body { display: none; padding: 4px 4px 8px; }
.estep.open .estep-body { display: block; }
.estep-body p { margin: 0; line-height: 1.5; font-size: 0.93rem; }
.estep .step-img { max-width: 100%; }
/* pill, mitte täislaiuses nupp: silt on kõrval. `margin: 0` tuleb .door-btn-ist. */
.estep .door-btn { width: auto; flex: 0 0 auto; min-height: 44px; padding: 9px 18px; font-size: 0.85rem; }
.estep .door-btn .i { width: 16px; height: 16px; }
/* tõrke rida on pikk („Avamine ebaõnnestus — …") — pill ei tohi silti välja suruda */
.estep .door-btn.fail { font-size: 0.7rem; max-width: 60%; }
/* Alternative entrances remain available when the instruction is collapsed. */
.estep-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 6px; }
.estep-actions .door-btn { margin: 0; flex: 1 1 130px; min-width: 0; padding: 9px 10px; }
.estep-actions .door-btn.fail { max-width: 100%; }
.kdoor-off {
  background: var(--sand); color: var(--muted); border-radius: 999px;
  padding: 10px 14px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; flex: 0 0 auto;
}

/* extras: uniform centered "buy" button — same width on EVERY product card
   (150px fits the centred grid column alongside "Kogus" without overlap) */
.buy-row { justify-content: center; }
.buy-btn { width: 150px; max-width: 100%; flex: 0 0 auto; }

/* check-in done badge + "instructions after check-in" info banner */
.done-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #eef6ef; border: 1px solid #cfe4d3; color: var(--ok);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px;
  font-weight: 700; font-size: 0.92rem;
}
.done-badge .i { width: 20px; height: 20px; }
.banner-info {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--linen); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-top: 14px; font-size: 0.86rem; font-weight: 600; color: var(--ink);
}
.banner-info .i { width: 18px; height: 18px; flex: 0 0 auto; color: var(--clay); margin-top: 1px; }

/* push CTA */
.push-cta { margin: 10px 0 2px; }
.push-cta .btn { padding: 11px 18px; font-size: 0.85rem; width: auto; }
.push-ok { margin: 8px 0 2px; color: var(--ok); font-weight: 600; }
/* check-in consent note (replaces the rules checkbox) */
.agree-note {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--linen); border: 1px solid var(--line);
  font-size: 0.86rem; font-weight: 600; color: var(--ink);
}

/* share-access link box */
.share-box { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.share-input {
  flex: 1; min-width: 0; font-size: 0.8rem; padding: 10px 12px;
  background: var(--linen); color: var(--muted);
}
.share-box .copy-btn { margin-top: 0; flex: 0 0 auto; }

/* Mitme toa reserveering: TOAVALIJA (Peatumine + Lisad; Info ja Abi seda ei
   näita, vt app.js roomSwitcher). Varem oli see paljas pillikujuline riba, mis
   hõljus lehe pealkirja kohal ega kuulunud millegi juurde — nüüd on ta sama
   kaardikeel mis ülejäänud äpp: silt + segmentnupud.

   ⚠️ RUUDUSTIK, MITTE keriv riba. Vana `overflow-x: auto` riba lõikas kolmanda
   toa poole sõna pealt ära ja poolik nupp ei näe välja nagu „keri edasi", vaid
   nagu katkine leht (sama viga, mis parandati back office'i navis 2026-07-28).
   `auto-fit` murrab uue rea ise — 2 tuba = 2 veergu, 4 tuba = 2×2. */
.roomsw {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin-bottom: 14px;
}
.roomsw-lbl {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin: 0 2px 8px;
}
.roomsw-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px;
}
.roomsw-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 52px; padding: 9px 10px; cursor: pointer; text-align: center;
  background: var(--linen); border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.roomsw-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.roomsw-name {
  display: inline-flex; align-items: center; gap: 5px; min-width: 0;
  font-weight: 700; font-size: 0.92rem; line-height: 1.2;
}
/* ✓ ainult segaolekus (osa tube sisse registreeritud, osa mitte) */
.roomsw-ok { display: inline-flex; flex: 0 0 auto; color: var(--ok); }
.roomsw-ok svg { width: 15px; height: 15px; }
.roomsw-btn.on .roomsw-ok { color: #8fd6a4; }
/* toatüüp („Twin Studio") ühel real — kaks eri pikkusega tüüpi ei tohi teha
   nuppe eri kõrguseks, seega kärbitakse ellipsiga */
.roomsw-sub {
  max-width: 100%; font-size: 0.72rem; line-height: 1.2; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.roomsw-btn.on .roomsw-sub { color: rgba(255, 255, 255, 0.75); }
/* „millisele toale see läheb" — kaardi SEES, mitte hõljuva lõiguna selle all */
.roomsw-note { font-size: 0.8rem; color: var(--muted); margin: 10px 2px 0; }

/* Check-ini 3. samm mitme toa broneeringul: üks plokk toa kohta. Tühi tuba on
   savikarva raamiga esile tõstetud — see on ainus asi, mis edasi ei lase. */
.room-block {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; margin-top: 12px; background: var(--linen);
}
.room-block.empty { border-color: var(--clay-deep); }
.rbk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rbk-head strong { font-size: 0.98rem; }
.rbk-count { font-size: 0.75rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.rbk-count.warn { color: var(--clay-deep); }
.rbk-me {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 0.88rem; font-weight: 600;
}
.rbk-me .i { width: 16px; height: 16px; flex: 0 0 auto; color: var(--ok); }
.room-block .guest-block { background: #fff; }
.room-block .btn-row { margin-top: 10px; }

/* DOB picker */
.dob-row { display: flex; gap: 8px; }
.dob-row select { flex: 1; min-width: 0; padding: 12px 8px; }
.dob-row .dob-m { flex: 1.6; }

/* extend-stay iframe modal (same Beds24 engine as the website) */
.iframe-modal { align-items: stretch; padding: 0; }
.iframe-box { position: relative; width: 100%; height: 100%; background: #fff; }
.iframe-box iframe { width: 100%; height: 100%; border: 0; }
.iframe-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 1.1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 10px rgba(20,59,66,0.2);
}

/* wifi QR */
.qr-wrap { text-align: center; margin-top: 16px; }
.qr-wrap .wifi-qr svg { width: 140px; height: 140px; }
.qr-wrap p { margin-top: 8px; }

/* extras / products */
.product .prod-row { display: flex; gap: 14px; align-items: flex-start; }
/* sama pisipildi mõõt mis booking-mootoris (.bk-extra .ximg): 96×76 */
.product .prod-img { width: 96px; height: 76px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.product .grow { flex: 1; }
/* korv — sama kaardivisuaal mis booking-checkoutis (.bk-extra grid) */
.xcard { padding: 14px 16px; }
.xcard.picked { border: 2px solid var(--clay-deep); }
.xcard .xgrid { display: grid; grid-template-columns: 96px 1fr auto; gap: 4px 14px; align-items: start; }
.xcard .ximg { grid-row: 1 / span 3; width: 96px; height: 76px; object-fit: cover; border-radius: 10px; }
.xcard .xn { grid-column: 2; font-weight: 700; font-size: .96rem; }
.xcard .xp { grid-row: 1; grid-column: 3; font-weight: 700; font-size: .95rem; text-align: right; white-space: nowrap; }
.xcard .xd { grid-column: 2; font-size: .84rem; color: var(--muted); }
.xcard .xbtn { grid-column: 3; grid-row: 2; justify-self: end; align-self: start; }
.xcard .btn-x { font: inherit; font-size: .84rem; font-weight: 600; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.xcard .btn-x.added { background: var(--clay-deep); border-color: var(--clay-deep); color: #fff; }
.xcard .btn-x:disabled { opacity: .55; cursor: default; }
.xcard .xopts { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.xcard .xopts label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--muted); }
.xcard .xopts select, .xcard .xopts input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
/* sama clay-chevron mis äpi teistel dropdownidel (natiivne nool maha) */
.xcard .xopts select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23dc8a3c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
  padding-right: 30px; cursor: pointer;
}

/* makseviisi valik — sama visuaal mis broneerimislehe checkoutis (.pm-card) */
.pm-title { font-weight: 700; font-size: 0.9rem; margin: 16px 0 8px; }
.pm-cards { display: grid; gap: 10px; margin-bottom: 4px; }
.pm-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 15px; cursor: pointer; font: inherit; color: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.pm-card.selected { border-color: var(--clay-deep); box-shadow: 0 0 0 1px var(--clay-deep); }
.pm-radio {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line); position: relative;
}
.pm-card.selected .pm-radio { border-color: var(--clay-deep); }
.pm-card.selected .pm-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--clay-deep);
}
.pm-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pm-body b { font-size: 0.95rem; }
.pm-sub { font-size: 0.82rem; color: var(--muted); }
.pm-ico { flex: 0 0 22px; display: flex; color: var(--muted); }
.pm-ico svg { width: 22px; height: 22px; }
.pm-card.selected .pm-ico { color: var(--clay-deep); }
.xcard .xowned { grid-column: 1 / -1; }
/* tasuta voodipesuvahetus (7+ ööd): sama kaart mis tasulistel lisadel, aga
   „hind" on roheline 0 € ja nupp elab päeva-dropdowni kõrval, mitte hinna all */
.xcard.free-linen { border: 1px solid var(--ok, #2c6b3c); }
.xcard .fl-go { display: flex; align-items: flex-end; }
.xcard .fl-note { grid-column: 2 / -1; margin-top: 6px; font-size: .78rem; }
.cart-sum .cs-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 0.95rem; }
.cart-sum .cs-total { border-top: 1px solid var(--line, #ddd2bf); margin-top: 6px; padding-top: 10px; font-weight: 700; }
@media (max-width: 420px) {
  .xcard .xgrid { grid-template-columns: 72px 1fr auto; }
  .xcard .ximg { width: 72px; height: 58px; }
}
.prod-price {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.2rem;
  color: var(--clay-deep); white-space: nowrap;
}
textarea { resize: vertical; min-height: 60px; }
/* Puuduv kohustuslik väli. Varem oli valideerimine AINULT üldine tekst lehe
   lõpus („täida kõik kohustuslikud väljad") — üheksa välja juures pidi külaline
   ise otsima. Punane raam + `aria-invalid` (JS-is) ütlevad, MILLINE väli.
   `!important` ei ole vaja: see reegel on hilisem kui `input, select, textarea`. */
.field-bad, .field-bad input, .field-bad select {
  border-color: #b4442e; background: #fdf4f2;
}
.field-bad:focus, .field-bad input:focus, .field-bad select:focus {
  outline-color: #b4442e; border-color: #b4442e;
}
/* Probleemiteate foto eelvaade — kinnitus, et pilt päriselt loeti. */
.issue-prev {
  display: block; max-width: 160px; width: 100%; height: auto;
  border-radius: 12px; border: 1px solid var(--line); margin: 8px 0 4px;
}
input[type="file"] { padding: 10px; font-size: 0.85rem; }

/* pay modal */
/* ⚠️ `overflow-y: auto` ja `max-height` on KOHUSTUSLIKUD. Fikseeritud konteiner
   ei keri, seega ekraanist kõrgem modaal jooksis ÜLE ÜLASERVA välja ja sisu
   (pealkiri + tärnid) muutus kättesaamatuks. Reaalne juht: madal või
   landscape-ekraan (~375px kõrgus) + 1–4★ haru lahti (vihje + 5 tärni +
   tekstiväli + Saada + Hiljem). Ära võta neid ridu ära. */
/* Modaali pealkiri saab programmilise fookuse (dialoogi nimi ekraanilugejale);
   brauseri vaikimisi `outline: auto` joonistas selle ümber sinise kasti (audit
   2026-09-03 P1-4). Nuppude/väljade fookusringe see EI puuduta. */
.modal h2:focus { outline: none; }

.modal-bg {
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 59, 66, 0.45);
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
  overflow-y: auto;
}
.modal {
  width: 100%; max-width: 430px; margin-bottom: 6vh; animation: fadeUp 0.3s var(--ease) both;
  max-height: calc(100dvh - 32px); overflow-y: auto;
}
/* Modaali all olev leht ei tohi kerida (iOS kerib muidu tausta). */
body.modal-open { overflow: hidden; }

/* review stars */
.stars { display: flex; gap: 6px; margin: 12px 0 4px; }
.star {
  background: none; border: 0; cursor: pointer; font-size: 2rem; line-height: 1;
  color: var(--sand); transition: color 0.15s, transform 0.15s;
}
.star.on { color: var(--clay-deep); }
.star:active { transform: scale(1.15); }

/* invoice print */
@media print {
  .topbar, .tabbar, .no-print { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
  .card { border: 1px solid #ccc; break-inside: avoid; }
}

.banner-ok {
  background: #eef6ef; border: 1px solid #cfe4d3; color: var(--ok);
  border-radius: var(--radius); padding: 14px 16px; font-size: 0.9rem; font-weight: 600; margin-bottom: 14px;
}
/* Sama kuju, HOIATAV värv. Vajalik sellepärast, et `S.notice` renderdati
   `banner-ok` klassiga ka siis, kui teade oli halb uudis („makse jäi pooleli",
   „sessioon aegus") — roheline kast ütleb „kõik korras" ja külaline ei jõua
   tekstini. Vt noticeBanner() app.js-is: SEE otsustab, kumb klass. */
.banner-warn {
  background: #fdf3e7; border: 1px solid #e8c9a0; color: #8a4b12;
  border-radius: var(--radius); padding: 14px 16px; font-size: 0.9rem; font-weight: 600; margin-bottom: 14px;
}
a { color: var(--ink); }
.wa-link { color: var(--clay-deep); font-weight: 700; text-decoration: none; }

/* "broneeri järgmine kord otse" kaart — check-out päeval ja hiljem */
.rebook { background: #fdf6ec; border-color: var(--clay); }
.rebook-list { list-style: none; margin: 12px 0 0; }
.rebook-list li {
  position: relative; padding-left: 24px; margin-top: 7px;
  font-size: 0.88rem; line-height: 1.45;
}
.rebook-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  /* Glüüf on väike (0,88rem) ja loeb tekstina — dekoratiivne täpp või ei, siin on
     `--clay-deep` odav. Ülejäänud paljad `--clay` kasutused CSS-is on logotüübid
     (WCAG erand), spinneri äär, ikooniaktsendid ja kaardi soojad ääred. */
  color: var(--clay-deep); font-weight: 800;
}

/* Reval Insider märk (otsebroneeringu püsikliendikonto) */
.insider-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  background: #fdf6ec; border: 1px solid var(--clay); color: var(--clay-deep);
  border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600;
}

/* upsells inside check-in step 1 — the cards themselves are the SAME .xcard
   markup as the Extras tab / booking engine, so only the section header and
   spacing live here */
.ci-extras { margin-top: 4px; }
.ci-extras h3 { margin: 0 0 2px; font-size: 1.05rem; }
.ci-extras > p { margin: 0 0 10px; }

/* check-ini nupurida: „Kinnita check-in ja maksa" ei mahu poolele laiusele ühele
   reale, seega kitsal ekraanil lähevad nupud üksteise alla — põhinupp (DOM-is
   teine) column-reverse'iga ÜLES, „Tagasi" alla */
@media (max-width: 520px) {
  .ci-actions { flex-direction: column-reverse; }
  .ci-actions .btn { width: 100%; }
}

/* ---- Korviriba + korvileht (v2-st toodud 2026-09-04, plaan P1) ---- */
/* Kleepuv korviriba (v2 §4.3 p 5: tume pill tabbari kohal). .cart-pad on
   IN-FLOW distants sama konteineri sees — viimane kaart ei tohi riba taha
   jääda; riba ise on fikseeritud tabbari kohale. */
.cart-pad { height: 64px; }
.cart-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  width: min(100% - 36px, 524px);
  bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 25;
}
.cart-bar-inner {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: 8px 8px 8px 20px; font: inherit; cursor: pointer;
  box-shadow: 0 8px 24px rgba(20, 59, 66, 0.25);
}
.cart-bar-inner .cb-info { font-size: 0.84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-bar-inner .cb-info b { font-family: "Fraunces", Georgia, serif; font-size: 0.95rem; }
/* mockupi „Pay →" chip on --clay taustal; tekst #0f3138 = 5.07:1 (sama
   kontrastivalik mis Home ink-kaardi CTA-l — --ink jääks alla AA) */
.cart-bar-inner .cb-pay {
  background: var(--clay); color: #0f3138; border-radius: 999px;
  padding: 11px 22px; font-size: 0.86rem; font-weight: 800; white-space: nowrap; flex: none;
}

/* Korvileht (bottom-sheet): sama .modal mehaanika (Esc, taustaklõps,
   fookuselõks); all servas, täisnurgad ainult ülal. */
.modal.sheet {
  margin-bottom: 0; max-width: 560px;
  border-radius: var(--radius) var(--radius) 0 0;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.modal-bg:has(.sheet) { padding: 16px 0 0; }
.sheet .cs-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 0.92rem; align-items: center; }
.sheet .cs-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.sheet .cs-right { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sheet .cs-rm {
  position: relative;
  background: none; border: 0; color: var(--muted); cursor: pointer;
  padding: 8px; margin: -6px -4px -6px 0; border-radius: 8px; display: flex;
}
/* sama nähtamatu klõpsuala-laiendus mis `.btn-x`-il: ikoon on 15px ja nupp
   ~31px, mis on korvirea „eemalda" jaoks liiga väike (§7 nõuab 44px) */
.sheet .cs-rm::after { content: ""; position: absolute; inset: -7px -6px; }
.sheet .cs-rm:hover { color: #b4442e; }

/* ---- Check-ini kiibigrid + „Järgmised sammud" (v2-st toodud 2026-09-04, plaan P2) ---- */
.sec-label {
  font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin: 4px 2px 8px;
}
/* Saabumisaja kiibigrid (3 veergu, keritav — v2-st 2026-09-04, plaan P2) */
.slot-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-top: 12px; max-height: 268px; overflow-y: auto; padding: 2px;
}
.slot {
  font: inherit; font-size: 0.92rem; font-weight: 700; padding: 10px 4px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--ink); cursor: pointer; min-height: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.slot.early { color: var(--clay-deep); }
.slot .fee { font-size: 0.64rem; font-weight: 700; color: var(--clay-deep); }
.slot .fee.std { color: var(--muted); }
.slot.sel { border: 2px solid var(--clay-deep); background: #fdf5ea; padding: 9px 3px; }
/* markMissing sihtmärk: valimata aeg → punane raam kogu gridil */
.slot-grid.field-bad { border: 1px solid #b4442e; border-radius: 12px; background: #fdf4f2; }

/* infokast „praegu ei võeta raha" (mockup) */
.ci-info {
  display: flex; gap: 9px; align-items: flex-start; background: var(--linen);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px;
  margin-top: 14px; font-size: 0.8rem; line-height: 1.45;
}
.ci-info .i { width: 16px; height: 16px; color: var(--clay); flex: none; margin-top: 1px; }

/* „Coming up" kaart (1. samm) */
.ci-coming .ci-come { display: flex; gap: 10px; align-items: center; margin-top: 9px; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.ci-come i {
  width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--line);
  font-style: normal; font-size: 0.7rem; font-weight: 800;
  display: grid; place-items: center; flex: none;
}
.ci-come.next { color: var(--ink); }
.ci-come.next i { border-color: var(--clay-deep); color: var(--clay-deep); }
.slot-grid .slot:focus-visible { outline-offset: -3px; }
