/* ==========================================================================
   DÜRRE WAND & PLATTENSTEIN TÚRA - STYLESHEET
   Modern Alpine Dark Glassmorphism Theme (Consistent with Dolomitok Expedíció)
   ========================================================================== */

:root {
  --bg-primary: #070b12;
  --bg-secondary: #0d1522;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-hover: rgba(24, 37, 66, 0.88);
  --bg-glass: rgba(13, 21, 34, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.4);
  
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-600: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-glow: rgba(245, 158, 11, 0.25);
  
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  
  --red-500: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.3);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-emerald: 0 8px 25px rgba(16, 185, 129, 0.25);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   CROSS-PROJECT BANNER (TOP ALERT)
   ========================================================================== */
.top-cross-bar {
  background: linear-gradient(90deg, #064e3b, #0f172a 40%, #1e1b4b 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 8px 16px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1001;
}
.top-cross-bar .links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.top-cross-bar a {
  color: #34d399;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.top-cross-bar a:hover {
  color: #a7f3d0;
  text-decoration: underline;
}
.top-cross-bar .badge {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ==========================================================================
   NAVIGATION BAR (DESKTOP DOCKED & STICKY)
   ========================================================================== */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-brand img, .nav-brand svg {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-brand .brand-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--emerald-400);
  display: block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-gpx-quick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-emerald);
  transition: all 0.2s ease;
}

.btn-gpx-quick:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   HERO BANNER & PHOTO SLIDESHOW
   ========================================================================== */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 20px 80px;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(7, 11, 18, 0.4) 0%,
    rgba(7, 11, 18, 0.75) 60%,
    rgba(7, 11, 18, 0.98) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-full);
  color: #a7f3d0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-title span {
  background: linear-gradient(135deg, #34d399, #10b981, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: #cbd5e1;
  max-width: 800px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Hero Stats Ribbon */
.hero-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  max-width: 960px;
  margin: 0 auto 36px;
}

.stat-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  background: rgba(24, 37, 66, 0.85);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: var(--shadow-emerald);
}

.stat-card .icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
  display: block;
}

.stat-card .value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  letter-spacing: -0.02em;
}

.stat-card .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
  color: #fff;
  box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #047857, var(--emerald-600));
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-amber {
  background: linear-gradient(135deg, #d97706, var(--amber-500));
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

/* Hero Slide Controls (Középre zárt, stabil vezérlősáv - Zero Layout Shift) */
.hero-controls-wrapper {
  margin: 0 auto 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 900px;
  width: 100%;
  min-height: 86px; /* Fix helyfenntartás az ugrálás megakadályozására */
}

.hero-carousel-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px; /* Stabil sormagasság */
}

.hero-ctrl-btn {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.hero-ctrl-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(16, 185, 129, 0.6);
  color: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
}

.hero-photo-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  user-select: none;
  min-height: 42px; /* Fix minimális magasság, nem ugrik az oldal */
  box-sizing: border-box;
  text-align: center;
}

.hero-photo-tag:hover {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(16, 185, 129, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.25);
}

#heroCaptionText {
  display: inline-block;
  line-height: 1.35;
  transition: opacity 0.18s ease-in-out;
}

.hero-photo-tag strong {
  color: #fbbf24;
  font-weight: 700;
}

.hero-photo-tag i {
  color: #34d399;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.hero-tag-badge {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

/* Indikátor pontok */
.hero-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-height: 14px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
  width: 28px;
  background: var(--emerald-400);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

/* ==========================================================================
   PAGE SECTIONS & CONTAINERS
   ========================================================================== */
.section {
  padding: 80px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

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

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE MAP & ELEVATION PROFILE
   ========================================================================== */
.map-elevation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.map-card, .elevation-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Map Control Bar matching Dolomitok */
.map-control-bar {
  padding: 0.9rem 1.25rem;
  background: rgba(19, 29, 49, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-right: 0.2rem;
  letter-spacing: 0.5px;
}

.filter-btn {
  background: var(--bg-main, #0b1120);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  color: var(--text-secondary, #94a3b8);
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-primary, #f8fafc);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
  background: var(--emerald-500, #10b981);
  color: #0b1120;
  border-color: var(--emerald-500, #10b981);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.map-canvas-container {
  position: relative;
  width: 100%;
  height: 560px;
  background: #0b1120;
}

#routeMap {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Lebegő Jelmagyarázat (Legend) matching Dolomitok */
.map-legend {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
}

.map-legend h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
  font-size: 0.78rem;
}

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

.legend-line {
  width: 22px;
  height: 4px;
  border-radius: 2px;
}

.legend-dot-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Custom Marker Styling matching Dolomitok */
.custom-leaflet-marker {
  background: transparent !important;
  border: none !important;
}

.custom-marker-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1120;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-marker-badge:hover {
  transform: scale(1.18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.custom-marker-badge.summit-badge {
  border-color: #fef08a;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.8), 0 3px 10px rgba(0, 0, 0, 0.5);
  animation: summitMarkerPulse 2s infinite alternate ease-in-out;
}

@keyframes summitMarkerPulse {
  0% {
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6), 0 3px 10px rgba(0, 0, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 24px rgba(245, 158, 11, 1), 0 4px 14px rgba(0, 0, 0, 0.7);
  }
}

.live-track-marker {
  width: 16px;
  height: 16px;
  background: #f59e0b;
  border: 3px solid #fff;
  border-radius: var(--radius-full);
  box-shadow: 0 0 14px #f59e0b;
  animation: pulseMarker 1.4s infinite;
}

@keyframes pulseMarker {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* Leaflet Dark Theme Popup matching Dolomitok */
.leaflet-popup-content-wrapper {
  background: rgba(19, 29, 49, 0.95) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  color: var(--text-primary, #f8fafc) !important;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12)) !important;
  border-radius: var(--radius-md, 8px) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
}

.leaflet-popup-tip {
  background: rgba(19, 29, 49, 0.95) !important;
}

.leaflet-container a.leaflet-popup-close-button {
  color: #94a3b8 !important;
  padding: 8px 8px 0 0 !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: #ffffff !important;
}

.custom-popup-box {
  min-width: 240px;
  max-width: 290px;
  font-family: inherit;
}

.custom-popup-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0.35rem 0 0.4rem;
  line-height: 1.25;
}

.custom-popup-box img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-popup-box p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.6rem;
  line-height: 1.45;
}

.custom-popup-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.custom-popup-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.custom-popup-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.custom-popup-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* Leaflet Layer Control Dark Theme */
.leaflet-control-layers {
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  color: #f8fafc !important;
  font-family: inherit !important;
  font-size: 0.82rem !important;
  padding: 8px 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-control-layers-expanded {
  color: #f8fafc !important;
}

.leaflet-control-layers-base label {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #cbd5e1;
}

.leaflet-control-layers-base label:hover {
  color: #ffffff;
}

.leaflet-control-layers-selector {
  accent-color: #10b981;
}

.leaflet-bar {
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-bar a {
  background: rgba(15, 23, 42, 0.9) !important;
  backdrop-filter: blur(8px) !important;
  color: #f8fafc !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  transition: background 0.2s;
}

.leaflet-bar a:hover {
  background: rgba(30, 41, 59, 0.95) !important;
  color: #34d399 !important;
}

/* Timeline Map Button */
.timeline-map-btn {
  margin-top: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.timeline-map-btn:hover {
  background: #10b981;
  color: #0b1120;
}

/* ==========================================================================
   ELEVATION PROFILE SVG
   ========================================================================== */
.elevation-container {
  position: relative;
  padding: 24px 28px 32px;
  overflow: visible;
}

.elevation-svg-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
}

#elevationSvg {
  width: 100%;
  height: 100%;
  overflow: visible;
  cursor: crosshair;
}

.profile-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--emerald-400);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #fff;
  transform: translate(-50%, -120%);
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  z-index: 10;
}

.profile-tooltip.active {
  opacity: 1;
}

.profile-tooltip .tt-dist {
  color: #94a3b8;
  font-size: 0.75rem;
}

.profile-tooltip .tt-ele {
  color: #34d399;
  font-weight: 800;
  font-size: 1rem;
}

.elevation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   TIMELINE / ITINERARY SECTION (2026. SZEPTEMBER 26.)
   ========================================================================== */
.timeline-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 28px;
  width: 3px;
  background: linear-gradient(180deg, var(--emerald-500), var(--amber-500) 60%, var(--emerald-500));
  border-radius: var(--radius-full);
}

.timeline-card {
  position: relative;
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.timeline-icon-box {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 2px solid var(--emerald-500);
  box-shadow: 0 0 15px var(--emerald-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--emerald-400);
  flex-shrink: 0;
}

.timeline-card.highlight .timeline-icon-box {
  border-color: var(--amber-500);
  color: var(--amber-400);
  box-shadow: 0 0 18px var(--amber-glow);
}

.timeline-card-content {
  flex-grow: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.timeline-card-content:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateX(4px);
  background: var(--bg-card-hover);
}

.timeline-card.highlight .timeline-card-content {
  border-color: rgba(245, 158, 11, 0.4);
}

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

.timeline-time {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--emerald-400);
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-card.highlight .timeline-time {
  color: var(--amber-400);
}

.timeline-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.timeline-card.highlight .timeline-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.timeline-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.timeline-card-subtitle {
  font-size: 0.9rem;
  color: var(--emerald-400);
  margin-bottom: 10px;
  font-weight: 500;
}

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

/* ==========================================================================
   PHOTO GALLERY & LIGHTBOX MODAL
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.3s ease;
  aspect-ratio: 4 / 3;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-lg);
}

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

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

.gallery-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 11, 18, 0.92) 80%);
  color: #fff;
  transition: all 0.3s ease;
}

.gallery-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-card-caption {
  font-size: 0.8rem;
  color: #cbd5e1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.lightbox-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  margin-top: 16px;
  color: #e2e8f0;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

/* ==========================================================================
   PACKING CHECKLIST
   ========================================================================== */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.checklist-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.checklist-cat-header {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.checklist-cat-header .counter {
  font-size: 0.8rem;
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.checklist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  user-select: none;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.checklist-item.checked .custom-checkbox {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
  color: #fff;
}

.checklist-item.checked .item-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.item-text {
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.4;
}

.item-req-tag {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}

/* ==========================================================================
   WEATHER & CONDITIONS WIDGET
   ========================================================================== */
.weather-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 850px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.weather-location {
  display: flex;
  align-items: center;
  gap: 12px;
}

.weather-location .icon {
  font-size: 2.2rem;
  color: var(--amber-400);
}

.weather-location h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.weather-location p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.weather-grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.wstat-box {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.wstat-box .lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.wstat-box .val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--emerald-400);
  margin-top: 4px;
}

.weather-sept-note {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--emerald-500);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* ==========================================================================
   LOGISTICS & EMERGENCY CONTACTS
   ========================================================================== */
.logistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  backdrop-filter: blur(12px);
}

.info-card-header {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald-400);
}

.info-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.sos-card {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.sos-card .info-card-header {
  color: #f87171;
}

.sos-buttons-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.sos-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px var(--red-glow);
  transition: all 0.2s;
}

.sos-btn span {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
  text-align: center;
}

.sos-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #030712;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 20px 100px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--emerald-400);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION & OFF-CANVAS DRAWER
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(10, 15, 25, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 1500;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
}

.mb-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.mb-btn i {
  font-size: 1.15rem;
}

.mb-btn.active, .mb-btn:hover {
  color: var(--emerald-400);
}

/* Mobile Off-canvas Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 340px;
  height: 100%;
  background: #090e17;
  border-left: 1px solid var(--border-subtle);
  z-index: 2100;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.mobile-drawer.open {
  right: 0;
}

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

.drawer-title {
  font-weight: 800;
  font-size: 1.15rem;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.drawer-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--emerald-400);
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2050;
  display: none;
}

.drawer-backdrop.active {
  display: block;
}

/* Floating Return To Map Button */
.floating-map-jump-btn,
.fab-map {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--emerald-500);
  color: #0b1120;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.floating-map-jump-btn:hover,
.fab-map:hover {
  transform: scale(1.1);
  background: var(--emerald-400);
}

.floating-map-jump-btn.visible,
.fab-map.visible {
  opacity: 1;
  pointer-events: auto;
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .nav-links, .nav-cta .btn-gpx-quick {
    display: none;
  }
  
  .hamburger-btn {
    display: flex;
  }
  
  .mobile-bottom-bar {
    display: flex;
  }
  
  .section {
    padding: 60px 16px;
  }
  
  #routeMap {
    height: 100%;
  }

  .map-canvas-container {
    height: 420px;
  }

  .map-control-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .map-control-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-group {
    flex-shrink: 0;
    flex-wrap: nowrap;
  }

  .filter-btn {
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }

  .map-legend {
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
  }

  .hero-stats-ribbon {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 640px) {
  .hero-controls-wrapper {
    min-height: 98px;
    margin-bottom: 1.6rem;
  }

  .hero-carousel-controls {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .hero-photo-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
    order: -1;
    width: 100%;
    min-height: 46px;
  }

  .hero-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline-wrap::before {
    left: 20px;
  }
  
  .timeline-icon-box {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
  
  .timeline-card {
    gap: 14px;
  }
  
  .timeline-card-content {
    padding: 16px;
  }
  
  .sos-buttons-wrap {
    grid-template-columns: 1fr;
  }
  
  .elevation-svg-wrapper {
    height: 230px;
  }
  
  .top-cross-bar {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

