/* ==========================================================================
   SHANGHAI 2026 TRIP BOOK — Bund Art-Deco Editorial × Daylight Utility
   ========================================================================== */

:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-alt: #EBEEF3;
  --ink-deep: #0C1826;
  --ink-navy: #16263A;
  --ink: #17212B;
  --ink-muted: #4D5B69;
  --ink-faint: #758391;
  --border: #DCE2E9;
  --border-strong: #C5CED8;

  --jade: #0E6F5C;
  --jade-soft: #E6F3F0;
  --jade-hover: #0A5748;
  --brass: #B88B4A;
  --brass-light: #DFC08E;
  --brass-soft: #FBF5EA;
  --crimson: #B7352A;
  --crimson-soft: #FCECEB;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(12, 24, 38, 0.05);
  --shadow-md: 0 8px 24px rgba(12, 24, 38, 0.08);
  --shadow-lg: 0 18px 42px rgba(12, 24, 38, 0.14);

  --font-sans: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-serif: "Gowun Batang", "Noto Serif KR", Georgia, serif;
  --font-display: "Playfair Display", "Gowun Batang", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.62;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--jade);
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Sticky Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(12, 24, 38, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 139, 74, 0.28);
  color: #F4F6F9;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.brand-monogram {
  width: 36px;
  height: 36px;
  border: 1px solid var(--brass);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--brass-light);
  background: rgba(184, 139, 74, 0.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #FFFFFF;
}

.brand-sub {
  font-size: 11px;
  color: #A9B7C6;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }

.nav-pill {
  background: transparent;
  border: 1px solid transparent;
  color: #D2DCE6;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.nav-pill:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.nav-count {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(184, 139, 74, 0.25);
  color: var(--brass-light);
  font-family: var(--font-mono);
  font-size: 11px;
}

.fav-counter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(184, 139, 74, 0.5);
  background: rgba(184, 139, 74, 0.14);
  color: var(--brass-light);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.fav-counter-btn:hover {
  background: rgba(184, 139, 74, 0.28);
  color: #FFFFFF;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: var(--ink-deep);
  color: #F4F7FA;
  padding: 64px 0 54px;
  overflow: hidden;
  border-bottom: 3px solid var(--brass);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: url("https://thumb.wikimedia.org/wikipedia/commons/thumb/4/40/A_night_at_the_Bund_-_Shanghai.jpg/960px-A_night_at_the_Bund_-_Shanghai.jpg?utm_source=commons.wikimedia.org&utm_campaign=imageinfo&utm_content=thumbnail");
  background-size: cover;
  background-position: center 42%;
  opacity: 0.28;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 24, 38, 0.72) 0%, rgba(12, 24, 38, 0.88) 65%, rgba(12, 24, 38, 0.98) 100%),
    radial-gradient(circle at 82% 18%, rgba(184, 139, 74, 0.22), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.deco-rule {
  width: 28px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brass-light);
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.sp-br { display: none; }

.hero-lead {
  max-width: 720px;
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.7;
  color: #CED8E2;
}

.hero-lead strong {
  color: #FFFFFF;
  font-weight: 600;
}

.flight-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.flight-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}

.flight-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.tag-jade { background: rgba(14, 111, 92, 0.35); color: #8FE5D3; border: 1px solid rgba(143, 229, 211, 0.3); }
.tag-brass { background: rgba(184, 139, 74, 0.28); color: #F2D7AA; border: 1px solid rgba(242, 215, 170, 0.3); }
.tag-navy { background: rgba(121, 165, 216, 0.22); color: #BDD8F7; border: 1px solid rgba(189, 216, 247, 0.28); }
.tag-crimson { background: rgba(183, 53, 42, 0.32); color: #FFBCB6; border: 1px solid rgba(255, 188, 182, 0.28); }

.flight-main {
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.45;
  margin-bottom: 4px;
}

.flight-meta {
  font-size: 12px;
  color: #A6B6C7;
}

/* ---------------- Section Layout ---------------- */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--jade);
  margin-bottom: 6px;
}

.section-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-deep);
}

.section-desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
  max-width: 720px;
}

/* ---------------- Buttons ---------------- */
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.16s ease;
}
.btn-ghost:hover {
  border-color: var(--ink-deep);
  background: var(--ink-deep);
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.16s ease;
}
.btn-outline:hover {
  border-color: var(--ink-deep);
  background: var(--bg);
}

.btn-jade {
  background: var(--jade);
  border: 1px solid var(--jade);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.16s ease;
}
.btn-jade:hover { background: var(--jade-hover); }
.btn-jade.is-fav {
  background: var(--brass);
  border-color: var(--brass);
}

/* ---------------- Configurator ---------------- */
.config-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.config-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.config-group.full-span {
  grid-column: 1 / -1;
}

.config-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}

.config-label {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-deep);
}

.config-hint {
  font-size: 12px;
  color: var(--ink-faint);
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt-pill {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--ink);
  transition: all 0.16s ease;
  flex: 1 1 180px;
}

.opt-pill:hover {
  border-color: var(--jade);
  background: #FFFFFF;
}

.opt-pill.active {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(12, 24, 38, 0.18);
}

.opt-pill-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

.opt-pill-sub {
  display: block;
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.opt-pill.active .opt-pill-sub {
  color: #B8C7D6;
}

.config-summary-bar {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--jade);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hotel-memo-wrap {
  flex: 1 1 320px;
}

.memo-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

.memo-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--bg);
}

.memo-input:focus {
  outline: none;
  border-color: var(--jade);
  background: #FFFFFF;
}

.live-metrics {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 11.5px;
  color: var(--ink-faint);
}

.metric-val {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-deep);
}

/* ---------------- Day Tabs & Itinerary Cards ---------------- */
.day-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.day-tab {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.16s ease;
}

.day-tab:hover {
  border-color: var(--ink-deep);
  color: var(--ink-deep);
}

.day-tab.active {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  color: #FFFFFF;
}

.itinerary-days {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.day-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.day-header {
  background: var(--ink-deep);
  color: #FFFFFF;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--brass);
}

.day-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.day-title {
  margin: 3px 0 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
}

.day-route-note {
  font-size: 13px;
  color: #C7D4E0;
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.day-slots-grid {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ---------------- Universal Interactive Place Card ---------------- */
.place-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
}

.place-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--jade);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #DCE2E9;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.place-card:hover .card-media img {
  transform: scale(1.04);
}

.card-media-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}

.card-time-chip {
  background: rgba(12, 24, 38, 0.86);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.card-cat-chip {
  background: rgba(255, 255, 255, 0.93);
  color: var(--ink-deep);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
}

.card-fav-btn {
  pointer-events: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(12, 24, 38, 0.72);
  color: #FFFFFF;
  font-size: 15px;
  display: grid;
  place-items: center;
  transition: all 0.16s ease;
  flex-shrink: 0;
}

.card-fav-btn:hover {
  background: var(--ink-deep);
  transform: scale(1.08);
}

.card-fav-btn.is-fav {
  background: var(--brass);
  border-color: var(--brass-light);
  color: #FFFFFF;
}

.card-alert-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(183, 53, 42, 0.92);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
}

.card-alert-bar.alert-jade {
  background: rgba(14, 111, 92, 0.92);
}

.card-alert-bar.alert-brass {
  background: rgba(146, 102, 42, 0.94);
}

.card-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-area {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--jade);
  margin-bottom: 3px;
}

.card-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-deep);
  line-height: 1.32;
}

.card-sub {
  font-size: 12px;
  color: var(--ink-faint);
  margin: 2px 0 8px;
}

.card-summary {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.52;
}

.card-menu-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  font-size: 12.2px;
  color: var(--ink);
}

.card-menu-preview-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-menu-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.45;
}

.card-menu-price {
  font-family: var(--font-mono);
  color: var(--jade);
  font-weight: 600;
  white-space: nowrap;
}

.card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}

.card-budget {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
}

.card-cta {
  font-weight: 700;
  color: var(--jade);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.place-card:hover .card-cta {
  text-decoration: underline;
}

/* ---------------- Explore Directory ---------------- */
.search-wrap {
  flex: 0 1 360px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

.search-input:focus {
  outline: none;
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(14, 111, 92, 0.12);
}

.notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-size: 13.8px;
}

.notice-crimson {
  background: var(--crimson-soft);
  border: 1px solid rgba(183, 53, 42, 0.25);
  color: #5C1B15;
}

.notice-badge {
  background: var(--crimson);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
}

.category-bar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cat-chip {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.cat-chip:hover {
  border-color: var(--jade);
}

.cat-chip.active {
  background: var(--jade);
  border-color: var(--jade);
  color: #FFFFFF;
}

.explore-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-muted);
  flex-wrap: wrap;
}

.result-count {
  font-weight: 700;
  color: var(--ink-deep);
}

.spot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.empty-state {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-muted);
}

/* ---------------- Prep Checklist ---------------- */
.prep-progress-box {
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.prep-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 7px;
  color: var(--ink-deep);
}

.prep-bar-track {
  height: 8px;
  background: var(--surface-alt);
  border-radius: 999px;
  overflow: hidden;
}

.prep-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--jade);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.prep-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.prep-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.prep-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.prep-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-deep);
}

.prep-stage-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--jade-soft);
  color: var(--jade);
}

.prep-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prep-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.14s ease;
}

.prep-item:hover {
  background: var(--bg);
}

.prep-item.done {
  opacity: 0.62;
}

.prep-item.done .prep-item-title {
  text-decoration: line-through;
}

.prep-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--jade);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.prep-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-deep);
  display: block;
}

.prep-item-desc {
  font-size: 12.6px;
  color: var(--ink-muted);
  margin-top: 2px;
  display: block;
  line-height: 1.48;
}

.prep-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--jade);
}
.prep-link:hover { text-decoration: underline; }

/* ---------------- Calculator & FAQ ---------------- */
.qa-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 22px;
  align-items: start;
}

.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--jade);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 78px;
}

.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.calc-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--ink-deep);
}

.rate-badge {
  font-size: 11px;
  background: var(--brass-soft);
  color: #825E27;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.calc-row label, .calc-rate-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

.calc-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 20px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--ink-deep);
  background: var(--bg);
}

.calc-input:focus, .calc-input-sm:focus {
  outline: none;
  border-color: var(--jade);
  background: #FFFFFF;
}

.calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}

.preset-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  color: var(--ink);
}
.preset-chip:hover {
  border-color: var(--jade);
  color: var(--jade);
}

.calc-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.calc-rate-row label { margin: 0; }

.calc-input-sm {
  width: 100px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 14px;
  text-align: right;
  background: var(--bg);
}

.calc-output {
  background: var(--ink-deep);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 15px 16px;
  margin-bottom: 12px;
}

.calc-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  margin-bottom: 6px;
  color: #C7D4E0;
}

.calc-line.total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 0;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
}

.calc-fee-pill {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  width: 100%;
}

.fee-zero {
  background: rgba(14, 111, 92, 0.35);
  color: #96EBD9;
}

.fee-three {
  background: rgba(183, 53, 42, 0.35);
  color: #FFC6C0;
}

.calc-footnote {
  margin: 0;
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* FAQ */
.faq-search-row {
  margin-bottom: 12px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: 15px 18px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--jade);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
  background: #FAFBFD;
}

.faq-answer {
  padding: 14px 18px 16px;
  font-size: 13.8px;
  color: var(--ink-muted);
  line-height: 1.65;
}

.faq-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--jade);
  background: var(--jade-soft);
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 8px;
  font-weight: 600;
}

/* ---------------- Sources Hub ---------------- */
.sources-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.source-group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.source-group-card h3 {
  margin: 0 0 12px;
  font-size: 15.5px;
  color: var(--ink-deep);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}

.source-hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.source-hub-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--ink);
  transition: background 0.15s ease;
}

.source-hub-list a:hover {
  background: var(--jade-soft);
  color: var(--jade);
}

.source-domain {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  flex-shrink: 0;
}

/* ---------------- Dedicated Detail View (#/place/<id>) ---------------- */
.view-detail {
  min-height: calc(100vh - 64px);
  padding-bottom: 72px;
}

.detail-subnav {
  position: sticky;
  top: 61px;
  z-index: 80;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.detail-subnav-inner {
  padding-top: 11px;
  padding-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--ink-deep);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-back:hover {
  color: var(--jade);
}

.detail-subnav-actions {
  display: flex;
  gap: 8px;
}

.detail-container {
  padding-top: 28px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
}

.detail-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: #DCE2E9;
  cursor: zoom-in;
}

.detail-photo-frame img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.photo-zoom-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(12, 24, 38, 0.82);
  color: #FFFFFF;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.badge-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-jade { background: var(--jade-soft); color: var(--jade); }
.badge-brass { background: var(--brass-soft); color: #8A6228; }
.badge-slate { background: var(--surface-alt); color: var(--ink-muted); }
.badge-crimson { background: var(--crimson-soft); color: var(--crimson); }

.detail-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.24;
  color: var(--ink-deep);
}

.detail-subtitle {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

.detail-verdict {
  background: var(--surface);
  border-left: 4px solid var(--brass);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-deep);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
}

.stat-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-faint);
  margin-bottom: 3px;
}

.stat-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-deep);
  line-height: 1.45;
}

.detail-body-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  align-items: start;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.detail-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--ink-deep);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.detail-prose {
  margin: 0;
  font-size: 14.8px;
  line-height: 1.75;
  color: var(--ink);
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 11px 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.menu-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-deep);
}

.menu-note {
  font-size: 12.8px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.menu-price-col {
  text-align: right;
  flex-shrink: 0;
}

.menu-cny {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--jade);
}

.menu-krw {
  font-size: 11.5px;
  color: var(--ink-faint);
}

.tip-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: var(--ink);
}

.tip-list li::marker {
  color: var(--jade);
}

.source-cards-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.source-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--ink-deep);
  transition: all 0.16s ease;
}

.source-link-card:hover {
  border-color: var(--jade);
  background: var(--jade-soft);
}

.source-link-pub {
  font-size: 11px;
  font-weight: 700;
  color: var(--jade);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.source-link-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-deep);
}

.source-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--jade);
  flex-shrink: 0;
}

.note-textarea {
  width: 100%;
  min-height: 92px;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.8px;
  color: var(--ink);
  background: var(--bg);
  resize: vertical;
}

.note-textarea:focus {
  outline: none;
  border-color: var(--jade);
  background: #FFFFFF;
}

.note-status {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-faint);
}

.related-section {
  margin-top: 32px;
}

.related-section h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink-deep);
  margin: 0 0 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ---------------- Lightbox & Toast & Footer ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 17, 27, 0.92);
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 24px;
  line-height: 1;
}

.lightbox-figure {
  margin: 0;
  max-width: 980px;
  text-align: center;
}

.lightbox-figure img {
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

.lightbox-figure figcaption {
  margin-top: 12px;
  color: #D2DCE6;
  font-size: 13.5px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink-deep);
  color: #FFFFFF;
  border: 1px solid var(--brass);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: all 0.22s ease;
  z-index: 210;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer {
  background: var(--ink-deep);
  color: #B4C2D0;
  padding: 32px 0;
  border-top: 2px solid var(--brass);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner strong {
  color: #FFFFFF;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.footer-note {
  color: #8E9FAF;
  font-size: 12.5px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .flight-strip { grid-template-columns: repeat(2, 1fr); }
  .day-slots-grid, .spot-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .qa-layout { grid-template-columns: 1fr; }
  .calc-card { position: static; }
}

@media (max-width: 860px) {
  .detail-hero-grid, .detail-body-grid { grid-template-columns: 1fr; }
  .detail-photo-frame img { max-height: 380px; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 10px 14px; }
  .main-nav { display: none; }
  .hero { padding: 40px 0 36px; }
  .sp-br { display: inline; }
  .flight-strip { grid-template-columns: 1fr; }
  .config-grid, .prep-groups, .sources-hub-grid { grid-template-columns: 1fr; }
  .day-slots-grid, .spot-grid, .related-grid { grid-template-columns: 1fr; }
  .day-slots-grid { padding: 14px; }
  .detail-stats-grid { grid-template-columns: 1fr; }
  .detail-subnav { top: 57px; }
  .section { padding: 40px 0; }
}
