/* Stays — direction C «Total and place»
   The trip total and the place on the map always sit side by side.
   Type: Schibsted Grotesk (headings, prices, buttons) + Lexend (body, small text). */

:root {
  /* palette */
  --ink: #15171F;
  --ink-2: #252833;        /* raised surface inside the ink header */
  --wine: #7B1E3B;
  --wine-hover: #62172F;
  --wine-soft: #F6E9EE;
  --sea: #1D5C7A;
  --sea-water: #D3E4EC;    /* lighter sea for map water */
  --surface: #F4F5F7;
  --white: #FFFFFF;
  --line: #DEE0E6;
  --line-strong: #858A96;  /* field and control borders (3:1 on white) */
  --muted: #5B5F6B;
  --positive: #0F7A4B;
  --positive-soft: #E7F4EC;
  --danger: #B42318;
  --danger-soft: #FCEDEB;

  /* type */
  --font-head: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lexend", "Helvetica Neue", Arial, sans-serif;
  --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-16: 16px; --fs-20: 20px; --fs-24: 24px; --fs-32: 32px; --fs-40: 40px;

  /* space (4/8 scale) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* shape */
  --r: 10px;
  --r-sm: 6px;
  --shadow-float: 0 8px 24px rgba(21, 23, 31, .12), 0 1px 3px rgba(21, 23, 31, .08);
  --page-max: 1440px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 var(--fs-16)/1.5 var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-32); line-height: 1.15; font-weight: 700; }
h2 { font-size: var(--fs-24); line-height: 1.2; font-weight: 700; }
h3 { font-size: var(--fs-20); line-height: 1.25; font-weight: 600; }
h4 { font-size: var(--fs-16); line-height: 1.3; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 4px; }
.on-ink :focus-visible, .bar :focus-visible { outline-color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s2); top: -100px; z-index: 100; background: var(--white); color: var(--ink); padding: var(--s2) var(--s4); border-radius: var(--r); border: 2px solid var(--ink); font-weight: 700; }
.skip:focus { top: var(--s2); }
.num, .money { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-14); }
.xs { font-size: var(--fs-13); }
.strong { font-weight: 700; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-16 { width: 16px; height: 16px; }
.icon-24 { width: 24px; height: 24px; }
.container { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--s6); }
.stack-2 > * + * { margin-top: var(--s2); }
.stack-3 > * + * { margin-top: var(--s3); }
.stack-4 > * + * { margin-top: var(--s4); }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.between { justify-content: space-between; }
.nowrap { white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.show-m { display: none !important; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--white); font: 800 22px/1 var(--font-head); letter-spacing: -0.02em; flex: none; }
.logo:hover { color: var(--white); }
.logo svg { width: 28px; height: 28px; flex: none; }
.logo .for { font: 600 var(--fs-14)/1 var(--font-body); color: #C9CCD6; letter-spacing: 0; margin-left: 2px; }
.logo.on-light { color: var(--ink); }
.logo.on-light .for { color: var(--muted); }

/* ---------- header bar (guest + host) ---------- */
.bar { background: var(--ink); color: var(--white); }
.bar-inner { max-width: var(--page-max); margin: 0 auto; padding: var(--s3) var(--s6); display: flex; align-items: center; gap: var(--s5); min-height: 76px; }
.bar-nav { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.bar-nav a, .bar-nav summary { color: #E6E8EE; text-decoration: none; font: 600 var(--fs-14)/1 var(--font-head); padding: var(--s3) var(--s3); border-radius: var(--r); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.bar-nav a:hover, .bar-nav summary:hover { background: var(--ink-2); color: var(--white); }
.bar-nav a[aria-current="page"] { background: var(--ink-2); color: var(--white); box-shadow: inset 0 -2px 0 var(--white); }
.bar-nav .signin { border: 1px solid #6C7080; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--wine); color: var(--white); font: 700 var(--fs-12)/1 var(--font-head); }
.bar .count { background: var(--white); color: var(--ink); }

/* segmented search inside the bar */
.seg { display: flex; align-items: stretch; background: var(--white); color: var(--ink); border-radius: var(--r); padding: 4px; flex: 1 1 auto; max-width: 760px; min-width: 0; }
.seg-part { display: flex; align-items: center; gap: var(--s2); padding: 6px var(--s4); border-radius: 7px; background: none; border: 0; text-align: left; cursor: pointer; min-width: 0; flex: 1 1 0; }
.seg-part + .seg-part { box-shadow: -1px 0 0 var(--line); }
.seg-part:hover { background: var(--surface); }
.seg-part .icon { color: var(--muted); }
.seg-label { display: block; font-size: var(--fs-12); color: var(--muted); line-height: 1.2; }
.seg-value { display: block; font: 600 var(--fs-14)/1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-where { flex: .8 1 0; }
.seg-when { flex: 1.15 1 0; }
.seg-who { flex: 1.25 1 0; }
.seg .btn { margin-left: 4px; min-height: 48px; }
.seg-pill { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border-radius: var(--r); border: 1px solid transparent; font: 600 var(--fs-16)/1.1 var(--font-head); text-decoration: none; cursor: pointer; white-space: nowrap; background: none; color: var(--ink); }
.btn-primary { background: var(--wine); color: var(--white); }
.btn-primary:hover { background: var(--wine-hover); color: var(--white); }
.btn-secondary { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--surface); color: var(--ink); }
.btn-quiet { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.btn-quiet:hover { background: var(--surface); color: var(--ink); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #8F1C13; color: var(--white); }
.btn-link { min-height: 0; padding: 0; border: 0; background: none; cursor: pointer; color: var(--sea); font: 600 var(--fs-14)/1.4 var(--font-body); text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--surface); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 52px; font-size: var(--fs-16); padding: 0 var(--s5); }
.btn-sm { min-height: 36px; padding: 0 var(--s3); font-size: var(--fs-14); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); cursor: pointer; padding: 0; text-decoration: none; }
.icon-btn:hover { background: var(--surface); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner, .runbar i { animation: none !important; } }

/* ---------- chips, tags, badges, score ---------- */
.chips { display: flex; gap: var(--s2); flex-wrap: wrap; }
.scroll-x { overflow-x: auto; flex-wrap: wrap; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font: 400 var(--fs-14)/1 var(--font-body); white-space: nowrap; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 700; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-sm); font: 700 var(--fs-12)/1.4 var(--font-body); background: var(--white); color: var(--ink); border: 1px solid var(--ink); white-space: nowrap; vertical-align: middle; }
.tag-sample { border-color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-13); line-height: 1.3; color: var(--ink); white-space: nowrap; }
.badge .icon { width: 16px; height: 16px; }
.badge-positive { color: var(--positive); font-weight: 700; }
.badge-danger { color: var(--danger); font-weight: 700; }
.badge-muted { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.score { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-14); white-space: nowrap; }
.score b { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 28px; padding: 0 6px; border-radius: var(--r-sm) var(--r-sm) var(--r-sm) 2px; background: var(--ink); color: var(--white); font: 700 var(--fs-14)/1 var(--font-head); }
.score strong { font-family: var(--font-head); font-weight: 700; }
.score .muted { font-size: var(--fs-14); }
.score-new b { display: none; }
.score-new strong { color: var(--sea); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font: 700 var(--fs-14)/1.3 var(--font-body); color: var(--ink); }
.hint { font-size: var(--fs-13); color: var(--muted); }
.input, .select, .textarea { display: block; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--white); font-size: var(--fs-16); color: var(--ink); text-align: left; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2315171F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.textarea { min-height: 96px; resize: vertical; }
.input:hover, .select:hover { border-color: var(--ink); }
.is-error .input, .input.is-error { border: 2px solid var(--danger); }
.is-success .input { border-color: var(--positive); }
.msg-error { display: flex; gap: 6px; align-items: flex-start; color: var(--danger); font-size: var(--fs-14); font-weight: 700; }
.msg-success { display: flex; gap: 6px; align-items: center; color: var(--positive); font-size: var(--fs-14); font-weight: 700; }
.check { display: flex; align-items: flex-start; gap: var(--s2); font-size: var(--fs-16); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--wine); flex: none; }
.stepper { display: flex; align-items: center; gap: var(--s3); }
.stepper output { min-width: 24px; text-align: center; font: 700 var(--fs-16)/1 var(--font-head); }
.daterange { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.daterange button { background: var(--white); border: 0; padding: 8px 14px; text-align: left; cursor: pointer; min-height: 56px; }
.daterange button + button { border-left: 1px solid var(--line-strong); }
.daterange small { display: block; font-size: var(--fs-12); color: var(--muted); font-weight: 700; }
.daterange span { font: 600 var(--fs-16)/1.3 var(--font-head); }

/* ---------- surfaces ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.panel { background: var(--surface); border-radius: var(--r); padding: var(--s4); }
.banner { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r); font-size: var(--fs-14); }
.banner .icon { margin-top: 1px; }
.banner-sample { background: var(--surface); color: var(--ink); }
.banner-sample .icon { color: var(--ink); }
.banner-test { background: var(--ink); color: var(--white); }
.banner-error { background: var(--danger-soft); color: var(--ink); }
.banner-error .icon { color: var(--danger); }
.toast { display: inline-flex; align-items: center; gap: var(--s3); background: var(--ink); color: var(--white); padding: var(--s3) var(--s4); border-radius: var(--r); box-shadow: var(--shadow-float); font-size: var(--fs-14); }
.toast a { color: var(--white); font-weight: 700; }
.toast .icon { color: #8FD3B0; }

/* ---------- photo + type tile ---------- */
.photo { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .tag { position: absolute; top: var(--s2); left: var(--s2); }
.photo .save { position: absolute; top: var(--s2); right: var(--s2); width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.photo .save[aria-pressed="true"] .icon { fill: var(--wine); stroke: var(--wine); }
.photo .dots { position: absolute; bottom: var(--s2); left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.photo .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.65); }
.photo .dots i:first-child { background: var(--white); }
.typetile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2); height: 100%; width: 100%; background: #E9EBEF; color: var(--muted); font-size: var(--fs-13); text-align: center; padding: var(--s3); }
.typetile svg { width: 44px; height: 44px; stroke: var(--muted); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- results (G2) ---------- */
.results-head { padding-top: var(--s5); }
.results { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s5); align-items: start; padding-bottom: var(--s7); }
.list-col { min-width: 0; }
.tools { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin: var(--s4) 0 var(--s5); }
.tools .sortwrap { display: flex; align-items: center; gap: var(--s2); }
.tools .sortwrap .select { min-height: 44px; width: auto; font-size: var(--fs-14); font-weight: 700; }
.tools .spacer { flex: 1 1 auto; }
.switch { display: inline-flex; align-items: center; gap: var(--s2); font: 600 var(--fs-14)/1 var(--font-head); cursor: pointer; background: none; border: 0; padding: 0; color: var(--ink); min-height: 44px; }
.switch .track { width: 40px; height: 24px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); }
.switch[aria-checked="true"] .track { background: var(--wine); }
.switch[aria-checked="true"] .track::after { left: 19px; }
.results.map-off { grid-template-columns: minmax(0, 1fr); }
.results.map-off .map-col { display: none; }
.btn .count { margin-left: 2px; }

.rcard { display: grid; grid-template-columns: 208px minmax(0, 1fr) 212px; gap: var(--s4); padding: var(--s3); margin-bottom: var(--s4); position: relative; }
.rcard:hover { border-color: var(--line-strong); }
.rcard .photo { height: 100%; min-height: 196px; }
.rcard-body { padding: var(--s1) 0; display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.rcard-body h2 { font-size: var(--fs-20); line-height: 1.25; font-weight: 700; }
.rcard-body h2 a { color: var(--ink); text-decoration: none; }
.rcard-body h2 a:hover { text-decoration: underline; }
.rcard-body h2 a::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: var(--r); }
.rcard .total .btn, .rcard .total .btn-link, .rcard .breakdown { position: relative; z-index: 1; }
.rcard .photo .save { z-index: 1; }
.where { font-size: var(--fs-14); color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.where b { color: var(--ink); font-weight: 700; }
.facts { font-size: var(--fs-14); }
.total { border-left: 1px solid var(--line); padding: var(--s1) 0 var(--s1) var(--s4); display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.total .price { font: 800 var(--fs-32)/1 var(--font-head); letter-spacing: -0.02em; color: var(--ink); margin-top: auto; }
.total .old { font: 600 var(--fs-16)/1 var(--font-head); color: var(--muted); text-decoration: line-through; margin-top: auto; }
.total .old + .price { margin-top: 2px; }
.total .for { font-size: var(--fs-14); font-weight: 700; margin-top: var(--s1); }
.total .incl { font-size: var(--fs-13); color: var(--muted); line-height: 1.35; }
.total .btn-link { font-size: var(--fs-13); margin-top: 2px; }
.total .btn-secondary { margin-top: var(--s3); width: 100%; }
.total .na { font: 700 var(--fs-16)/1.3 var(--font-head); margin-top: auto; }
.breakdown { grid-column: 2 / -1; background: var(--surface); border-radius: var(--r); padding: var(--s3) var(--s4); }
.lines { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 6px 0; font-size: var(--fs-14); }
.lines .num { text-align: right; padding-left: var(--s4); }
.lines .sum { font: 700 var(--fs-16)/1.3 var(--font-head); padding-top: var(--s2); margin-top: 2px; border-top: 1px solid var(--line-strong); }
.lines .minus { color: var(--positive); }
.rcard.is-na .photo { opacity: .62; }
.rcard.is-na .rcard-body h2 a { color: var(--muted); }
.rcard.is-saved { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.example-note { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-14); color: var(--muted); margin: var(--s5) 0 var(--s3); }
.example-note b { color: var(--ink); }

.pager { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s5); }
.pager a, .pager span.cur { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 var(--s3); border-radius: var(--r); border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font: 600 var(--fs-16)/1 var(--font-head); }
.pager a:hover { background: var(--surface); }
.pager span.cur { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pager .note { font-size: var(--fs-13); color: var(--muted); margin-left: var(--s2); }

/* schematic map */
.map-col { position: sticky; top: var(--s4); margin-top: var(--s5); }
.map { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #ECEEF1; aspect-ratio: 540 / 760; max-height: calc(100vh - 32px); }
.map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .m-land { fill: #ECEEF1; }
.map .m-park { fill: #E2E9E2; }
.map .m-water { fill: var(--sea-water); }
.map .m-road { stroke: var(--white); stroke-width: 7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map .m-street { stroke: var(--white); stroke-width: 3.5; fill: none; stroke-linecap: round; }
.map .m-district { font: 700 15px var(--font-head); fill: #4A4E59; }
.map .m-river { font: 600 16px var(--font-body); fill: var(--sea); font-style: italic; letter-spacing: .02em; }
.map .m-small { font: 400 13px var(--font-body); fill: var(--muted); }
.pin { position: absolute; transform: translate(-50%, -100%); z-index: 2; display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 999px; background: var(--white); color: var(--ink); border: 1px solid var(--ink); font: 700 var(--fs-14)/1 var(--font-head); white-space: nowrap; cursor: pointer; text-decoration: none; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; background: inherit; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.pin:hover, .pin.is-active { background: var(--wine); color: var(--white); border-color: var(--wine); z-index: 3; }
.pin:hover::after, .pin.is-active::after { border-color: var(--wine); }
.pin.is-na { background: var(--surface); color: var(--muted); border-color: var(--line-strong); font-weight: 600; }
.pin.is-na::after { border-color: var(--line-strong); }
.pin .icon { width: 14px; height: 14px; margin-right: 4px; fill: currentColor; stroke: currentColor; }
.map-top { position: absolute; top: var(--s3); left: var(--s3); right: var(--s3); display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s2); z-index: 4; }
.map-top .btn { background: var(--white); box-shadow: var(--shadow-float); }
.zoom { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-float); }
.zoom .icon-btn { border: 0; }
.zoom .icon-btn + .icon-btn { border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }
.map-legend { position: absolute; left: var(--s3); bottom: var(--s3); right: var(--s3); z-index: 4; background: var(--white); border-radius: var(--r); padding: var(--s2) var(--s3); font-size: var(--fs-13); color: var(--muted); display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.map-legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--wine); vertical-align: -1px; margin-right: 4px; }
/* card hover lights its pin */

/* ---------- stay page (G3) ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-14); color: var(--muted); padding-top: var(--s5); }
.crumbs a { color: var(--sea); }
.titlebar { display: flex; align-items: flex-start; gap: var(--s3); margin-top: var(--s2); flex-wrap: wrap; }
.titlebar h1 { flex: 1 1 400px; }
.titlebar h1 .tag { margin-left: var(--s2); vertical-align: 6px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 220px 220px; gap: var(--s2); margin-top: var(--s5); position: relative; }
.gallery .photo:first-child { grid-row: span 2; }
.gallery .allphotos { position: absolute; right: var(--s3); bottom: var(--s3); background: var(--white); }
.gallery .counter { display: none; }
.stay { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: var(--s7); margin-top: var(--s6); align-items: start; }
.stay > aside { align-self: stretch; } /* the rail stays in view while the page scrolls */
.sec { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.sec:first-child { border-top: 0; padding-top: 0; }
.sec > h2 { margin-bottom: var(--s4); }
.factline { font: 600 var(--fs-20)/1.35 var(--font-head); }
.hostline { display: flex; align-items: center; gap: var(--s3); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--white); font: 700 var(--fs-16)/1 var(--font-head); flex: none; }
.avatar-sm { width: 36px; height: 36px; font-size: var(--fs-14); background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.avatar-lg { width: 64px; height: 64px; font-size: var(--fs-20); }
.highlights { display: grid; gap: var(--s4); }
.hl { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s3); }
.hl .icon { width: 24px; height: 24px; margin-top: 1px; }
.hl h3 { font-size: var(--fs-16); }
.prose p + p { margin-top: var(--s3); }
.prose { max-width: 680px; }
.beds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.bedcard { padding: var(--s4); }
.bedcard .icon { width: 28px; height: 28px; margin-bottom: var(--s2); }
.amen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s5); list-style: none; margin-bottom: var(--s5); }
.amen li { display: flex; align-items: center; gap: var(--s3); }
.amen li.no { color: var(--muted); }
.amen li.no span s { color: var(--ink); }
.amen li.no small { font-size: var(--fs-13); }

/* the trip rail */
.rail { position: sticky; top: var(--s4); padding: var(--s5); box-shadow: var(--shadow-float); border-color: var(--line); }
.rail h2 { font-size: var(--fs-20); }
.rail .bigtotal { font: 800 var(--fs-40)/1 var(--font-head); letter-spacing: -0.02em; }
.rail .daterange { margin-top: var(--s2); }
.rail .lines { font-size: var(--fs-14); }
.rail .lines .sum { font-size: var(--fs-20); }
.rail .basis, .lines .basis { display: block; color: var(--muted); font-size: var(--fs-13); }
.rail details summary { cursor: pointer; color: var(--sea); font-weight: 700; font-size: var(--fs-14); }
.rail details[open] summary { margin-bottom: var(--s2); }
.rail .note { text-align: center; font-size: var(--fs-14); color: var(--muted); }
.rail .samplerow { display: flex; gap: var(--s2); align-items: flex-start; font-size: var(--fs-13); background: var(--wine-soft); border-radius: var(--r); padding: var(--s2) var(--s3); }
.rail .cancel { display: flex; gap: var(--s2); align-items: center; font-size: var(--fs-14); color: var(--positive); font-weight: 700; }

/* calendar with prices */
.cal-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }
.cal h3 { font-size: var(--fs-16); margin-bottom: var(--s3); text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-grid .dow { font-size: var(--fs-12); color: var(--muted); text-align: center; padding-bottom: var(--s1); font-weight: 700; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: var(--r-sm); background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink); }
.day:hover { background: var(--surface); }
.day b { font: 600 var(--fs-14)/1.2 var(--font-head); }
.day span { font-size: var(--fs-12); color: var(--muted); line-height: 1.2; }
.day.in-range { background: var(--wine-soft); border-radius: 0; }
.day.in-range span { color: var(--wine); }
.day.start, .day.end { background: var(--wine); color: var(--white); }
.day.start span, .day.end span { color: var(--white); }
.day.start { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.day.end { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.day.closed { cursor: not-allowed; color: var(--muted); }
.day.closed b { text-decoration: line-through; font-weight: 400; }
.day.minstay span { color: var(--sea); font-weight: 700; }
.day.blank { visibility: hidden; }
.cal-legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--fs-13); color: var(--muted); margin-top: var(--s4); }
.cal-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }

/* reviews */
.overall { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.overall .big { font: 800 var(--fs-40)/1 var(--font-head); width: 72px; height: 64px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--white); border-radius: var(--r) var(--r) var(--r) 3px; }
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s6); }
.catrow { display: grid; grid-template-columns: 128px minmax(0, 1fr) 36px; gap: var(--s3); align-items: center; font-size: var(--fs-14); }
.catrow .num { text-align: right; font: 700 var(--fs-14)/1 var(--font-head); }
.meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.dist .meter i { background: var(--sea); }
.revs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s6); margin: var(--s6) 0 var(--s5); }
.rev .who { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s2); }
.rev .who b { font-family: var(--font-head); }
.rev .who .muted { font-size: var(--fs-13); display: block; }
.rev p { font-size: var(--fs-16); }
.reply { margin-top: var(--s3); background: var(--surface); border-radius: var(--r); padding: var(--s3); font-size: var(--fs-14); }

/* location */
.loc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.locmap { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 460 / 340; background: #ECEEF1; }
.locmap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.locmap .m-land { fill: #ECEEF1; }
.locmap .m-water { fill: var(--sea-water); }
.locmap .m-road { stroke: var(--white); stroke-width: 6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.locmap .m-street { stroke: var(--white); stroke-width: 3; fill: none; stroke-linecap: round; }
.locmap .m-district { font: 700 14px var(--font-head); fill: #4A4E59; }
.locmap .m-river { font: italic 600 14px var(--font-body); fill: var(--sea); }
.locmap .m-label { font: 700 13px var(--font-body); fill: var(--ink); }
.locmap .m-walk { stroke: var(--wine); stroke-width: 2.5; stroke-dasharray: 2 6; fill: none; stroke-linecap: round; }
.locmap .m-tram { stroke: #9A6B00; }
.walks { list-style: none; display: grid; gap: var(--s3); }
.walks li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s3); align-items: center; }
.walks .ic { width: 40px; height: 40px; border-radius: var(--r); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }
.walks b { display: block; font-family: var(--font-head); }
.walks span { font-size: var(--fs-14); color: var(--muted); }
.knowthis { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s3); align-items: center; background: var(--wine-soft); border-radius: var(--r); padding: var(--s3) var(--s4); margin-top: var(--s4); }
.knowthis .ic { width: 40px; height: 40px; border-radius: var(--r); background: var(--wine); color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.knowthis b { font: 700 var(--fs-16)/1.3 var(--font-head); display: block; }
.knowthis span { font-size: var(--fs-14); }

.rules { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s3) var(--s5); font-size: var(--fs-16); }
.rules dt { font-weight: 700; }
.rules dd { margin: 0; }
.hostcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: var(--s5); }
.report { display: inline-flex; align-items: center; gap: var(--s2); color: var(--muted); font-size: var(--fs-14); }

/* hotel room table */
.hotel { margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line); }
.hotel-head { display: flex; gap: var(--s5); align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: var(--s5); }
.nights { display: flex; gap: var(--s2); flex-wrap: wrap; }
.night { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s2) var(--s3); min-width: 84px; }
.night small { display: block; white-space: nowrap; font-size: var(--fs-12); color: var(--muted); }
.night b { font: 700 var(--fs-16)/1.2 var(--font-head); }
.night.fri { background: var(--wine-soft); border-color: var(--wine-soft); }
.rooms-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: var(--s4); align-items: start; }
table.rooms { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: var(--fs-14); }
table.rooms th { background: var(--ink); color: var(--white); text-align: left; font: 600 var(--fs-14)/1.3 var(--font-head); padding: var(--s3); }
table.rooms td { padding: var(--s3); vertical-align: top; border-top: 1px solid var(--line); }
table.rooms td + td { border-left: 1px solid var(--line); }
table.rooms td.rt { width: 240px; }
table.rooms .rt .photo { height: 96px; margin-top: var(--s2); }
table.rooms .rt h3 { font-size: var(--fs-16); color: var(--sea); }
table.rooms .rate-price b { font: 800 var(--fs-20)/1.1 var(--font-head); display: block; }
table.rooms .rate-price small { display: block; color: var(--muted); font-size: var(--fs-13); margin-top: 2px; }
table.rooms tr.picked td.rate { background: var(--wine-soft); }
table.rooms .select { min-height: 40px; width: 76px; padding: 6px 30px 6px 12px; background-position: right 8px center; }
table.rooms .soldout { color: var(--muted); font-weight: 700; }
table.rooms ul { list-style: none; display: grid; gap: 4px; }
.sleeps { display: inline-flex; align-items: center; gap: 2px; }
.sleeps .icon { width: 18px; height: 18px; }
.roomsum { position: sticky; top: var(--s4); padding: var(--s5); box-shadow: var(--shadow-float); }
.roomsum .bigtotal { font: 800 var(--fs-32)/1 var(--font-head); }
.roomcards { display: none; }

/* mobile sticky bottom bar */
.reservebar { display: none; }

/* ---------- host (H1) ---------- */
.hostbar-top .bar-inner { gap: var(--s4); }
.prop-switch { min-height: 40px; width: auto; background-color: var(--ink-2); color: var(--white); border-color: #4A4E5C; font-size: var(--fs-14); font-weight: 700; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.more { position: relative; }
.more summary { list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-float); border: 1px solid var(--line); min-width: 200px; padding: var(--s2); list-style: none; }
.menu a { display: flex; padding: var(--s2) var(--s3); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: var(--fs-14); }
.menu a:hover { background: var(--surface); }
.bar .avatar { width: 36px; height: 36px; font-size: var(--fs-14); background: var(--wine); }
.prop-switch-light { width: auto; min-height: 40px; font-size: var(--fs-14); }
.bar-nav .bell { position: relative; padding: var(--s2); }
.bar-nav .bell .count { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; }
.bar-nav a:has(.avatar) { padding: 4px; }
.needs h2 { display: flex; align-items: center; gap: var(--s2); }
.today-head { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; padding: var(--s5) 0 var(--s4); }
.datesw { display: inline-flex; align-items: center; gap: var(--s1); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 2px; }
.datesw .icon-btn { border: 0; width: 40px; height: 40px; }
.datesw b { font: 700 var(--fs-16)/1 var(--font-head); padding: 0 var(--s2); white-space: nowrap; }
.today { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: var(--s5); align-items: start; padding-bottom: var(--s7); }
.needs h2, .daymain h2 { font-size: var(--fs-20); margin-bottom: var(--s3); }
.alert { border-radius: var(--r); padding: var(--s4); }
.alert-danger { background: var(--danger-soft); border: 1px solid var(--danger); }
.alert-danger h3 { color: var(--danger); font-size: var(--fs-16); display: flex; gap: var(--s2); align-items: flex-start; }
.alert p { font-size: var(--fs-14); margin-top: var(--s2); }
.reqcard { padding: var(--s4); margin-top: var(--s3); border-color: var(--wine); }
.reqcard .deadline { display: flex; align-items: center; gap: var(--s2); font: 700 var(--fs-16)/1.3 var(--font-head); color: var(--wine); }
.reqcard .clockbar { height: 6px; border-radius: 999px; background: var(--wine-soft); margin: var(--s2) 0 var(--s3); overflow: hidden; }
.reqcard .clockbar i { display: block; height: 100%; width: 71%; background: var(--wine); border-radius: 999px; }
.reqcard .who { font: 700 var(--fs-16)/1.3 var(--font-head); }
.reqcard .money { font: 800 var(--fs-24)/1 var(--font-head); }
.timeline { padding: var(--s4) var(--s4) var(--s3); }
.tl { position: relative; padding-top: 28px; }
.tl-nowlayer { position: absolute; top: 0; bottom: 0; left: 200px; right: 0; pointer-events: none; }
.tl-axis, .tl-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; }
.tl-hours { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); position: relative; }
.tl-hours span { font-size: var(--fs-12); color: var(--muted); border-left: 1px solid var(--line); padding: 0 0 var(--s1) 3px; font-variant-numeric: tabular-nums; }
.tl-hours .last { display: none; }
.tl-group { font: 700 var(--fs-13)/1 var(--font-head); color: var(--muted); padding: var(--s3) 0 var(--s1); display: flex; gap: 6px; align-items: center; }
.tl-row { min-height: 52px; }
.tl-who { padding-right: var(--s3); min-width: 0; }
.tl-who b { display: block; font: 700 var(--fs-14)/1.25 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-who span { display: block; font-size: var(--fs-12); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-track { position: relative; height: 40px; background: var(--surface); border-radius: var(--r-sm); display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); }
.blk { position: relative; align-self: stretch; margin: 4px 0; border-radius: var(--r-sm); display: flex; align-items: center; padding: 0 var(--s2); font: 700 var(--fs-13)/1.1 var(--font-head); white-space: nowrap; min-width: 0; }
.blk-out { background: var(--white); border: 1px solid var(--ink); color: var(--ink); border-right: 4px solid var(--ink); justify-content: flex-end; }
.blk-in { background: var(--sea); color: var(--white); }
.blk-in .after { position: absolute; left: calc(100% + 8px); color: var(--ink); font-weight: 600; }
.blk-unknown { background: var(--white); border: 1px dashed var(--line-strong); color: var(--muted); font-weight: 600; font-family: var(--font-body); gap: var(--s2); }
.blk-unknown a { font-weight: 700; }
.now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--wine); z-index: 2; pointer-events: none; }
.now span { position: absolute; top: 0; left: 50%; transform: translate(-50%, 0); background: var(--wine); color: var(--white); font: 700 var(--fs-12)/1 var(--font-head); padding: 4px 6px; border-radius: var(--r-sm); white-space: nowrap; }
.tl-foot { display: flex; gap: var(--s5); flex-wrap: wrap; font-size: var(--fs-13); color: var(--muted); margin-top: var(--s3); }
.tl-foot i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.agenda { display: none; }
.tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s2); margin: var(--s5) 0; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); min-width: 0; }
.tile:hover { border-color: var(--ink); color: var(--ink); }
.tile .k { font-size: var(--fs-13); color: var(--muted); }
.tile .v { font: 800 var(--fs-24)/1.1 var(--font-head); }
.tile small { font-size: var(--fs-12); color: var(--muted); }
.tile.warn .v { color: var(--danger); }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-14); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
table.data th { text-align: left; font: 600 var(--fs-13)/1.3 var(--font-head); color: var(--muted); background: var(--surface); padding: var(--s3); border-bottom: 1px solid var(--line); }
table.data td { padding: var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; }
table.data tbody tr:hover td { background: #FAFAFB; }
table.data .gname { font: 700 var(--fs-14)/1.3 var(--font-head); }
.pay-paid { color: var(--positive); font-weight: 700; }
.pay-due { color: var(--ink); font-weight: 700; }
.req { display: inline-flex; gap: 6px; align-items: flex-start; font-size: var(--fs-13); }
.req .icon { width: 16px; height: 16px; color: var(--sea); margin-top: 1px; }
.datacards { display: none; }
.sec-host { margin-top: var(--s6); }
.sec-host h2 { font-size: var(--fs-20); margin-bottom: var(--s3); display: flex; gap: var(--s2); align-items: center; }

/* bottom app bars (390) */
.tabbar { display: none; }

/* ---------- footer ---------- */
.foot { background: var(--surface); margin-top: var(--s7); }
.foot-inner { max-width: var(--page-max); margin: 0 auto; padding: var(--s6) var(--s6) var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.foot a { color: var(--ink); font-size: var(--fs-14); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .fine { font-size: var(--fs-13); color: var(--muted); display: flex; gap: var(--s5); flex-wrap: wrap; }

/* ---------- components page ---------- */
.ds { padding-top: var(--s5); padding-bottom: var(--s7); }
.ds-sec { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.ds-sec > h2 { margin-bottom: var(--s2); }
.ds-sec > .lead { color: var(--muted); margin-bottom: var(--s5); max-width: 720px; }
.ds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.ds-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.ds-span2 { grid-column: span 2; }
.ds-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.ds-box { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); min-width: 0; }
.ds-box > h3 { font-size: var(--fs-16); margin-bottom: var(--s3); }
.ds-cap { font-size: var(--fs-13); color: var(--muted); }
.swatch { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.swatch i { display: block; height: 72px; }
.swatch div { padding: var(--s2) var(--s3); font-size: var(--fs-13); }
.swatch b { display: block; font: 700 var(--fs-14)/1.3 var(--font-head); }
.typerow { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s4); align-items: baseline; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.typerow:last-child { border-bottom: 0; }
.icons { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s2); list-style: none; }
.icons li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--s3) var(--s1); border: 1px solid var(--line); border-radius: var(--r); font-size: var(--fs-12); color: var(--muted); text-align: center; }
.icons .icon { width: 24px; height: 24px; color: var(--ink); }
.demo-frame { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.demo-phone { width: 390px; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.side-nav { background: var(--ink); color: var(--white); border-radius: var(--r); padding: var(--s3); width: 260px; max-width: 100%; }
.side-nav .logo { padding: var(--s2) var(--s2) var(--s4); }
.side-nav ul { list-style: none; display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: var(--s3); padding: 10px var(--s3); border-radius: var(--r-sm); color: #E6E8EE; text-decoration: none; font: 600 var(--fs-14)/1 var(--font-head); }
.side-nav a:hover { background: var(--ink-2); color: var(--white); }
.side-nav a[aria-current="page"] { background: var(--white); color: var(--ink); }
.skel { background: #E6E8EC; border-radius: var(--r-sm); }
.skel-card { display: grid; grid-template-columns: 160px minmax(0, 1fr) 120px; gap: var(--s4); padding: var(--s3); }
.runbar { height: 3px; background: var(--wine-soft); border-radius: 999px; overflow: hidden; position: relative; }
.runbar i { position: absolute; top: 0; bottom: 0; width: 35%; background: var(--wine); border-radius: 999px; animation: run 1.4s ease-in-out infinite; }
@keyframes run { 0% { left: -35%; } 100% { left: 100%; } }
.state { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }
.state .icon-24 { color: var(--muted); }
.state h3 { font-size: var(--fs-16); }
.state .k { font-size: var(--fs-13); color: var(--muted); font-weight: 700; }
.tabs { display: flex; gap: var(--s1); border-bottom: 1px solid var(--line); }
.tabs a { padding: var(--s3) var(--s4); color: var(--muted); text-decoration: none; font: 600 var(--fs-14)/1 var(--font-head); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--wine); }
.dialog { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-float); border: 1px solid var(--line); max-width: 440px; width: 100%; }
.dialog header { display: flex; align-items: center; justify-content: space-between; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.dialog .body { padding: var(--s5); }
.dialog footer { padding: var(--s4) var(--s5); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: var(--s3); }
.scrim { background: rgba(21, 23, 31, .55); border-radius: var(--r); padding: var(--s6); display: flex; justify-content: center; }
.longname { max-width: 340px; }
.rescard { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s3); padding: var(--s3); }
.rescard .photo { height: 96px; }
.plainlist { list-style: none; border: 1px solid var(--line); border-radius: var(--r); }
.plainlist li { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); font-size: var(--fs-14); }
.plainlist li:last-child { border-bottom: 0; }
.statusdot { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: 700; }
.statusdot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.tabbar.is-demo { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; position: static; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 12px 8px; }
.tabbar.is-demo a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); text-decoration: none; font: 600 var(--fs-12)/1.2 var(--font-body); padding: 4px 0; position: relative; min-width: 0; }
.tabbar.is-demo a .icon { width: 24px; height: 24px; }
.tabbar.is-demo a[aria-current="page"] { color: var(--wine); }
.tabbar.is-demo .count { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; }
.bar.is-phone { border-radius: var(--r) var(--r) 0 0; }
.bar.is-phone .bar-inner { padding: var(--s3) var(--s4); gap: var(--s3); min-height: 60px; flex-wrap: wrap; }
.bar.is-phone .seg-pill { display: flex; align-items: center; gap: var(--s3); width: 100%; background: var(--white); color: var(--ink); border-radius: var(--r); padding: 6px 6px 6px var(--s3); }
.bar.is-phone .seg-pill .txt { flex: 1 1 auto; min-width: 0; font: 600 var(--fs-14)/1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar.is-demo { border-radius: var(--r); }
.radio { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-16); cursor: pointer; }
.radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--wine); }
.fmt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s4); font-size: var(--fs-14); }
.fmt dt { color: var(--muted); }
.fmt dd { margin: 0; font: 700 var(--fs-16)/1.3 var(--font-head); text-align: right; }
.fmt s { color: var(--muted); font-weight: 600; }

/* ---------- 390 / small screens ---------- */
@media (max-width: 760px) {
  .container { padding: 0 var(--s4); }
  .hide-m { display: none !important; }
  .show-m { display: revert !important; }
  .btn.show-m, .icon-btn.show-m { display: inline-flex !important; }
  .scroll-x { flex-wrap: nowrap; margin-left: calc(-1 * var(--s4)); margin-right: calc(-1 * var(--s4)); padding: 0 var(--s4) var(--s1); }
  h1 { font-size: var(--fs-24); }
  h2 { font-size: var(--fs-20); }
  body.has-tabbar { padding-bottom: 76px; }

  .bar-inner { padding: var(--s3) var(--s4); gap: var(--s3); min-height: 60px; flex-wrap: wrap; }
  .bar-nav { gap: 0; }
  .seg { display: none; }
  .seg-pill { display: flex; align-items: center; gap: var(--s3); width: 100%; background: var(--white); color: var(--ink); border-radius: var(--r); padding: 6px 6px 6px var(--s3); }
  .seg-pill .icon { color: var(--muted); }
  .seg-pill .txt { flex: 1 1 auto; min-width: 0; font: 600 var(--fs-14)/1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .seg-pill .btn { min-height: 40px; }

  .results { grid-template-columns: minmax(0, 1fr); }
  .map-col { display: none; position: static; }
  .results.map-on .map-col { display: flex; flex-direction: column; gap: var(--s3); position: fixed; top: 0; left: 0; right: 0; bottom: 76px; z-index: 35; background: var(--white); padding: var(--s3); overflow: auto; }
  .results.map-on .map { max-height: none; flex: none; }
  .map-close { align-self: flex-start; }
  .tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
  .tools .btn { width: 100%; padding: 0 var(--s2); }
  .tools .how { grid-column: 1 / -1; font-size: var(--fs-13); }
  .rcard { grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: var(--s2); }
  .rcard .photo { min-height: 0; aspect-ratio: 3 / 2; height: auto; }
  .rcard-body { padding: 0 var(--s2); }
  .total { border-left: 0; border-top: 1px solid var(--line); padding: var(--s3) var(--s2) var(--s1); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; text-align: left; column-gap: var(--s3); }
  .total > * { grid-column: 1; }
  .total .btn-secondary { grid-column: 2; grid-row: 1 / span 5; align-self: end; width: auto; margin: 0; }
  .total .price, .total .old { margin-top: 0; }
  .breakdown { grid-column: 1; }
  .pager .note { flex-basis: 100%; margin: var(--s2) 0 0; }

  .tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--line); padding: 6px 0 8px; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); text-decoration: none; font: 600 var(--fs-12)/1.2 var(--font-body); padding: 4px 0; position: relative; min-width: 0; }
  .tabbar a .icon { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--wine); }
  .tabbar .count { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: var(--fs-12); }

  /* stay */
  .gallery { grid-template-columns: minmax(0, 1fr); grid-template-rows: 260px; margin-left: calc(-1 * var(--s4)); margin-right: calc(-1 * var(--s4)); margin-top: var(--s4); }
  .gallery .photo { border-radius: 0; }
  .gallery .photo:not(:first-child) { display: none; }
  .gallery .photo:first-child { grid-row: auto; }
  .gallery .counter { display: inline-flex; position: absolute; right: var(--s3); bottom: var(--s3); background: rgba(21,23,31,.8); color: var(--white); font-size: var(--fs-13); font-weight: 700; padding: 4px 10px; border-radius: 999px; }
  .gallery .allphotos { right: auto; left: var(--s3); min-height: 36px; font-size: var(--fs-14); }
  .titlebar h1 { flex-basis: 100%; }
  .stay { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: var(--s4); }
  .stay > aside { order: 1; margin-bottom: var(--s5); }
  .stay > .main-col { order: 2; }
  .rail { position: static; box-shadow: none; padding: var(--s4); }
  .rail .reserve-btn { display: none; }
  .factline { font-size: var(--fs-16); }
  .sec { padding: var(--s5) 0; }
  .amen, .cats, .revs { grid-template-columns: minmax(0, 1fr); }
  .catrow { grid-template-columns: 116px minmax(0, 1fr) 32px; }
  .cal-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .loc { grid-template-columns: minmax(0, 1fr); }
  .rules { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rules dd { margin-bottom: var(--s3); }
  .hostcard { grid-template-columns: auto minmax(0, 1fr); padding: var(--s4); }
  .hostcard .btn { grid-column: 1 / -1; }
  .overall .big { font-size: var(--fs-32); width: 64px; height: 56px; }
  body.has-reservebar { padding-bottom: 84px; }
  .reservebar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--line); padding: var(--s3) var(--s4); }
  .reservebar b { font: 800 var(--fs-20)/1.1 var(--font-head); }
  .reservebar span { font-size: var(--fs-13); color: var(--muted); display: block; }
  /* wait / error drawn inside the sticky bar, right above its button (see startWait / showMessage in app.js) */
  .reservebar.has-dock { border-top-color: var(--white); }
  .rooms-wrap { grid-template-columns: minmax(0, 1fr); }
  table.rooms { display: none; }
  .roomsum { position: static; box-shadow: none; }
  .roomcards { display: grid; gap: var(--s3); }
  .roomcard { padding: var(--s4); }
  .roomcard .photo { height: 160px; margin-bottom: var(--s3); }
  .roomcard .rate { border-top: 1px solid var(--line); padding-top: var(--s3); margin-top: var(--s3); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s3); align-items: center; }
  .roomcard .rate.picked { background: var(--wine-soft); margin-left: calc(-1 * var(--s4)); margin-right: calc(-1 * var(--s4)); padding: var(--s3) var(--s4); border-top-color: var(--wine-soft); }
  .roomcard .rate b { font: 800 var(--fs-20)/1.1 var(--font-head); }
  .roomcard .rate small { display: block; font-size: var(--fs-13); color: var(--muted); }
  .roomcard .select { width: 84px; min-height: 44px; }
  .night { min-width: 0; flex: 1 1 0; padding: var(--s2); }

  /* host */
  .hostbar-top .bar-inner { flex-wrap: nowrap; }
  .today { grid-template-columns: minmax(0, 1fr); }
  .timeline-wide { display: none; }
  .agenda { display: block; list-style: none; }
  .agenda > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
  .agenda > li:first-child { border-top: 0; }
  .agenda .t { font: 700 var(--fs-14)/1.3 var(--font-head); font-variant-numeric: tabular-nums; }
  .agenda .ev { display: flex; flex-direction: column; gap: var(--s2); }
  .agenda .ev > div { border-radius: var(--r-sm); padding: var(--s2) var(--s3); }
  .agenda .ev b { display: block; font: 700 var(--fs-14)/1.3 var(--font-head); }
  .agenda .ev span { font-size: var(--fs-13); }
  .agenda .ev .in { background: var(--sea); color: var(--white); }
  .agenda .ev .out { border: 1px solid var(--ink); }
  .agenda .ev .unk { border: 1px dashed var(--line-strong); color: var(--muted); }
  .agenda .nowrow .t, .agenda .nowrow .ev { color: var(--wine); font-weight: 700; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .tile:last-child { grid-column: 1 / -1; }
  table.data.to-cards { display: none; }
  .datacards { display: grid; gap: var(--s3); list-style: none; }
  .datacard { padding: var(--s4); display: grid; gap: var(--s2); }
  .datacard .top { display: flex; justify-content: space-between; gap: var(--s3); align-items: flex-start; }
  .datacard .gname { font: 700 var(--fs-16)/1.3 var(--font-head); color: var(--sea); }
  .datacard dl { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px var(--s3); margin: 0; font-size: var(--fs-14); }
  .datacard dt { color: var(--muted); }
  .datacard dd { margin: 0; }
  .tl-axis, .tl-row { grid-template-columns: 120px minmax(0, 1fr); }
  body.host { padding-bottom: 76px; }

  .foot-inner { padding: var(--s5) var(--s4); }

  /* components */
  .ds-grid, .ds-grid-2, .ds-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .ds-span2 { grid-column: auto; }
  .ds-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .typerow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .skel-card { grid-template-columns: 96px minmax(0, 1fr); }
  .skel-card > :last-child { display: none; }
  .scrim { padding: var(--s3); }
}
.nw { white-space: nowrap; }

/* ---------- app additions (module 1) ---------- */
.sprite { display: none; }
.page { min-height: 60vh; padding-top: var(--s5); padding-bottom: var(--s7); }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.mode-line { background: var(--ink); color: var(--white); font-size: var(--fs-13); text-align: center; padding: 6px var(--s4); }
.mode-line a { color: var(--white); font-weight: 700; }
[hidden] { display: none !important; }
.wait { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.wait-line { display: flex; gap: var(--s2); align-items: center; font-size: var(--fs-14); color: var(--ink); }
.wait-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.bar-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); max-height: 45vh; overflow: auto; padding: var(--s3) var(--s4) 0; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(21, 23, 31, .10); }
.bar-dock > * { align-self: stretch; }
.bar-dock > .btn { align-self: flex-start; }
.bar-dock .wait { margin-top: 0; }
.bar-dock .banner { padding: var(--s2) var(--s3); }
/* message and wait boxes never stop under a bottom bar when scrolled to */
[aria-live], .reserve-msg, .reserve-wait { scroll-margin-bottom: 96px; }
.form-error { margin-top: var(--s3); }
.ellipsis-1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
