/* ==========================================================================
   Vancouver & Alaska Cruise 2026 — Modern Mobile Web App Design System
   Theme: Warm Alpine Linen System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts Import & CSS Custom Properties
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Plus+Jakarta+Sans:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  /* Color Palette — Warm Alpine Linen System */
  --bg-main: #FAF8F5;            /* Soft warm linen background */
  --bg-card: #FFFFFF;            /* Pure white card container */
  --bg-card-hover: #F5F0E8;      /* Warm card hover/active state */
  --bg-drawer: #F2EDE4;          /* Navigation drawer background */
  --bg-subtle: #F6F3EE;          /* Light warm container fill */
  
  /* Primary Typography Colors */
  --text-primary: #1E2925;       /* Deep pine charcoal for high-contrast reading */
  --text-secondary: #5F6D66;     /* Soft slate sage for descriptions & labels */
  --text-muted: #8E9B94;         /* Muted gray-green for timestamps & meta */
  
  /* Brand & Status Accents */
  --accent-primary: #E06D53;     /* Warm terracotta/coral for main actions & highlight badges */
  --accent-primary-light: #FDF0ED; /* Warm terracotta tint wash */
  --accent-sage: #4A6B5D;        /* Deep coastal sage for nature/outdoors & headers */
  --accent-sage-light: #EBF2EE;  /* Light sage background for toddler & general badges */
  --accent-amber: #D9822B;       /* Warm amber for warnings & all-aboard badges */
  --accent-amber-light: #FDF6EE;
  
  /* Typography Families */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Borders, Radii & Shadows */
  --border-subtle: rgba(30, 41, 37, 0.08);
  --border-medium: rgba(30, 41, 37, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(30, 41, 37, 0.04);
  --shadow-md: 0 4px 16px rgba(30, 41, 37, 0.08);
  --shadow-lg: 0 10px 30px rgba(30, 41, 37, 0.12);
  
  /* Layout Sizing & Z-Index */
  --header-height: 64px;
  --max-width: 768px;
  --z-header: 300;
  --z-drawer: 200;
  --z-backdrop: 150;
}

/* --------------------------------------------------------------------------
   2. Reset & General Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--header-height);
  padding-bottom: 40px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: 1.85rem; letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p {
  margin-bottom: 0.75rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-sage);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation Drawer Controls
   -------------------------------------------------------------------------- */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
}

.header-title-group {
  display: flex;
  flex-direction: column;
}

.header-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.header-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

.hamburger-btn {
  background: none;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
  position: relative;
  z-index: calc(var(--z-header) + 1);
  flex-shrink: 0;
}

.hamburger-btn:hover, .hamburger-btn:focus {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-sage);
}

.hamburger-icon {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Active Hamburger state (transform to X) */
.hamburger-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. Slide-Down Navigation Drawer
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(30, 41, 37, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-backdrop);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  background-color: var(--bg-drawer);
  border-bottom: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-drawer);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.35s ease;
  padding: 20px 16px calc(100px + env(safe-area-inset-bottom, 20px));
}

.nav-drawer.is-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-section-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-top: 16px;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-section-title:first-of-type {
  margin-top: 0;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.drawer-nav-link:hover, .drawer-nav-link:focus, .drawer-nav-link.is-active {
  background-color: var(--accent-sage-light);
  border-color: var(--accent-sage);
  color: var(--accent-sage);
  text-decoration: none;
}

.drawer-nav-subtitle {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 2px;
}

.drawer-day-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
}

.drawer-nav-link.is-active .drawer-day-tag {
  background-color: var(--accent-sage);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   5. View Sections Layout
   -------------------------------------------------------------------------- */
.view-section {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
  padding-top: 20px;
}

.view-section.is-active {
  display: block;
}

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

/* Section Header Card */
.hero-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background-color: var(--accent-sage);
}

.hero-card.cruise-theme::before {
  background-color: var(--accent-primary);
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  line-height: 1.2;
}

.badge-sage {
  background-color: var(--accent-sage-light);
  color: var(--accent-sage);
}

.badge-terracotta {
  background-color: var(--accent-primary-light);
  color: var(--accent-primary);
}

.badge-amber {
  background-color: var(--accent-amber-light);
  color: var(--accent-amber);
  border: 1px solid rgba(217, 130, 43, 0.2);
}

.badge-muted {
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
}

.hero-title {
  margin-bottom: 6px;
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   6. Field-Guide Timeline Layout
   -------------------------------------------------------------------------- */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.timeline-row {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-row:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.timeline-time {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  background-color: var(--accent-primary-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.timeline-time.sage {
  color: var(--accent-sage);
  background-color: var(--accent-sage-light);
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.timeline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 10px;
}

.timeline-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. Accordion Drawer Component (<details> / <summary>)
   -------------------------------------------------------------------------- */
.accordion-drawer {
  margin-top: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.accordion-drawer summary {
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-sage);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  user-select: none;
}

.accordion-drawer summary::-webkit-details-marker {
  display: none;
}

.accordion-drawer summary::after {
  content: '＋';
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.accordion-drawer[open] summary::after {
  content: '－';
}

.accordion-content {
  margin-top: 12px;
  padding: 12px 14px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
  animation: fadeIn 0.2s ease;
}

.accordion-content ul {
  margin-left: 18px;
  margin-top: 6px;
  margin-bottom: 8px;
}

.accordion-content li {
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   8. Cards & Action Item Checklist
   -------------------------------------------------------------------------- */
.info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.info-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.checklist-item:hover {
  background-color: var(--bg-card-hover);
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-sage);
  cursor: pointer;
  margin-top: 2px;
}

.checklist-label {
  font-size: 0.9rem;
  color: var(--text-primary);
  flex: 1;
}

.checklist-item.is-completed .checklist-label {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Skipped Excursions Table
   -------------------------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.custom-table th {
  background-color: var(--bg-subtle);
  padding: 10px 12px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-medium);
}

.custom-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.custom-table tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   10. Media Cards & SVG Wayfinding Maps
   -------------------------------------------------------------------------- */
.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 10px;
  margin-bottom: 14px;
}

@media (min-width: 580px) {
  .media-grid-2col {
    grid-template-columns: 1fr 1fr;
  }
}

.media-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.media-card img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.media-caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 12px;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* SVG Wayfinding Custom Styling */
.svg-map-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.svg-map-wrapper {
  width: 100%;
  background-color: #F0F4F2;
  position: relative;
}

.svg-map-wrapper svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-route-walk {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 3.5;
  stroke-dasharray: 6 4;
  animation: routeDash 30s linear infinite;
}

.map-route-ferry {
  fill: none;
  stroke: #2B6CB0;
  stroke-width: 3.5;
  stroke-dasharray: 5 4;
}

.map-route-transit {
  fill: none;
  stroke: var(--accent-sage);
  stroke-width: 4;
}

@keyframes routeDash {
  to {
    stroke-dashoffset: -200;
  }
}

/* --------------------------------------------------------------------------
   11. Trip Command Center Cards (Flight, Cruise & Hotels)
   -------------------------------------------------------------------------- */
.trip-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

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

.trip-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-revised {
  background-color: #C05621;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flight-segment-box {
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
}

.flight-segment-box:last-child {
  margin-bottom: 0;
}

.flight-route-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.flight-route-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.flight-timeline-graphic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 16px 0;
}

.flight-timeline-graphic::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 60px;
  right: 60px;
  height: 2px;
  background-color: var(--border-medium);
  z-index: 1;
}

.airport-node {
  z-index: 2;
  background-color: var(--bg-card);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.airport-time-large {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.airport-code-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 2px;
}

.flight-airline-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  justify-content: space-between;
}

/* Cruise Card Specifics */
.cruise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 580px) {
  .cruise-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cruise-box {
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.cruise-box-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.cruise-box-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.alert-notice {
  background-color: #FEFCBF;
  border: 1px solid #F6E05E;
  color: #744210;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   12. Full-Screen Interactive Map Modal Lightbox
   -------------------------------------------------------------------------- */
.svg-map-card {
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.svg-map-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tap-expand-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(30, 41, 37, 0.85);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
}

.map-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.map-modal.is-active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.map-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(30, 41, 37, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.map-modal-content {
  position: relative;
  z-index: 510;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalZoom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalZoom {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.map-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.map-modal-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background-color: var(--accent-primary-light);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.map-modal-body {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F0F4F2;
}

.map-modal-body svg {
  width: 100%;
  height: auto;
  max-height: 75vh;
  display: block;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.app-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   14. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .header-title { font-size: 1.3rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .hero-card { padding: 30px 24px; }
  .timeline-row { padding: 20px 24px; }
}

