/* ============================================================
   2026 Tainan & Kaohsiung Cultural Guide - Responsive Stylesheet
   ============================================================ */

:root {
  --primary: #b83b26;        /* Tainan Brick / Terracotta Red */
  --primary-dark: #912716;
  --primary-light: #fbeee9;
  --secondary: #1a2f4c;      /* Historic Indigo / Navy */
  --secondary-light: #2b4970;
  --accent-gold: #c9882b;     /* Imperial Temple Gold */
  --accent-gold-light: #fef8ee;
  --jade: #2b7a63;           /* Heritage Jade Green */
  
  --bg-main: #f9f7f2;         /* Warm Ivory Paper */
  --bg-card: #ffffff;
  --bg-subtle: #f2eee6;
  
  --text-main: #24292f;
  --text-secondary: #57606a;
  --text-muted: #8c959f;
  
  --border-color: #e5dfd5;
  --border-focus: #b83b26;
  
  --shadow-sm: 0 2px 6px rgba(26, 47, 76, 0.05);
  --shadow-md: 0 6px 18px rgba(26, 47, 76, 0.08);
  --shadow-lg: 0 14px 34px rgba(26, 47, 76, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.68;
  letter-spacing: 0.015em;
  padding-bottom: 70px; /* Room for mobile nav */
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   TOP NAVBAR & CONTROLS
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(184, 59, 38, 0.3);
}

.brand-text h1 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.76rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  display: block;
}

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

/* Language Selector Pills */
.lang-selector {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.lang-btn {
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  white-space: nowrap;
}

.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(184, 59, 38, 0.25);
}

.lang-btn:hover:not(.active) {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
}

/* Print & Action Buttons */
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1rem;
}

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

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #1b2f4a 0%, #294060 40%, #543329 100%);
  color: #ffffff;
  padding: 56px 0 48px;
  overflow: hidden;
  border-bottom: 4px solid var(--accent-gold);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: radial-gradient(#ffffff 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-dates-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 136, 43, 0.25);
  border: 1px solid var(--accent-gold);
  color: #fed99a;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #e2e8f0;
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero-welcome-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #f1f5f9;
  position: relative;
}

.hero-welcome-box::before {
  content: "🏮";
  margin-right: 8px;
  font-size: 1.2rem;
}

/* Quick summary pills under hero */
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.14);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================================
   STICKY FILTER & SEARCH TOOLBAR
   ============================================================ */
.filter-toolbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  position: sticky;
  top: 68px;
  z-index: 90;
  padding: 12px 0;
}

.toolbar-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 900px) {
  .toolbar-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Day Switcher Tabs */
.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.day-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
  white-space: nowrap;
}

.day-tab.active {
  background: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
  box-shadow: 0 3px 8px rgba(26, 47, 76, 0.25);
}

.day-tab:hover:not(.active) {
  background: var(--bg-main);
  border-color: var(--text-muted);
}

.day-tab .tab-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.day-tab.active .tab-badge {
  background: var(--accent-gold);
  color: #1a2f4c;
}

/* Search Input */
.search-box {
  position: relative;
  min-width: 240px;
}

.search-input {
  width: 100%;
  padding: 8px 36px 8px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184, 59, 38, 0.15);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Category Filter Chips */
.category-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.chip-btn {
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chip-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.chip-btn:hover:not(.active) {
  background: var(--bg-subtle);
}

/* ============================================================
   MAIN CONTENT LAYOUT
   ============================================================ */
.main-wrapper {
  padding: 32px 0 60px;
}

/* Section Header (Day title) */
.day-header {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.day-header.day-2 {
  border-left-color: var(--jade);
}

.day-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.day-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  color: #fff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.day-header-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.3;
  margin-bottom: 6px;
}

.day-header-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   ITINERARY CARDS (ATTRACTIONS)
   ============================================================ */
.itinerary-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.itinerary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.itinerary-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #d1c8bb;
}

/* Card Header */
.card-header-bar {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .card-header-bar {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.card-title-group {
  flex: 1;
}

.card-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.order-badge {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--secondary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badges-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.badge-pill.primary {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(184, 59, 38, 0.2);
}

.badge-pill.gold {
  background: var(--accent-gold-light);
  color: #a36511;
  border-color: rgba(201, 136, 43, 0.3);
}

.card-main-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.3;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Map Action Button */
.map-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #ffffff;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(184, 59, 38, 0.08);
  white-space: nowrap;
}

.map-nav-btn:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(184, 59, 38, 0.25);
  transform: translateY(-1px);
}

/* Location Address Banner */
.card-address-bar {
  background: var(--bg-subtle);
  padding: 8px 24px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.card-address-bar i {
  color: var(--primary);
}

/* ============================================================
   CARD BODY & BILINGUAL CONTENT
   ============================================================ */
.card-body-content {
  padding: 24px;
}

.lead-paragraph {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-color);
}

/* Side by side bilingual layout when bilingual mode is active */
.bilingual-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 900px) {
  .mode-bilingual .bilingual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.lang-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lang-col-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 8px;
}

.section-block {
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.section-body {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--text-main);
  white-space: pre-line;
}

/* Visiting Tips Box */
.tips-container {
  margin-top: 20px;
  background: #fdfaf3;
  border: 1px solid #ebd9b8;
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.tips-header {
  font-size: 0.92rem;
  font-weight: 700;
  color: #925808;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tips-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #5c3c0a;
}

.tips-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

/* ============================================================
   IMAGE GALLERY & LIGHTBOX
   ============================================================ */
.card-media-gallery {
  padding: 0 24px 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-grid.single-image {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .gallery-grid.single-image {
    max-width: 720px;
  }
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #111;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2dcd2;
}

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

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

.img-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .img-hover-overlay {
  opacity: 1;
}

.gallery-caption {
  padding: 10px 14px;
  background: #ffffff;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-top: 1px solid var(--border-color);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 16, 26, 0.94);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content-box {
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 75vh;
  overflow: hidden;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-caption-bar {
  background: #1a1a1a;
  color: #fff;
  padding: 14px 20px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.lightbox-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   SURVIVAL GUIDE SECTION
   ============================================================ */
.survival-guide-container {
  margin-top: 40px;
}

.guide-category-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.guide-category-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-subtle);
}

.guide-category-title .guide-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.guide-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .guide-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.guide-item-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-item-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-main);
}

/* Phrases table & audio */
.phrases-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .phrases-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.phrase-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.phrase-content {
  flex: 1;
}

.phrase-zh {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 2px;
}

.phrase-pinyin {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.phrase-en {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.phrase-taiwanese {
  font-size: 0.78rem;
  color: var(--jade);
  margin-top: 4px;
}

.audio-speak-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.audio-speak-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.08);
}

/* ============================================================
   BOTTOM MOBILE NAVIGATION BAR
   ============================================================ */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 95;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    height: 60px;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
  }

  .mobile-nav-item i {
    font-size: 1.2rem;
  }

  .mobile-nav-item.active {
    color: var(--primary);
  }
}

/* ============================================================
   FOOTER & BACK TO TOP
   ============================================================ */
.site-footer {
  background: var(--secondary);
  color: #e2e8f0;
  padding: 40px 0 24px;
  margin-top: 40px;
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.footer-copy {
  color: #94a3b8;
  font-size: 0.8rem;
}

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--secondary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
}

/* ============================================================
   PRINT STYLES FOR ITINERARY PRINTING
   ============================================================ */
@media print {
  .site-header,
  .filter-toolbar,
  .mobile-bottom-bar,
  .back-to-top,
  .map-nav-btn,
  .audio-speak-btn {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
    padding-bottom: 0;
  }

  .itinerary-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
    margin-bottom: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
