/* ============================================
   EDINBURGH → LESKOVAC — Travel Itinerary
   Design System & Complete Styles
   ============================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --color-primary-dark: #1a1a2e;
  --color-accent: #e77f67;
  --color-accent-hover: #d96b52;
  --color-gold: #f8b739;
  --color-bg-light: #faf3e0;
  --color-bg-white: #ffffff;
  --color-text-dark: #2d3436;
  --color-text-muted: #636e72;
  --color-alert-red: #eb4d4b;
  --color-alert-red-light: #fff5f5;
  --color-success-green: #6ab04c;
  --color-success-green-light: #f0fff0;
  --color-border: #e8e0d0;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.16);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  --container-max: 1140px;
  --section-padding: 100px;
}

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

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-accent-hover);
}

/* External link indicator */
a[target="_blank"]::after {
  content: " \2197";
  font-size: 0.85em;
  opacity: 0.8;
}

strong {
  font-weight: 600;
}

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

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

/* ---------- FADE-IN ANIMATION ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(231, 127, 103, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-label-warning {
  color: var(--color-alert-red);
  background: rgba(235, 77, 75, 0.1);
}

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

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==========================================
   STICKY NAVIGATION
   ========================================== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(-100%);
  transition: transform var(--transition-normal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sticky-nav.active {
  transform: translateY(0);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

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

/* Nav Route Indicator */
.nav-route-indicator {
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.nav-route-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--color-gold);
  background: rgba(248, 183, 57, 0.15);
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
  transition: all var(--transition-normal);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-primary-dark);
  background-image: url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 46, 0.75) 0%,
    rgba(26, 26, 46, 0.5) 50%,
    rgba(26, 26, 46, 0.85) 100%
  );
}

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

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-arrow {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.stat-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  color: rgba(255, 255, 255, 0.5);
}

.scroll-text {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.scroll-chevron {
  animation: bounceDown 2s ease infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ==========================================
   ROUTE SELECTOR
   ========================================== */
.route-section {
  background: var(--color-bg-white);
}

.route-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 48px;
}

.route-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(231, 127, 103, 0.4);
}

.route-card.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(231, 127, 103, 0.15), var(--shadow-md);
  background: linear-gradient(180deg, rgba(231, 127, 103, 0.03) 0%, var(--color-bg-white) 100%);
}

.route-card:not(.active) {
  opacity: 0.65;
}

.route-card:not(.active):hover {
  opacity: 0.85;
}

.route-card-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.route-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.route-card-subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.route-card-stats {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================
   ROUTE / MAP SECTION
   ========================================== */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.route-map {
  height: 500px;
  width: 100%;
}

/* Custom Leaflet popup */
.custom-popup .leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  padding: 0;
  box-shadow: var(--shadow-md);
}

.custom-popup .leaflet-popup-content {
  margin: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.popup-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary-dark);
}

.popup-day {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 500;
}

/* ==========================================
   ESSENTIALS SECTION
   ========================================== */
.essentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.essential-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.essential-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.essential-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.essential-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* Checklist */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-success-green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

.check-note {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* Vignette links */
.vignette-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vignette-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  color: var(--color-text-dark) !important;
}

.vignette-link:hover {
  border-color: var(--color-accent);
  background: #fff;
  transform: translateX(4px);
}

.vignette-flag {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.vignette-link div {
  flex: 1;
}

.vignette-link strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.vignette-link small {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.link-arrow {
  font-size: 1.2rem;
  color: var(--color-accent);
  font-weight: 600;
  flex-shrink: 0;
}

/* ==========================================
   JOURNEY / TIMELINE
   ========================================== */
.journey-section {
  background: var(--color-bg-white);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-gold));
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 60px;
}

.timeline-item[data-side="left"] {
  left: 0;
  padding-right: 60px;
}

.timeline-item[data-side="right"] {
  left: 50%;
  padding-left: 60px;
}

/* Marker dot */
.timeline-marker {
  position: absolute;
  top: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 0 5px var(--color-bg-white), var(--shadow-md);
}

.timeline-item[data-side="left"] .timeline-marker {
  right: -24px;
}

.timeline-item[data-side="right"] .timeline-marker {
  left: -24px;
}

.timeline-day-badge {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

/* Timeline card */
.timeline-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.timeline-card-image {
  height: 200px;
  overflow: hidden;
}

.timeline-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.timeline-card-body {
  padding: 28px;
}

.timeline-card-header {
  margin-bottom: 20px;
}

.day-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 4px 0 12px;
}

.route-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid;
}

.badge-distance {
  color: var(--color-primary-dark);
  background: rgba(26, 26, 46, 0.05);
  border-color: rgba(26, 26, 46, 0.15);
}

.badge-time {
  color: var(--color-accent);
  background: rgba(231, 127, 103, 0.08);
  border-color: rgba(231, 127, 103, 0.2);
}

/* Timeline detail blocks */
.timeline-detail {
  margin-bottom: 16px;
}

.timeline-detail h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
}

.timeline-detail p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Callout boxes */
.callout {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.callout-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.callout p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.callout-warning {
  background: rgba(235, 77, 75, 0.06);
  border: 1px solid rgba(235, 77, 75, 0.15);
}

.callout-warning h4 {
  color: var(--color-alert-red);
}

.callout-warning p {
  color: var(--color-text-muted);
}

.callout-tip {
  background: rgba(106, 176, 76, 0.06);
  border: 1px solid rgba(106, 176, 76, 0.15);
}

.callout-tip h4 {
  color: var(--color-success-green);
}

.callout-tip p {
  color: var(--color-text-muted);
}

/* ==========================================
   LESKOVAC / STAY SECTION
   ========================================== */
.leskovac-section {
  position: relative;
  background: linear-gradient(180deg, #2d1b0e 0%, #1a1a2e 100%);
  color: #fff;
  overflow: hidden;
}

.leskovac-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(231, 127, 103, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(248, 183, 57, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.leskovac-section .section-label {
  color: var(--color-gold);
  background: rgba(248, 183, 57, 0.15);
}

.leskovac-section .section-title {
  color: #fff;
}

.leskovac-section .section-title-link {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.leskovac-section .section-title-link:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.leskovac-section .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

.leskovac-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: var(--shadow-xl);
  max-height: 400px;
}

.leskovac-hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.leskovac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

.leskovac-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
}

.leskovac-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.leskovac-card-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.leskovac-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.leskovac-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* Notes */
.leskovac-notes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.note-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.note-item p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* ==========================================
   BUDGET SECTION
   ========================================== */
.budget-section {
  background: var(--color-bg-white);
}

.budget-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto 32px;
}

.budget-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-fast);
}

.budget-card:hover {
  border-color: var(--color-accent);
  background: #fff;
  transform: translateX(4px);
}

.budget-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.budget-info {
  flex: 1;
  min-width: 0;
}

.budget-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 2px;
}

.budget-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.budget-cost {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Budget total */
.budget-total {
  max-width: 800px;
  margin: 0 auto;
}

.budget-total-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: var(--color-primary-dark);
  border-radius: var(--radius-lg);
  color: #fff;
}

.budget-total-label {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.budget-total-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.budget-total-amount {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-gold);
}

/* ==========================================
   WARNINGS SECTION
   ========================================== */
.warnings-section {
  background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-alert-red-light) 100%);
}

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

.warning-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(235, 77, 75, 0.15);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.warning-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(235, 77, 75, 0.3);
}

.warning-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(235, 77, 75, 0.08);
  color: var(--color-alert-red);
  margin-bottom: 20px;
}

/* Pulse animation */
.pulse {
  animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(235, 77, 75, 0.2); }
  50% { box-shadow: 0 0 0 12px rgba(235, 77, 75, 0); }
}

.warning-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.warning-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ==========================================
   DATA-ROUTE SECTION TRANSITIONS
   ========================================== */
[data-route] {
  transition: opacity 0.4s ease;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--color-primary-dark);
  padding: 48px 0;
  text-align: center;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: #fff;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE — TABLET (max 1024px)
   ========================================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

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

  .essentials-grid .essential-card:last-child {
    grid-column: 1 / -1;
  }

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

  .leskovac-grid .leskovac-card:last-child {
    grid-column: 1 / -1;
  }

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

  .warnings-grid .warning-card:last-child {
    grid-column: 1 / -1;
  }
}

/* ==========================================
   RESPONSIVE — MOBILE (max 768px)
   ========================================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  /* Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 24px;
    background: rgba(26, 26, 46, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-route-indicator {
    margin-left: auto;
    margin-right: 12px;
  }

  /* Hero */
  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-pill {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }

  /* Route Selector */
  .route-selector {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .route-card {
    padding: 28px 20px;
  }

  .route-card-icon {
    font-size: 2.4rem;
  }

  .route-card-title {
    font-size: 1.3rem;
  }

  /* Essentials */
  .essentials-grid {
    grid-template-columns: 1fr;
  }

  .essentials-grid .essential-card:last-child {
    grid-column: auto;
  }

  /* Timeline — linear mobile layout */
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item[data-side="left"],
  .timeline-item[data-side="right"] {
    width: 100%;
    left: 0;
    padding-left: 56px;
    padding-right: 0;
  }

  .timeline-marker,
  .timeline-item[data-side="left"] .timeline-marker,
  .timeline-item[data-side="right"] .timeline-marker {
    left: -4px;
    right: auto;
  }

  /* Leskovac */
  .leskovac-grid {
    grid-template-columns: 1fr;
  }

  .leskovac-grid .leskovac-card:last-child {
    grid-column: auto;
  }

  .leskovac-hero-image,
  .leskovac-hero-image img {
    height: 240px;
  }

  /* Budget */
  .budget-grid {
    grid-template-columns: 1fr;
  }

  .budget-total-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .budget-total-amount {
    font-size: 1.8rem;
  }

  /* Warnings */
  .warnings-grid {
    grid-template-columns: 1fr;
  }

  .warnings-grid .warning-card:last-child {
    grid-column: auto;
  }

  /* Map */
  .route-map {
    height: 350px;
  }
}

/* ==========================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ========================================== */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .timeline-card-body {
    padding: 20px;
  }

  .essential-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  .sticky-nav,
  .scroll-indicator,
  .nav-toggle,
  .back-to-top,
  .route-selector,
  .map-wrapper,
  .footer-links {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-bg {
    background: var(--color-primary-dark);
  }

  .section {
    padding: 1.5rem 0;
  }

  .section-header {
    margin-bottom: 1rem;
  }

  [data-route="alps"] {
    display: none !important;
  }

  body {
    background: #fff;
    color: #1a1a2e;
  }

  a {
    color: #1a1a2e;
  }

  a[target="_blank"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
    word-break: break-all;
  }

  .timeline-card,
  .essential-card,
  .leskovac-card,
  .budget-card,
  .warning-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .leskovac-section {
    background: #f5f5f5;
    color: #1a1a2e;
  }

  .leskovac-section .section-title,
  .leskovac-section .section-title-link {
    color: #1a1a2e;
  }

  .leskovac-section .section-desc,
  .leskovac-section .section-label,
  .leskovac-card p,
  .note-item p {
    color: #333;
  }
}
