/* ============================================================
   Walk in CS · 潮汕四城漫游 — Trip-class visual system
   ============================================================ */

:root {
  --brand: #0b6cf0;
  --brand-ink: color-mix(in srgb, var(--brand) 78%, #001433);
  --brand-glow: color-mix(in srgb, var(--brand) 32%, transparent);
  --accent: #ff6a00;
  --ink: #16212e;
  --ink-2: #45566b;
  --ink-3: #7c8ba1;
  --line: #e6ebf2;
  --bg: #f3f5f9;
  --card: #ffffff;
  --success: #0d9d6b;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(22, 33, 46, .05), 0 4px 16px rgba(22, 33, 46, .06);
  --shadow-2: 0 4px 12px rgba(22, 33, 46, .08), 0 16px 40px rgba(22, 33, 46, .12);
  --font: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Noto Sans SC", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; }

button { font-family: inherit; cursor: pointer; }

.hide { display: none !important; }

.muted { color: var(--ink-3); font-size: .88rem; margin: .3rem 0; }

.tiny { font-size: .78rem; }

/* ---------------- top bar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .55rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-ink));
  border-radius: 12px;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  display: block;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .98rem; letter-spacing: .01em; }
.brand-text span { font-size: .72rem; color: var(--ink-3); }

.city-tabs {
  display: flex;
  gap: .3rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.city-tabs::-webkit-scrollbar { display: none; }

.city-tab {
  border: 0;
  background: transparent;
  padding: .4rem .9rem;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  color: var(--ink-2);
  transition: all .18s ease;
  white-space: nowrap;
}
.city-tab-name { font-size: .95rem; font-weight: 700; }
.city-tab-en { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.city-tab:hover { background: #eef3fb; color: var(--brand); }
.city-tab.active { background: var(--brand); color: #fff; box-shadow: 0 4px 14px var(--brand-glow); }
.city-tab.active .city-tab-en { color: rgba(255, 255, 255, .8); }

.topbar-actions { flex-shrink: 0; }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10, 18, 30, .18) 0%, rgba(10, 18, 30, .38) 55%, rgba(10, 18, 30, .72) 100%),
    var(--hero-img, none) center / cover no-repeat,
    linear-gradient(140deg, #0d2b52 0%, var(--brand) 60%, #58a1ff 100%);
}

.hero.no-img {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 255, 255, .16), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(0, 0, 0, .22), transparent 55%),
    linear-gradient(140deg, #0d2b52 0%, var(--brand) 60%, #58a1ff 100%);
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.6rem 1.2rem 2rem;
}

.hero-tagline {
  margin: 0 0 .4rem;
  font-size: .92rem;
  letter-spacing: .35em;
  opacity: .92;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: .04em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.hero-intro {
  margin: .7rem 0 1.3rem;
  max-width: 560px;
  font-size: .95rem;
  line-height: 1.7;
  opacity: .94;
}

.hero-search {
  display: flex;
  gap: .55rem;
  max-width: 640px;
  background: rgba(255, 255, 255, .96);
  border-radius: 14px;
  padding: .45rem;
  box-shadow: var(--shadow-2);
}

.hero-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  padding: .5rem .7rem;
  font-size: .95rem;
  color: var(--ink);
  font-family: inherit;
}

.hero-locate {
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: .55rem 1rem;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hero-locate:hover { transform: translateY(-1px); box-shadow: 0 6px 18px var(--brand-glow); }

.hero-stats {
  display: flex;
  gap: 2.2rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.hero-stat { display: flex; flex-direction: column; line-height: 1.2; }
.hero-stat strong { font-size: 1.7rem; font-weight: 900; font-family: var(--font-display); }
.hero-stat span { font-size: .78rem; opacity: .85; margin-top: .2rem; }

/* ---------------- layout ---------------- */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.4rem 1.2rem 3rem;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 1.1rem 0;
  box-shadow: var(--shadow-1);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .7rem;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: .01em;
}

.panel-head h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 1.05em;
  margin-right: .55rem;
  vertical-align: -0.18em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.filter-controls { display: flex; align-items: center; gap: .8rem; }

select {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2345566b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .7rem center;
  border-radius: 10px;
  padding: .48rem 2rem .48rem .8rem;
  font-size: .88rem;
  color: var(--ink);
  font-family: inherit;
}

.chk { display: flex; align-items: center; gap: .35rem; font-size: .88rem; color: var(--ink-2); user-select: none; }
.chk input { accent-color: var(--brand); width: 15px; height: 15px; }

/* ---------------- chips ---------------- */

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .5rem 0; }

.chips.scroll-x {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: .35rem;
  scrollbar-width: thin;
}

.chips button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: .4rem .95rem;
  font-size: .84rem;
  white-space: nowrap;
  transition: all .16s ease;
}
.chips button:hover { border-color: var(--brand); color: var(--brand); }
.chips button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 10px var(--brand-glow);
}

.chip {
  display: inline-flex;
  align-items: center;
  background: #eef3fb;
  color: var(--brand-ink);
  border-radius: 999px;
  padding: .22rem .68rem;
  font-size: .76rem;
  font-weight: 500;
}
.chip.night { background: #ede9fe; color: #6d28d9; }
.chip.photo { background: #fff1e6; color: #c2410c; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: .62rem 1.25rem;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .16s ease;
}

.btn.sm { padding: .42rem .9rem; font-size: .84rem; }

.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px var(--brand-glow);
}
.btn.primary:hover { background: var(--brand-ink); transform: translateY(-1px); }

.btn.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
}
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn.fav-btn.on { color: var(--danger); border-color: #fecaca; background: #fef2f2; }

.row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }

/* ---------------- spot cards ---------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 1.1rem;
  margin: 1.1rem 0;
}

@keyframes show {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.spot-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2, .7, .3, 1), box-shadow .22s ease;
  box-shadow: var(--shadow-1);
}

.spot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.spot-card.focus { outline: 2px solid var(--brand); outline-offset: 2px; }

.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #dfe6ef; }

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.spot-card:hover .card-img { transform: scale(1.06); }

.badge {
  position: absolute;
  top: .65rem;
  left: .65rem;
  background: rgba(20, 28, 39, .78);
  color: #fff;
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: .22rem .55rem;
  font-size: .72rem;
  font-weight: 700;
}

.badge.photo-badge { left: auto; right: 3rem; background: rgba(20, 28, 39, .6); font-weight: 500; }
.badge.route-badge { background: var(--accent); }

.fav {
  position: absolute;
  top: .55rem;
  right: .55rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink-3);
  font-size: 1.05rem;
  transition: all .18s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.fav:hover { transform: scale(1.1); color: var(--danger); }
.fav.on { color: var(--danger); }

.dist-pill {
  position: absolute;
  bottom: .6rem;
  left: .65rem;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  border-radius: 999px;
  padding: .2rem .6rem;
  font-size: .72rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.card-body { padding: .85rem .95rem 1rem; }

.card-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}

.area-name { color: var(--brand); font-size: .76rem; font-weight: 700; letter-spacing: .02em; }

.ticket { color: var(--accent); font-size: .76rem; font-weight: 700; }
.ticket.free { color: var(--success); }

.card-name { margin: .3rem 0 .25rem; font-size: 1.08rem; font-weight: 900; letter-spacing: .01em; }

.card-desc {
  margin: 0 0 .5rem;
  color: var(--ink-2);
  font-size: .84rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.card-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }

.card-tip { margin: 0 0 .65rem; color: var(--ink-3); font-size: .76rem; }

.card-actions { display: flex; gap: .5rem; }

.mini {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 10px;
  padding: .48rem .6rem;
  font-size: .82rem;
  font-weight: 700;
  transition: all .16s ease;
}
.mini:hover { border-color: var(--brand); color: var(--brand); }
.mini.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.mini.primary:hover { background: var(--brand-ink); color: #fff; }
.mini.playing { background: var(--accent); border-color: var(--accent); color: #fff; }

/* skeleton */
.skeleton-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 1rem;
}
.skeleton-img { aspect-ratio: 3/2; background: #e8edf4; }
.skeleton-line { height: 14px; border-radius: 7px; background: #e8edf4; margin: .8rem .95rem 0; }
.skeleton-line.short { width: 55%; }
.shimmer { position: relative; overflow: hidden; }
.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-3);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------------- presets ---------------- */

.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.preset-card {
  display: flex;
  gap: .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: linear-gradient(160deg, #fbfcfe, #f4f7fc);
}

.preset-no {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand);
  opacity: .35;
  line-height: 1;
}

.preset-body h4 { margin: 0 0 .3rem; font-size: 1rem; }
.preset-desc { margin: 0 0 .4rem; color: var(--ink-2); font-size: .84rem; line-height: 1.55; }
.preset-points { margin: 0 0 .5rem; padding-left: 1.1rem; color: var(--ink-2); font-size: .8rem; line-height: 1.65; }
.preset-tips { margin: .2rem 0 .55rem; color: var(--warning); font-size: .76rem; }

/* ---------------- route ---------------- */

.route { margin-top: 1rem; }

.route-empty { color: var(--ink-3); font-size: .88rem; }

.route-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #f0f6ff, #eef9f4);
  border: 1px solid #dbe7fb;
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  margin-bottom: .9rem;
}

.route-nums { display: flex; gap: 1.6rem; }
.route-num { display: flex; flex-direction: column; line-height: 1.15; }
.route-num strong { font-size: 1.45rem; font-weight: 900; color: var(--brand-ink); font-family: var(--font-display); }
.route-num span { font-size: .72rem; color: var(--ink-3); }

.route-desc { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.route-desc p { margin: 0; font-size: .84rem; color: var(--ink-2); }

.route-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: .7rem;
}

.route-stop {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: .6rem .7rem;
  transition: all .16s ease;
}
.route-stop:hover { border-color: var(--brand); box-shadow: var(--shadow-1); }

.stop-no {
  position: absolute;
  top: -8px;
  left: -6px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: .74rem;
  font-weight: 900;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(255, 106, 0, .4);
}

.stop-media { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #e8edf4; }
.stop-img { width: 100%; height: 100%; object-fit: cover; }

.stop-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.stop-body strong { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop-body small { color: var(--ink-3); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop-leg { color: var(--brand) !important; }

/* ---------------- food strip ---------------- */

.food-strip {
  display: flex;
  gap: .8rem;
  overflow-x: auto;
  padding: .3rem .1rem .6rem;
  scrollbar-width: thin;
}

.food-card {
  flex: 0 0 200px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: all .18s ease;
}
.food-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }

.food-card img { width: 100%; height: 118px; object-fit: cover; }

.food-card.no-img .food-info { border-top: 3px solid var(--accent); }

.food-info { padding: .6rem .75rem .7rem; }
.food-info h4 { margin: 0 0 .2rem; font-size: .92rem; }
.food-info p {
  margin: 0 0 .3rem;
  color: var(--ink-3);
  font-size: .74rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.food-price { color: var(--accent); font-size: .76rem; font-weight: 700; }

/* ---------------- detail sheet ---------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 18, 27, .58);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  animation: fadeIn .2s ease;
}

@keyframes fadeIn { from { opacity: 0; } }

.sheet {
  width: min(880px, 100%);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
  animation: sheetUp .28s cubic-bezier(.2, .7, .3, 1);
  overscroll-behavior: contain;
}

@keyframes sheetUp { from { opacity: 0; transform: translateY(28px); } }

.gallery-main {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0e1622;
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.g-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: all .15s ease;
}
.g-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.g-nav.prev { left: .8rem; }
.g-nav.next { right: .8rem; }

.gallery-counter {
  position: absolute;
  bottom: .8rem;
  right: .9rem;
  background: rgba(14, 22, 34, .72);
  color: #fff;
  border-radius: 999px;
  padding: .2rem .65rem;
  font-size: .74rem;
  font-weight: 700;
}

.sheet-close {
  position: absolute;
  top: .8rem;
  right: .9rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 22, 34, .6);
  color: #fff;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  transition: all .15s ease;
}
.sheet-close:hover { background: rgba(14, 22, 34, .85); transform: rotate(90deg); }

.gallery-thumbs {
  display: flex;
  gap: .45rem;
  padding: .6rem .9rem 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery-thumbs img {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: .55;
  border: 2px solid transparent;
  transition: all .15s ease;
  flex-shrink: 0;
}
.gallery-thumbs img:hover { opacity: .85; }
.gallery-thumbs img.active { opacity: 1; border-color: var(--brand); }

.sheet-content { padding: 1.2rem 1.5rem 5.5rem; }

.sheet-head { margin-bottom: 1rem; }
.sheet-title h2 { margin: 0 0 .3rem; font-size: 1.55rem; font-weight: 900; font-family: var(--font-display); }
.sheet-sub { margin: 0 0 .6rem; color: var(--ink-3); font-size: .84rem; }
.sheet-chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .6rem;
  margin-bottom: 1.1rem;
}

.fact {
  background: #f6f8fc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .6rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.fact-label { color: var(--ink-3); font-size: .72rem; }
.fact-value { font-size: .86rem; line-height: 1.4; }

.sheet-section { border-top: 1px solid var(--line); padding: 1rem 0 .4rem; }
.sheet-section h4 {
  margin: 0 0 .6rem;
  font-size: 1.02rem;
  font-weight: 900;
}
.sheet-section h4::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: .95em;
  margin-right: .5rem;
  vertical-align: -0.12em;
  border-radius: 2px;
  background: var(--brand);
}

.sheet-desc { margin: 0 0 .6rem; line-height: 1.85; color: var(--ink-2); font-size: .92rem; }

.story-box {
  background: linear-gradient(140deg, #fff8ef, #fff4e4);
  border: 1px solid #f6e2c3;
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  margin: .6rem 0;
}
.story-box h5 { margin: 0 0 .35rem; color: #b45309; font-size: .82rem; }
.story-box p { margin: 0; font-size: .86rem; line-height: 1.75; color: #78350f; }

.significance { color: var(--ink-2); font-size: .86rem; font-style: italic; border-left: 3px solid var(--brand); padding-left: .7rem; }

.info-row { display: flex; gap: .8rem; margin-bottom: .55rem; }
.info-label {
  flex-shrink: 0;
  width: 62px;
  color: var(--brand-ink);
  font-size: .8rem;
  font-weight: 700;
  padding-top: .1em;
}
.info-row p { margin: 0; font-size: .86rem; line-height: 1.7; color: var(--ink-2); }

.food-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .86rem;
}
.food-row:last-child { border-bottom: 0; }
.food-row span { color: var(--ink-3); font-size: .78rem; text-align: right; }

.customs { margin-bottom: .6rem; }
.customs h5 { margin: 0 0 .3rem; font-size: .82rem; }
.customs.dos h5 { color: var(--success); }
.customs.donts h5 { color: var(--danger); }
.customs ul { margin: 0; padding-left: 1.2rem; font-size: .84rem; line-height: 1.8; color: var(--ink-2); }

.event-row { display: flex; flex-direction: column; gap: .15rem; padding: .4rem 0; font-size: .86rem; }
.event-row span { color: var(--ink-2); font-size: .82rem; line-height: 1.6; }

.sheet-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: .6rem;
  padding: .8rem 1.5rem;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.sheet-actions .btn { flex: 1; padding: .6rem .5rem; font-size: .86rem; }

/* ---------------- toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 16px);
  z-index: 200;
  background: rgba(20, 28, 39, .92);
  color: #fff;
  border-radius: 12px;
  padding: .65rem 1.2rem;
  font-size: .88rem;
  opacity: 0;
  pointer-events: none;
  transition: all .25s cubic-bezier(.2, .7, .3, 1);
  max-width: min(90vw, 480px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success { background: rgba(13, 157, 107, .95); }
.toast.warning { background: rgba(217, 119, 6, .95); }
.toast.error { background: rgba(220, 38, 38, .95); }

/* ---------------- footer ---------------- */

.footer {
  text-align: center;
  padding: 2rem 0 .5rem;
  color: var(--ink-3);
}
.footer p { margin: .2rem 0; font-size: .84rem; }

/* ---------------- responsive ---------------- */

@media (max-width: 760px) {
  .topbar-inner { padding: .5rem .8rem; gap: .6rem; }
  .brand-text span { display: none; }
  .topbar-actions { display: none; }
  .hero { min-height: 360px; }
  .hero-inner { padding: 3.2rem .9rem 1.5rem; }
  .hero-stats { gap: 1.3rem; }
  .hero-stat strong { font-size: 1.35rem; }
  .wrap { padding: .9rem .8rem 2.4rem; }
  .panel { padding: 1rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
  .modal { padding: 0; align-items: flex-end; }
  .sheet { max-height: 96vh; border-radius: 18px 18px 0 0; }
  .sheet-content { padding: 1rem 1rem 5.2rem; }
  .sheet-actions { padding: .7rem 1rem; }
  .route-summary { flex-direction: column; align-items: flex-start; }
  .hero-search { flex-direction: column; }
  .hero-locate { width: 100%; }
}
