/* ==========================================================================
   Wanderlust Journal - Travel Blog CSS Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Noto+Sans+TC:wght@300;400;500;700&family=Noto+Serif+TC:wght@400;600;700&family=Playfair+Display:ital,wght@0,500;0,700;1,400&display=swap');

:root {
  /* Color Palette - Modern Explorer Tone */
  --bg-canvas: #F8F6F0;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAF8F5;
  --bg-subtle: #EFECE6;
  --text-main: #1E232A;
  --text-muted: #5E6770;
  --text-light: #8C96A0;
  --border-color: #E3DEC3;
  --border-subtle: #EBE6DC;

  /* Accent Colors */
  --accent-terracotta: #D96B43;
  --accent-terracotta-hover: #C25933;
  --accent-sage: #4A6B5B;
  --accent-sage-hover: #3B574A;
  --accent-brass: #C5A059;
  --accent-sand: #E6DFD3;

  /* Typography */
  --font-serif: 'Playfair Display', 'Noto Serif TC', Georgia, serif;
  --font-sans: 'Inter', 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Layout */
  --shadow-sm: 0 2px 8px rgba(30, 35, 42, 0.04);
  --shadow-md: 0 6px 20px rgba(30, 35, 42, 0.08);
  --shadow-lg: 0 12px 36px rgba(30, 35, 42, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Container */
  --max-width: 1200px;
  --header-height: 68px;
  --nav-total-height: 110px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Theme Overrides */
[data-theme="dark"] {
  --bg-canvas: #121518;
  --bg-card: #1C2025;
  --bg-card-hover: #242930;
  --bg-subtle: #181C20;
  --text-main: #F4F1EA;
  --text-muted: #A0A9B2;
  --text-light: #6E7882;
  --border-color: #2D343D;
  --border-subtle: #232930;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.5);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, select {
  font: inherit;
  color: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-terracotta);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-top: 0.5rem;
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(248, 246, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background-color: rgba(18, 21, 24, 0.92);
}

.navbar-main {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-brand-sub {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.15rem;
}

@media (max-width: 640px) {
  .nav-brand-sub {
    display: none;
  }
}

.nav-brand .compass-icon {
  width: 26px;
  height: 26px;
  color: var(--accent-terracotta);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-terracotta);
  border-radius: 2px;
}

/* Regional Navigation Bar & Sub-menu Dropdowns */
.regional-subnav {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.regional-subnav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.35rem 0;
}

.regional-subnav-list::-webkit-scrollbar {
  display: none;
}

.nav-item-dropdown {
  position: relative;
}

.regional-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: var(--transition);
}

.regional-link:hover, .nav-item-dropdown:hover > .regional-link {
  background-color: var(--bg-card);
  color: var(--accent-terracotta);
}

.dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
  color: var(--text-light);
}

.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--accent-terracotta);
}

/* Dropdown Menu Box */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.6rem 0;
  min-width: 210px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1200;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  color: var(--text-main);
  transition: var(--transition);
}

.dropdown-item-link:hover {
  background-color: var(--bg-subtle);
  color: var(--accent-terracotta);
  padding-left: 1.4rem;
}

.dropdown-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: var(--bg-subtle);
  border-color: var(--accent-terracotta);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: calc(var(--nav-total-height) + 2rem);
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-sage);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--accent-terracotta);
  font-style: italic;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

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

.stat-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Map Card Widget */
.hero-map-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-color);
}

.map-card-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-status-dot {
  width: 8px;
  height: 8px;
  background-color: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.interactive-map-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.svg-world-map {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent-terracotta);
  border: 2px solid #FFF;
  box-shadow: 0 0 10px rgba(217, 107, 67, 0.6);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.map-pin:hover {
  transform: translate(-50%, -50%) scale(1.4);
  background-color: var(--accent-brass);
  z-index: 10;
}

.map-pin-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-main);
  color: var(--bg-canvas);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.map-pin:hover .map-pin-tooltip {
  opacity: 1;
}

/* Filter & Search Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  background-color: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-terracotta);
  box-shadow: 0 0 0 3px rgba(217, 107, 67, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 18px;
  height: 18px;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-canvas);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
  color: #FFFFFF;
}

/* Passport Stamp Tag */
.passport-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1.5px dashed var(--accent-brass);
  color: var(--accent-brass);
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  background-color: rgba(197, 160, 89, 0.08);
}

/* Post Cards Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.post-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-terracotta);
}

.post-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: var(--bg-subtle);
}

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

.post-card:hover .post-card-img {
  transform: scale(1.06);
}

.post-card-stamp {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(30, 35, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.post-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.post-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.post-title a:hover {
  color: var(--accent-terracotta);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.read-more-link {
  font-weight: 600;
  color: var(--accent-terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.read-more-link:hover {
  gap: 0.5rem;
}

/* Article Detail Page */
.article-header {
  padding-top: calc(var(--nav-total-height) + 2rem);
  padding-bottom: 3rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 1rem 0 1.25rem 0;
}

.article-meta-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.article-hero-cover {
  width: 100%;
  max-width: 1000px;
  height: 480px;
  margin: 0 auto 3.5rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 1.75rem;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem 0;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-terracotta);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background-color: var(--bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-main);
}

/* Quick Facts & Itinerary Box */
.travel-facts-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-sage);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.fact-item-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-light);
}

.fact-item-value {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  margin-top: 0.25rem;
}

/* Itinerary Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2.5rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent-terracotta);
  border: 3px solid var(--bg-canvas);
}

.timeline-day {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-terracotta);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.25rem 0 0.5rem 0;
}

/* Photo Gallery & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.gallery-item {
  position: relative;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--bg-subtle);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%);
  color: #FFF;
  padding: 1rem;
  display: flex;
  align-items: flex-end;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 12, 15, 0.92);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: #F8F6F0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-top: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #FFF;
  font-size: 2rem;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 380px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-link:hover {
  color: var(--accent-terracotta);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-title {
    font-size: 2.15rem;
  }
  .article-hero-cover {
    height: 320px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-terracotta), var(--accent-brass));
  z-index: 1500;
  width: 0%;
  transition: width 0.1s linear;
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 990;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
  color: #FFFFFF;
}

/* Dynamic Auto TOC Box */
.article-toc-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.toc-link {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.toc-link:hover {
  color: var(--accent-terracotta);
  padding-left: 0.35rem;
}

/* Quick Search Modal (Cmd+K / Ctrl+K) */
.search-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 21, 24, 0.75);
  backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.search-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-card {
  width: 90%;
  max-width: 600px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-modal-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: var(--text-main);
  outline: none;
}

.search-modal-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Print Optimization */
@media print {
  .navbar, .site-footer, .theme-toggle, .mobile-toggle, .back-to-top-btn, .reading-progress-bar {
    display: none !important;
  }
  body {
    background-color: #FFF !important;
    color: #000 !important;
  }
  .article-header {
    padding-top: 0 !important;
  }
  .article-content {
    max-width: 100% !important;
  }
}

/* Travel Experiences Timeline */
.travel-timeline {
  position: relative;
  margin: 2.5rem 0;
  padding-left: 2rem;
  border-left: 2px dashed var(--accent-terracotta);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-2rem - 6px);
  top: 0.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-terracotta);
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 3px rgba(196, 98, 59, 0.2);
}

.timeline-year {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-terracotta);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.timeline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-highlight {
  background-color: rgba(196, 98, 59, 0.08);
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
}


