/* Havril Christmas 26 — mobile first, works at every size. */
:root {
  --bg: #f6f1e7; --surface: #fffdf8; --surface-2: #f1ebdf; --ink: #1d2721; --muted: #66706a; --faint: #8e958f;
  --line: #e4dccd; --line-2: #d6ccb9;
  --pine: #1f4d3a; --pine-2: #2c6a50; --pine-soft: #e3eee7; --on-pine: #fffdf8;
  --berry: #a8323f; --berry-soft: #f7e3e3; --gold: #b7862b; --gold-soft: #f6ecd6;
  --road: #3a64a8; --road-soft: #e3eaf6; --warn: #a55a12; --warn-soft: #fbead6;
  --shadow: 0 1px 2px rgba(30, 30, 20, .06), 0 4px 16px rgba(30, 30, 20, .06);
  --frost: rgba(246, 241, 231, .78);
  --r: 14px; --r-sm: 10px;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --top: 56px; --bottom: 64px; --panel: 460px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111613; --surface: #18201b; --surface-2: #1f2822; --ink: #e9ede8; --muted: #a2aba4; --faint: #7d867f;
    --line: #2a342d; --line-2: #36423a;
    --pine: #5fae8a; --pine-2: #79c4a1; --pine-soft: #1d3329; --on-pine: #0f1712;
    --berry: #e57a85; --berry-soft: #3a1f23; --gold: #e2b65c; --gold-soft: #33291a;
    --road: #8fb0ea; --road-soft: #1c2638; --warn: #f0a55a; --warn-soft: #3a2816;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    --frost: rgba(17, 22, 19, .78);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111613; --surface: #18201b; --surface-2: #1f2822; --ink: #e9ede8; --muted: #a2aba4; --faint: #7d867f;
  --line: #2a342d; --line-2: #36423a;
  --pine: #5fae8a; --pine-2: #79c4a1; --pine-soft: #1d3329; --on-pine: #0f1712;
  --berry: #e57a85; --berry-soft: #3a1f23; --gold: #e2b65c; --gold-soft: #33291a;
  --road: #8fb0ea; --road-soft: #1c2638; --warn: #f0a55a; --warn-soft: #3a2816;
  --frost: rgba(17, 22, 19, .78);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--pine); }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -.01em; margin: 0; }
[hidden] { display: none !important; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 500; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.btn.primary:hover { background: var(--pine-2); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--berry); }
.btn.sm { min-height: 32px; padding: 4px 11px; font-size: 13px; }
.btn.icon { width: 40px; padding: 0; }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--pine); cursor: pointer; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/* ── Top bar (frosted) ── */
.top { position: sticky; top: 0; z-index: 500; height: calc(var(--top) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; display: flex; align-items: center; gap: 8px; background: var(--frost); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.brand h1 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .sub { display: none; font-size: 12px; color: var(--muted); }
.pill { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.top .add-label { display: none; }
.addbtn { width: 40px; padding: 0; }
@media (max-width: 599px) { .brand h1 { font-size: 17px; } .brand-mark { width: 28px; height: 28px; } }

/* ── Layout: one view at a time (Itinerary / Map / People / Costs) ── */
.view { padding: 14px 12px calc(var(--bottom) + 28px + env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto; }
.mapview { display: none; position: fixed; inset: calc(var(--top) + env(safe-area-inset-top)) 0 calc(var(--bottom) + env(safe-area-inset-bottom)) 0; }
body[data-tab="map"] .view { display: none; }
body[data-tab="map"] .mapview { display: block; }
#map { width: 100%; height: 100%; background: var(--surface-2); }
.toptabs { display: none; }
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 500; display: flex; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--frost); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-top: 1px solid var(--line); }
.bottom button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; border-radius: 10px; }
.bottom button[aria-current="true"] { color: var(--pine); background: var(--pine-soft); }
.bottom .ic { width: 22px; height: 22px; }

@media (min-width: 600px) {
  .top { padding-left: 20px; padding-right: 20px; }
  .top .add-label { display: inline; }
  .addbtn { width: auto; padding: 8px 14px; }
  .brand .sub { display: block; }
  .brand > div { display: flex; flex-direction: column; min-width: 0; }
  .view { padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 900px) {
  :root { --bottom: 0px; }
  .bottom { display: none; }
  .brand { flex: 0 1 auto; }
  .toptabs { display: flex; gap: 2px; margin: 0 auto; padding: 4px; border-radius: 999px; background: var(--surface-2); }
  .toptabs button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 500; display: inline-flex; gap: 7px; align-items: center; }
  .toptabs button[aria-current="true"] { background: var(--surface); color: var(--pine); box-shadow: var(--shadow); }
  .view { padding-top: 28px; padding-bottom: 60px; }
}

/* ── Cards ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.summary { padding: 14px 16px; margin-bottom: 14px; }
.summary h2 { font-size: 22px; }
.stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.stats b { color: var(--ink); font-weight: 600; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; background: var(--pine); border-radius: 99px; }

.timeline { display: flex; flex-direction: column; }
.stay { padding: 14px 16px; cursor: pointer; position: relative; text-align: left; width: 100%; font: inherit; color: inherit; }
.stay:hover { border-color: var(--line-2); }
.stay.sel { outline: 2px solid var(--pine); outline-offset: -1px; }
.stay-head { display: flex; gap: 12px; align-items: flex-start; }
.num { line-height: 1; width: 28px; height: 28px; border-radius: 50%; background: var(--pine); color: var(--on-pine); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; margin-top: 1px; }
.num.opt { background: var(--surface); color: var(--pine); border: 2px dashed var(--pine); }
.stay h3 { font-size: 17px; line-height: 1.25; }
.when { color: var(--muted); font-size: 13px; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; }
.chip.green { background: var(--pine-soft); color: var(--pine); }
.chip.red { background: var(--berry-soft); color: var(--berry); }
.chip.gold { background: var(--gold-soft); color: var(--gold); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.blue { background: var(--road-soft); color: var(--road); }
.sunline { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.sunline span { display: inline-flex; gap: 5px; align-items: center; }
.faces { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.face { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; border: 2px solid var(--surface); margin-right: -10px; }
.faces .count { margin-left: 14px; }

/* Connector between stays */
.leg { display: flex; gap: 12px; padding: 4px 0 4px 29px; position: relative; min-height: 22px; }
.leg::before { content: ''; position: absolute; left: 29px; top: 0; bottom: 0; border-left: 2px dotted var(--line-2); }
.leg-body { margin-left: 18px; padding: 8px 0; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.leg-main { display: flex; align-items: center; gap: 8px; color: var(--road); font-weight: 600; font-size: 14px; flex-wrap: wrap; }
.leg-main a { font-weight: 500; font-size: 13px; }
.leg .note { display: flex; gap: 6px; align-items: flex-start; }
.leg .note .ic { width: 15px; height: 15px; margin-top: 1px; }
.leg .note.bad { color: var(--warn); }
.leg .note.good { color: var(--pine); }
.endcap { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; }
.endcap b { color: var(--ink); font-weight: 600; }

.gap { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 14px 16px; background: transparent; }
.gap h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; color: var(--warn); }

.empty { text-align: center; padding: 36px 20px; }
.empty h2 { font-size: 24px; margin: 10px 0 6px; }
.empty p { color: var(--muted); max-width: 380px; margin: 0 auto 18px; }
.empty .ic.big { width: 44px; height: 44px; color: var(--pine); }
.section-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.section-h h2 { font-size: 18px; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r-sm); background: var(--gold-soft); color: var(--ink); font-size: 13px; margin-bottom: 12px; }
.banner .ic { color: var(--gold); margin-top: 1px; }

/* ── Night by night ── */
.nights { display: flex; flex-direction: column; gap: 6px; }
.night { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 10px 12px; }
.night .d { font-weight: 600; font-size: 13px; line-height: 1.2; }
.night .d small { display: block; color: var(--muted); font-weight: 500; }
.night .where { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.night .where b { color: var(--ink); font-weight: 600; }
.night .who { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.person { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 9px 2px 3px; border-radius: 999px; background: var(--surface-2); }
.person i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.night.unbooked { border-style: dashed; }

.guest { padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; width: 100%; text-align: left; color: inherit; }
.guest .face { margin: 0; width: 34px; height: 34px; font-size: 13px; border: 0; }
.guest .spans { font-size: 13px; color: var(--muted); }
.guests { display: flex; flex-direction: column; gap: 8px; }

/* ── Sheet (detail / editor) ── */
.sheet { position: fixed; inset: 0; z-index: 1000; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; animation: up .18s ease-out; }
@keyframes up { from { transform: translateY(12px); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: var(--frost); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); min-height: var(--top); }
.sheet-top h2 { font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-body { padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.scrim { display: none; }
@media (min-width: 960px) {
  .scrim { display: block; position: fixed; inset: 0; z-index: 999; background: rgba(15, 20, 15, .25); }
  .sheet { left: auto; width: 560px; border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(0, 0, 0, .12); animation: side .18s ease-out; }
  @keyframes side { from { transform: translateX(24px); opacity: .5; } to { transform: none; opacity: 1; } }
}
.block { margin-top: 18px; }
.block > h3 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.rows { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.row:first-child { border-top: 0; }
.row > span:first-child { color: var(--muted); flex: none; overflow-wrap: normal; }
.row > span:last-child { text-align: right; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ntable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ntable th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ntable td { padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.ntable tr:first-child td { border-top: 0; }
.ntable .nw { white-space: nowrap; }
.ntable .hol { color: var(--berry); font-weight: 600; font-size: 12px; display: block; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 600; }
.field .help { font-size: 12px; color: var(--muted); }
input[type=text], input[type=password], input[type=date], input[type=time], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); font-size: 16px; min-width: 0;
}
textarea { resize: vertical; min-height: 120px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pine); outline-offset: 0; border-color: var(--pine); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-1 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 auto; min-height: 40px; padding: 6px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 500; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--pine); color: var(--on-pine); border-color: var(--pine); }
.filled { background: var(--gold-soft) !important; }
.paste { padding: 14px; }
.paste p { margin: 0 0 8px; font-size: 14px; }
.notes { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--gold-soft); font-size: 13px; }
.notes div + div { margin-top: 4px; }
.results { display: flex; flex-direction: column; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.results button { text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 10px 12px; cursor: pointer; color: inherit; }
.results button:first-child { border-top: 0; }
.results button:hover, .results button:focus { background: var(--surface-2); }
.results small { display: block; color: var(--muted); }
.picked { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--pine); margin-top: 4px; }
.err { color: var(--berry); font-size: 13px; margin-top: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.swatches button[aria-pressed="true"] { border-color: var(--ink); }
.checks { display: flex; flex-direction: column; gap: 6px; }
.check { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--pine); flex: none; }
.check small { display: block; color: var(--muted); }
.spanrow { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; align-items: end; margin-top: 8px; }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); display: flex; gap: 8px; margin-top: 18px; }
.sticky-save .btn { flex: 1; }

/* ── Login ── */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 500px at 50% -10%, var(--pine-soft), transparent), var(--bg); }
.login .card { width: 100%; max-width: 380px; padding: 28px 22px; text-align: center; }
.login h1 { font-size: 26px; margin: 12px 0 4px; }
.login form { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ── Map markers ── */
.mk { line-height: 1; width: 30px; height: 30px; border-radius: 50%; background: var(--pine); color: var(--on-pine); display: grid; place-items: center; font: 600 13px var(--sans); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.mk.opt { background: #fff; color: #1f4d3a; border: 2px dashed #1f4d3a; }
.mk.home { background: var(--gold); }
.mk.sel { transform: scale(1.25); }
.leaflet-container { font-family: var(--sans); }
#map.dark-tiles .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); }
.leaflet-popup-content { margin: 10px 12px; }
.mapnote { position: absolute; left: 12px; bottom: 28px; z-index: 400; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--frost); backdrop-filter: blur(8px); color: var(--muted); }

/* ── Itinerary (lean timeline) ── */
.hero { padding: 16px 18px; margin-bottom: 18px; }
.hero h2 { font-size: 24px; }
.tl { position: relative; }
.tl-row { display: grid; grid-template-columns: 34px 1fr; gap: 12px; position: relative; }
.tl-row::before { content: ''; position: absolute; left: 16px; top: 0; bottom: 0; border-left: 2px solid var(--line-2); }
.tl-row:first-child::before { top: 18px; }
.tl-row:last-child::before { bottom: calc(100% - 18px); }
.tl-row.dash::before { border-left-style: dashed; }
.tl-mark { position: relative; z-index: 1; display: flex; justify-content: center; padding-top: 12px; }
.tl-mark .num { margin: 0; }
.tl-mark .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.tl-mark .dot.road { color: var(--road); }
.tl-mark .dot.warn { color: var(--warn); }
.tl-content { padding: 6px 0; min-width: 0; }
.tl-stay { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
.tl-stay:hover { border-color: var(--line-2); }
.tl-stay .grow { flex: 1; min-width: 0; }
.tl-stay h3 { font-size: 17px; line-height: 1.25; }
.tl-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.tags span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tags .ic { width: 14px; height: 14px; }
.tags .good { color: var(--pine); }
.tags .hol { color: var(--berry); }
.tags .bad { color: var(--warn); }
.chev { color: var(--faint); flex: none; }
.tl-place { padding: 12px 0; font-size: 14px; color: var(--muted); }
.tl-place b { color: var(--ink); font-weight: 600; }
.tl-drive { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 12px 0; font-size: 13px; }
.tl-drive .km { font-weight: 600; color: var(--road); margin-right: 2px; }
.tl-drive a { color: var(--faint); display: inline-flex; }
.t { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t .ic { width: 13px; height: 13px; }
.t.bad { background: var(--warn-soft); color: var(--warn); }
.t.hol { background: var(--berry-soft); color: var(--berry); }
.tl-gap { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 12px 14px; }
.tl-gap .gh { display: flex; gap: 4px 10px; align-items: baseline; flex-wrap: wrap; }
.tl-gap .gh b { color: var(--warn); }
.olist { margin-top: 8px; display: flex; flex-direction: column; }
.oline { display: grid; grid-template-columns: 22px 1fr auto; gap: 2px 8px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; color: inherit; width: 100%; }
.oline .l { font-weight: 600; color: var(--pine); }
.oline .n { font-weight: 500; min-width: 0; }
.oline .p { font-weight: 600; }
.oline .tags { grid-column: 2 / -1; margin-top: 0; }

/* ── Map view ── */
.maptools { position: absolute; top: 12px; right: 12px; z-index: 450; display: flex; gap: 6px; }
.maptools .btn { background: var(--surface); box-shadow: var(--shadow); }
.strip { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 450; display: flex; gap: 8px; overflow-x: auto; padding: 4px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.scard { flex: none; scroll-snap-align: start; display: flex; gap: 10px; align-items: center; max-width: 260px; padding: 9px 12px 9px 9px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; text-align: left; color: inherit; }
.scard .num { width: 26px; height: 26px; font-size: 12px; margin: 0; }
.scard b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.scard small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.scard.on { border-color: var(--pine); outline: 2px solid var(--pine); outline-offset: -1px; }
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--ink); border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-container a.leaflet-popup-close-button { color: var(--faint); }
.pop { min-width: 210px; max-width: 250px; font: 13px/1.4 var(--sans); }
.pop .k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.pop h4 { font: 650 17px/1.2 var(--serif); margin: 3px 0 4px; }
.pop .tags { margin-top: 6px; }
.pop .btn { width: 100%; margin-top: 10px; min-height: 36px; }
.leaflet-tooltip.drive-tip { background: var(--surface); color: var(--road); border: 1px solid var(--line); font: 600 12px var(--sans); box-shadow: var(--shadow); border-radius: 8px; }
.leaflet-tooltip.drive-tip::before { display: none; }

/* ── Costs ── */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 599px) { .stat { padding: 12px 10px; } .stat b { font-size: 17px; } .stat span { font-size: 11px; } }
.stat { padding: 14px; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat b { display: block; font: 650 22px/1.2 var(--serif); margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 12px; }
.stat.main { grid-column: 1 / -1; background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.stat.main span, .stat.main small { color: var(--on-pine); opacity: .8; }
.stat.main b { font-size: 30px; }
.clist { display: flex; flex-direction: column; }
.crow { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; color: inherit; }
.crow:first-child { border-top: 0; }
.crow .grow { flex: 1; min-width: 0; }
.crow .grow b { font-weight: 600; }
.crow .amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.crow .amt small { display: block; font-weight: 500; }
.crow.total { cursor: default; background: var(--surface-2); font-weight: 600; }
.paidbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-2); margin: 8px 0 6px; }
.paidbar i { background: var(--pine); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend b { color: var(--ink); }
