/* =========================================================
   Marrocos · itinerário
   Lavender "sheet" of the original board + Moroccan details:
   zellige tiles, horseshoe arches, octagram icons, Arabic.
   ========================================================= */
:root {
  --bg: #e1e3f1;
  --card: #f7f6fb;
  --paper: #fbf6ec;
  --ink: #1f1b2b;
  --muted: #6c6a80;
  --line: #d0d2e4;
  --red: #c1272d;
  --green: #1f7a3a;
  --gold: #b8862f;
  --accent: #c1272d;
  --meal: #b8282e;
  --sea: #c9d6ee;
  --wave: #9fb3dc;
  --land: #f3e6cc;
  --land-edge: #d9bf93;
  --tip-bg: #fff4d6;
  --tip-ink: #5c4300;
  --ok-bg: #dcf1e2;
  --ok-ink: #1d6633;
  --warn-bg: #fdecd2;
  --warn-ink: #8a4f00;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(30, 24, 60, .06), 0 8px 24px rgba(30, 24, 60, .07);
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%235b5fa8' stroke-opacity='.11' stroke-width='1.2'%3E%3Cpath d='M17 17h22v22H17zM28 12.5 43.5 28 28 43.5 12.5 28z'/%3E%3Cpath d='M28 0v12.5M28 43.5V56M0 28h12.5M43.5 28H56'/%3E%3Cpath d='M0 6 6 0M50 0l6 6M56 50l-6 6M6 56 0 50'/%3E%3C/g%3E%3C/svg%3E");
  --zellige-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23b8862f' stroke-opacity='.22' stroke-width='1.2'%3E%3Cpath d='M17 17h22v22H17zM28 12.5 43.5 28 28 43.5 12.5 28z'/%3E%3Cpath d='M28 0v12.5M28 43.5V56M0 28h12.5M43.5 28H56'/%3E%3C/g%3E%3C/svg%3E");
  --display: 'Archivo Black', 'Arial Black', system-ui, sans-serif;
  --brand: 'Lilita One', 'Archivo Black', system-ui, sans-serif;
  --hand: 'Gochi Hand', 'Comic Sans MS', cursive;
  --arabic: 'Amiri', 'Geeza Pro', 'Noto Naskh Arabic', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --octagram: polygon(50% 0%, 66.1% 11.2%, 85.4% 14.6%, 88.8% 33.9%, 100% 50%, 88.8% 66.1%, 85.4% 85.4%, 66.1% 88.8%, 50% 100%, 33.9% 88.8%, 14.6% 85.4%, 11.2% 66.1%, 0% 50%, 11.2% 33.9%, 14.6% 14.6%, 33.9% 11.2%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15142a;
    --card: #201e3a;
    --paper: #26233f;
    --ink: #f1ecf8;
    --muted: #a7a3c2;
    --line: #34315a;
    --red: #ff6b6f;
    --green: #5cc27a;
    --gold: #e0b45c;
    --accent: #ff6b6f;
    --meal: #ff8a8d;
    --sea: #1b2347;
    --wave: #2c3a6e;
    --land: #3a3150;
    --land-edge: #5b4d73;
    --tip-bg: #3a3118;
    --tip-ink: #f3dc9c;
    --ok-bg: #173523;
    --ok-ink: #8fdca8;
    --warn-bg: #3d2a12;
    --warn-ink: #f5c27a;
    --shadow: none;
    --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e0b45c' stroke-opacity='.08' stroke-width='1.2'%3E%3Cpath d='M17 17h22v22H17zM28 12.5 43.5 28 28 43.5 12.5 28z'/%3E%3Cpath d='M28 0v12.5M28 43.5V56M0 28h12.5M43.5 28H56'/%3E%3Cpath d='M0 6 6 0M50 0l6 6M56 50l-6 6M6 56 0 50'/%3E%3C/g%3E%3C/svg%3E");
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.5 var(--sans);
  color: var(--ink);
  background: var(--bg) var(--zellige) repeat;
  -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); padding: 1px 6px; border-radius: 5px; }
.loading { padding: 40px 16px; text-align: center; color: var(--muted); }
[lang="ar"] { font-family: var(--arabic); }

/* ---------- Hero ---------- */
.hero { padding: clamp(20px, 4vw, 48px) 16px 18px; }
.hero-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }

.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand { display: flex; align-items: center; gap: clamp(12px, 2vw, 20px); }
.flag { flex: none; width: clamp(56px, 9vw, 84px); height: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .15)); transform: rotate(-3deg); }
.hero h1 {
  margin: 0; font-family: var(--brand); font-weight: 400; color: var(--green);
  font-size: clamp(48px, 10vw, 104px); line-height: .9; letter-spacing: -.01em; text-transform: uppercase;
  transform: skewX(-7deg); text-shadow: 3px 3px 0 color-mix(in srgb, var(--green) 18%, transparent);
}
.hero-ar { margin: 2px 0 0; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; color: var(--gold); }
.hero-sub { margin: 4px 0 0; font-family: var(--hand); font-size: clamp(19px, 2.6vw, 24px); color: var(--muted); }

.flights {
  display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 16px;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow); max-width: 460px;
}
.fl-ico { font-size: 30px; transform: rotate(-12deg); }
.fl-main { flex: 1; min-width: 0; }
.fl-main b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.1; }
.fl-main span { color: var(--muted); font-size: 14px; }
.fl-price { font-family: var(--display); font-size: 22px; color: var(--red); white-space: nowrap; }

.greet { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 14px 0 0; font-family: var(--hand); font-size: 20px; }
.greet .arrow { color: var(--gold); }
.greet b { font-weight: 400; color: var(--green); }
.greet .ar { font-size: 22px; color: var(--muted); }

.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.stats li { background: color-mix(in srgb, var(--card) 85%, transparent); border-radius: 999px; padding: 5px 13px; font-size: 13px; color: var(--muted); }
.stats b { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { border: 0; background: var(--card); border-radius: 999px; padding: 7px 14px 7px 10px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: var(--shadow); }
.chip::before { content: ''; width: 12px; height: 12px; background: var(--c); clip-path: var(--octagram); }
.chip:hover { transform: translateY(-1px); }

/* ---------- Illustrated map ---------- */
.mapcard { margin: 0; padding: 12px; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); position: relative; }
.mapcard::before { content: ''; position: absolute; inset: 6px; border: 1.5px dashed color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 17px; pointer-events: none; }
.mapcard svg { display: block; width: 100%; height: auto; border-radius: 14px; }
.mapcard figcaption { text-align: center; font-family: var(--hand); font-size: 16px; color: var(--muted); margin-top: 6px; }
.m-sea { fill: var(--sea); }
.m-wave { stroke: var(--wave); stroke-width: 1; opacity: .55; }
.m-land { fill: var(--land); stroke: var(--land-edge); stroke-width: 1.5; stroke-linejoin: round; }
.m-border { fill: none; stroke: var(--land-edge); stroke-width: 1.2; stroke-dasharray: 4 4; }
.m-country { font-family: var(--hand); font-size: 30px; letter-spacing: .18em; fill: var(--land-edge); opacity: .9; }
.m-route { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s .3s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.m-side { stroke: var(--green); stroke-width: 2.2; stroke-dasharray: 3 5; stroke-linecap: round; }
.m-dot { fill: var(--c, var(--red)); stroke: #fff; stroke-width: 2; }
.m-dot--side { fill: #3a6fd8; }
.m-dot--other { fill: var(--land-edge); stroke: none; }
.m-halo { fill: var(--c); opacity: .22; }
.m-label { font-family: var(--hand); font-size: 16px; fill: var(--ink); paint-order: stroke; stroke: var(--land); stroke-width: 4px; stroke-linejoin: round; }
.m-label--side { font-size: 13px; fill: #2a55b3; }
.m-label--other { font-size: 11px; fill: var(--muted); font-family: var(--sans); letter-spacing: .04em; text-transform: uppercase; stroke-width: 3px; }
.m-emoji { font-size: 20px; }
.m-plane { font-size: 20px; }
.m-stop { cursor: pointer; outline: none; }
.m-stop:hover .m-halo, .m-stop:focus-visible .m-halo { opacity: .45; }
.m-compass circle { fill: color-mix(in srgb, var(--paper) 70%, transparent); stroke: var(--ink); stroke-width: 1; }
.m-compass path { fill: var(--ink); }
.m-compass text { font: 700 11px var(--sans); fill: var(--ink); }

/* ---------- Sticky day nav ---------- */
.daynav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.daynav-inner { max-width: 1280px; margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; }
.daynav-inner::-webkit-scrollbar { display: none; }
.dchip { flex: 0 0 auto; position: relative; display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 8px 11px; border: 0; border-radius: 26px 26px 10px 10px; background: transparent; cursor: pointer; color: var(--muted); }
.dchip b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1; color: var(--ink); }
.dchip span { font-size: 11px; }
.dchip::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 4px; border-radius: 3px; background: var(--c); }
.dchip.active { background: var(--card); box-shadow: var(--shadow); }
.dchip.is-today b { color: var(--accent); }

/* ---------- Cities ---------- */
main { max-width: 1280px; margin: 0 auto; padding: 22px 16px 48px; display: grid; gap: 30px; }
.city {
  --c: #888; position: relative; border: 2.5px solid var(--c); border-radius: var(--radius);
  background: color-mix(in srgb, var(--c) 8%, var(--card)); padding: clamp(14px, 2.5vw, 24px); padding-top: clamp(24px, 3vw, 32px);
  scroll-margin-top: 80px;
}
/* zellige band on top of each city */
.city::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0;
  background: conic-gradient(from 45deg, var(--c) 25%, transparent 0 50%, var(--c) 0 75%, transparent 0) 0 0 / 12px 12px;
  opacity: .55;
}
.collage { display: grid; gap: 6px; margin-bottom: 16px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); grid-auto-rows: 110px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.collage img:first-child { grid-row: span 2; }
.collage.n1 img:first-child { grid-row: auto; }
.collage.n1 { grid-auto-rows: 200px; }

.city-head { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.city-title h2 { font-family: var(--hand); font-weight: 400; font-size: clamp(36px, 6vw, 52px); line-height: 1; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.city-ar { font-size: .55em; color: var(--gold); }
.city-bar { display: block; height: 7px; width: min(340px, 62vw); margin-top: 8px; border-radius: 4px; background: var(--c); }
.city-dates { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.hotel-card { flex: 0 1 380px; min-width: 0; display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: transform .15s; }
.hotel-card:hover { transform: translateY(-1px); }
.hc-ico { flex: none; width: 40px; height: 46px; border-radius: 20px 20px 6px 6px / 22px 22px 6px 6px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--c) 24%, var(--card)); }
.hc-main { min-width: 0; flex: 1; }
.hc-main b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-main small { display: block; color: var(--muted); font-size: 12px; }
.hc-main .empty { font-weight: 600; }

/* Day cards are horseshoe arches */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.day {
  background: var(--card); padding: 22px 10px 8px; box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent);
  border-radius: 50% 50% 14px 14px / 64px 64px 14px 14px; scroll-margin-top: 84px;
}
.day.is-today { outline: 3px solid var(--accent); outline-offset: 2px; }
.day-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 8px; padding: 0 6px 12px; margin-bottom: 4px; text-align: center; position: relative; }
.day-head::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 0; height: 9px; background: radial-gradient(circle, var(--c) 0 2.5px, transparent 3px) center / 14px 9px repeat-x; opacity: .7; }
.day-num { font-family: var(--display); font-size: 38px; line-height: 1; }
.day-wd { color: var(--muted); }
.day-title { flex-basis: 100%; font-family: var(--hand); font-size: 17px; color: var(--ink); opacity: .8; }
.today-tag { font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 1px 8px; }

/* ---------- Timeline items ---------- */
.tl { list-style: none; margin: 0; padding: 0; }
.it { display: grid; grid-template-columns: 36px 1fr 12px; gap: 10px; align-items: start; padding: 10px 6px; border-radius: 12px; text-decoration: none; transition: background .15s; }
.it:hover, .it:focus-visible { background: color-mix(in srgb, var(--ic) 12%, transparent); outline: none; }
.it-ico { width: 36px; height: 36px; display: grid; place-items: center; font-size: 15px; background: color-mix(in srgb, var(--ic) 26%, var(--card)); clip-path: var(--octagram); }
.it-main { min-width: 0; }
.it-time { display: block; font-family: var(--hand); font-size: 22px; line-height: 1; margin-bottom: 2px; }
.it-title { display: block; font-weight: 700; line-height: 1.3; }
.it--meal .it-title { color: var(--meal); }
.it-sub { display: block; font-size: 13px; color: var(--muted); }
.it-list { display: flex; flex-direction: column; margin-top: 4px; font-size: 13px; }
.it-list span::before { content: '✦'; color: var(--ic); margin-right: 6px; font-size: 10px; }
.it-list em { font-style: normal; color: var(--muted); }
.it-chev { align-self: center; color: var(--muted); font-size: 20px; line-height: 1; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.badge.ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.incity { background: color-mix(in srgb, var(--ic) 24%, var(--card)); color: var(--ink); }

/* ---------- City map ---------- */
.citymap { margin-top: 16px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.citymap summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.citymap summary::-webkit-details-marker { display: none; }
.citymap summary::after { content: '+'; margin-left: auto; font-size: 20px; line-height: 1; color: var(--muted); }
.citymap[open] summary::after { content: '–'; }
.citymap summary small { font-family: var(--hand); font-weight: 400; font-size: 16px; color: var(--muted); }
.citymap-frame { padding: 0 12px 12px; }
.citymap iframe { display: block; width: 100%; height: clamp(260px, 45vw, 420px); border: 0; border-radius: 10px; }

/* ---------- Tickets as boarding passes ---------- */
.tickets { background: var(--card); border-radius: var(--radius); padding: clamp(14px, 2.5vw, 24px); box-shadow: var(--shadow); }
.tickets h2, .info h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 36px); line-height: 1; margin: 0 0 4px; }
.tickets > p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.tk .badge { white-space: nowrap; }
.tk {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 20px; text-decoration: none; border-radius: 12px;
  background:
    radial-gradient(circle at 0 50%, var(--card) 9px, transparent 10px),
    radial-gradient(circle at 100% 50%, var(--card) 9px, transparent 10px),
    color-mix(in srgb, var(--c) 10%, var(--bg));
  border-top: 4px solid var(--c);
}
.tk:hover { background:
    radial-gradient(circle at 0 50%, var(--card) 9px, transparent 10px),
    radial-gradient(circle at 100% 50%, var(--card) 9px, transparent 10px),
    color-mix(in srgb, var(--c) 20%, var(--bg)); }
.tk-ico { font-size: 22px; }
.tk-main { flex: 1; min-width: 0; padding-right: 10px; border-right: 2px dashed var(--line); }
.tk-main b { display: block; }
.tk-main small { color: var(--muted); }

/* ---------- Info ---------- */
.info { scroll-margin-top: 80px; }
.info h2 { margin-bottom: 14px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.info-card { background: var(--paper) var(--zellige-light); background-blend-mode: normal; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.info-card h3 { margin: 0 0 8px; font-family: var(--hand); font-weight: 400; font-size: 26px; display: flex; align-items: center; gap: 10px; }
.info-card h4 { margin: 14px 0 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.info-card p { margin: 0 0 8px; white-space: pre-line; font-size: 14px; }
.info-card ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.info-card li { padding: 4px 0 4px 20px; position: relative; }
.info-card li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 9px; height: 9px; background: var(--red); clip-path: var(--octagram); }

footer { max-width: 1280px; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: 13px; text-align: center; }
footer p { margin: 4px 0; }
.farewell { display: flex; justify-content: center; align-items: baseline; gap: 14px; }
.farewell span { font-size: 30px; color: var(--gold); }
.farewell b { font-family: var(--hand); font-weight: 400; font-size: 22px; color: var(--ink); }

/* ---------- Drawer / bottom sheet ---------- */
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(20, 16, 40, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 50; display: flex; flex-direction: column; background: var(--card); box-shadow: 0 10px 50px rgba(0, 0, 0, .25); transition: transform .32s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.drawer-close { position: absolute; top: 14px; right: 12px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg); font-size: 24px; line-height: 1; cursor: pointer; }
.drawer-body { overflow-y: auto; overscroll-behavior: contain; padding: 26px 22px calc(28px + env(safe-area-inset-bottom)); }
.drawer::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: conic-gradient(from 45deg, var(--gold) 25%, transparent 0 50%, var(--gold) 0 75%, transparent 0) 0 0 / 8px 8px; opacity: .45; pointer-events: none; }

@media (min-width: 800px) {
  .drawer { top: 0; right: 0; bottom: 0; width: min(470px, 100vw); transform: translateX(105%); }
}
@media (max-width: 799px) {
  .drawer { left: 0; right: 0; bottom: 0; max-height: 90dvh; border-radius: 22px 22px 0 0; transform: translateY(105%); }
  .drawer::before { content: ''; flex: none; width: 42px; height: 5px; margin: 14px auto 0; border-radius: 3px; background: var(--line); }
  .drawer-body { padding-top: 14px; }
  .hero { padding-bottom: 12px; }
}
.drawer.open { transform: none; }

.dv-head { --c: var(--accent); border-left: 6px solid var(--c); padding: 2px 46px 2px 14px; }
.dv-kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dv-head h2 { margin: 4px 0 2px; font-size: 25px; line-height: 1.2; }
.dv-head p { margin: 0; color: var(--muted); }
.dv-when { margin-top: 6px !important; font-family: var(--hand); font-size: 19px; color: var(--ink) !important; }
.dv-sec { margin-top: 22px; }
.dv-sec h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.dv-text { margin: 0; white-space: pre-line; }
.tip { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--tip-bg); color: var(--tip-ink); font-size: 14px; }
.rows { display: grid; grid-template-columns: minmax(96px, 36%) 1fr; gap: 7px 12px; margin: 0; font-size: 14px; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; overflow-wrap: anywhere; }
.empty { color: var(--muted); font-style: italic; opacity: .75; }
.dv-list { list-style: none; margin: 0; padding: 0; }
.dv-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dv-list li:last-child { border-bottom: 0; }
.dv-list .grow { flex: 1; min-width: 0; }
.dv-list small { display: block; color: var(--muted); }
.dv-list .cost { font-weight: 600; white-space: nowrap; }
.maplink { flex: none; text-decoration: none; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; background: var(--ink); color: var(--card); font-weight: 600; font-size: 14px; text-decoration: none; }
.btn.ghost { background: var(--bg); color: var(--ink); }
.citymap-frame .btn { margin-top: 10px; }
.linkcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); text-decoration: none; }
.linkcard b { display: block; }
.linkcard small { color: var(--muted); }
.dv-edit { margin: 28px 0 0; font-size: 12px; color: var(--muted); }

.error { max-width: 640px; margin: 10vh auto; padding: 24px; background: var(--card); border-radius: var(--radius); }
.error h1 { margin-top: 0; font-size: 22px; }
.error pre { white-space: pre-wrap; background: var(--bg); padding: 12px; border-radius: 10px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .m-route { stroke-dashoffset: 0; }
}
