/* ============ Fethiye Trip Planner — design tokens ============ */
:root {
  /* Mediterranean editorial palette */
  --sand: oklch(96% 0.015 85);
  --sand-deep: oklch(92% 0.025 80);
  --paper: oklch(99% 0.005 85);
  --ink: oklch(24% 0.02 250);
  --ink-soft: oklch(45% 0.02 250);
  --line: oklch(86% 0.02 80);

  --aegean: oklch(58% 0.12 220);     /* beaches */
  --aegean-deep: oklch(46% 0.13 230);
  --olive: oklch(60% 0.12 145);      /* nature */
  --earth: oklch(52% 0.08 60);       /* mountains */
  --terra: oklch(63% 0.16 45);       /* activities */
  --muted: oklch(62% 0.02 250);      /* restaurants */
  --gold: oklch(78% 0.13 80);

  /* category map */
  --cat-beach: var(--aegean);
  --cat-nature: var(--olive);
  --cat-mountain: var(--earth);
  --cat-activity: var(--terra);
  --cat-restaurant: var(--muted);

  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-h1: clamp(2rem, 1.2rem + 3.5vw, 3.8rem);
  --text-h2: clamp(1.3rem, 1rem + 1vw, 1.9rem);

  --space: clamp(1rem, 0.7rem + 1.2vw, 2rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-1: 0 1px 2px oklch(40% 0.03 250 / 0.08), 0 4px 14px oklch(40% 0.03 250 / 0.08);
  --shadow-2: 0 6px 30px oklch(40% 0.05 250 / 0.16);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --dur: 220ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 80% -10%, oklch(94% 0.04 220 / 0.5), transparent 60%),
    var(--sand);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; }

.wrap { max-width: 1480px; margin: 0 auto; padding: 0 var(--space); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(10px);
  background: oklch(96% 0.015 85 / 0.82);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: baseline; gap: 1rem 1.5rem; flex-wrap: wrap;
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.brand { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.brand h1 {
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem);
  letter-spacing: -0.02em;
}
.brand .sub { color: var(--ink-soft); font-size: 0.9rem; }
.brand .sub b { color: var(--aegean-deep); font-variant-numeric: tabular-nums; }
.toolbar { margin-left: auto; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.btn {
  font: inherit; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 0.45rem 0.8rem; border-radius: 999px; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--aegean); outline-offset: 2px; }
.btn-accent { background: var(--aegean-deep); color: white; border-color: transparent; }

/* ---------- hero / intro ---------- */
.hero { padding: clamp(1.2rem, 0.8rem + 2vw, 2.4rem) 0 1rem; }
.hero-top { display: flex; justify-content: flex-end; margin-bottom: 0.8rem; }
.hero h2 {
  font-size: var(--text-h1); letter-spacing: -0.03em; max-width: 16ch;
}
.hero h2 em { font-style: italic; color: var(--aegean-deep); }
.hero p { color: var(--ink-soft); max-width: 56ch; margin-top: 0.8rem; }

/* ---------- section scaffolding ---------- */
.section { padding: var(--space) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { font-size: var(--text-h2); letter-spacing: -0.02em; }
.section-head .hint { color: var(--ink-soft); font-size: 0.85rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.7rem;
  font-weight: 700; color: var(--terra); display: block; margin-bottom: 0.3rem;
}

/* ---------- map ---------- */
.map-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(260px, 0.78fr);
  gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);
  align-items: start;
}
#map {
  height: clamp(520px, 78vh, 820px); width: 100%;
  border-radius: var(--radius); box-shadow: var(--shadow-2);
  border: 1px solid var(--line); z-index: 1;
}
.map-aside { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.map-aside h2 { font-size: var(--text-h2); letter-spacing: -0.02em; }
.aside-hint { color: var(--ink-soft); font-size: 0.85rem; margin: 0; max-width: 36ch; }
.map-legend { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.85rem; color: var(--ink-soft); margin: 0.2rem 0; }
.map-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 2px white inset; }
.dot.beach { background: var(--cat-beach); }
.dot.nature { background: var(--cat-nature); }
.dot.mountain { background: var(--cat-mountain); }
.dot.activity { background: var(--cat-activity); }
.dot.restaurant { background: var(--cat-restaurant); }
.dot.home { background: var(--ink); }

/* far-from-town places (directional arrows) */
.far-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.3rem; }
.far-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--terra); font-family: var(--sans); font-weight: 700; margin: 0.2rem 0; }
.far {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left;
  font: inherit; cursor: pointer; padding: 0.55rem 0.7rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.far:hover { transform: translateX(3px); box-shadow: var(--shadow-1); border-color: var(--earth); }
.far:focus-visible { outline: 2px solid var(--earth); outline-offset: 2px; }
.far-arrow {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: oklch(52% 0.08 60 / 0.14); color: var(--earth);
  display: grid; place-items: center;
}
.far-arrow-ico { font-size: 1.1rem; font-weight: 700; line-height: 1; display: inline-block; }
.far-body { display: flex; flex-direction: column; min-width: 0; }
.far-name { font-weight: 600; font-size: 0.9rem; }
.far-meta { font-size: 0.76rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Leaflet category markers */
.pin {
  width: 18px; height: 18px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); border: 2px solid white;
  box-shadow: 0 2px 6px oklch(20% 0.05 250 / 0.4);
}
.pin.beach { background: var(--cat-beach); }
.pin.nature { background: var(--cat-nature); }
.pin.mountain { background: var(--cat-mountain); }
.pin.activity { background: var(--cat-activity); }
.pin.restaurant { background: var(--cat-restaurant); }
.pin.home { background: var(--ink); border-radius: 6px; transform: none; width: 22px; height: 22px; display: grid; place-items: center; }
.pin.home::after { content: "★"; color: var(--gold); transform: none; font-size: 13px; line-height: 1; }
.leaflet-popup-content { font-family: var(--sans); margin: 0.7rem 0.9rem; }
.popup-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.popup-meta { color: var(--ink-soft); font-size: 0.8rem; margin: 0.3rem 0; }
.popup-price { font-size: 0.78rem; color: var(--terra); font-weight: 600; }
.popup-src a { color: var(--aegean-deep); }

/* ---------- category panels ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.cat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1); overflow: hidden; display: flex; flex-direction: column;
}
.cat-head {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line); cursor: pointer; user-select: none;
}
.cat-head .swatch { width: 12px; height: 12px; border-radius: 3px; }
.cat-head h3 { font-size: 1.05rem; }
.cat-head .count { margin-left: auto; font-size: 0.78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cat-head .chev { transition: transform var(--dur) var(--ease); color: var(--ink-soft); }
.cat[data-collapsed="true"] .chev { transform: rotate(-90deg); }
.cat[data-collapsed="true"] .cat-list { display: none; }
.cat-list { list-style: none; margin: 0; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.4rem; max-height: 360px; overflow-y: auto; }

.place {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.55rem 0.6rem; border-radius: var(--radius-sm);
  background: var(--sand); border: 1px solid transparent; cursor: grab;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.place:hover { background: white; border-color: var(--line); transform: translateX(2px); }
.place:active { cursor: grabbing; }
.place.dragging { opacity: 0.4; }
.place .pin-mini { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; margin-top: 0.45rem; }
.place .body { min-width: 0; }
.place .name { font-weight: 600; font-size: 0.92rem; }
.place .desc { color: var(--ink-soft); font-size: 0.78rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.place .meta { font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.15rem; }
.place .meta .km { color: var(--aegean-deep); font-weight: 600; font-variant-numeric: tabular-nums; }
.place .kid { color: var(--olive); }

/* ---------- weather + calendar board ---------- */
.board { display: flex; flex-direction: column; gap: 0.6rem; }
.block { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem; }
.day {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1); display: flex; flex-direction: column; min-height: 250px;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.day.weekend { background: linear-gradient(180deg, oklch(97% 0.02 220 / 0.6), var(--paper)); }
.day.arrival { box-shadow: 0 0 0 2px var(--olive) inset, var(--shadow-1); }
.day.departure { box-shadow: 0 0 0 2px var(--terra) inset, var(--shadow-1); }
.day.dragover { border-color: var(--aegean); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.day-top { padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); }
.day-date { display: flex; align-items: baseline; gap: 0.4rem; }
.day-date .dow { font-family: var(--serif); font-weight: 600; font-size: 1rem; }
.day-date .num { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 0.8rem; }
.day-date .tag { margin-left: auto; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 999px; }
.day.arrival .tag { background: oklch(60% 0.12 145 / 0.18); color: var(--olive); }
.day.departure .tag { background: oklch(63% 0.16 45 / 0.18); color: var(--terra); }
.wx { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; font-size: 0.8rem; }
.wx .ico { font-size: 1.2rem; line-height: 1; }
.wx .temp { font-weight: 600; font-variant-numeric: tabular-nums; }
.wx .temp .lo { color: var(--ink-soft); font-weight: 400; }
.wx .rain { color: var(--aegean-deep); font-size: 0.72rem; }
.wx .seasonal { color: var(--ink-soft); font-size: 0.66rem; font-style: italic; }
.day-label {
  width: 100%; border: none; background: transparent; font: inherit; font-size: 0.78rem;
  color: var(--ink-soft); padding: 0.35rem 0.7rem; border-bottom: 1px dashed var(--line);
}
.day-label:focus { outline: none; background: oklch(97% 0.02 220 / 0.5); color: var(--ink); }
.chips { list-style: none; margin: 0; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.chip {
  display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem;
  background: color-mix(in oklch, var(--c) 12%, white);
  border: 1px solid color-mix(in oklch, var(--c) 35%, var(--line));
  border-left: 3px solid var(--c);
  border-radius: 7px; padding: 0.3rem 0.35rem 0.3rem 0.5rem;
}
.chip .chip-ico { flex: 0 0 auto; font-size: 0.95rem; line-height: 1; }
.chip .chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .x { margin-left: auto; border: none; background: none; cursor: pointer; color: var(--ink-soft); font-size: 0.95rem; line-height: 1; padding: 0 0.2rem; border-radius: 50%; }
.chip .x:hover { color: var(--terra); }
.day-empty { color: var(--ink-soft); font-size: 0.74rem; text-align: center; padding: 0.8rem 0.5rem; opacity: 0.7; }

.block-label { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-soft); margin: 0.6rem 0 0; }

/* special events (birthdays etc.) */
.day.event-day { box-shadow: 0 0 0 2px var(--gold) inset, var(--shadow-1); }
.events { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--line); background: oklch(78% 0.13 80 / 0.18); }
.event { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; font-weight: 600; color: oklch(45% 0.1 70); }
.event .ev-ico { font-size: 1.05rem; line-height: 1; }

/* flight arrivals on a day */
.flights { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--line); background: oklch(60% 0.12 145 / 0.07); }
.flight { display: flex; align-items: baseline; gap: 0.4rem; font-size: 0.8rem; color: var(--ink); }
.flight b { font-weight: 600; }
.flight .ftime { margin-left: auto; color: var(--olive); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* pinned departure card */
.day.locked { background: linear-gradient(180deg, oklch(63% 0.16 45 / 0.12), var(--paper)); }
.depart-card { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; padding: 0.8rem; }
.depart-card .plane { font-size: 1.8rem; line-height: 1; }
.depart-card .word { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.04em; color: var(--terra); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-aside { position: static; }
  #map { height: clamp(380px, 60vh, 560px); }
}
@media (max-width: 1100px) { .block { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .block { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  {
  .block { grid-template-columns: 1fr; }
  .toolbar { width: 100%; }
}

/* ---------- toast / error banner ---------- */
.banner {
  background: oklch(63% 0.16 45 / 0.12); border: 1px solid var(--terra);
  color: oklch(40% 0.12 45); padding: 0.8rem 1rem; border-radius: var(--radius);
  margin: 1rem 0; font-size: 0.9rem;
}
.banner code { background: oklch(40% 0.12 45 / 0.12); padding: 0.1rem 0.4rem; border-radius: 5px; }
.banner.hidden { display: none; }

footer { padding: 2rem 0 3rem; color: var(--ink-soft); font-size: 0.8rem; text-align: center; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--line); margin: 0.3rem 0 1.6rem; }
.tab { font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); background: none; border: none; padding: 0.6rem 0.95rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--dur) var(--ease); }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--aegean-deep); border-bottom-color: var(--aegean-deep); }
.tab:focus-visible { outline: 2px solid var(--aegean); outline-offset: 2px; border-radius: 6px; }

/* ---------- candidate card icon + route bar + selected day ---------- */
.place .place-ico { flex: 0 0 auto; font-size: 1.1rem; line-height: 1; margin-top: 0.1rem; }
.day.selected { box-shadow: 0 0 0 2px var(--aegean) inset, var(--shadow-2) !important; }

.route-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 0.75rem 0.95rem; margin-bottom: 0.9rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.rb-info { display: flex; flex-direction: column; }
.rb-title { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.rb-dur { color: var(--aegean-deep); font-weight: 600; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.rb-stops { display: flex; flex-wrap: wrap; gap: 0.4rem; flex: 1 1 200px; }
.rb-stop { font-size: 0.78rem; background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.55rem; }
.rb-stop b { color: var(--aegean-deep); }
.rb-empty { color: var(--ink-soft); font-size: 0.82rem; }
.rb-actions { display: flex; gap: 0.4rem; margin-left: auto; }

.route-num { width: 24px; height: 24px; border-radius: 50%; border: 2px solid white; color: white; font-size: 0.75rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 2px 6px oklch(20% 0.05 250 / 0.45); }

/* ---------- timeline ---------- */
#timeline { max-width: 780px; }
.tl-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.4rem; }
.tl-head h2 { font-size: var(--text-h2); letter-spacing: -0.02em; }
.tl-progress { color: var(--aegean-deep); font-weight: 600; font-size: 0.9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-day { margin-bottom: 1.3rem; }
.tl-date { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 0.5rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--line); }
.tl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.tl-item label { position: relative; display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: background var(--dur) var(--ease); }
.tl-item label:hover { background: white; }
.tl-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.tl-check { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.tl-item input:checked + .tl-check { background: var(--olive); border-color: var(--olive); }
.tl-item input:checked + .tl-check::after { content: '✓'; color: white; font-size: 0.78rem; font-weight: 700; line-height: 1; }
.tl-item input:focus-visible + .tl-check { outline: 2px solid var(--aegean); outline-offset: 2px; }
.tl-ico { font-size: 1.15rem; line-height: 1; flex: 0 0 auto; }
.tl-body { display: flex; flex-direction: column; min-width: 0; }
.tl-text { font-weight: 600; font-size: 0.92rem; }
.tl-sub { font-size: 0.76rem; color: var(--ink-soft); }
.tl-item.is-done .tl-text { text-decoration: line-through; color: var(--ink-soft); }
.tl-item.is-done label { opacity: 0.72; }

/* ---------- language toggle + footer ---------- */
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-btn { font: inherit; font-weight: 700; font-size: 0.78rem; padding: 0.38rem 0.7rem; background: var(--paper); border: none; cursor: pointer; color: var(--ink-soft); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { background: var(--aegean-deep); color: white; }

.site-footer { border-top: 1px solid var(--line); margin-top: 2.5rem; padding: 1.3rem 0 2.2rem; }
.footer-tools { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }

/* ---------- bottom sheet (map + route) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: oklch(20% 0.03 250 / 0.45); opacity: 0; transition: opacity 260ms var(--ease); z-index: 2000; }
.sheet-backdrop.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2001;
  height: 88vh; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 20px 20px 0 0; padding: 0.3rem 1rem 1rem;
  box-shadow: 0 -10px 44px oklch(20% 0.05 250 / 0.3);
  transform: translateY(100%); transition: transform 280ms var(--ease); will-change: transform;
}
.sheet.open { transform: translateY(0); }
.sheet-head { display: flex; align-items: center; justify-content: center; padding: 0.5rem 0 0.4rem; flex: 0 0 auto; }
.sheet-grabber { width: 44px; height: 5px; border-radius: 3px; background: var(--line); cursor: pointer; }
.sheet-close {
  position: absolute; top: 0.7rem; right: 0.9rem; z-index: 3000;
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff;
  background: var(--ink); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 2px 12px oklch(20% 0.05 250 / 0.5);
}
.sheet-close:hover { background: var(--aegean-deep); }
.sheet-close:active { transform: scale(0.94); }
.sheet-body { flex: 1; min-height: 0; }
body.sheet-open { overflow: hidden; }

.sheet .map-layout { height: 100%; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); align-items: stretch; }
.sheet #map { height: 100%; box-shadow: none; }
.sheet .map-aside { position: static; overflow-y: auto; padding-right: 0.2rem; }

.route-info { display: flex; flex-direction: column; gap: 0.6rem; }
.ri-title { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.ri-dur { color: var(--aegean-deep); font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.route-info .btn { align-self: flex-start; }

.stops { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.3rem; }
.stop { display: flex; gap: 0.7rem; padding: 0.7rem 0.8rem; background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stop-num { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; color: white; font-size: 0.78rem; font-weight: 700; display: grid; place-items: center; border: 2px solid white; box-shadow: 0 1px 4px oklch(20% 0.05 250 / 0.3); }
.stop-num.dot { width: 12px; height: 12px; margin-top: 0.35rem; }
.stop-body { min-width: 0; }
.stop-name { font-weight: 600; font-size: 0.95rem; }
.stop-desc { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.2rem; line-height: 1.45; }
.stop-meta { font-size: 0.76rem; color: var(--ink-soft); margin-top: 0.35rem; }
.stop-meta .km { color: var(--aegean-deep); font-weight: 600; font-variant-numeric: tabular-nums; }
.stop-price { font-size: 0.76rem; color: var(--terra); font-weight: 600; margin-top: 0.3rem; }
.stop-src { display: inline-block; margin-top: 0.3rem; font-size: 0.76rem; color: var(--aegean-deep); }

@media (max-width: 900px) {
  .sheet { height: 92vh; max-height: 92vh; }
  .sheet .map-layout { display: flex; flex-direction: column; }
  .sheet #map { height: 46vh; flex: 0 0 auto; }
  .sheet .map-aside { flex: 1 1 auto; }
}

/* ---------- print / PDF ---------- */
@media print {
  :root { --shadow-1: none; --shadow-2: none; }
  body { background: white; }
  .site-header { position: static; backdrop-filter: none; }
  .toolbar, .hero p, .banner, .section-head .hint, .map-legend, footer, .tabs, .route-bar { display: none; }
  #map { height: 360px; box-shadow: none; page-break-inside: avoid; }
  .cats { display: none; }            /* candidate lists are noise on the printout */
  .block { gap: 0.4rem; }
  .day { break-inside: avoid; min-height: 0; box-shadow: none; border-color: #ccc; }
  .day-label { color: #000; }
  .week-label { break-before: auto; }
  .section { padding: 0.5rem 0; }
  a[href]::after { content: ""; }     /* don't print raw URLs */
}
