:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #0ea5e9;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --border: rgba(37, 99, 235, 0.18);
  --text: #0f172a;
  --text-muted: #64748b;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

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

body {
  font-family: "Inter", "Segoe UI", "Roboto", sans-serif;
  background: linear-gradient(150deg, #eef2ff 0%, #e0f2fe 45%, #f8fafc 100%);
  color: var(--text);
  line-height: 1.7;
  padding: 32px 20px;
  font-size: clamp(16px, 1.05rem, 18px);
}

.language-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
}

.language-switcher button {
  appearance: none;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.language-switcher button:hover,
.language-switcher button:focus {
  outline: none;
  background: rgba(37, 99, 235, 0.12);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.language-switcher button.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-dark);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.language-pane {
  display: none;
}

.language-pane.is-active {
  display: block;
}

.travel-container {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(14, 165, 233, 0.88) 100%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1400&q=80") center/cover;
  color: #fff;
  padding: 56px 32px 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.92;
}

.hero .meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  font-size: 1rem;
  opacity: 0.95;
}

.content {
  padding: 52px clamp(24px, 5vw, 72px) 60px;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.95) 0%, rgba(255, 255, 255, 0.97) 100%);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.day {
  margin-bottom: 60px;
  padding-left: 28px;
  border-left: 6px solid rgba(37, 99, 235, 0.35);
}

.day:last-of-type {
  margin-bottom: 32px;
}

.day h2 {
  color: var(--primary);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.day-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
  font-style: italic;
  margin-bottom: 26px;
}

.itinerary-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.18);
}

.itinerary-table thead th {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(14, 165, 233, 0.15) 100%);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1rem;
  padding: 18px 20px;
}

.itinerary-table tbody tr {
  transition: background 0.25s ease;
}

.itinerary-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.08);
}

.itinerary-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
  vertical-align: top;
  font-size: 1rem;
}

.itinerary-table td.time {
  font-weight: 700;
  color: var(--primary);
  width: 120px;
}

.itinerary-table td.place {
  font-weight: 600;
  color: var(--accent);
  width: 190px;
}

.highlight-card {
  background: #fff;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 24px 0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.highlight-card.accent-gold {
  background: #fef3c7;
  border-left-color: #f59e0b;
}

.highlight-card.accent-blue {
  background: #dbeafe;
  border-left-color: #2563eb;
}

.highlight-card.accent-teal {
  background: #ccfbf1;
  border-left-color: #0d9488;
}

.highlight-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlight-card.accent-gold h3 {
  color: #b45309;
}

.highlight-card.accent-blue h3 {
  color: #1d4ed8;
}

.highlight-card.accent-teal h3 {
  color: #0f766e;
}

.highlight-card .item {
  margin-left: 6px;
  padding-left: 18px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}

.highlight-card .item + .item {
  margin-top: 6px;
}

.highlight-card .item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.highlight-card.accent-gold .item::before {
  color: #f59e0b;
}

.highlight-card.accent-blue .item::before {
  color: #2563eb;
}

.highlight-card.accent-teal .item::before {
  color: #0d9488;
}

.tip-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}

.tip-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.16);
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.tip-card h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.tip-card ul {
  list-style: none;
}

.tip-card li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.tip-card li + li {
  margin-top: 8px;
}

.tip-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.footer {
  background: var(--surface-muted);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(37, 99, 235, 0.12);
  font-size: 0.92rem;
}

.footer span {
  font-weight: 600;
  color: var(--primary);
}

/* Hub (index) styles */

.hub-wrapper {
  max-width: 960px;
  width: min(960px, 94vw);
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(36px, 6vw, 60px);
  text-align: center;
}

.hub-wrapper h1 {
  color: var(--primary-dark);
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.hub-wrapper .subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.hub-grid {
  display: grid;
  gap: 22px;
}

.hub-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 20px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.24);
  border-color: transparent;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(219, 234, 254, 0.95) 100%);
}

.hub-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.hub-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
}

.hub-card:hover .hub-card-title {
  color: var(--primary-dark);
}

.hub-card-title::after {
  content: "→";
  font-size: 1rem;
  color: var(--accent);
  transition: transform 0.25s ease, color 0.25s ease;
}

.hub-card:hover .hub-card-title::after {
  transform: translateX(4px);
  color: var(--primary-dark);
}

.hub-card .meta {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
}

.hub-card .tags {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hub-footer {
  margin-top: 36px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  body {
    padding: 24px 12px;
  }

  .travel-container {
    border-radius: var(--radius-md);
  }

  .hero {
    padding: 44px 24px 38px;
  }

  .content {
    padding: 36px 18px 44px;
  }

  .day {
    padding-left: 20px;
    margin-bottom: 44px;
  }

  .itinerary-table thead {
    display: none;
  }

  .itinerary-table,
  .itinerary-table tbody,
  .itinerary-table tr,
  .itinerary-table td {
    display: block;
    width: 100%;
  }

  .itinerary-table td {
    border: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    padding: 12px 14px;
  }

  .itinerary-table tbody tr {
    margin-bottom: 16px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .itinerary-table td.time,
  .itinerary-table td.place {
    width: auto;
    font-size: 0.95rem;
  }

  .highlight-card {
    padding: 18px;
  }

  .hub-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hub-card img {
    height: 180px;
  }

  .hub-card-body {
    align-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* Legacy class support mapped to new styling */

.meal,
.optional,
.accommodation {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  padding: 20px 22px;
  margin: 22px 0;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.18);
}

.meal {
  background: #fef3c7;
  border-left-color: #f59e0b;
}

.optional {
  background: #dbeafe;
  border-left-color: #2563eb;
}

.accommodation {
  background: #ccfbf1;
  border-left-color: #0d9488;
}

.meal-title,
.optional-title,
.accommodation-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.meal-title {
  color: #b45309;
}

.optional-title {
  color: #1d4ed8;
}

.accommodation-title {
  color: #0f766e;
}

.restaurant,
.accommodation-details div {
  font-size: 0.95rem;
  color: var(--text);
  margin-left: 4px;
  margin-top: 6px;
}

.menu-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.menu-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.15);
}

.menu-card h3 {
  font-size: 1.05rem;
  color: #92400e;
  line-height: 1.3;
}

.menu-card p {
  font-size: 0.95rem;
  color: var(--text);
}

.price {
  font-weight: 700;
  color: #b45309;
  letter-spacing: 0.02em;
}

.menu-group {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-top: 22px;
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.12);
}

.menu-group-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.menu-group-header h3 {
  font-size: 1.05rem;
  color: #92400e;
}

.menu-list {
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--text);
}

.accommodation-details {
  margin-left: 4px;
}

.accommodation-details div + div,
.restaurant + .restaurant {
  margin-top: 4px;
}

.tips {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-top: 34px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.18);
}

.tips h3,
.tips h4 {
  color: var(--primary);
  margin-bottom: 12px;
}

.tips ul {
  list-style: none;
  margin-left: 0;
}

.tips li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-muted);
}

.tips li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Glossary tooltip styles */
.glossary-term,
[data-glossary] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  border-bottom: 1px dashed rgba(14, 165, 233, 0.6);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.glossary-term::after,
[data-glossary]::after {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.18);
  color: var(--accent);
}

.glossary-term.is-active,
.glossary-term:hover,
.glossary-term:focus,
[data-glossary].is-active,
[data-glossary]:hover,
[data-glossary]:focus {
  color: var(--primary-dark);
  border-color: rgba(37, 99, 235, 0.65);
  outline: none;
}

.glossary-term.is-active::after,
.glossary-term:hover::after,
.glossary-term:focus::after,
[data-glossary].is-active::after,
[data-glossary]:hover::after,
[data-glossary]:focus::after {
  background: rgba(37, 99, 235, 0.18);
  color: var(--primary-dark);
}

.glossary-popover {
  position: absolute;
  z-index: 1000;
  max-width: min(320px, calc(100vw - 32px));
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 20px 22px 18px 22px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.glossary-popover.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.glossary-popover .glossary-title {
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--primary);
}

.glossary-popover .glossary-description {
  font-size: 0.95rem;
  color: var(--text);
}

.glossary-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.glossary-close:hover,
.glossary-close:focus {
  color: var(--primary);
  outline: none;
}
