/* ==========================================
   TRAVEL GUIDES - PREMIUM DESIGN SYSTEM
   Light Theme
   ========================================== */

/* CSS Variables for theming */
:root {
  /* Primary Colors - Vibrant Travel Theme */
  --guide-primary: #0ea5e9;
  --guide-primary-dark: #0284c7;
  --guide-primary-light: #38bdf8;

  /* Accent Colors */
  --guide-accent-coral: #f97316;
  --guide-accent-teal: #14b8a6;
  --guide-accent-purple: #8b5cf6;
  --guide-accent-rose: #f43f5e;

  /* Light Theme Colors */
  --guide-bg-dark: #f8fafc;
  --guide-bg-darker: #f1f5f9;
  --guide-surface: #ffffff;
  --guide-surface-elevated: #f8fafc;
  --guide-text: #1e293b;
  --guide-text-muted: #64748b;
  --guide-text-subtle: #94a3b8;
  --guide-border: #e2e8f0;

  /* Gradients */
  --guide-gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
  --guide-gradient-accent: linear-gradient(135deg, #f97316 0%, #f43f5e 100%);
  --guide-gradient-hero: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%);
  --guide-gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);

  /* Shadows */
  --guide-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --guide-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --guide-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --guide-shadow-glow: 0 0 20px rgba(14, 165, 233, 0.15);

  /* Spacing */
  --guide-radius-sm: 8px;
  --guide-radius-md: 12px;
  --guide-radius-lg: 16px;
  --guide-radius-xl: 24px;

  /* Transitions */
  --guide-transition-fast: 150ms ease;
  --guide-transition-normal: 250ms ease;
  --guide-transition-slow: 400ms ease;
}

/* Base Styles */
.guides-page {
  background: var(--guide-bg-dark);
  color: var(--guide-text);
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================
   HEADER / NAVBAR
   ========================================== */

.guide-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--guide-border);
  box-shadow: var(--guide-shadow-sm);
}

.guide-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.guide-header-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--guide-surface);
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius-md);
  color: var(--guide-text-muted);
  text-decoration: none;
  transition: all var(--guide-transition-fast);
}

.guide-header-back:hover {
  background: var(--guide-surface-elevated);
  color: var(--guide-text);
}

.guide-header-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--guide-text);
}

.guide-header-logo {
  display: flex;
  align-items: center;
}

.guide-header-logo img {
  height: 32px;
  width: auto;
}

.guide-header-logo a {
  display: flex;
  align-items: center;
}

/* Offset content for fixed header */
.guides-page.has-header {
  padding-top: 60px;
}

/* ==========================================
   GLASSMORPHISM COMPONENTS
   ========================================== */

.glass-card {
  background: var(--guide-gradient-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius-lg);
  box-shadow: var(--guide-shadow-sm);
}

.glass-card-elevated {
  background: var(--guide-surface);
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius-lg);
  box-shadow: var(--guide-shadow-md);
}

/* ==========================================
   HERO SECTION - COMPACT
   ========================================== */

.guides-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important; /* Changed from hidden to visible so search dropdown can show */
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
  border-bottom: 1px solid var(--guide-border);
  z-index: 0; /* Low z-index to ensure search dropdown appears above */
}

.guides-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
}

.guides-hero-content {
  position: relative;
  z-index: 1; /* Lower than search container */
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.guides-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--guide-text);
}

.guides-hero-subtitle {
  font-size: 1.125rem;
  color: var(--guide-text-muted);
  max-width: 550px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* ==========================================
   SEARCH BAR
   ========================================== */

.guides-search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  z-index: 99999 !important; /* Very high z-index to ensure it's on top */
  isolation: isolate; /* Create new stacking context */
}

.guides-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.guides-search-input {
  width: 100%;
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  font-size: 1.125rem;
  background: var(--guide-surface);
  border: 2px solid var(--guide-border);
  border-radius: var(--guide-radius-xl);
  color: var(--guide-text);
  outline: none;
  transition: all var(--guide-transition-normal);
}

.guides-search-input::placeholder {
  color: var(--guide-text-subtle);
}

.guides-search-input:focus {
  border-color: var(--guide-primary);
  box-shadow: var(--guide-shadow-glow);
}

.guides-search-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--guide-text-muted);
  font-size: 1.25rem;
  pointer-events: none;
}

.guides-search-dropdown {
  position: fixed !important; /* Use fixed positioning to escape all parent containers */
  background: var(--guide-surface);
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 400px;
  overflow-y: auto;
  z-index: 999999 !important; /* Extremely high z-index to ensure it's always on top */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--guide-transition-normal), visibility var(--guide-transition-normal), transform var(--guide-transition-normal);
  /* Position and width will be set by JavaScript dynamically */
  /* Initial values to prevent flash of mispositioned content */
  top: 0 !important;
  left: 0 !important;
  width: 600px !important;
  max-width: calc(100vw - 2rem) !important;
  display: block !important; /* Ensure it's always a block element */
}

.guides-search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.guides-search-result {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background var(--guide-transition-fast);
  border-bottom: 1px solid var(--guide-border);
}

.guides-search-result:last-child {
  border-bottom: none;
}

.guides-search-result:hover {
  background: var(--guide-surface-elevated);
}

.guides-search-result-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.25rem;
}

.guides-search-result-icon.country {
  background: rgba(14, 165, 233, 0.2);
  color: var(--guide-primary);
}

.guides-search-result-icon.city {
  background: rgba(139, 92, 246, 0.2);
  color: var(--guide-accent-purple);
}

.guides-search-result-info {
  flex: 1;
}

.guides-search-result-name {
  font-weight: 600;
  color: var(--guide-text);
  font-size: 1rem;
}

.guides-search-result-meta {
  font-size: 0.875rem;
  color: var(--guide-text-muted);
  margin-top: 2px;
}

/* ==========================================
   REGION TABS
   ========================================== */

.guides-regions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 3rem 0;
  padding: 0 1rem;
}

.guides-region-tab {
  padding: 0.75rem 1.5rem;
  background: var(--guide-surface);
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius-xl);
  color: var(--guide-text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--guide-transition-normal);
}

.guides-region-tab:hover {
  background: var(--guide-surface-elevated);
  color: var(--guide-text);
  transform: translateY(-2px);
}

.guides-region-tab.active {
  background: var(--guide-gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: var(--guide-shadow-md);
}

/* ==========================================
   COUNTRY CARDS GRID
   ========================================== */

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.guide-card {
  position: relative;
  background: var(--guide-surface);
  border-radius: var(--guide-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--guide-transition-normal);
  border: 1px solid var(--guide-border);
}

.guide-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--guide-shadow-lg);
  border-color: var(--guide-primary);
}

.guide-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform var(--guide-transition-slow);
}

.guide-card:hover .guide-card-image {
  transform: scale(1.05);
}

.guide-card-content {
  padding: 1.5rem;
}

.guide-card-flag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--guide-shadow-md);
  object-fit: cover;
  border: 2px solid white;
}

.guide-card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--guide-text);
  margin-bottom: 0.5rem;
}

.guide-card-subtitle {
  font-size: 0.9375rem;
  color: var(--guide-text-muted);
  margin-bottom: 1rem;
}

.guide-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.guide-card-tag {
  padding: 0.375rem 0.875rem;
  background: rgba(14, 165, 233, 0.1);
  color: var(--guide-primary-dark);
  border-radius: var(--guide-radius-xl);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ==========================================
   COUNTRY DETAIL PAGE
   ========================================== */

.guide-country-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
  border-bottom: 1px solid var(--guide-border);
  overflow: hidden;
}

.guide-country-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  transition: opacity var(--guide-transition-slow);
}

.guide-country-hero:hover .guide-country-hero-bg {
  opacity: 0.4;
}

.guide-country-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.guide-country-hero::before {
  display: none;
}

.guide-country-hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.guide-country-title {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.guide-country-region {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.guide-country-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.guide-country-flag {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  box-shadow: var(--guide-shadow-md);
  object-fit: cover;
}

.guide-country-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--guide-text);
  margin: 0;
}

.guide-country-region {
  font-size: 1rem;
  color: var(--guide-primary);
  font-weight: 500;
  margin-top: 2px;
}

/* Quick Facts Bar */
.guide-quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.guide-quick-fact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--guide-surface);
  border-radius: var(--guide-radius-md);
  border: 1px solid var(--guide-border);
  box-shadow: var(--guide-shadow-sm);
}

.guide-quick-fact-icon {
  font-size: 1rem;
  color: var(--guide-primary);
}

.guide-quick-fact-value {
  font-weight: 600;
  color: var(--guide-text);
}

.guide-quick-fact-label {
  font-size: 0.8125rem;
  color: var(--guide-text-muted);
  margin-left: 0.25rem;
}

/* ==========================================
   INFO SECTIONS
   ========================================== */

.guide-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.guide-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--guide-text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.guide-section-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--guide-gradient-primary);
  border-radius: var(--guide-radius-md);
  font-size: 1.25rem;
}

.guide-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.guide-info-card {
  background: var(--guide-surface);
  border-radius: var(--guide-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--guide-border);
  transition: all var(--guide-transition-normal);
}

.guide-info-card:hover {
  border-color: var(--guide-primary);
  transform: translateY(-2px);
}

.guide-info-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--guide-text);
  margin-bottom: 0.5rem;
}

.guide-info-card-content {
  font-size: 0.9375rem;
  color: var(--guide-text-muted);
  line-height: 1.6;
}

/* ==========================================
   WEATHER WIDGET
   ========================================== */

.guide-weather-widget {
  background: var(--guide-surface);
  border-radius: var(--guide-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--guide-border);
}

.guide-weather-content {
  padding: 0.5rem 0;
}

.guide-weather-current {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--guide-border);
}

.guide-weather-best-time {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--guide-border);
}

.guide-weather-label {
  font-size: 0.875rem;
  color: var(--guide-text-muted);
  margin-bottom: 0.5rem;
}

.guide-weather-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--guide-text);
}

.guide-weather-seasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.guide-weather-season-tag {
  padding: 0.75rem 0.375rem;
  background: var(--guide-surface-elevated);
  border-radius: var(--guide-radius-md);
  text-align: center;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  word-wrap: break-word;
}

.guide-weather-season-name {
  font-size: 0.75rem;
  color: var(--guide-text-muted);
  text-transform: capitalize;
  margin-bottom: 0.25rem;
}

.guide-weather-season-temp {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--guide-text);
}

.guide-weather-temp {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--guide-text);
}

.guide-weather-desc {
  font-size: 1.125rem;
  color: var(--guide-text-muted);
}

.guide-weather-icon {
  width: 80px;
  height: 80px;
}

.guide-weather-forecast {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.guide-weather-day {
  flex: 1;
  min-width: 80px;
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--guide-surface-elevated);
  border-radius: var(--guide-radius-md);
}

.guide-weather-day-name {
  font-size: 0.875rem;
  color: var(--guide-text-muted);
  margin-bottom: 0.5rem;
}

.guide-weather-day-icon {
  width: 40px;
  height: 40px;
  margin: 0.5rem auto;
}

.guide-weather-day-temp {
  font-weight: 600;
  color: var(--guide-text);
}

/* ==========================================
   CURRENCY CONVERTER
   ========================================== */

.guide-currency-converter {
  background: var(--guide-surface);
  border-radius: var(--guide-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--guide-border);
}

.guide-currency-content {
  padding: 0.5rem 0;
  width: 100%;
  box-sizing: border-box;
}

.guide-currency-display {
  text-align: center;
  padding: 1rem 0;
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.guide-currency-symbol-code {
  font-size: 2rem;
  font-weight: 700;
  color: var(--guide-text);
  margin-bottom: 0.25rem;
}

.guide-currency-name {
  font-size: 0.9375rem;
  color: var(--guide-text-muted);
}

.guide-currency-converter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--guide-surface);
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius-md);
  color: var(--guide-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--guide-transition-normal);
  box-sizing: border-box;
  margin-top: 1rem;
}

.guide-currency-converter-btn:hover {
  background: var(--guide-surface-elevated);
  border-color: var(--guide-primary);
  color: var(--guide-primary);
}

.guide-currency-converter-btn:only-of-type {
  margin-top: 1rem;
}

.guide-currency-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.guide-currency-input {
  flex: 1;
  padding: 1rem;
  background: var(--guide-surface-elevated);
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius-md);
  color: var(--guide-text);
  font-size: 1.125rem;
  font-weight: 600;
}

.guide-currency-select {
  padding: 1rem;
  background: var(--guide-surface-elevated);
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius-md);
  color: var(--guide-text);
  font-size: 1rem;
  cursor: pointer;
}

.guide-currency-rate {
  text-align: center;
  color: var(--guide-text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ==========================================
   INTERACTIVE MAP
   ========================================== */

.guide-map-container {
  position: relative;
  height: 600px;
  border-radius: var(--guide-radius-lg);
  overflow: hidden;
  border: 1px solid var(--guide-border);
}

.guide-map {
  width: 100%;
  height: 100%;
}

.guide-map-controls {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: calc(100% - 2rem);
}

.guide-map-filter {
  padding: 0.5rem 1rem;
  background: var(--guide-surface);
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius-xl);
  color: var(--guide-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--guide-transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-map-filter:hover {
  background: var(--guide-surface-elevated);
  color: var(--guide-text);
}

.guide-map-filter.active {
  background: var(--guide-primary);
  border-color: var(--guide-primary);
  color: white;
}

/* Map Popup */
.maplibregl-popup-content {
  background: var(--guide-surface) !important;
  color: var(--guide-text) !important;
  border-radius: var(--guide-radius-md) !important;
  padding: 1rem !important;
  box-shadow: var(--guide-shadow-lg) !important;
  border: 1px solid var(--guide-border) !important;
  min-width: 250px;
}

.maplibregl-popup-tip {
  border-top-color: var(--guide-surface) !important;
}

.guide-popup-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.guide-popup-category {
  font-size: 0.75rem;
  color: var(--guide-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.guide-popup-desc {
  font-size: 0.875rem;
  color: var(--guide-text-muted);
  line-height: 1.5;
}

.guide-popup-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--guide-border);
  font-size: 0.8125rem;
  color: var(--guide-text-subtle);
}

/* ==========================================
   TRAVEL PHRASES
   ========================================== */

.guide-phrases-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-phrase-item {
  background: var(--guide-surface);
  border-radius: var(--guide-radius-md);
  padding: 1.25rem;
  border: 1px solid var(--guide-border);
  cursor: pointer;
  transition: all var(--guide-transition-normal);
}

.guide-phrase-item:hover {
  border-color: var(--guide-primary);
}

.guide-phrase-english {
  font-weight: 600;
  color: var(--guide-text);
  margin-bottom: 0.5rem;
}

.guide-phrase-local {
  font-size: 1.125rem;
  color: var(--guide-primary-light);
  margin-bottom: 0.25rem;
}

.guide-phrase-phonetic {
  font-size: 0.9375rem;
  color: var(--guide-text-muted);
  font-style: italic;
}

/* ==========================================
   PRINTABLE FACTSHEET
   ========================================== */

.guide-factsheet {
  background: white;
  color: #1e293b;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

@media print {
  .guides-page {
    background: white;
  }

  .guide-factsheet {
    padding: 0;
  }

  .guide-print-hide {
    display: none !important;
  }
}

.guide-factsheet-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.guide-factsheet-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.guide-factsheet-section {
  margin-bottom: 1.5rem;
}

.guide-factsheet-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0ea5e9;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.guide-factsheet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
}

.guide-factsheet-item {
  display: flex;
  gap: 0.5rem;
}

.guide-factsheet-label {
  font-weight: 600;
  color: #64748b;
  min-width: 100px;
}

.guide-factsheet-value {
  color: #1e293b;
}

.guide-factsheet-qr {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

/* ==========================================
   BUTTONS
   ========================================== */

.guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--guide-radius-md);
  cursor: pointer;
  transition: all var(--guide-transition-normal);
  border: none;
  text-decoration: none;
}

.guide-btn-primary {
  background: var(--guide-gradient-primary);
  color: white;
  box-shadow: var(--guide-shadow-md);
}

.guide-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--guide-shadow-lg);
}

.guide-btn-secondary {
  background: var(--guide-surface);
  color: var(--guide-text);
  border: 1px solid var(--guide-border);
}

.guide-btn-secondary:hover {
  background: var(--guide-surface-elevated);
  border-color: var(--guide-primary);
}

.guide-btn-print {
  background: var(--guide-accent-coral);
  color: white;
}

.guide-btn-print:hover {
  background: #ea580c;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
  .guides-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    padding: 1.5rem;
  }

  .guide-map-container {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .guides-hero {
    padding: 4rem 1rem;
    min-height: 400px;
  }

  .guides-hero-subtitle {
    font-size: 1rem;
  }

  .guides-regions {
    gap: 0.5rem;
  }

  .guides-region-tab {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .guides-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .guide-country-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .guide-quick-facts {
    flex-direction: column;
  }

  .guide-map-container {
    height: 400px;
  }

  .guide-map-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .guide-weather-forecast {
    justify-content: flex-start;
  }

  .guide-factsheet-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .guide-card-image {
    height: 150px;
  }

  .guide-currency-row {
    flex-direction: column;
  }

  .guide-weather-current {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   LOADING STATES
   ========================================== */

.guide-skeleton {
  background: linear-gradient(90deg, var(--guide-surface) 25%, var(--guide-surface-elevated) 50%, var(--guide-surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--guide-radius-md);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.guide-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--guide-border);
  border-top-color: var(--guide-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   MICRO-ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease forwards;
}

.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

.stagger-5 {
  animation-delay: 0.5s;
}

/* ==========================================
   BREADCRUMBS
   ========================================== */

.guide-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  color: var(--guide-text-muted);
}

.guide-breadcrumb-link {
  color: var(--guide-text-muted);
  text-decoration: none;
  transition: color var(--guide-transition-fast);
}

.guide-breadcrumb-link:hover {
  color: var(--guide-primary);
}

.guide-breadcrumb-separator {
  color: var(--guide-text-subtle);
}

.guide-breadcrumb-current {
  color: var(--guide-text);
  font-weight: 500;
}

/* ==========================================
   CATEGORY BADGES
   ========================================== */

.guide-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--guide-radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-category-badge.attraction {
  background: rgba(14, 165, 233, 0.2);
  color: var(--guide-primary-light);
}

.guide-category-badge.food {
  background: rgba(249, 115, 22, 0.2);
  color: var(--guide-accent-coral);
}

.guide-category-badge.nature {
  background: rgba(20, 184, 166, 0.2);
  color: var(--guide-accent-teal);
}

.guide-category-badge.transport {
  background: rgba(139, 92, 246, 0.2);
  color: var(--guide-accent-purple);
}

.guide-category-badge.practical {
  background: rgba(244, 63, 94, 0.2);
  color: var(--guide-accent-rose);
}