/* ============================================
   Seoul & Busan Travel Map
   Design System: Hand-drawn Doodle + Dopamine
   Primary: Blue | Accents: Yellow, Pink, Mint
   ============================================ */

/* ---- Google Fonts Import ---- */
@import url('https://fonts.googleapis.com/css2?family=Gaegu:wght@300;400;700&family=Noto+Sans+KR:wght@400;500;700;900&family=Nunito:wght@400;600;700;800&family=ZCOOL+KuaiLe&display=swap');

/* ---- Design Tokens ---- */
:root {
  /* Primary Blue Palette */
  --blue-primary: #3b82f6;
  --blue-deep: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-light: #93c5fd;
  --blue-pale: #dbeafe;
  --blue-mist: #eff6ff;
  --blue-bg: #f0f8ff;

  /* Dopamine Accents */
  --yellow: #fcd34d;
  --yellow-deep: #f59e0b;
  --coral: #fb7185;
  --coral-deep: #e11d48;
  --mint: #34d399;
  --mint-deep: #059669;
  --purple: #a78bfa;
  --orange: #fb923c;

  /* Neutrals */
  --ink: #1e293b;
  --slate: #475569;
  --slate-light: #94a3b8;
  --cloud: #f1f5f9;
  --paper: #fffef9;
  --white: #ffffff;
  --line: #e2e8f0;

  /* Typography */
  --font-hand: 'Gaegu', 'ZCOOL KuaiLe', 'Noto Sans KR', cursive;
  --font-body: 'Nunito', 'Noto Sans KR', sans-serif;
  --font-kr: 'Noto Sans KR', sans-serif;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(59, 130, 246, 0.12);
  --shadow-card: 0 8px 30px rgba(30, 58, 138, 0.10);
  --shadow-lift: 0 12px 40px rgba(30, 58, 138, 0.18);
  --shadow-sticker: 2px 4px 12px rgba(0, 0, 0, 0.12);

  /* Radii */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --maxw: 1200px;
  --nav-h: 68px;
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--blue-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-deep);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--blue-primary);
}

ul {
  list-style: none;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-hand);
  line-height: 1.3;
  color: var(--blue-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { font-size: 1rem; color: var(--slate); }

.section-title {
  font-family: var(--font-hand);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--blue-dark);
  text-align: center;
  position: relative;
  display: inline-block;
  padding: 0 16px 8px;
  margin-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 6px;
  background: var(--yellow);
  border-radius: var(--r-pill);
  opacity: 0.7;
}

.section-subtitle {
  text-align: center;
  color: var(--slate);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ---- Layout Helpers ---- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-bg-wave {
  background:
    radial-gradient(ellipse at top, var(--blue-pale) 0%, transparent 60%),
    var(--blue-bg);
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px dashed var(--blue-light);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  max-width: var(--maxw);
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-deep);
  white-space: nowrap;
}

.nav-logo .logo-emoji {
  font-size: 1.6rem;
  filter: drop-shadow(1px 2px 0 var(--blue-light));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-menu a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate);
  transition: all 0.2s var(--ease);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--blue-pale);
  color: var(--blue-deep);
}

.nav-cta {
  background: var(--blue-primary);
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  transition: all 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--blue-deep);
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--white);
    padding: 16px;
    gap: 4px;
    border-bottom: 2px dashed var(--blue-light);
    box-shadow: var(--shadow-card);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  .nav-toggle {
    display: block;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-primary);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  background: var(--blue-deep);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.45);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-deep);
  border: 2.5px solid var(--blue-light);
}

.btn-secondary:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  transform: translateY(-2px);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--blue-dark);
  box-shadow: 0 6px 20px rgba(252, 211, 77, 0.4);
}

.btn-yellow:hover {
  background: var(--yellow-deep);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}

.btn-coral:hover {
  background: var(--coral-deep);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Sticker Label ---- */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-hand);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sticker);
  transform: rotate(-2deg);
}

.sticker-blue { background: var(--blue-primary); color: var(--white); }
.sticker-yellow { background: var(--yellow); color: var(--blue-dark); }
.sticker-coral { background: var(--coral); color: var(--white); }
.sticker-mint { background: var(--mint); color: var(--blue-dark); }
.sticker-purple { background: var(--purple); color: var(--white); }
.sticker-orange { background: var(--orange); color: var(--white); }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--blue-pale);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--blue-light);
}

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .card-grid-2, .card-grid-3, .card-grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .card-grid-3, .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- District Card (city page area entries) ---- */
.district-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--blue-pale);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
}

.district-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow-lift);
  border-color: var(--blue-primary);
}

.district-card .district-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.district-card .district-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.3) 0%, transparent 60%);
}

.district-card .district-body {
  padding: 20px;
}

.district-card .district-name {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.district-card .district-name-en {
  font-size: 0.85rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.district-card .district-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.district-card .district-tag {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--blue-pale);
  color: var(--blue-deep);
}

/* ---- Hero / Map ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--nav-h) 0 40px;
  background:
    radial-gradient(ellipse at 20% 30%, var(--blue-pale) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, #fef3c7 0%, transparent 50%),
    linear-gradient(180deg, var(--blue-mist) 0%, var(--blue-bg) 100%);
  overflow: hidden;
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--blue-dark);
  margin-bottom: 12px;
  text-shadow: 2px 4px 0 var(--blue-pale);
}

.hero .hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--slate);
  margin-bottom: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero .hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--slate);
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Map Container ---- */
.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.korea-map-svg {
  width: 100%;
  height: auto;
}

.city-marker {
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.city-marker:hover .marker-pin {
  transform: scale(1.2);
}

.marker-pin {
  transform-origin: bottom center;
  transition: transform 0.3s var(--ease);
}

.marker-label {
  font-family: var(--font-hand);
  font-size: 20px;
  font-weight: 700;
  pointer-events: none;
}

@keyframes markerBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.marker-pin {
  animation: markerBounce 2s ease-in-out infinite;
}

.city-marker:nth-child(2) .marker-pin {
  animation-delay: 0.5s;
}

/* ---- Section Divider ---- */
.divider-wave {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--blue-light);
  font-size: 1.5rem;
}

.divider-wave::before,
.divider-wave::after {
  content: '';
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--blue-light) 0 12px, transparent 12px 24px);
  max-width: 200px;
}

/* ---- Info Block ---- */
.info-block {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border-left: 6px solid var(--blue-primary);
}

.info-block h3 {
  color: var(--blue-deep);
  margin-bottom: 12px;
}

/* ---- Highlight Grid ---- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.highlight-item {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: all 0.25s var(--ease);
  border: 2px solid transparent;
}

.highlight-item:hover {
  border-color: var(--blue-light);
  transform: translateY(-4px);
}

.highlight-item .hi-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.highlight-item .hi-title {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--blue-deep);
}

.highlight-item .hi-desc {
  font-size: 0.9rem;
  color: var(--slate);
  margin-top: 4px;
}

/* ---- Module Section (district detail pages) ---- */
.module-section {
  margin-bottom: 60px;
  scroll-margin-top: 80px;
}

.module-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.module-header .module-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.module-header h3 {
  font-family: var(--font-hand);
  color: var(--blue-dark);
}

.module-header .module-en {
  font-size: 0.8rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Attraction / Food / Shop Item ---- */
.item-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--blue-pale);
  transition: all 0.25s var(--ease);
}

.item-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-3px);
}

.item-card .item-name {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--blue-deep);
  margin-bottom: 6px;
}

.item-card .item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.item-card .item-meta span {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
}

.meta-time { background: #fef3c7; color: #92400e; }
.meta-price { background: #fce7f3; color: #9f1239; }
.meta-transport { background: #d1fae5; color: #065f46; }
.meta-duration { background: #dbeafe; color: #1e40af; }

.item-card .item-desc {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.6;
}

/* ---- Hotel Card ---- */
.hotel-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--blue-pale);
  transition: all 0.3s var(--ease);
}

.hotel-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-4px);
}

.hotel-card .hotel-banner {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}

.hotel-card .hotel-tier {
  position: absolute;
  top: 12px;
  right: 12px;
}

.hotel-card .hotel-body {
  padding: 20px;
}

.hotel-card .hotel-name {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--blue-dark);
}

.hotel-card .hotel-type {
  font-size: 0.82rem;
  color: var(--slate-light);
  margin-bottom: 10px;
}

.hotel-card .hotel-info {
  font-size: 0.88rem;
  color: var(--slate);
}

.hotel-card .hotel-info li {
  padding: 4px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.hotel-card .hotel-info li::before {
  content: '▸';
  color: var(--blue-primary);
  flex-shrink: 0;
}

.hotel-card .hotel-pros-cons {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hotel-card .pro-tag,
.hotel-card .con-tag {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.pro-tag { background: #d1fae5; color: #065f46; }
.con-tag { background: #fee2e2; color: #991b1b; }

/* ---- Budget Calculator ---- */
.budget-calculator {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-lift);
  border: 2px solid var(--blue-pale);
  max-width: 720px;
  margin: 0 auto;
}

.budget-form-group {
  margin-bottom: 24px;
}

.budget-form-group label {
  display: block;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
  font-family: var(--font-hand);
  font-size: 1.2rem;
}

.budget-form-group input,
.budget-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--blue-pale);
  border-radius: var(--r-md);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--blue-mist);
  transition: border-color 0.2s var(--ease);
}

.budget-form-group input:focus,
.budget-form-group select:focus {
  outline: none;
  border-color: var(--blue-primary);
  background: var(--white);
}

.tier-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tier-option {
  flex: 1;
  min-width: 120px;
  padding: 16px;
  border-radius: var(--r-md);
  border: 2.5px solid var(--blue-pale);
  background: var(--blue-mist);
  cursor: pointer;
  text-align: center;
  transition: all 0.25s var(--ease);
  font-weight: 700;
}

.tier-option:hover {
  border-color: var(--blue-light);
}

.tier-option.selected {
  border-color: var(--blue-primary);
  background: var(--blue-pale);
  color: var(--blue-deep);
  transform: scale(1.03);
}

.tier-option .tier-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 4px;
}

.budget-result {
  margin-top: 28px;
  display: none;
}

.budget-result.visible {
  display: block;
}

.budget-result-card {
  background: linear-gradient(135deg, var(--blue-mist), var(--blue-pale));
  border-radius: var(--r-lg);
  padding: 28px;
  border: 2px solid var(--blue-light);
}

.budget-total {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px dashed var(--blue-light);
}

.budget-total .total-label {
  font-size: 0.95rem;
  color: var(--slate);
}

.budget-total .total-amount {
  font-family: var(--font-hand);
  font-size: 3rem;
  color: var(--blue-deep);
  font-weight: 700;
}

.budget-breakdown {
  display: grid;
  gap: 12px;
}

.budget-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}

.budget-line .bl-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.budget-line .bl-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.budget-line .bl-name {
  font-weight: 600;
  color: var(--slate);
  font-size: 0.95rem;
}

.budget-line .bl-amount {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--blue-deep);
}

.budget-disclaimer {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fffbeb;
  border-radius: var(--r-md);
  border-left: 4px solid var(--yellow);
  font-size: 0.85rem;
  color: #92400e;
}

/* ---- Tab Navigation (district page modules) ---- */
.module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  position: sticky;
  top: var(--nav-h);
  background: rgba(240, 248, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  z-index: 50;
  border-radius: var(--r-pill);
}

.module-tab {
  padding: 8px 20px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 2px solid var(--blue-pale);
  color: var(--slate);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.module-tab:hover,
.module-tab.active {
  background: var(--blue-primary);
  color: var(--white);
  border-color: var(--blue-primary);
}

/* ---- Footer ---- */
.footer {
  background: var(--blue-dark);
  color: var(--blue-pale);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-brand .footer-logo {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--blue-light);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: var(--blue-light);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(147, 197, 253, 0.2);
  font-size: 0.85rem;
  color: var(--slate-light);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--slate-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--blue-deep);
  font-weight: 600;
}

.breadcrumb .sep {
  color: var(--slate-light);
}

/* ---- Page Header (district pages) ---- */
.page-header {
  padding: calc(var(--nav-h) + 40px) 0 40px;
  background:
    radial-gradient(ellipse at top, var(--blue-pale) 0%, transparent 60%),
    var(--blue-bg);
  text-align: center;
}

.page-header .ph-icon {
  font-size: 4rem;
  margin-bottom: 12px;
}

.page-header h1 {
  margin-bottom: 8px;
}

.page-header .ph-en {
  font-size: 1rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.page-header .ph-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- Itinerary Timeline ---- */
.itinerary-day {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--blue-pale);
  margin-bottom: 24px;
}

.itinerary-day .day-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--blue-pale);
}

.itinerary-day .day-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.itinerary-timeline {
  position: relative;
  padding-left: 28px;
}

.itinerary-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: repeating-linear-gradient(180deg, var(--blue-light) 0 8px, transparent 8px 16px);
}

.itinerary-stop {
  position: relative;
  padding-bottom: 20px;
}

.itinerary-stop::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-primary);
}

.itinerary-stop .stop-time {
  font-family: var(--font-hand);
  color: var(--blue-deep);
  font-size: 1.1rem;
}

.itinerary-stop .stop-name {
  font-weight: 700;
  color: var(--ink);
}

.itinerary-stop .stop-note {
  font-size: 0.88rem;
  color: var(--slate);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s var(--ease-out) both;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-anim {
  animation: floatY 4s ease-in-out infinite;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

/* ---- Doodle Background Pattern ---- */
.doodle-bg {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 8%),
    radial-gradient(circle at 90% 80%, rgba(252, 211, 77, 0.08) 0%, transparent 8%),
    radial-gradient(circle at 50% 50%, rgba(52, 211, 153, 0.05) 0%, transparent 6%);
}

/* ---- Photo Spot Card ---- */
.photo-spot-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--blue-pale);
  transition: all 0.25s var(--ease);
}

.photo-spot-card:hover {
  border-color: var(--coral);
  transform: translateY(-3px) rotate(1deg);
}

.photo-spot-card .ps-banner {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}

.photo-spot-card .ps-body {
  padding: 16px;
}

.photo-spot-card .ps-name {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--blue-deep);
  margin-bottom: 4px;
}

.photo-spot-card .ps-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  background: #fce7f3;
  color: var(--coral-deep);
}

.photo-spot-card .ps-tip {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 8px;
}

/* ---- Season Badges ---- */
.season-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.season-badge {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid;
}

.season-spring { background: #fce7f3; color: #be185d; border-color: #f9a8d4; }
.season-summer { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
.season-autumn { background: #fed7aa; color: #9a3412; border-color: #fb923c; }
.season-winter { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }

/* ---- Responsive Misc ---- */
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .budget-calculator { padding: 24px; }
  .card { padding: 20px; }
  .module-tabs { position: static; }
}

/* ============================================
   V2 ITERATION — 2026-08 Upgrade
   实景图 / 手绘示意图 / 网红店 / 高德导航 / TOP10
   ============================================ */

/* ---- 5. 手绘素材放大 + 饱和度提升 ---- */
.page-header .ph-icon { font-size: 5.5rem; }
.sticker { font-size: 1rem; padding: 6px 18px; }
.ps-banner, .bl-icon { filter: saturate(1.25); }
.sticker-yellow, .sticker-blue, .sticker-coral, .sticker-mint { filter: saturate(1.18); }
.card-emoji, .zone-icon { font-size: 3.2rem; }
.item-card .item-icon, .hotel-banner { font-size: 2.6rem; }

/* ---- 9. 区域页标题手绘风景插画横幅 ---- */
.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 18px auto 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 3px solid var(--white);
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
}
.hero-illustration svg { display: block; width: 100%; height: auto; }
.hero-caption {
  font-family: var(--font-hand);
  color: var(--blue-dark);
  font-size: 1.05rem;
  margin-top: 10px;
  opacity: 0.85;
}

/* ---- 6/8. 实景图卡（含加载失败兜底） ---- */
.item-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md) var(--r-md) 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}
.item-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.15) contrast(1.03);
  transition: transform 0.5s var(--ease-out);
}
.item-card:hover .item-photo img,
.photo-card:hover .item-photo img { transform: scale(1.06); }
.item-photo .photo-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.4rem;
  background: linear-gradient(135deg, #dbeafe, #fef3c7);
}
.item-photo .photo-badge {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-dark);
  font-size: 0.72rem; font-weight: 800;
  padding: 3px 10px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sticker);
}
.item-card.has-photo { padding: 0; overflow: hidden; }
.item-card.has-photo .item-body { padding: 18px 20px 20px; }
.photo-note {
  font-size: 0.72rem; color: var(--slate-light);
  margin-top: 6px; font-style: italic;
}

/* ---- 美食/酒店实景图 ---- */
.card-food-img {
  width: 100%; height: 200px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: 8px;
  filter: saturate(1.1) contrast(1.03);
  transition: transform 0.4s var(--ease-out);
}
.item-card:hover .card-food-img { transform: scale(1.04); }
.card-hotel-img {
  width: 100%; height: 220px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: 12px;
  filter: saturate(1.1) contrast(1.03);
  transition: transform 0.4s var(--ease-out);
}
.card:hover .card-hotel-img { transform: scale(1.04); }
.card-area-thumb {
  width: 80px; height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  filter: saturate(1.1);
}
.card-city-thumb {
  width: 100%; height: 180px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: 14px;
  filter: saturate(1.1) contrast(1.03);
}

/* ---- 3. 高德导航按钮 ---- */
.amap-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: var(--white) !important;
  font-size: 0.8rem; font-weight: 800;
  padding: 6px 14px; border-radius: var(--r-pill);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
  border: 2px solid var(--white);
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.amap-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 20px rgba(29, 78, 216, 0.45); color: var(--white); }
.amap-btn.amap-nav { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35); }
.amap-btn.amap-nav:hover { box-shadow: 0 8px 20px rgba(5, 150, 105, 0.45); }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---- 7. 手绘地理位置示意图 ---- */
.sketch-map-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  border: 3px solid var(--white);
  overflow: hidden;
  padding: 24px;
}
.sketch-map-card svg { width: 100%; height: auto; display: block; }
.sketch-map-card .map-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px;
  border-top: 2px dashed var(--blue-pale);
  font-size: 0.8rem; color: var(--slate);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---- 出片穿搭推荐 ---- */
.outfit-card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  border: 2px solid #fce7f3;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.outfit-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(190, 24, 93, 0.12); }
.outfit-style {
  font-size: 1.05rem; font-weight: 800;
  color: #be185d;
  margin-bottom: 8px;
}
.outfit-desc {
  font-size: 0.85rem; color: var(--slate);
  margin-bottom: 10px; line-height: 1.6;
}
.outfit-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem; font-weight: 700;
  margin-right: 6px; margin-bottom: 4px;
}
.outfit-tag.color { background: #fce7f3; color: #be185d; }
.outfit-tag.location { background: #e0e7ff; color: #4338ca; }
.outfit-tag.time { background: #fef3c7; color: #92400e; }
.outfit-tips {
  font-size: 0.82rem; color: var(--slate);
  margin-top: 10px;
  padding: 10px 12px;
  background: #fdf2f8;
  border-radius: 8px;
  border-left: 3px solid #ec4899;
}

/* ---- 4. 网红店铺卡 ---- */
.hot-shop-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  border-left: 5px solid var(--coral);
  transition: transform 0.3s var(--ease);
}
.hot-shop-card:hover { transform: translateY(-4px); }
.hot-shop-rank {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 8px;
  background: var(--coral); color: var(--white);
  font-family: var(--font-hand); font-size: 1.15rem; font-weight: 700;
  border-radius: var(--r-sm); box-shadow: var(--shadow-sticker);
  margin-right: 10px;
}
.hot-shop-name { font-family: var(--font-hand); font-size: 1.35rem; color: var(--blue-dark); display: inline; }
.hot-shop-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hot-shop-meta .tag {
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px;
  border-radius: var(--r-pill); background: #fce7f3; color: #be185d;
}
.hot-shop-desc { font-size: 0.92rem; color: var(--slate); margin-top: 10px; }

/* ---- 10. 购物 TOP10 榜单 ---- */
.top10-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.top10-item:hover { transform: translateX(6px); border-color: var(--blue-pale); }
.top10-rank {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-hand); font-size: 1.6rem; font-weight: 700;
  border-radius: 50%;
  background: var(--blue-pale); color: var(--blue-dark);
  border: 3px dashed var(--blue-light);
}
.top10-item:nth-child(1) .top10-rank { background: var(--yellow); color: #92400e; border-color: var(--yellow-deep); }
.top10-item:nth-child(2) .top10-rank { background: #e2e8f0; color: var(--slate); border-color: var(--slate-light); }
.top10-item:nth-child(3) .top10-rank { background: #fed7aa; color: #9a3412; border-color: var(--orange); }
.top10-name { font-family: var(--font-hand); font-size: 1.4rem; color: var(--blue-dark); }
.top10-price {
  display: inline-block; margin-left: 10px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 800;
  background: #fef3c7; color: #b45309;
  padding: 2px 12px; border-radius: var(--r-pill);
}
.top10-desc { font-size: 0.92rem; color: var(--slate); margin-top: 6px; }
.top10-reason {
  margin-top: 8px; font-size: 0.88rem; color: #1e3a8a;
  background: var(--blue-mist); border-radius: var(--r-md);
  padding: 8px 14px;
}
.top10-reason::before { content: "💡 选购理由："; font-weight: 800; }
.top10-list { display: flex; flex-direction: column; gap: 16px; }

/* ---- 2. 智能行程生成器 ---- */
.planner-panel {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift);
  border: 3px solid var(--white);
  padding: 28px;
}
.planner-controls {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px; align-items: end;
}
.planner-field label {
  display: block; font-family: var(--font-hand);
  font-size: 1.1rem; color: var(--blue-dark); margin-bottom: 8px;
}
.planner-field select, .planner-field input {
  width: 100%; padding: 10px 14px;
  border: 2px solid var(--blue-pale); border-radius: var(--r-md);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--blue-mist); outline: none;
}
.planner-field select:focus, .planner-field input:focus { border-color: var(--blue-primary); }
.planner-go {
  justify-self: start;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  color: #78350f; font-family: var(--font-hand);
  font-size: 1.25rem; font-weight: 700;
  padding: 10px 34px; border: none; cursor: pointer;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sticker);
  transition: transform 0.25s var(--ease);
}
.planner-go:hover { transform: translateY(-3px) rotate(-1deg); }
.planner-result { margin-top: 28px; }
.planner-empty {
  text-align: center; color: var(--slate-light);
  padding: 28px; font-size: 0.95rem;
}
.planner-summary {
  background: var(--blue-mist); border-radius: var(--r-md);
  padding: 12px 18px; margin-bottom: 18px;
  color: var(--blue-dark); font-weight: 700; font-size: 0.95rem;
}

@media (max-width: 600px) {
  .top10-item { flex-direction: column; }
  .planner-panel { padding: 18px; }
  .hero-illustration { border-width: 2px; }
}
