/*
 * ============================================================
 *  SMEDEREVO CITY GUIDE — MAIN STYLESHEET
 *  Design: Modern premium · Glassmorphism · Earthy palette
 *  Sections: Base → Navbar → Hero → Dashboard → About →
 *            Landmarks → Timeline → Ads → Footer → Utilities
 * ============================================================
 */


/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* === Brand Palette === */
  --stone:          #8B7355;
  --stone-dark:     #5C4A32;
  --stone-light:    #C4A882;
  --grape:          #7B4FA0;
  --grape-dark:     #4A2C72;
  --grape-light:    #A878C8;
  --green:          #3D6B4F;
  --green-dark:     #2A4A37;
  --sunset:         #E8864A;
  --sunset-dark:    #C4562A;
  --gold:           #D4AF37;
  --gold-light:     #F0D060;
  --danger:         #C84040;

  /* === Light Theme (default) === */
  --bg:             #F7F2EA;
  --bg-alt:         #EDE7DA;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #FDFAF5;
  --text:           #1C1810;
  --text-muted:     #6B5B48;
  --text-faint:     #A09080;
  --border:         rgba(139, 115, 85, 0.18);
  --shadow-sm:      0 2px 8px  rgba(28, 24, 16, 0.07);
  --shadow-md:      0 6px 24px rgba(28, 24, 16, 0.10);
  --shadow-lg:      0 16px 48px rgba(28, 24, 16, 0.14);
  --glass-bg:       rgba(255, 255, 255, 0.70);
  --glass-border:   rgba(255, 255, 255, 0.80);

  /* === Typography === */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* === Spacing === */
  --section-py:   100px;
  --container-w:  1280px;
  --gap:          32px;

  /* === Motion === */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --duration:     0.3s;
  --duration-slow:0.6s;

  /* === Radii === */
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  36px;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg:             #0E0B07;
  --bg-alt:         #181410;
  --bg-card:        #1C1710;
  --bg-card-hover:  #241E14;
  --text:           #EEE8DA;
  --text-muted:     #C0A880;
  --text-faint:     #7A6A56;
  --border:         rgba(196, 168, 130, 0.14);
  --shadow-sm:      0 2px 8px  rgba(0, 0, 0, 0.30);
  --shadow-md:      0 6px 24px rgba(0, 0, 0, 0.40);
  --shadow-lg:      0 16px 48px rgba(0, 0, 0, 0.55);
  --glass-bg:       rgba(20, 16, 8, 0.75);
  --glass-border:   rgba(196, 168, 130, 0.18);
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::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: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--grape);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--grape); color: #fff; }


/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

/* Section Header (shared across sections) */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grape);
  background: rgba(123, 79, 160, 0.10);
  border: 1px solid rgba(123, 79, 160, 0.20);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}


/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--duration) var(--ease);
}

.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
  background: linear-gradient(135deg, var(--grape), var(--grape-dark));
  color: #fff;
  box-shadow: 0 6px 24px rgba(123, 79, 160, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(123, 79, 160, 0.45);
}

.btn-outline {
  color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}


/* ============================================================
   5. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--duration-slow) var(--ease),
              padding var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  transition: color var(--duration) var(--ease);
}

.navbar.scrolled .nav-logo { color: var(--text); }

.nav-logo i {
  font-size: 1.1rem;
  color: var(--gold);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto; /* center */
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }

.navbar.scrolled .nav-link { color: var(--text-muted); }
.navbar.scrolled .nav-link:hover { color: var(--text); background: var(--bg-alt); }
.navbar.scrolled .nav-link.active { color: var(--grape); }

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.25);
  font-size: 0.9rem;
  transition: all var(--duration) var(--ease);
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.navbar.scrolled .theme-toggle {
  color: var(--text-muted);
  border-color: var(--border);
}

.navbar.scrolled .theme-toggle:hover {
  background: var(--bg-alt);
  color: var(--text);
}

/* Language Toggle */
.lang-toggle {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.06);
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
  cursor: pointer;
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}

.navbar.scrolled .lang-toggle {
  color: var(--text-muted);
  border-color: var(--border);
  background: transparent;
}

.navbar.scrolled .lang-toggle:hover {
  background: var(--bg-alt);
  color: var(--grape);
  border-color: rgba(123,79,160,0.40);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
  transform-origin: center;
}

.navbar.scrolled .hamburger span { background: var(--text); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 990;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.mobile-overlay.visible {
  display: block;
  opacity: 1;
}


/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Multi-layer atmospheric background */
  background:
    linear-gradient(
      180deg,
      rgba(8,  5,  2,  0.78) 0%,
      rgba(28, 12, 48, 0.60) 28%,
      rgba(90, 40, 10, 0.48) 62%,
      rgba(8,  5,  2,  0.90) 100%
    ),
    repeating-linear-gradient(
      135deg,
      rgba(80, 60, 40, 0.04) 0px,
      rgba(80, 60, 40, 0.04) 1px,
      transparent 1px,
      transparent 12px
    ),
    linear-gradient(
      155deg,
      #0c0820 0%,
      #1a0c30 18%,
      #2a1408 45%,
      #180a04 72%,
      #090407 100%
    );
}

/* Particle canvas */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.28);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-badge i { font-size: 0.7rem; }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 0.92;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6),
               0 0 80px rgba(123, 79, 160, 0.25);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  /* Subtle gradient on text */
  background: linear-gradient(135deg, #ffffff 0%, #f0e0c0 60%, #d4b88a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(255,255,255,0.72);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin-bottom: 44px;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Fortress battlements at bottom */
.hero-battlements {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.hero-battlements svg {
  width: 100%;
  height: auto;
  min-height: 80px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 7px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scroll-bob 1.8s ease-in-out infinite;
}

@keyframes scroll-bob {
  0%   { transform: translateY(0);   opacity: 1; }
  60%  { transform: translateY(8px); opacity: 0.3; }
  100% { transform: translateY(0);   opacity: 1; }
}


/* ============================================================
   7. DASHBOARD / LIVE INFO WIDGETS
   ============================================================ */
.dashboard-section {
  background: var(--bg);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

/* Base Widget */
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  opacity: 0.8;
}

.widget:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.widget-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Icon color variants */
.widget-icon-blue   { background: rgba(66, 133, 244, 0.12); color: #4285F4; }
.widget-icon-orange { background: rgba(232, 134, 74, 0.12); color: var(--sunset); }
.widget-icon-teal   { background: rgba(0, 168, 150, 0.12);  color: #00A896; }
.widget-icon-slate  { background: rgba(100, 116, 139, 0.12);color: #64748B; }
.widget-icon-purple { background: rgba(123, 79, 160, 0.12); color: var(--grape); }

/* Accent bar per widget */
.widget-clock::before   { background: #4285F4; }
.widget-temp::before    { background: var(--sunset); }
.widget-humidity::before{ background: #00A896; }
.widget-wind::before    { background: #64748B; }
.widget-aqi::before     { background: var(--grape); }

.widget-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Clock Widget */
.widget-clock {
  grid-column: 1;
}

.clock-display {
  flex: 1;
}

.clock-time {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.clock-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* Shared main value style */
.widget-main-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.widget-main-value span:first-child {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.widget-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-faint);
}

.widget-condition {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.widget-footer-text {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: auto;
}

/* Progress bar (humidity) */
.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s var(--ease-out);
}

.progress-fill-teal { background: linear-gradient(90deg, #00A896, #00CCC0); }

.progress-label {
  font-size: 0.72rem;
  color: var(--text-faint);
  white-space: nowrap;
}

/* Wind compass */
.wind-compass {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.compass-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compass-arrow {
  font-size: 0.8rem;
  color: var(--sunset);
  transition: transform 1s var(--ease-out);
}

/* AQI scale */
.aqi-scale {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aqi-bar-bg {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    #00c853 0%, #aeea00 25%, #ff9100 50%, #d50000 75%, #9c27b0 100%
  );
  overflow: hidden;
  position: relative;
}

.aqi-fill {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.55);
  transition: width 1.2s var(--ease-out);
}

.aqi-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--text-faint);
}

.aqi-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(123, 79, 160, 0.12);
  color: var(--grape);
  border: 1px solid rgba(123, 79, 160, 0.2);
  align-self: flex-start;
  margin-top: auto;
}

/* API notice */
.api-notice {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
}

.api-notice-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.api-notice-inner i {
  color: var(--grape);
  flex-shrink: 0;
}

.api-notice-inner a {
  color: var(--grape);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.api-notice-inner code {
  font-size: 0.8rem;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grape);
  padding: 7px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(123, 79, 160, 0.30);
  background: rgba(123, 79, 160, 0.07);
  transition: all var(--duration) var(--ease);
  margin-left: auto;
  flex-shrink: 0;
}

.btn-refresh:hover {
  background: rgba(123, 79, 160, 0.15);
  border-color: var(--grape);
}

.btn-refresh i { transition: transform 0.5s var(--ease); }
.btn-refresh:active i { transform: rotate(360deg); }


/* ============================================================
   8. ABOUT SECTION
   ============================================================ */
.about-section {
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: start;
}

/* About Blocks */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.about-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.about-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-block-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--grape), var(--grape-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(123, 79, 160, 0.30);
  margin-top: 2px;
}

.about-block-text h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.about-block-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.about-block-text em {
  color: var(--grape);
  font-style: italic;
}

/* About Side Panel */
.about-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

/* Stat Grid */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 20px;
  text-align: center;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  box-shadow: var(--shadow-sm);
}

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

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--grape);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-suffix {
  font-size: 1.1rem;
  font-weight: 500;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Quote card */
.about-quote-card {
  background: linear-gradient(135deg, var(--grape-dark), var(--grape));
  border-radius: var(--r-md);
  padding: 28px;
  color: #fff;
  position: relative;
}

.about-quote-card i {
  font-size: 1.8rem;
  opacity: 0.3;
  margin-bottom: 12px;
  display: block;
}

.about-quote-card blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
}

/* Location info */
.location-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.location-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
}

.location-row i {
  width: 20px;
  text-align: center;
  color: var(--grape);
  margin-top: 3px;
  flex-shrink: 0;
}

.location-row strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  margin-bottom: 2px;
}

.location-row p { color: var(--text-muted); }


/* ============================================================
   9. ADVERTISING PLACEHOLDERS
   ============================================================ */
.ad-section-wrap {
  padding: 32px 0;
  background: var(--bg);
}

.ad-section-double {
  background: var(--bg-alt);
}

.ad-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(139, 115, 85, 0.03) 8px,
    rgba(139, 115, 85, 0.03) 16px
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  transition: border-color var(--duration) var(--ease);
}

.ad-placeholder:hover { border-color: var(--stone-light); }

.ad-label {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.ad-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 24px;
}

.ad-content i {
  font-size: 2rem;
  color: var(--border);
  margin-bottom: 4px;
}

.ad-content span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-faint);
}

.ad-content small {
  font-size: 0.75rem;
  color: var(--text-faint);
  opacity: 0.7;
}

/* Leaderboard banner */
.ad-leaderboard {
  height: 100px;
  flex-direction: row;
}

.ad-leaderboard .ad-content {
  flex-direction: row;
  flex-wrap: wrap;
}

/* Double grid */
.ad-double-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ad-box-medium {
  height: 200px;
}

/* Sidebar ad (inside about section) */
.ad-sidebar {
  height: 180px;
}


/* ============================================================
   10. LANDMARKS SECTION
   ============================================================ */
.landmarks-section {
  background: var(--bg);
}

.landmarks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Featured card spans full width */
.landmark-featured {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* Base card */
.landmark-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.landmark-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Image wrapper */
.landmark-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.landmark-card:not(.landmark-featured) .landmark-image-wrap {
  height: 220px;
}

.landmark-featured .landmark-image-wrap {
  height: 100%;
  min-height: 380px;
}

.landmark-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

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

/* Featured badge */
.landmark-badge-top {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--sunset-dark));
  padding: 5px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.landmark-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Landmark body */
.landmark-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.landmark-featured .landmark-body {
  padding: 36px;
  justify-content: center;
}

.landmark-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grape);
}

.landmark-body h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.landmark-featured .landmark-body h3 {
  font-size: 1.9rem;
}

.landmark-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

/* Tags */
.landmark-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.tag i { font-size: 0.65rem; color: var(--stone); }


/* ============================================================
   11. HISTORY TIMELINE
   ============================================================ */
.timeline-section {
  background: var(--bg-alt);
}

.timeline-wrap {
  position: relative;
  padding: 20px 0;
}

/* Vertical axis */
.timeline-axis {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--border) 5%,
    var(--border) 95%,
    transparent 100%
  );
}

/* Timeline Item */
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 56px;
  position: relative;
}

.timeline-item:last-child { margin-bottom: 0; }

/* Left item: card on left, dot in center */
.tl-left {
  flex-direction: row;
  padding-right: calc(50% + 28px);
}

/* Right item: dot in center, card on right */
.tl-right {
  flex-direction: row-reverse;
  padding-left: calc(50% + 28px);
}

/* Dot */
.tl-dot {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translate(-50%, 0);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--stone);
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}

.tl-dot-accent {
  background: linear-gradient(135deg, var(--grape), var(--grape-dark));
  border-color: var(--grape);
  color: #fff;
  box-shadow: 0 4px 20px rgba(123, 79, 160, 0.35);
}

.tl-dot-danger {
  background: linear-gradient(135deg, #c84040, #8b1a1a);
  border-color: #c84040;
  color: #fff;
  box-shadow: 0 4px 20px rgba(200, 64, 64, 0.35);
}

.timeline-item:hover .tl-dot {
  transform: translate(-50%, 0) scale(1.15);
}

/* Connector line from card to dot */
.tl-connector {
  display: none; /* visual only — axis serves this purpose */
}

/* Timeline Card */
.tl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  opacity: 0;
  transform: translateY(16px);
}

.tl-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:hover .tl-card {
  box-shadow: var(--shadow-md);
}

.tl-card-highlight {
  border-color: rgba(123, 79, 160, 0.30);
  background: linear-gradient(135deg,
    var(--bg-card) 0%,
    rgba(123, 79, 160, 0.04) 100%
  );
}

.tl-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grape);
  margin-bottom: 8px;
}

.tl-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.tl-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.tl-highlight-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--grape);
  background: rgba(123, 79, 160, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(123, 79, 160, 0.18);
}


/* ============================================================
   12. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-main {
  padding: 72px 0 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 56px;
}

/* Footer Brand */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-logo i { color: var(--gold); font-size: 1.1rem; }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}

.social-links a:hover {
  background: var(--grape);
  border-color: var(--grape);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(123, 79, 160, 0.30);
}

/* Footer nav columns */
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.footer-col ul li a:hover { color: var(--grape); }

/* Visit info */
.visit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.visit-item i {
  width: 16px;
  text-align: center;
  color: var(--grape);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer-bottom i.fa-heart {
  color: var(--danger);
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.25); }
}


/* ============================================================
   13. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grape), var(--grape-dark));
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(123, 79, 160, 0.40);
  z-index: 500;
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--duration) var(--ease);
  pointer-events: none;
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(123, 79, 160, 0.50);
}


/* ============================================================
   14. SCROLL ANIMATION CLASSES (used by JS)
   ============================================================ */
[data-aos] {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-aos="fade-up"]    { transform: translateY(28px); }
[data-aos="fade-down"]  { transform: translateY(-28px); }
[data-aos="fade-left"]  { transform: translateX(28px); }
[data-aos="fade-right"] { transform: translateX(-28px); }

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0, 0);
}


/* ============================================================
   15. RESPONSIVE DESIGN
   ============================================================ */

/* --- Tablet (≤ 1100px) --- */
@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .widget-clock {
    grid-column: 1 / -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-side {
    position: static;
  }

  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* --- Tablet (≤ 900px) --- */
@media (max-width: 900px) {
  :root { --section-py: 72px; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 80px 24px 32px;
    box-shadow: var(--shadow-lg);
    z-index: 995;
    transition: right var(--duration-slow) var(--ease);
    border-left: 1px solid var(--border);
  }

  .nav-links.open { right: 0; }

  .nav-link {
    color: var(--text-muted);
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-link:hover { color: var(--text); background: var(--bg-alt); }

  .hamburger { display: flex; }

  .landmarks-grid {
    grid-template-columns: 1fr 1fr;
  }

  .landmark-featured {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .landmark-featured .landmark-image-wrap { min-height: 280px; }

  .tl-left  { padding-right: calc(50% + 20px); }
  .tl-right { padding-left: calc(50% + 20px); }
}

/* --- Mobile (≤ 640px) --- */
@media (max-width: 640px) {
  :root { --section-py: 56px; }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .widget-clock { grid-column: 1 / -1; }
  .widget-aqi   { grid-column: 1 / -1; }

  .landmarks-grid {
    grid-template-columns: 1fr;
  }

  .landmark-featured { grid-template-columns: 1fr; }

  /* Mobile timeline: all items on right */
  .timeline-axis {
    left: 20px;
    transform: none;
  }

  .tl-dot {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-item:hover .tl-dot {
    transform: translateX(-50%) scale(1.15);
  }

  .tl-left {
    padding-right: 0;
    padding-left: 64px;
    flex-direction: row-reverse;
  }

  .tl-right {
    padding-left: 64px;
    flex-direction: row-reverse;
  }

  .stat-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-bottom .container { flex-direction: column; text-align: center; }

  .ad-double-grid { grid-template-columns: 1fr; }

  .api-notice-inner { flex-wrap: wrap; }

  .btn-refresh { margin-left: 0; }

  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* --- Small mobile (≤ 400px) --- */
@media (max-width: 400px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .widget-clock, .widget-aqi { grid-column: 1; }
}
