:root {
  --bg-color: #0a0a0c;
  --bg-darker: #050507;
  --panel-bg: rgba(20, 20, 25, 0.7);
  --panel-bg-solid: #121216;
  --text-main: #f8f1e5;
  --text-muted: #94949a;
  --gold: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --gold-hover: #f1d37e;
  --red-accent: #c43228;
  --red-glow: rgba(196, 50, 40, 0.4);
  --red-dark: #8b1e17;
  --line-color: rgba(212, 175, 55, 0.15);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(15, 15, 20, 0.65);
  --bg-dark: #050507;
  
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Poppins', sans-serif;
  --font-cinzel: 'Cinzel', serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker); 
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3); 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.8); 
}

/* Base Pattern */
.bg-pattern {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  opacity: 0.04;
  background-image: 
    linear-gradient(30deg, #d4af37 12%, transparent 12.5%, transparent 87%, #d4af37 87.5%, #d4af37),
    linear-gradient(150deg, #d4af37 12%, transparent 12.5%, transparent 87%, #d4af37 87.5%, #d4af37),
    linear-gradient(30deg, #d4af37 12%, transparent 12.5%, transparent 87%, #d4af37 87.5%, #d4af37),
    linear-gradient(150deg, #d4af37 12%, transparent 12.5%, transparent 87%, #d4af37 87.5%, #d4af37),
    linear-gradient(60deg, rgba(212,175,55,0.2) 25%, transparent 25.5%, transparent 75%, rgba(212,175,55,0.2) 75%, rgba(212,175,55,0.2)),
    linear-gradient(60deg, rgba(212,175,55,0.2) 25%, transparent 25.5%, transparent 75%, rgba(212,175,55,0.2) 75%, rgba(212,175,55,0.2));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}

/* Particle Background */
.particles-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  pointer-events: none;
}
.particle {
  position: absolute;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(1px);
  animation: float 20s infinite linear;
}
@keyframes float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  20% { opacity: 0.5; }
  80% { opacity: 0.5; }
  100% { transform: translateY(-10vh) translateX(100px); opacity: 0; }
}

/* Header */
.header {
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.8rem 2rem;
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Tokyo Clock */
.tokyo-clock {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-color);
}
.tokyo-clock .label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.tokyo-clock .time {
  font-family: var(--font-cinzel);
  font-size: 0.9rem;
  color: var(--text-main);
  letter-spacing: 1px;
}

/* Lang Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}
.lang-switcher:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 1px;
}
.lang-btn.active { color: var(--gold); text-shadow: 0 0 8px var(--gold-glow); }
.lang-btn:hover { color: var(--text-main); }
.lang-switcher .divider { color: rgba(255,255,255,0.1); font-size: 0.7rem; }

/* Multi-language content visibility */
[lang-en], [lang-jp] { display: none; }
.active-lang { display: block !important; }
span.active-lang { display: inline !important; }


.logo .kanji {
  font-family: var(--font-serif);
  color: var(--red-accent);
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 0 15px var(--red-glow);
}

.logo .en {
  font-family: var(--font-cinzel);
  color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.global-nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.global-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.5rem 0;
}

.global-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition-smooth);
}

.global-nav a:hover { color: var(--gold); }
.global-nav a:hover::after { width: 100%; }

/* Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--red-accent), var(--gold));
  z-index: 2000;
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Main Layout */
.main-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 70px);
}

/* Sidebar Map */
.sidebar-map {
  width: 400px;
  flex-shrink: 0;
  border-right: 1px solid var(--line-color);
  background: rgba(26, 26, 29, 0.6);
  position: relative;
}

.sidebar-inner {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.sidebar-title {
  font-family: var(--font-cinzel);
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}
.sidebar-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Search Bar */
.search-container {
  width: 100%;
  margin-bottom: 2rem;
  position: relative;
}
.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-color);
  border-radius: 20px;
  padding: 0.8rem 1.2rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}
.search-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px var(--gold-glow);
}
.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: var(--panel-bg-solid);
  border: 1px solid var(--line-color);
  border-radius: 12px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.search-result-item {
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-result-item:hover {
  background: rgba(212, 175, 55, 0.1);
}
.search-result-item .name { color: var(--text-main); font-size: 0.9rem; }
.search-result-item .kanji { color: var(--gold); font-size: 0.8rem; opacity: 0.7; }

/* Block Map layout (Same elegant concept, scaled for sidebar) */
.schematic-map {
  display: grid;
  grid-template-columns: repeat(5, 60px);
  grid-template-rows: repeat(6, 60px);
  gap: 10px;
  transform: rotate(-3deg);
}

.region-block {
  background: var(--bg-darker);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.region-block:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  transform: translateY(-3px) scale(1.05);
}

.region-block.active {
  background: rgba(196, 50, 40, 0.15); /* Suble red active bg */
  border-color: var(--red-accent);
  box-shadow: 0 0 20px rgba(196, 50, 40, 0.3);
  transform: scale(1.05);
  z-index: 2;
}

.region-block .kanji { font-family: var(--font-serif); font-size: 1.1rem; color: var(--text-main); }
.region-block .en { font-size: 0.6rem; color: var(--gold); text-transform: uppercase; margin-top: 2px;}
.region-block.active .kanji { color: var(--red-accent); }

/* Map Grid Positions */
.hokkaido { grid-column: 5; grid-row: 1; border-top-right-radius: 12px; }
.tohoku { grid-column: 5; grid-row: 2; height: 80px; }
.kanto { grid-column: 5; grid-row: 3; }
.chubu { grid-column: 4; grid-row: 3; width: 80px; justify-self: end; }
.kansai { grid-column: 3; grid-row: 4; }
.chugoku { grid-column: 2; grid-row: 4; width: 70px; justify-self: end; }
.shikoku { grid-column: 3; grid-row: 5; height: 50px; grid-column-start: 2; margin-left: 50%; }
.kyushu { grid-column: 2; grid-row: 5; border-bottom-left-radius: 12px; }
.okinawa { grid-column: 1; grid-row: 6; border-radius: 50%; width: 55px; height: 55px; align-self: end; }

/* Random Destination Button */
.random-btn {
  margin-top: 4rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.8) 0%, rgba(196, 50, 40, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: #fff;
  font-family: var(--font-cinzel);
  font-size: 1.1rem;
  font-weight: bold;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.random-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 25px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, rgba(212, 175, 55, 1) 0%, rgba(196, 50, 40, 1) 100%);
}

/* Scrollable Content */
.content-scroll {
  flex-grow: 1;
  position: relative;
  padding: 2rem;
}

.content-panel {
  padding: 4rem;
  opacity: 0;
  display: none;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  
  /* Advanced Glassmorphism */
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(212, 175, 55, 0.02);
  overflow: hidden;
}

.content-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.content-panel.active {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Welcome state Image */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: -50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(26,26,29,0) 0%, var(--bg-color) 95%);
}

/* Welcome state */
.hero-intro { text-align: center; position: relative; z-index: 2; margin-top: 2rem; }
.hero-title { font-family: var(--font-cinzel); font-size: 3rem; line-height: 1.3; }
.gold-text { color: var(--gold); }
.decorative-line-center {
  width: 0; height: 2px;
  background: var(--gold);
  margin: 2rem auto;
  transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.content-panel.active .decorative-line-center {
  width: 100px;
}
.hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Featured Section */
.featured-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line-color);
}
.featured-title {
  font-family: var(--font-cinzel);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 2rem;
  text-align: center;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.featured-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.featured-item:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.fi-tag {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red-accent);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.featured-item h4 {
  font-family: var(--font-cinzel);
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.featured-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* Dynamic Region State */
.region-hero {
  position: relative;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-color);
}
.region-kanji-bg {
  position: absolute;
  top: -40px; left: -20px;
  font-family: var(--font-serif);
  font-size: 10rem;
  color: rgba(255,255,255,0.03);
  z-index: -1;
  user-select: none;
}
.region-name {
  font-family: var(--font-cinzel);
  font-size: 4rem;
  background: linear-gradient(135deg, #f4ebd9 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.region-tagline {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--red-accent);
  margin-top: 0.5rem;
  letter-spacing: 2px;
}

.region-trivia-box {
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.trivia-icon {
  font-size: 2rem;
  font-style: normal;
}
.region-fun-fact {
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
}

.content-section {
  margin-bottom: 4rem;
}
.section-title {
  font-family: var(--font-cinzel);
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: var(--line-color);
}

.reading-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  columns: 2;
  column-gap: 3rem;
  text-align: justify;
}

/* Prefectures Grid */
.prefectures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}
.pref-card-btn {
  background: var(--panel-bg-solid);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid var(--red-accent);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.pref-card-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.1), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}
.pref-card-btn:hover {
  background: rgba(212,175,55,0.05);
  border-color: rgba(212, 175, 55, 0.5);
  border-left-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 15px rgba(212, 175, 55, 0.2);
}
.pref-card-btn:hover::before {
  left: 150%;
}
.pref-card-kanji { font-family: var(--font-serif); font-size: 1.5rem; color: var(--text-main); margin-bottom: 0.3rem; transition: color 0.3s; }
.pref-card-en { font-family: var(--font-cinzel); font-size: 0.9rem; color: var(--gold); letter-spacing: 1px; }
.pref-card-btn:hover .pref-card-kanji { color: var(--gold); }

/* Prefecture Deep Dive State */
.back-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: all 0.3s;
}
.back-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-main); border-color: var(--text-main); }

.pref-hero {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 1.5rem;
}
.pref-title-group { display: flex; align-items: baseline; gap: 1rem; }
.pref-kanji { font-family: var(--font-serif); font-size: 3rem; color: var(--red-accent); }
.pref-name { 
  font-family: var(--font-cinzel); 
  font-size: 2.5rem; 
  background: linear-gradient(135deg, #f4ebd9 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pref-overview-text { font-size: 1.15rem; color: var(--text-main); font-weight: 300; }

/* Highlights Grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.highlight-card {
  background: var(--panel-bg-solid);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 1.5rem;
  border-top: 3px solid var(--gold);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}
.highlight-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}
.highlight-card:hover { 
  transform: translateY(-5px); 
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 -5px 15px rgba(212, 175, 55, 0.15);
}
.highlight-card:hover::after {
  left: 150%;
}
.hc-title { font-size: 1.2rem; color: var(--gold); margin-bottom: 0.5rem; }
.hc-desc { font-size: 0.95rem; color: var(--text-muted); }

/* Travel Info & Crafts */
.travel-info-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}
.travel-info-box {
  background: rgba(212, 175, 55, 0.05);
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
  border-radius: 4px;
}
.travel-info-box h5 { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.5rem; font-family: var(--font-cinzel); }
.travel-info-box p { font-size: 0.95rem; color: var(--text-muted); }

.crafts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.craft-item {
  background: rgba(255,255,255,0.03);
  padding: 1rem;
  border-radius: 6px;
  border: 1px dashed rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}
.craft-item:hover {
  background: rgba(212,175,55,0.05);
  border-color: rgba(212,175,55,0.5);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.craft-item h6 { color: var(--text-main); font-size: 1.05rem; margin-bottom: 0.3rem;}
.craft-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4;}

/* Seasons Grid */
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.season-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}
.season-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold);
  transform: translateY(-5px);
}
.season-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.season-icon { font-size: 1.5rem; }
.season-name { font-family: var(--font-cinzel); font-size: 1.1rem; color: var(--gold); }
.season-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Food List */
.dark-section {
  background: rgba(0,0,0,0.3);
  padding: 3rem;
  border-radius: 12px;
}
.food-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.food-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--red-accent);
  border-radius: 6px;
  transition: all 0.3s ease;
}
.food-item:hover {
  background: rgba(196, 50, 40, 0.05);
  border-left-color: var(--gold);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.fi-name { font-weight: 500; font-size: 1.1rem;}
.fi-desc { font-size: 0.9rem; color: var(--text-muted); }

/* Quiz */
.quiz-section {
  background: var(--bg-darker);
  border: 1px solid var(--line-color);
  padding: 3rem;
  border-radius: 8px;
  position: relative;
}
.quiz-badge {
  position: absolute;
  top: -12px;
  left: 2rem;
  background: var(--red-accent);
  color: #fff;
  padding: 2px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
}
.quiz-title::after { display: none; }
.quiz-title { margin-bottom: 0.5rem; border-bottom: 1px dashed var(--line-color); padding-bottom: 1rem; }
.quiz-question { font-size: 1.2rem; margin: 1.5rem 0; font-weight: 500; }
.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.quiz-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-main);
  padding: 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-family: inherit;
  transition: all 0.2s;
}
.quiz-btn:hover { background: rgba(212,175,55,0.1); border-color: var(--gold); }
.quiz-btn.correct { background: rgba(46, 125, 50, 0.2); border-color: #4caf50; color: #a5d6a7; }
.quiz-btn.wrong { background: rgba(198, 40, 40, 0.2); border-color: #ef5350; color: #ef9a9a; }

.quiz-result-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0,0,0,0.5);
  border-radius: 6px;
}
#result-status { font-family: var(--font-cinzel); font-size: 1.4rem; margin-bottom: 0.5rem; }
#result-explanation { color: var(--text-main); }
.status-correct { color: #4caf50 !important; }
.status-incorrect { color: #ef5350 !important; }

/* Static Pages Container */
.static-page-layout {
  max-width: 800px;
  margin: 4rem auto;
  padding: 3rem;
  background: var(--panel-bg);
  border-radius: 8px;
  border: 1px solid var(--line-color);
  min-height: 60vh;
}
.static-page-layout h2 { font-family: var(--font-cinzel); color: var(--gold); border-bottom: 1px solid var(--line-color); padding-bottom: 1rem; margin-bottom: 2rem; }
.static-page-layout h3 { color: var(--text-main); margin: 2rem 0 1rem; }
.static-page-layout p, .static-page-layout li { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.static-page-layout ul { padding-left: 20px; }

/* Affiliate Section */
.affiliate-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(255,255,255,0.1);
}
.affiliate-box {
  background: rgba(212, 175, 55, 0.05);
  border-left: 4px solid #ff9900;
  padding: 2rem;
  border-radius: 6px;
}
.affiliate-box p { color: var(--text-muted); margin-bottom: 1.5rem; }
.affiliate-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.affiliate-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}
.amazon {
  background: rgba(255, 153, 0, 0.1);
  border: 1px solid #ff9900;
  color: #ff9900;
}
.amazon:hover {
  background: #ff9900;
  color: #111;
  box-shadow: 0 0 15px rgba(255, 153, 0, 0.4);
}

.rakuten {
  background: rgba(191, 0, 0, 0.1);
  border: 1px solid #bf0000;
  color: #fff;
}
.rakuten:hover {
  background: #bf0000;
  color: #fff;
  box-shadow: 0 0 15px rgba(191, 0, 0, 0.4);
}

.rakuten-travel {
  background: rgba(17, 129, 42, 0.1);
  border: 1px solid #11812a;
  color: #11812a;
}
.rakuten-travel:hover {
  background: #11812a;
  color: #fff;
  box-shadow: 0 0 15px rgba(17, 129, 42, 0.4);
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-form label { font-size: 0.9rem; color: var(--gold); letter-spacing: 1px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem; background: rgba(0,0,0,0.3); border: 1px solid var(--line-color); color: var(--text-main); border-radius: 4px; font-family: inherit; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red-accent); }
.contact-form button { background: var(--gold); color: #000; padding: 1rem 2rem; border: none; font-weight: 600; cursor: pointer; border-radius: 4px; transition: background 0.3s; align-self: flex-start; }
.contact-form button:hover { background: var(--gold-hover); }

/* Social Share */
.share-section {
  padding-bottom: 2rem;
}
.share-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  color: #fff;
  display: inline-flex;
  align-items: center;
}
.x-btn {
  background: #000;
  border: 1px solid rgba(255,255,255,0.2);
}
.x-btn:hover {
  background: #222;
  border-color: #fff;
}
.fb-btn {
  background: #1877F2;
  border: 1px solid #1877F2;
}
.fb-btn:hover {
  background: #166fe5;
}
.line-btn {
  background: #06C755;
  border: 1px solid #06C755;
}
.line-btn:hover {
  background: #05b04b;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-5px);
  background: var(--gold-hover);
}

/* Footer */
.footer { border-top: 1px solid var(--line-color); text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.85rem;}
.footer-links { margin-bottom: 1rem; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--text-main); }

/* Travel Tips Section */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.tip-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tip-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tip-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tip-card h4 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.tip-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.tip-link {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.tip-link:hover {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

/* Cultural Experiences */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.exp-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.exp-card:hover {
  transform: scale(1.02);
  border-color: var(--gold);
}

.exp-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.exp-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.exp-content {
  padding: 1.5rem;
}

.exp-content h4 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.exp-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Essential Phrases */
.phrases-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.phrase-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem;
  border-radius: 12px;
  text-align: center;
}

.phrase-item:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
}

.ph-main {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.ph-sub {
  font-size: 0.8rem;
  color: var(--gold);
}

/* Loading Screen */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-content {
  text-align: center;
}

.loader-circle {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(212, 175, 55, 0.1);
  border-top: 3px solid var(--gold);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 1s linear infinite;
}

.loader-text {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 1.2rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Save Plan Button */
.save-plan-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-left: auto;
}

.save-plan-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  transform: scale(1.05);
}

.save-plan-btn.saved {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

.save-plan-btn.saved .icon {
  content: '★';
}

/* Plan Grid */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.plan-item {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.plan-item:hover {
  background: rgba(212, 175, 55, 0.15);
  transform: translateY(-3px);
  border-color: var(--gold);
}

.plan-item h4 {
  color: var(--gold);
  font-size: 1rem;
}

.remove-plan {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--red-accent);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.plan-item:hover .remove-plan {
  opacity: 1;
}

/* Recommended Itineraries */
.itinerary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.itinerary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.itinerary-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.iti-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.iti-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--panel-bg-solid), transparent);
}

.iti-content {
  padding: 1.5rem;
  position: relative;
}

.iti-badge {
  position: absolute;
  top: -15px;
  right: 1.5rem;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.iti-content h4 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.iti-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: var(--red-accent);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}

.plan-item:hover .remove-plan {
  opacity: 1;
}

/* Static Pages (About, Contact) */
.static-page-content {
  max-width: 1000px;
  margin: 120px auto 4rem;
  padding: 0 2rem;
}

.static-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.reading-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
}

.reading-text p {
  margin-bottom: 1.5rem;
}

.reading-text h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin: 3rem 0 1.5rem;
  font-size: 1.8rem;
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 0.5rem;
}

.lead {
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.info-card h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-family: 'Cinzel', serif;
}

/* Contact Container */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
  background: var(--gold-hover);
}

@media (max-width: 1024px) {
  .static-page-content { margin-top: 100px; }
  .contact-container { padding: 2rem; }
  .sidebar-map { width: 100%; border-right: none; border-bottom: 1px solid var(--line-color); }
  .sidebar-inner { height: auto; position: static; padding: 2rem; }
  .reading-text { columns: 1; }
  .content-panel { padding: 2rem; }
}
@media (max-width: 600px) {
  .food-list, .quiz-options-grid { grid-template-columns: 1fr; }
  .region-name { font-size: 2.5rem; }
  .schematic-map { transform: scale(0.8); margin: -2rem 0; }
}
