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

:root {
  /* Light Mode Variables (Default Theme) */
  --bg-primary: #f0f6fc; /* Professional light ice-blue background */
  --bg-secondary: #ffffff; /* Pure white content panels */
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-glass-hover: rgba(240, 246, 252, 0.85);
  --text-primary: #0a1b3a; /* Deep elegant navy for maximum readability */
  --text-secondary: #3b5070; /* Mid navy/slate for description text */
  --accent-color: #005bb5; /* Professional royal blue */
  --accent-light: #2b6cb0;
  --accent-hover: #004494;
  --border-color: rgba(0, 91, 181, 0.15); /* Light blue border hints */
  --shadow-color: rgba(10, 27, 58, 0.08); /* Soft blue-tinted shadow */
  --transition-speed: 0.3s;
  
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
}

[data-theme="dark"] {
  /* Dark Mode Variables (Toggled Theme) */
  --bg-primary: #080c16; /* Midnight blue */
  --bg-secondary: #10172a;
  --bg-glass: rgba(16, 23, 42, 0.75);
  --bg-glass-hover: rgba(22, 32, 59, 0.85);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-color: #d4af37; /* Gold accent for dark theme */
  --accent-light: #f3e5ab;
  --accent-hover: #b89025;
  --border-color: rgba(212, 175, 55, 0.2);
  --shadow-color: rgba(0, 0, 0, 0.5);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: background-color var(--transition-speed), color var(--transition-speed);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  font-weight: 400; /* Darker/thicker font-weight for light theme readability */
  color: var(--text-secondary);
}

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

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 var(--shadow-color);
}

/* Header & Navigation */
header.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  transition: all var(--transition-speed);
  border-bottom: 1px solid transparent;
}

header.main-header.scrolled {
  height: 65px;
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
}

.logo a {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--accent-color);
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav.main-nav a {
  font-size: 0.95rem;
  font-weight: 600; /* Increased weight for light theme contrast */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 0;
  position: relative;
}

nav.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed);
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}

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

.fav-badge-wrapper {
  position: relative;
}

.fav-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--accent-color);
  color: #ffffff; /* White text for visibility */
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 27, 58, 0.96); /* Blue-tinted dark overlay for consistency */
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.search-box {
  width: 90%;
  max-width: 700px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--accent-color);
  margin-bottom: 30px;
}

.search-box input {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 15px 0;
  outline: none;
  font-family: var(--font-title);
}

.search-results {
  width: 90%;
  max-width: 700px;
  max-height: 50vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  border-radius: var(--border-radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.search-result-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
}

.search-result-img {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
}

.search-result-info h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.search-result-info span {
  font-size: 0.8rem;
  color: var(--accent-color);
  text-transform: uppercase;
  font-weight: 600;
}

/* Home Hero Section */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.5s ease-in-out;
  transform: scale(1.05);
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 27, 58, 0.3) 0%, rgba(10, 27, 58, 0.75) 100%);
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1);
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.hero-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  color: #fff;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 1.2s ease forwards;
}

.hero-subtitle {
  font-size: 1.3rem;
  max-width: 700px;
  margin-bottom: 40px;
  color: #cbd5e1;
  animation: fadeInUp 1.4s ease forwards;
}

.hero-search {
  width: 100%;
  max-width: 550px;
  display: flex;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 5px 5px 5px 25px;
  align-items: center;
  animation: fadeInUp 1.6s ease forwards;
}

.hero-search input {
  flex-grow: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  padding: 10px 0;
}

.hero-search input::placeholder {
  color: #f1f5f9;
}

.hero-search button {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-speed);
}

.hero-search button:hover {
  background-color: var(--accent-hover);
  transform: scale(1.05);
}

/* Parallax Panoramic Section */
.page-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 5% 8%;
  color: #fff;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 27, 58, 0.2) 0%, rgba(10, 27, 58, 0.8) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.page-hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.page-hero-meta {
  display: flex;
  gap: 25px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a5f3fc; /* Cyan light shade for metadata on dark hero */
  margin-bottom: 20px;
}

/* Sections */
section.info-section {
  padding: 80px 8%;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Leaflet Real Map Styling */
#belgium-map {
  width: 100%;
  height: 500px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px var(--shadow-color);
  z-index: 10;
}

/* Custom Leaflet popup design to fit light/dark themes */
.leaflet-popup-content-wrapper {
  background: var(--bg-glass) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  border-radius: var(--border-radius-md) !important;
  box-shadow: 0 8px 30px var(--shadow-color) !important;
}

.leaflet-popup-tip {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color);
}

/* Map hover popup widget overlay */
.map-card-popup {
  position: absolute;
  width: 280px;
  padding: 15px;
  border-radius: var(--border-radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--accent-color);
  box-shadow: 0 8px 30px var(--shadow-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed), transform var(--transition-speed);
  transform: translateY(10px);
  z-index: 1000; /* Sitting higher than map layers */
}

.map-card-popup.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.popup-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  margin-bottom: 10px;
}

.popup-name {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.popup-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.popup-desc {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.popup-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
}

/* City Grid Home */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.city-card {
  position: relative;
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-color);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

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

.city-card:hover .city-card-img {
  transform: scale(1.08);
}

.city-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 27, 58, 0.1) 0%, rgba(10, 27, 58, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  color: #fff;
}

.city-card-title {
  font-size: 2rem;
  margin-bottom: 5px;
}

.city-card-province {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #a5f3fc;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}

.city-card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 15px;
  opacity: 0.85;
}

.city-card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #a5f3fc;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border-color var(--transition-speed);
}

.city-card:hover .city-card-cta {
  border-color: #a5f3fc;
}

/* Quick Facts Panel */
.quick-facts-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  margin-top: -60px;
  position: relative;
  z-index: 50;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.fact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  border-right: 1px solid var(--border-color);
  padding-right: 20px;
}

.fact-item:last-child {
  border-right: none;
}

.fact-icon {
  font-size: 2.2rem;
  color: var(--accent-color);
}

.fact-info span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
}

.fact-info h4 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Columns Section */
.history-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
}

.history-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.history-text h3 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.history-trivia-box {
  padding: 30px;
  border-radius: var(--border-radius-lg);
  border: 1px dashed var(--accent-color);
  background: rgba(0, 91, 181, 0.03);
}

.history-trivia-box h4 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.history-trivia-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.history-trivia-box li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

.history-trivia-box li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* Timeline */
.timeline-outer {
  position: relative;
  margin: 50px auto 0;
  padding-left: 30px;
  border-left: 2px solid var(--border-color);
  max-width: 800px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0.9;
  transition: opacity var(--transition-speed);
}

.timeline-item:hover {
  opacity: 1;
}

.timeline-node {
  position: absolute;
  left: -41px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 3px solid var(--accent-color);
  transition: background-color var(--transition-speed);
}

.timeline-item:hover .timeline-node {
  background-color: var(--accent-color);
}

.timeline-meta {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.timeline-header {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.95rem;
}

.timeline-body {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

/* Before / After Slider */
.slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 450px;
  margin: 40px auto;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 30px var(--shadow-color);
  user-select: none;
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.slider-img.before {
  filter: sepia(0.8) contrast(1.1) brightness(0.9);
}

.slider-img.after {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: var(--accent-color);
  z-index: 100;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.slider-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.slider-label {
  position: absolute;
  top: 20px;
  padding: 6px 15px;
  border-radius: var(--border-radius-sm);
  background: rgba(10, 27, 58, 0.8);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 90;
}

.slider-label.before {
  left: 20px;
}

.slider-label.after {
  right: 20px;
}

/* Landmark Category Filters */
.filters-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Landmark Grid */
.landmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px;
}

.landmark-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px var(--shadow-color);
  display: flex;
  flex-direction: column;
  height: 580px;
  transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.landmark-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 25px rgba(0, 91, 181, 0.15);
}

.landmark-card-img-wrapper {
  position: relative;
  height: 240px;
  width: 100%;
  overflow: hidden;
}

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

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

.landmark-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  border-radius: 50px;
  background-color: var(--accent-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.landmark-card-actions {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
}

.landmark-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 27, 58, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-speed);
}

.landmark-action-btn:hover {
  background: var(--accent-color);
  color: #fff;
}

.landmark-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.landmark-card-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 8px;
}

.landmark-card-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.landmark-card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.landmark-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.landmark-card-price {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.landmark-card-cta {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Landmark Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 27, 58, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.modal-container {
  width: 90%;
  max-width: 950px;
  max-height: 85vh;
  border-radius: var(--border-radius-lg);
  overflow-y: auto;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 50px var(--shadow-color);
  position: relative;
  animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  background-color: rgba(10, 27, 58, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-speed);
}

.modal-close:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.modal-hero {
  position: relative;
  height: 350px;
  width: 100%;
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.5));
}

.modal-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 27, 58, 0.2) 0%, rgba(10, 27, 58, 0.9) 100%);
}

.modal-hero-content {
  position: absolute;
  bottom: 30px;
  left: 40px;
  right: 40px;
  z-index: 10;
}

.modal-title {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 5px;
}

.modal-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #a5f3fc;
  letter-spacing: 0.1em;
}

.modal-body {
  padding: 40px;
}

.modal-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.modal-main-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.modal-story-box {
  background: rgba(0, 91, 181, 0.04);
  border-left: 3px solid var(--accent-color);
  padding: 20px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.modal-story-box h4 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.modal-story-box p {
  color: var(--text-primary);
}

/* Audio Player simulation */
.audio-player-container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: var(--bg-primary);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}

.audio-control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.audio-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  flex-grow: 1;
}

.audio-bar {
  width: 3px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 3px;
  transition: height 0.1s ease;
}

.audio-player-container.playing .audio-bar {
  animation: wave 1.2s ease-in-out infinite alternate;
}

.audio-bar:nth-child(2)  { animation-delay: 0.1s; }
.audio-bar:nth-child(3)  { animation-delay: 0.25s; }
.audio-bar:nth-child(4)  { animation-delay: 0.05s; }
.audio-bar:nth-child(5)  { animation-delay: 0.4s; }
.audio-bar:nth-child(6)  { animation-delay: 0.15s; }
.audio-bar:nth-child(7)  { animation-delay: 0.3s; }
.audio-bar:nth-child(8)  { animation-delay: 0.2s; }
.audio-bar:nth-child(9)  { animation-delay: 0.45s; }
.audio-bar:nth-child(10) { animation-delay: 0.35s; }

/* 360 virtual tour button */
.virtual-tour-btn {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-speed);
}

.virtual-tour-btn:hover {
  transform: translateY(-2px);
}

.modal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.modal-sidebar-card {
  padding: 20px;
  border-radius: var(--border-radius-md);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.modal-sidebar-card h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.modal-sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}

.modal-sidebar-list li {
  display: flex;
  justify-content: space-between;
}

.modal-sidebar-list span.label {
  color: var(--text-secondary);
}

.modal-sidebar-list span.val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* 360 Panorama Canvas Overlay */
.pano-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1300;
  background-color: #000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.pano-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pano-container {
  width: 100%;
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.pano-container:active {
  cursor: grabbing;
}

.pano-image-canvas {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: perspective(600px) rotateY(0deg);
}

.pano-close {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 1400;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.pano-instructions {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1400;
  background: rgba(0,0,0,0.7);
  padding: 10px 25px;
  border-radius: 50px;
  color: #fff;
  font-size: 0.85rem;
}

/* Guide Sections Carousel/Flex */
.guides-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.guide-box {
  padding: 40px;
  border-radius: var(--border-radius-lg);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.guide-box h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guide-card-item {
  display: flex;
  gap: 20px;
  padding: 15px;
  border-radius: var(--border-radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.guide-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 91, 181, 0.25);
  border-color: var(--accent-color) !important;
}

.guide-card-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
}

.guide-card-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.guide-card-item-info h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.guide-card-item-info p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.guide-card-item-info span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-top: 5px;
}

/* Sidebar Drawer - Favorites */
.sidebar-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  z-index: 1050;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 40px var(--shadow-color);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 25px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.drawer-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.drawer-empty-text {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 0;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: var(--border-radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.drawer-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
}

.drawer-item-info {
  flex-grow: 1;
}

.drawer-item-info h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.drawer-item-info span {
  font-size: 0.75rem;
  color: var(--accent-color);
}

.drawer-remove-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  transition: color var(--transition-speed);
}

.drawer-remove-btn:hover {
  color: #ef4444;
}

/* AI Travel Planner Page styling */
.planner-form-container {
  max-width: 650px;
  margin: 0 auto 50px;
  padding: 40px;
  border-radius: var(--border-radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.planner-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.planner-step.active {
  display: block;
}

.planner-question {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.planner-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.planner-option-card {
  padding: 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-speed);
}

.planner-option-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.planner-option-card.selected {
  border-color: var(--accent-color);
  background: rgba(0, 91, 181, 0.05);
}

.planner-option-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.planner-option-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.planner-nav-btns {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  cursor: pointer;
  transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}

/* Planner Results Output */
.planner-results-wrapper {
  margin-top: 50px;
  display: none;
}

.planner-results-wrapper.active {
  display: block;
}

.planner-itinerary-header {
  text-align: center;
  margin-bottom: 40px;
}

.planner-itinerary-header h3 {
  font-size: 2.2rem;
  color: var(--text-primary);
}

.planner-day-card {
  padding: 30px;
  border-radius: var(--border-radius-lg);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.planner-day-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.planner-itinerary-item {
  position: relative;
  padding-left: 25px;
  border-left: 2px solid var(--accent-color);
  margin-bottom: 20px;
  margin-left: 10px;
}

.planner-itinerary-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 2px solid var(--accent-color);
}

.planner-item-time {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 2px;
}

.planner-item-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 5px;
}

/* City Comparison Page Styling */
.compare-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.compare-column {
  padding: 30px;
  border-radius: var(--border-radius-lg);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.compare-selector {
  width: 100%;
  padding: 15px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.1rem;
  border-radius: var(--border-radius-md);
  outline: none;
  font-family: var(--font-title);
}

.compare-details-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-details-table td {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.compare-details-table td.label {
  font-weight: 600;
  color: var(--text-secondary);
  width: 40%;
}

.compare-details-table td.value {
  color: var(--text-primary);
  text-align: right;
  font-weight: 500;
}

/* Footer */
footer.main-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 8% 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-col h4 span {
  color: var(--accent-color);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col li {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes wave {
  0% { height: 4px; }
  100% { height: 24px; }
}

/* Responsive Web Design (Mobile First) */
@media (max-width: 1024px) {
  .quick-facts-container {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }
  
  .fact-item:nth-child(2) {
    border-right: none;
  }
  
  .history-layout {
    grid-template-columns: 1fr;
  }
  
  .compare-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header.main-header {
    padding: 0 20px;
  }
  
  nav.main-nav {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .page-hero-title {
    font-size: 2.8rem;
  }
  
  .quick-facts-container {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .fact-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    padding-right: 0;
  }
  
  .fact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .timeline-body {
    grid-template-columns: 1fr;
  }
  
  .slider-wrapper {
    height: 300px;
  }
  
  .modal-layout {
    grid-template-columns: 1fr;
  }
  
  .guides-container {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sidebar-drawer {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .planner-options-grid {
    grid-template-columns: 1fr;
  }
}

/* Photo Credit Badge Overlay */
.photo-credit-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(10, 27, 58, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.9);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.photo-credit-badge a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}
.photo-credit-badge i {
  font-size: 0.8rem;
  color: var(--accent-color);
}

/* Timeline Image Hover & Lightbox */
.timeline-img-wrapper {
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  position: relative;
  height: 240px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px var(--shadow-color);
}
.timeline-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s ease, filter 0.4s ease;
}
.timeline-img-wrapper:hover img {
  transform: scale(1.06);
}
.zoom-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 27, 58, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 6px;
  pointer-events: none;
}
.timeline-img-wrapper:hover .zoom-hover-overlay {
  opacity: 1;
}

/* Lightbox Modal CSS */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 17, 34, 0.96);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.lightbox-container img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--border-radius-md);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: contain;
}
.lightbox-caption {
  color: #fff;
  text-align: center;
  max-width: 650px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2010;
}
.lightbox-close:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.08);
}
