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

:root {
  --green-dark: #1a3c34;
  --green: #2d6a4f;
  --green-light: #52b788;
  --gold: #d4a373;
  --gold-light: #e9c46a;
  --text: #e8f0ec;
  --text-muted: #9bb3a8;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,.5);
  --bg: #0d1f1a;
  --surface: rgba(255,255,255,.06);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg);
}

/* Thinking bar */
#thinking-bar {
  position: fixed; top: 0; left: 0; z-index: 1001;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--green-light), var(--gold), var(--green-light));
  background-size: 200% 100%;
  transition: width .4s ease, opacity .3s;
  opacity: 0;
  pointer-events: none;
}
#thinking-bar.active { opacity: 1; }
#thinking-bar.thinking {
  width: 70%;
  animation: thinkPulse 1.5s ease-in-out infinite, shimmer 2s linear infinite;
}
#thinking-bar.done {
  width: 100%;
  transition: width .3s ease;
}
@keyframes thinkPulse {
  0%,100% { opacity: 1; }
  50% { opacity: .7; }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
#bg-fixed {
  position: fixed; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  transition: opacity 1.5s ease;
}
#bg-fixed::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
}

/* Loader */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .6s, visibility .6s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner {
  width: 50px; height: 50px;
  border: 4px solid var(--surface);
  border-top-color: var(--green-light);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loader p { margin-top: 20px; color: var(--green-light); font-weight: 600; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

/* Nav */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 12px 0;
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(0,0,0,.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px;
}
.logo { text-decoration: none; display: flex; align-items: center; }
.logo-img { height: 64px; width: auto; display: block; }
@media (max-width: 768px) { .logo-img { height: 48px; } }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-weight: 500; font-size: .9rem;
  transition: color .3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--green-light);
  transition: width .3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
#menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* Hero */
#hero {
  height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-slides {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: -20px;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.5s ease;
  animation: heroPan 10s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.7) 100%);
}
@keyframes heroPan {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero-content { position: relative; z-index: 1; text-align: center; padding: 0 24px; max-width: 800px; }
.hero-content h1 {
  margin: 0;
  line-height: 0;
  animation: fadeUp 1s ease-out;
}
.hero-logo-img {
  width: clamp(280px, 50vw, 600px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.6));
  animation: fadeUp 1s ease-out;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,.85);
  margin: 24px 0 40px;
  animation: fadeUp 1s .2s both;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; animation: fadeUp 1s .4s both; }
.hero-buttons .btn { padding: 14px 36px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: .95rem; transition: transform .3s, box-shadow .3s; }
.hero-buttons .btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 4px 20px rgba(45,106,79,.4); }
.btn-primary:hover { box-shadow: 0 8px 30px rgba(45,106,79,.5); }
.btn-outline { border: 2px solid var(--green-light); color: var(--green-light); }
.btn-outline:hover { background: var(--green-light); color: var(--bg); }
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .85rem;
  animation: bounce 2s infinite;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Sections */
section { padding: 100px 24px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--green-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-header p { color: var(--text-muted); margin-top: 8px; font-size: 1.05rem; }

/* Region tabs */
.region-tabs {
  display: flex; gap: 14px; justify-content: center;
  margin-top: 24px; flex-wrap: wrap;
}
.region-tab {
  padding: 12px 32px; border-radius: 50px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.08);
  color: var(--text-muted); cursor: pointer;
  font-size: 1rem; font-weight: 600;
  transition: all .3s; font-family: inherit;
  letter-spacing: .3px;
}
.region-tab:hover { background: rgba(255,255,255,.12); color: var(--text); transform: translateY(-1px); }
.region-tab.active {
  background: rgba(82,183,136,.2);
  border-color: var(--green-light);
  color: var(--green-light);
  box-shadow: 0 0 20px rgba(82,183,136,.15);
}

/* Places grid */
.places-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.place-card {
  background: rgba(0,0,0,.7); border-radius: var(--radius); overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  cursor: pointer; transition: transform .4s, box-shadow .4s;
  border: 1px solid rgba(255,255,255,.08);
}
.place-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.place-card-img {
  height: 280px; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 16px; position: relative;
  transition: background-image 1.2s ease;
  background-color: var(--green-dark);
}
.place-card-img .badge {
  background: rgba(0,0,0,.6); color: var(--gold-light);
  padding: 4px 12px; border-radius: 20px; font-size: .75rem;
  backdrop-filter: blur(4px);
}
.place-card-img .badge--hub {
  background: rgba(82,183,136,.25);
  color: var(--green-light);
  border: 1px solid var(--green-light);
  margin-left: 6px;
}
.photo-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff; border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; opacity: 0;
  transition: opacity .3s, background .3s; z-index: 2;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.place-card-img:hover .photo-nav { opacity: 1; }
.photo-nav:hover { background: rgba(0,0,0,.7); }
.photo-nav--prev { left: 8px; }
.photo-nav--next { right: 8px; }
.place-photo-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.place-photo-dots .dot,
.modal-gallery-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.35); transition: background .3s, transform .3s;
  cursor: pointer;
}
.place-photo-dots .dot.active,
.modal-gallery-dots .dot.active {
  background: #fff; transform: scale(1.3);
}
.place-card--airport {
  border-color: var(--green-light);
  box-shadow: 0 0 0 1px var(--green-light), var(--shadow);
}
.place-card--airport:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow);
}
.place-card-body { padding: 20px; }
.place-card-body h3 { font-size: 1.4rem; margin-bottom: 8px; text-shadow: 0 0 12px rgba(0,0,0,.4); }
.place-card-body p { color: var(--text-muted); font-size: .9rem; line-height: 1.5; }
.place-card-desc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}
.place-card-body .tag {
  display: inline-block; margin-top: 12px;
  color: var(--green-light); font-size: .8rem; font-weight: 600;
}
.place-routes-links {
  margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  font-size: .78rem; color: var(--text-muted);
}
.place-routes-links span { color: var(--text-muted); font-weight: 600; margin-right: 2px; }
.place-route-link {
  color: var(--gold); text-decoration: none; padding: 2px 8px;
  border-radius: 8px; transition: background .2s;
  border: 1px solid rgba(212,163,115,.15);
}
.place-route-link:hover { background: rgba(212,163,115,.12); color: var(--gold-light); }
.place-map-link {
  display: inline-block; margin-top: 6px;
  color: var(--green-light); font-size: .78rem; text-decoration: none;
  opacity: .7; transition: opacity .2s;
}
.place-map-link:hover { opacity: 1; }

/* Place card facts accordion */
.place-facts { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 8px; }
.place-facts-toggle {
  background: none; border: 1px solid rgba(82,183,136,.2); color: var(--green-light);
  cursor: pointer; font-size: .78rem; padding: 4px 10px; border-radius: 8px;
  width: 100%; text-align: left; transition: background .2s;
  display: flex; align-items: center; gap: 6px;
}
.place-facts-toggle:hover { background: rgba(82,183,136,.08); }
.place-facts-arrow { transition: transform .3s; margin-left: auto; }
.place-facts.open .place-facts-arrow { transform: rotate(180deg); }
.place-facts-content {
  max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s ease, margin .3s ease;
  padding: 0 4px; margin-top: 0;
}
.place-facts.open .place-facts-content {
  max-height: 300px; padding: 8px 4px; margin-top: 6px;
}
.place-facts-content ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.place-facts-content li {
  font-size: .78rem; color: var(--text-muted); line-height: 1.4;
  padding: 6px 8px; background: rgba(255,255,255,.02); border-radius: 6px;
  border-left: 2px solid var(--green-light);
}
.place-facts-content li strong { color: var(--gold); display: block; margin-bottom: 2px; }
.place-facts-more { font-size: .72rem; color: var(--text-muted); font-style: italic; margin-top: 4px; text-align: center; opacity: .7; }

/* Modal facts accordion */
.modal-facts { margin: 20px 0; }
.modal-facts-heading {
  font-size: .9rem; color: var(--gold); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.modal-facts-list { display: flex; flex-direction: column; gap: 8px; }
.modal-fact-item {
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
  background: rgba(255,255,255,.03); overflow: hidden;
  transition: border-color .3s;
}
.modal-fact-item[open] { border-color: rgba(212,163,115,.3); }
.modal-fact-item summary {
  padding: 10px 14px; cursor: pointer; font-size: .85rem; font-weight: 600;
  color: var(--gold); background: rgba(212,163,115,.06);
  transition: background .2s; display: flex; align-items: center; gap: 10px;
  list-style: none; user-select: none;
}
.modal-fact-item summary::-webkit-details-marker { display: none; }
.modal-fact-item summary:hover { background: rgba(212,163,115,.12); }
.modal-fact-item[open] summary { border-radius: 10px 10px 0 0; background: rgba(212,163,115,.1); }
.fact-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .6rem; color: var(--gold); transition: transform .3s ease;
  width: 18px; height: 18px; flex-shrink: 0;
}
.modal-fact-item[open] .fact-arrow { transform: rotate(90deg); }
.fact-text {
  padding: 12px 14px 14px 42px; font-size: .85rem; color: var(--text-muted);
  line-height: 1.65; border-top: 1px solid rgba(255,255,255,.04);
}

/* Modal info section */
.modal-info-section { margin: 16px 0; padding: 14px; background: rgba(255,255,255,.02); border-radius: 12px; border: 1px solid rgba(255,255,255,.06); }
.modal-info-section h3 { font-size: .9rem; margin-bottom: 10px; color: var(--gold); }
.modal-info-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.modal-info-table td { padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: top; }
.modal-info-table td:first-child { color: var(--text-muted); white-space: nowrap; padding-right: 12px; width: 1%; }
.modal-info-table td:last-child { color: var(--text); }
.modal-tips { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.modal-tips strong { display: block; margin-bottom: 6px; font-size: .84rem; color: var(--gold-light); }
.modal-tips ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.modal-tips li {
  font-size: .82rem; color: var(--text-muted); padding: 4px 8px 4px 20px;
  position: relative; line-height: 1.4;
}
.modal-tips li::before { content: '✨'; position: absolute; left: 0; top: 4px; font-size: .7rem; }

/* Modal links */
.modal-routes { margin: 16px 0; }
.modal-routes strong { display: block; margin-bottom: 8px; color: var(--green-light); font-size: .9rem; }
.modal-routes-list { display: flex; flex-direction: column; gap: 6px; }
.modal-route-link {
  display: block; padding: 8px 12px; border-radius: 10px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.06);
  color: var(--text); text-decoration: none; font-size: .85rem;
  transition: background .2s, border-color .2s;
}
.modal-route-link:hover { background: rgba(82,183,136,.1); border-color: var(--green-light); }
.modal-actions, .rmodal-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.modal-action-link, .rmodal-action-link {
  color: var(--text-muted); text-decoration: none; font-size: .8rem;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  transition: all .2s;
}
.modal-action-link:hover, .rmodal-action-link:hover {
  background: rgba(82,183,136,.12); color: var(--green-light); border-color: var(--green-light);
}
/* Route card place links */
.route-places-links {
  display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0;
}
.route-place-link {
  font-size: .72rem; color: var(--text-muted); text-decoration: none;
  padding: 2px 8px; border-radius: 8px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.06);
  transition: all .2s;
}
.route-place-link:hover { color: var(--gold); border-color: var(--gold); }
/* Route modal places */
.rmodal-places { margin: 16px 0; }
.rmodal-places strong { display: block; margin-bottom: 8px; color: var(--green-light); font-size: .9rem; }
.rmodal-places-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rmodal-place-link {
  padding: 5px 12px; border-radius: 20px; font-size: .82rem;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.06);
  color: var(--text); text-decoration: none; transition: all .2s;
}
.rmodal-place-link:hover { background: rgba(82,183,136,.1); border-color: var(--green-light); color: var(--green-light); }

/* Map */
#map { height: 500px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
#map .leaflet-container { background: var(--bg); }

/* Routes */
.routes-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

/* Location info */
.location-info {
  grid-column: 1 / -1;
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 380px; display: flex; align-items: center;
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .4s, box-shadow .4s;
}
.location-info:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.location-info-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 8s ease;
}
.location-info:hover .location-info-bg { transform: scale(1.05); }
.location-info-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.3) 100%);
}
.location-info-content {
  position: relative; z-index: 1; padding: 40px;
  max-width: 100%; width: 100%;
}
.location-info-header { margin-bottom: 20px; }
.location-info-badge {
  display: inline-block;
  background: rgba(82,183,136,.2); border: 1px solid var(--green-light);
  color: var(--green-light); padding: 4px 14px; border-radius: 50px;
  font-size: .75rem; font-weight: 600; letter-spacing: .5px;
  margin-bottom: 10px; text-transform: uppercase;
}
.location-info-header h3 {
  font-size: 2rem; margin-bottom: 6px;
  background: linear-gradient(135deg, var(--green-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.location-info-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; }
.location-info-stats {
  display: flex; flex-wrap: wrap; gap: 24px;
  margin: 20px 0; padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.loc-stat { display: flex; flex-direction: column; }
.loc-stat-value {
  font-size: 1.6rem; font-weight: 700;
  background: linear-gradient(135deg, var(--green-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.loc-stat-label { font-size: .75rem; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .5px; }
.location-info-highlights {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.loc-highlight {
  font-size: .82rem; color: var(--text-muted);
  background: rgba(0,0,0,.35); padding: 5px 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.06);
}
.location-info-long { color: var(--text-muted); font-size: .92rem; line-height: 1.7; max-width: 700px; }

/* Airport hub */
.airport-hub {
  grid-column: 1 / -1;
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 300px; display: flex; align-items: center;
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .4s, box-shadow .4s;
}
.airport-hub:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.airport-hub-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: opacity 1s ease, transform 8s ease;
  z-index: 0;
}
.airport-hub-bg--next { opacity: 0; z-index: 0; }
.airport-hub-bg--fade { opacity: 0; }
.airport-hub-bg--show { opacity: 1; }
.airport-hub:hover .airport-hub-bg, .airport-hub:hover .airport-hub-bg--next { transform: scale(1.05); }
.airport-hub-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.8), rgba(0,0,0,.4));
}
.airport-hub-content {
  position: relative; z-index: 1; padding: 40px;
  max-width: 700px;
}
.airport-hub-icon {
  display: inline-block; font-size: 2.5rem; margin-bottom: 12px;
  animation: hubFloat 3s ease-in-out infinite;
}
@keyframes hubFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.airport-hub-content h3 {
  font-size: 1.6rem; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--green-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.airport-hub-content p {
  color: var(--text-muted); font-size: .95rem; line-height: 1.7; margin-bottom: 16px;
}
.airport-hub-meta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.airport-hub-meta span {
  background: rgba(0,0,0,.5); padding: 6px 14px; border-radius: 20px;
  font-size: .8rem; color: var(--text-muted); border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(4px);
}
.airport-hub-badge {
  display: inline-block;
  background: rgba(82,183,136,.2); border: 1px solid var(--green-light);
  color: var(--green-light); padding: 8px 20px; border-radius: 50px;
  font-size: .85rem; font-weight: 600;
}
.airport-flights { margin: 16px 0; }
.airport-flights-title {
  font-size: 1rem; font-weight: 700; color: var(--gold-light);
  margin-bottom: 10px;
}
.airport-flights-table {
  display: flex; flex-direction: column; gap: 4px;
  max-width: 600px;
}
.airport-flight-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px; align-items: center;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.04);
  font-size: .82rem;
  transition: background .2s;
}
.airport-flight-row:hover { background: rgba(82,183,136,.08); }
.af-from { color: var(--text); font-weight: 600; }
.af-time { color: var(--green-light); font-weight: 500; white-space: nowrap; }
.af-price { color: var(--gold); font-weight: 600; white-space: nowrap; }
.af-freq { color: var(--text-muted); font-size: .75rem; white-space: nowrap; }
@media (max-width: 600px) {
  .airport-flight-row {
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px; font-size: .78rem;
  }
  .af-freq { grid-column: 1 / -1; }
}

/* Route filters */
.route-filters {
  grid-column: 1 / -1;
  background: rgba(0,0,0,.45); border-radius: var(--radius);
  padding: 16px 20px; border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.route-filters-group {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.route-filters-label {
  font-size: .8rem; color: var(--text-muted); font-weight: 600;
  margin-right: 4px; white-space: nowrap;
}
.filter-chip {
  padding: 5px 14px; border-radius: 50px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-muted); cursor: pointer;
  font-size: .78rem; font-weight: 500; font-family: inherit;
  transition: all .25s; white-space: nowrap;
}
.filter-chip:hover {
  background: rgba(255,255,255,.12);
  color: var(--text);
}
.filter-chip.active {
  background: rgba(82,183,136,.2);
  border-color: var(--green-light);
  color: var(--green-light);
}
.route-filters-count {
  margin-left: auto; font-size: .78rem;
  color: var(--text-muted); white-space: nowrap;
}
.route-road-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: .7rem; font-weight: 600; letter-spacing: .3px;
}

/* Route map */

/* Route card original (grid mode) */
.route-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 280px; display: flex; align-items: flex-end;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .4s, box-shadow .4s;
  cursor: pointer;
}
.route-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.route-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 6s ease, opacity 0.35s ease;
  background-color: var(--green-dark);
}
.route-card-bg.route-photo-fade { opacity: 0; }
.route-card:hover .route-card-bg { transform: scale(1.08); }
.route-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.25) 100%);
}
.route-card-body {
  position: relative; z-index: 1; padding: 24px; width: 100%;
}
.route-card-body .route-icon { font-size: 1.6rem; margin-bottom: 6px; }
.route-card-body .route-type {
  display: inline-block; margin-bottom: 6px;
  padding: 2px 10px; border-radius: 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .3px;
}
.type-car { background: rgba(82,183,136,.15); color: var(--green-light); }
.type-transit { background: rgba(212,163,115,.15); color: var(--gold); }
.type-hiking { background: rgba(115,163,212,.15); color: #73a3d4; }
.type-mixed { background: rgba(190,115,212,.15); color: #be73d4; }
.route-card-body h3 { font-size: 1.3rem; margin-bottom: 6px; text-shadow: 0 0 14px rgba(0,0,0,.5); }
.route-card-body p {
  color: #d0e2da; font-size: .88rem;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  text-shadow: 0 0 8px rgba(0,0,0,.4);
}
.route-card-body .route-meta {
  display: flex; gap: 12px; margin-top: 10px; font-size: .78rem; color: var(--text-muted);
}
.route-card-body .route-meta span { display: flex; align-items: center; gap: 4px; }
.route-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.route-card-body .route-difficulty {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: .75rem; font-weight: 600;
}
.route-card-body .route-expand {
  font-size: .8rem; color: var(--green-light);
  font-weight: 600; opacity: .6; transition: opacity .3s;
}
.route-card:hover .route-expand { opacity: 1; }
.difficulty-easy { background: rgba(82,183,136,.15); color: var(--green-light); }
.difficulty-medium { background: rgba(212,163,115,.15); color: var(--gold); }
.difficulty-hard { background: rgba(212,115,115,.15); color: #d47373; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.gallery-item {
  aspect-ratio: 1; border-radius: calc(var(--radius) - 4px); overflow: hidden;
  cursor: pointer;
  position: relative;
  background-size: cover; background-position: center;
  background-color: var(--green-dark);
  animation: galleryFloat 5s ease-in-out infinite;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94), box-shadow .5s ease;
  will-change: transform;
  border: 2px solid rgba(255,255,255,.04);
}
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.06);
  transition: background .35s;
  z-index: 1;
}
.gallery-item:hover { z-index: 2; }
.gallery-item:hover::after { background: rgba(0,0,0,.01); }
.gallery-item:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  border-color: var(--green-light);
}
.gallery-item .gallery-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 12px 10px;
  background: linear-gradient(transparent 20%, rgba(0,0,0,.85) 100%);
  font-size: .8rem; font-weight: 600;
  transform: translateY(8px);
  opacity: 0;
  transition: all .35s ease;
  z-index: 2;
}
.gallery-item:hover .gallery-label {
  transform: translateY(0);
  opacity: 1;
}
@keyframes galleryFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
.gallery-item:nth-child(3n) { animation-duration: 5.8s; animation-delay: -1s; }
.gallery-item:nth-child(5n) { animation-duration: 4s; animation-delay: -2s; }
.gallery-item:nth-child(7n) { animation-duration: 5.5s; animation-delay: -0.5s; }
.gallery-item:nth-child(11n) { animation-duration: 3.6s; animation-delay: -2.8s; }

/* Gallery toggle */
.gallery-toggle {
  grid-column: 1 / -1;
  padding: 14px; border-radius: calc(var(--radius) - 4px);
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.12);
  color: var(--green-light); cursor: pointer;
  font-size: .9rem; font-weight: 600; font-family: inherit;
  transition: all .3s; letter-spacing: .3px;
}
.gallery-toggle:hover {
  background: rgba(82,183,136,.1);
  border-color: var(--green-light);
}

/* Gallery lightbox */
.gallery-overlay {
  position: fixed; inset: 0; z-index: 3000;
  opacity: 0; visibility: hidden; transition: opacity .4s ease;
}
.gallery-overlay.active { opacity: 1; visibility: visible; }
.gallery-overlay-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.gallery-overlay-close {
  position: fixed; top: 20px; right: 20px; z-index: 3002;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.1); color: #fff;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer;
  transition: all .25s; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
}
.gallery-overlay.active .gallery-overlay-close { opacity: .5; pointer-events: auto; }
.gallery-overlay-close:hover { opacity: 1 !important; background: rgba(255,255,255,.1); }

/* Nav arrows */
.gallery-nav {
  position: fixed; top: 50%; z-index: 3002;
  transform: translateY(-50%);
  background: rgba(0,0,0,.3); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.8rem; cursor: pointer;
  transition: all .3s; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
}
.gallery-overlay.active .gallery-nav { opacity: .35; pointer-events: auto; }
.gallery-nav:hover { opacity: 1 !important; background: rgba(0,0,0,.5); }
.gallery-nav--prev { left: 12px; }
.gallery-nav--next { right: 12px; }

.gallery-overlay-img {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  background-size: contain; background-position: center; background-repeat: no-repeat;
  z-index: 3001;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  border-radius: var(--radius);
}
.gallery-overlay-content {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 3002; pointer-events: none;
}
.gallery-overlay-label {
  margin-top: 12px; color: var(--text-muted);
  font-size: .85rem; font-weight: 500; white-space: nowrap;
}
.gallery-counter { color: var(--text-muted); font-weight: 400; opacity: .45; margin-left: 8px; }

@media (max-width: 768px) {
  .gallery-nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .gallery-nav--prev { left: 8px; }
  .gallery-nav--next { right: 8px; }
  .gallery-overlay-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 1.3rem; }
  .gallery-overlay-label { font-size: .8rem; }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
  .gallery-overlay-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 1.2rem; }
  .gallery-nav { width: 36px; height: 36px; font-size: 1.3rem; }
  .gallery-nav--prev { left: 6px; }
  .gallery-nav--next { right: 6px; }
  .gallery-overlay-label { font-size: .78rem; }
}

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.active { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.modal-content {
  position: relative; max-width: 600px; width: 90%;
  max-height: 85vh; overflow-y: auto;
  background: rgba(0,0,0,.8); border-radius: var(--radius);
  padding: 40px; border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transform: scale(.9); transition: transform .3s;
}
.modal.active .modal-content { transform: scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.5rem; cursor: pointer; transition: color .3s;
}
.modal-close:hover { color: var(--text); }
.modal-body h2 { font-size: 1.5rem; margin-bottom: 8px; }
.modal-body .modal-img {
  width: 100%; height: 240px; border-radius: 12px; margin: 16px 0;
  background-size: cover; background-position: center;
}
.modal-gallery { margin: 16px 0; position: relative; }
.modal-gallery-img {
  width: 100%; height: 300px; border-radius: 12px;
  background-size: cover; background-position: center; position: relative;
}
.modal-gallery-img .photo-nav { opacity: 1; }
.modal-gallery-img .photo-nav--prev { left: 12px; }
.modal-gallery-img .photo-nav--next { right: 12px; }
.modal-gallery-counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.5); color: #fff; padding: 4px 12px;
  border-radius: 16px; font-size: .8rem; z-index: 2;
}
.modal-gallery-dots {
  display: flex; gap: 8px; justify-content: center; margin-top: 10px;
}
.modal-body p { color: var(--text-muted); line-height: 1.7; }

/* Route modal */
.modal-content--wide { max-width: 800px; max-height: 90vh; overflow-y: auto; }
.rmodal-header { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.rmodal-icon { font-size: 2.5rem; }
.rmodal-header h2 { margin: 0 0 8px; font-size: 1.4rem; }
.rmodal-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rmodal-meta .route-type, .rmodal-meta .route-difficulty { margin: 0; }
.rmodal-overview { color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.rmodal-transport, .rmodal-season { font-size: .9rem; margin-bottom: 8px; color: var(--text-muted); }
.rmodal-tips { background: rgba(82,183,136,.08); border-radius: 12px; padding: 16px 20px; margin: 16px 0; }
.rmodal-tips strong { display: block; margin-bottom: 6px; color: var(--green-light); }
.rmodal-tips ul { padding-left: 20px; color: var(--text-muted); font-size: .9rem; }
.rmodal-tips li { margin-bottom: 4px; }
.rmodal-steps { margin-top: 24px; }
.rmodal-steps h3 { font-size: 1.15rem; margin-bottom: 16px; color: var(--green-light); }
.rstep {
  background: rgba(0,0,0,.35); border-radius: 12px; padding: 16px;
  margin-bottom: 12px; border: 1px solid rgba(255,255,255,.04);
}
.rstep-head { display: flex; gap: 12px; align-items: flex-start; }
.rstep-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: .8rem; font-weight: 700;
}
.rstep-info { flex: 1; }
.rstep-info strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.rstep-road { font-size: .75rem; display: inline-block; padding: 1px 8px; border-radius: 8px; }
.road-asphalt { background: rgba(82,183,136,.15); color: #52b788; }
.road-gravel { background: rgba(212,163,115,.15); color: #d4a373; }
.road-trail { background: rgba(115,163,212,.15); color: #73a3d4; }
.road-water { background: rgba(79,195,247,.15); color: #4fc3f7; }
.road-mixed { background: rgba(190,115,212,.15); color: #be73d4; }
.rstep-stats { flex-shrink: 0; font-size: .75rem; color: var(--text-muted); text-align: right; }
.rstep-stats span { display: block; }
.rstep-img {
  width: 100%; height: 150px; border-radius: 8px; margin: 12px 0;
  background-size: cover; background-position: center;
}
.rstep p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.rstep-coords { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rstep-coords-label { font-size: .75rem; color: var(--text-muted); }
.rstep-nav-link { font-size: .75rem; padding: 2px 10px; border-radius: 6px; background: rgba(82,183,136,.1); border: 1px solid rgba(82,183,136,.2); color: var(--green-light); text-decoration: none; transition: background .3s; white-space: nowrap; }
.rstep-nav-link:hover { background: rgba(82,183,136,.2); }

.route-card-coords { margin: 8px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--text-muted); }
.route-card-coords .route-card-nav { display: flex; gap: 4px; }
.route-card-coords .rstep-nav-link { font-size: .7rem; padding: 1px 8px; }

.rmodal-nearby { background: rgba(82,183,136,.08); border-radius: 12px; padding: 16px 20px; margin: 16px 0; }
.rmodal-nearby strong { display: block; margin-bottom: 8px; color: var(--green-light); }
.rmodal-nearby-list { display: flex; flex-wrap: wrap; gap: 6px; }
.nearby-item { display: flex; align-items: center; gap: 6px; }
.nearby-item-dist { font-size: .75rem; color: var(--text-muted); }

/* Sidebar */
#sidebar {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  z-index: 998; display: flex; flex-direction: column; gap: 4px;
  padding: 12px 8px;
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 0 16px 16px 0;
  border: 1px solid rgba(255,255,255,.06);
  border-left: none;
  transition: transform .3s ease, opacity .3s ease;
}
#sidebar.hidden {
  transform: translateY(-50%) translateX(-100%);
  opacity: 0;
  pointer-events: none;
}
.sidebar-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 8px; border: none; border-radius: 12px;
  background: transparent; color: var(--text-muted);
  cursor: pointer; transition: all .25s; font-family: inherit;
  min-width: 64px;
}
.sidebar-btn:hover { background: rgba(255,255,255,.08); color: var(--text); }
.sidebar-btn.active {
  background: rgba(82,183,136,.18);
  color: var(--green-light);
  box-shadow: inset 0 0 0 1px rgba(82,183,136,.25);
}
.sidebar-icon { font-size: 1.3rem; line-height: 1; }
.sidebar-label { font-size: .68rem; font-weight: 600; white-space: nowrap; }
.sidebar-badge {
  font-size: .58rem; color: var(--text-muted);
  background: rgba(255,255,255,.06);
  padding: 1px 6px; border-radius: 6px;
  margin-top: 1px;
}
.sidebar-btn.active .sidebar-badge { color: var(--green-light); }
.sidebar-line {
  width: 28px; height: 1px; margin: 4px auto;
  background: rgba(255,255,255,.1);
}
#sidebar-toggle {
  position: fixed; left: 0; top: 50%; z-index: 999;
  transform: translateY(-50%);
  width: 32px; height: 48px; border: none;
  background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-muted); font-size: .9rem;
  cursor: pointer; border-radius: 0 10px 10px 0;
  transition: all .3s; display: none;
  border: 1px solid rgba(255,255,255,.06);
  border-left: none;
}
#sidebar-toggle:hover { color: var(--text); background: rgba(0,0,0,.6); }
#sidebar-toggle.open { left: 80px; }
@media (max-width: 768px) {
  #sidebar { transform: translateY(-50%) translateX(-100%); opacity: 0; pointer-events: none; }
  #sidebar.open { transform: translateY(-50%) translateX(0); opacity: 1; pointer-events: auto; }
  #sidebar-toggle { display: flex; align-items: center; justify-content: center; }
}

/* Scroll to top */
#scroll-top {
  position: fixed; bottom: 32px; right: 24px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: #fff; border: 2px solid var(--green-light);
  font-size: 1.4rem; cursor: pointer;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all .3s; box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
#scroll-top.visible { opacity: 1; visibility: visible; pointer-events: auto; }
#scroll-top:hover {
  background: var(--green-light); transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(82,183,136,.3);
}

/* Community */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.community-card {
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius); padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .4s;
}
.community-card:hover { transform: translateY(-4px); }
.community-card--share { cursor: pointer; }
.community-card--share:hover { border-color: var(--green-light); box-shadow: 0 0 0 1px var(--green-light), var(--shadow); }
.community-icon { font-size: 2.5rem; margin-bottom: 12px; }
.community-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.community-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* Submit modal */
.submit-hint { color: var(--text-muted); font-size: .85rem; margin-bottom: 16px; }
.submit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.submit-field--full { grid-column: 1 / -1; }
.submit-field label { display: block; font-size: .8rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.submit-field input,
.submit-field select,
.submit-field textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: var(--text); font-size: .85rem; font-family: inherit; outline: none;
  transition: border-color .2s;
}
.submit-field input:focus,
.submit-field select:focus,
.submit-field textarea:focus { border-color: var(--green-light); }
.submit-field textarea { resize: vertical; min-height: 70px; }
.submit-field select option { background: #1a3c34; }
.submit-actions { margin-top: 20px; text-align: center; }
.submit-actions .btn { min-width: 200px; }
@media (max-width: 600px) { .submit-grid { grid-template-columns: 1fr; } }

/* Events */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.event-card {
  background: rgba(0,0,0,.5); border-radius: var(--radius); padding: 24px;
  border: 1px solid rgba(255,255,255,.06); backdrop-filter: blur(8px);
  transition: transform .3s;
}
.event-card:hover { transform: translateY(-3px); }
.event-date {
  display: inline-block; font-size: .75rem; font-weight: 700; color: var(--gold);
  background: rgba(212,163,115,.1); padding: 3px 10px; border-radius: 8px; margin-bottom: 10px;
}
.event-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.event-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.event-meta { margin-top: 12px; font-size: .78rem; color: var(--text-muted); }
.event-meta span { display: block; margin-bottom: 4px; }
.event-meta a { color: var(--green-light); text-decoration: none; font-weight: 600; }

/* FAQ */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: rgba(0,0,0,.5); border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06); overflow: hidden;
  backdrop-filter: blur(8px);
}
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: none; border: none; color: var(--text);
  font-size: .95rem; font-weight: 600; font-family: inherit; cursor: pointer;
  text-align: left; transition: color .2s;
}
.faq-question:hover { color: var(--green-light); }
.faq-arrow { font-size: .8rem; transition: transform .3s; color: var(--text-muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease;
  padding: 0 20px; color: var(--text-muted); font-size: .88rem; line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 400px; padding: 0 20px 16px;
}

@media (max-width: 768px) {
  .events-grid { grid-template-columns: 1fr; }
  .location-info { min-height: 280px; }
  .location-info-content { padding: 24px; }
  .location-info-header h3 { font-size: 1.5rem; }
  .location-info-stats { gap: 16px; }
  .loc-stat-value { font-size: 1.2rem; }
  .location-info-long { font-size: .85rem; }
  .location-info-long { font-size: .85rem; }
}

/* Footer */
footer {
  text-align: center; padding: 48px 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.4);
}
.footer-small { color: var(--text-muted); font-size: .8rem; margin-top: 4px; }
.footer-logo { display: inline-block; margin-bottom: 8px; }
.footer-logo img { height: 48px; width: auto; opacity: .7; transition: opacity .3s; }
.footer-logo:hover img { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(15,26,20,.95); padding: 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  #menu-toggle { display: block; }
  section { padding: 60px 16px; }
  .places-grid, .routes-container { grid-template-columns: 1fr; }
  #map { height: 350px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .airport-hub { min-height: 240px; }
  .airport-hub-content { padding: 24px; }
  .airport-hub-content h3 { font-size: 1.3rem; }
  .airport-hub-meta span { width: 100%; }
  .location-info-content { padding: 20px; }
  .location-info-header h3 { font-size: 1.3rem; }
  .location-info-stats { gap: 12px; padding: 12px 0; }
  .loc-stat-value { font-size: 1.1rem; }
  .location-info-highlights { gap: 6px; }
  .loc-highlight { font-size: .75rem; padding: 4px 10px; }
  .location-info-long { font-size: .82rem; }
  .route-card { min-height: 300px; }
  .route-filters { flex-direction: column; align-items: stretch; gap: 10px; }
  .route-filters-count { margin-left: 0; text-align: right; }
  .route-card-footer { flex-wrap: wrap; gap: 6px; }
}

/* ===== Splash Screen ===== */
#splash {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: #0a0f0d;
  color: #e8f0ec;
  font-family: 'Inter', sans-serif;
  transition: opacity .6s ease, transform .6s ease;
  overflow: hidden;
}
#splash.splash-hide {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.splash-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(45,106,79,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(82,183,136,.08) 0%, transparent 50%),
              linear-gradient(135deg, #0a0f0d 0%, #141f1a 50%, #0a0f0d 100%);
}

.splash-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(82,183,136,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82,183,136,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
}

.splash-particles {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 15% 30%, rgba(212,163,115,.4), transparent),
    radial-gradient(2px 2px at 85% 20%, rgba(82,183,136,.3), transparent),
    radial-gradient(1px 1px at 25% 70%, rgba(233,196,106,.3), transparent),
    radial-gradient(1px 1px at 70% 80%, rgba(82,183,136,.25), transparent),
    radial-gradient(2px 2px at 45% 15%, rgba(212,163,115,.2), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(233,196,106,.2), transparent),
    radial-gradient(1px 1px at 10% 55%, rgba(82,183,136,.2), transparent);
  animation: splashTwinkle 4s ease-in-out infinite alternate;
}
@keyframes splashTwinkle {
  0% { opacity: .5; }
  100% { opacity: 1; }
}

/* Robots */
.splash-robot {
  position: absolute;
  display: flex; align-items: center; gap: 4px;
  font-size: 2rem;
  pointer-events: none;
  z-index: 1;
}
.r-head { filter: drop-shadow(0 0 8px rgba(82,183,136,.3)); }
.r-arm, .r-cargo, .r-screen { font-size: 1.4rem; }

.splash-robot--fly {
  top: 10%; left: 12%;
  animation: robotFly 6s ease-in-out infinite;
}
@keyframes robotFly {
  0%,100% { transform: translate(0, 0) rotate(-3deg); }
  25% { transform: translate(30px, -15px) rotate(2deg); }
  50% { transform: translate(10px, -25px) rotate(-2deg); }
  75% { transform: translate(-20px, -10px) rotate(3deg); }
}
.splash-robot--fly .r-arm {
  animation: toolSpin 2s linear infinite;
  transform-origin: 60% 60%;
}
@keyframes toolSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.splash-robot--weld {
  bottom: 22%; left: 8%;
  animation: robotBounce 2.5s ease-in-out infinite;
}
@keyframes robotBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.splash-robot--weld .r-arm {
  animation: weldArm 1.2s ease-in-out infinite;
  transform-origin: 100% 50%;
}
@keyframes weldArm {
  0%,100% { transform: rotate(0deg) scaleX(1); }
  50% { transform: rotate(15deg) scaleX(1.1); }
}
.r-sparks {
  position: absolute; top: -4px; right: -20px;
  width: 30px; height: 20px;
  background:
    radial-gradient(3px 3px at 0% 100%, #e9c46a, transparent),
    radial-gradient(2px 2px at 40% 0%, #d4a373, transparent),
    radial-gradient(2px 2px at 80% 60%, #e9c46a, transparent),
    radial-gradient(1px 1px at 100% 20%, #fff, transparent);
  animation: sparkFlash .4s ease-in-out infinite alternate;
}
@keyframes sparkFlash {
  0% { opacity: .3; transform: scale(.8); }
  100% { opacity: 1; transform: scale(1.1); }
}

.splash-robot--carry {
  bottom: 25%; right: 10%;
  animation: robotWalk 4s ease-in-out infinite;
}
@keyframes robotWalk {
  0%,100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-15px) rotate(-2deg); }
  75% { transform: translateX(15px) rotate(2deg); }
}
.splash-robot--carry .r-cargo {
  animation: cargoBob 2s ease-in-out infinite;
}
@keyframes cargoBob {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(10deg); }
}

.splash-robot--code {
  bottom: 10%; left: 50%;
  transform: translateX(-50%);
  font-size: 1.6rem;
}
.splash-robot--code .r-screen {
  animation: screenGlow 1.5s ease-in-out infinite alternate;
}
@keyframes screenGlow {
  0% { filter: brightness(.8) drop-shadow(0 0 4px rgba(82,183,136,.2)); }
  100% { filter: brightness(1.1) drop-shadow(0 0 12px rgba(82,183,136,.5)); }
}
.r-typing {
  position: absolute; bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-light), transparent);
  animation: typingLine 1.2s ease-in-out infinite;
}
@keyframes typingLine {
  0% { width: 0; opacity: 0; }
  50% { width: 50px; opacity: 1; }
  100% { width: 0; opacity: 0; }
}

/* Content */
.splash-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 520px;
  padding: 40px 24px;
  animation: splashFadeIn 1s ease-out;
}
@keyframes splashFadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.splash-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--green-light);
  border-radius: 20px;
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 20px;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(82,183,136,.3); }
  50% { box-shadow: 0 0 20px 4px rgba(82,183,136,.15); }
}

.splash-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #e8f0ec 0%, var(--gold) 50%, var(--green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.splash-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Loader phase */
.splash-loader {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 460px;
  padding: 40px 24px;
  animation: splashFadeIn .8s ease-out;
}
.splash-loader-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--green-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.splash-loader-sub {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  min-height: 1.4em;
  transition: opacity .3s;
}

/* Progress */
.splash-progress {
  display: flex; align-items: center; gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.splash-progress-bar {
  width: 200px; height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
}
.splash-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--green-light), var(--gold));
  border-radius: 3px;
  transition: width 2.5s ease-out;
  position: relative;
}
/* progress width set via JS in loader */
.splash-progress-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  animation: progressShine 1.5s ease-in-out infinite;
}
@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.splash-progress-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* Build log */
.splash-log {
  text-align: left;
  max-width: 360px;
  margin: 0 auto 28px;
  padding: 12px 16px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(82,183,136,.12);
  border-radius: 8px;
}
.splash-log-line {
  font-family: 'Courier New', monospace;
  font-size: .75rem;
  padding: 3px 0;
  color: var(--text-muted);
  animation: logAppear .5s ease-out forwards;
  opacity: 0;
  transform: translateX(-8px);
}
.splash-log-line:nth-child(1) { animation-delay: .4s; }
.splash-log-line:nth-child(2) { animation-delay: .8s; }
.splash-log-line:nth-child(3) { animation-delay: 1.2s; }
.splash-log-line:nth-child(4) { animation-delay: 1.6s; }
.splash-log-line:nth-child(5) { animation-delay: 2.0s; }
@keyframes logAppear {
  0% { opacity: 0; transform: translateX(-8px); }
  100% { opacity: 1; transform: translateX(0); }
}
.splash-log-line.ok { color: var(--green-light); }
.splash-log-line.pending {
  color: var(--gold);
  animation: logAppear .5s ease-out forwards;
}
.splash-log-line.pending::after {
  content: ''; display: inline-block; width: 2px; height: 14px;
  background: var(--gold); margin-left: 4px;
  vertical-align: middle;
  animation: cursorBlink .8s step-end infinite;
}
@keyframes cursorBlink {
  0%,100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes logBlink {
  0%,100% { opacity: 1; }
  50% { opacity: .4; }
}

/* Step photo gallery in route modal */
.rstep-imgs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.rstep-img {
  width: 100%; height: 200px;
  background-size: cover; background-position: center;
  border-radius: 10px; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.rstep-imgs .rstep-img {
  width: calc(50% - 3px); height: 140px;
}
.rstep-imgs .rstep-img:only-child {
  width: 100%; height: 200px;
}
.rstep-img:hover {
  transform: scale(1.02); box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

/* Photo viewer overlay */
.photo-viewer {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.photo-viewer.active { opacity: 1; pointer-events: auto; }
.photo-viewer-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.85);
  cursor: pointer;
}
.photo-viewer-content {
  position: relative; max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
}
.photo-viewer-content img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 10px; object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.photo-viewer-close {
  position: absolute; top: -40px; right: 0;
  background: none; border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer; padding: 4px 10px;
  transition: opacity .2s;
}
.photo-viewer-close:hover { opacity: .7; }
.photo-viewer-label {
  color: rgba(255,255,255,.7); font-size: .82rem;
  margin-top: 10px; text-align: center;
}

/* Step photo grid in admin editor */
.admin-step-photos {
  margin-top: 4px;
}
.admin-step-photo-grid {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.admin-step-photo-item {
  position: relative; width: 80px; height: 60px;
  border-radius: 6px; overflow: hidden;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  cursor: grab;
}
.admin-step-photo-item:active { cursor: grabbing; }
.admin-step-photo-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.admin-step-photo-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  opacity: 0; transition: opacity .2s;
}
.admin-step-photo-item:hover .admin-step-photo-overlay { opacity: 1; }
.admin-step-photo-dragging { opacity: .4; }
.admin-step-photo-drop-target { outline: 2px solid var(--accent, #4a9eff); outline-offset: -2px; border-color: var(--accent, #4a9eff); }

/* Button */
.splash-btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0a0f0d;
  background: linear-gradient(135deg, var(--green-light), var(--gold));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  animation: btnPulse 2.5s ease-in-out infinite;
  position: relative;
}
.splash-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(82,183,136,.35);
}
.splash-btn:active { transform: scale(.97); }
@keyframes btnPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(82,183,136,.2); }
  50% { box-shadow: 0 0 24px 6px rgba(82,183,136,.1); }
}

.splash-footnote {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 16px;
  opacity: .7;
}

/* Mobile splash */
@media (max-width: 640px) {
  .splash-title { font-size: 2rem; }
  .splash-robot--fly { top: 6%; left: 6%; font-size: 1.5rem; }
  .splash-robot--weld { display: none; }
  .splash-robot--carry { bottom: 20%; right: 6%; font-size: 1.5rem; }
  .splash-robot--code { bottom: 6%; font-size: 1.2rem; }
  .splash-progress-bar { width: 140px; }
  .splash-log { max-width: 100%; }
}

/* ===== Enhanced Route Cards ===== */
.route-card--enhanced { min-height: 400px; }
.route-card--enhanced .route-card-body { padding: 28px 24px; }
.route-card--enhanced h3 { font-size: 1.5rem; margin-bottom: 8px; text-shadow: 0 0 16px rgba(0,0,0,.6); }
.route-card--enhanced .route-card-body > p { font-size: .92rem; margin-bottom: 12px; }
.route-card--enhanced .route-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.route-card--enhanced .route-card-top .route-icon { font-size: 1.6rem; }
.route-card--enhanced .route-card-top .route-type { font-size: .7rem; padding: 3px 10px; }
.route-card--enhanced .route-meta { gap: 16px; padding: 10px 0; font-size: .8rem; }
.route-card--enhanced .route-meta span { background: rgba(255,255,255,.06); padding: 4px 12px; border-radius: 6px; }
.route-step-preview-wrap {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  padding: 8px 0 4px; font-size: .78rem; color: var(--text-muted);
}
.route-step-preview { opacity: .85; }
.route-step-preview.more { color: var(--gold); font-weight: 600; }
.route-card--enhanced .route-card-footer { margin-top: auto; padding-top: 14px; }
.route-card--enhanced .route-card-coords { font-size: .8rem; padding: 6px 0; }
.route-card--enhanced .route-card-coords .route-card-nav { gap: 6px; }
.route-card--enhanced .route-card-coords .rstep-nav-link { font-size: .7rem; padding: 2px 8px; }
.route-photo-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; opacity: 0; transition: opacity .3s, background .3s; z-index: 3; display: flex; align-items: center; justify-content: center; line-height: 1; }
.route-card:hover .route-photo-nav { opacity: 1; }
.route-photo-nav:hover { background: rgba(0,0,0,.7); }
.route-photo-nav--prev { left: 8px; }
.route-photo-nav--next { right: 8px; }
.route-photo-dots { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.route-photo-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .3s, transform .3s; cursor: pointer; }
.route-photo-dots .dot.active { background: #fff; transform: scale(1.3); }

/* ===== Enhanced Route Modal ===== */
.rmodal-hero {
  position: relative; height: 240px; background-size: cover; background-position: center;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -32px -32px 0; overflow: hidden;
}
.rmodal-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,31,26,.95) 0%, rgba(13,31,26,.3) 60%, rgba(13,31,26,.1) 100%);
}
.rmodal-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px; z-index: 1;
}
.rmodal-hero-icon { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.rmodal-hero-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; margin-bottom: 10px;
}
.rmodal-hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.rmodal-hero-meta > * {
  font-size: .75rem; background: rgba(255,255,255,.1); padding: 4px 12px; border-radius: 20px;
  backdrop-filter: blur(4px);
}
.rmodal-overview { font-size: .95rem; line-height: 1.65; color: var(--text-muted); padding: 8px 0; }
.rmodal-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0;
}
.rmodal-info-card {
  background: var(--surface); border-radius: 12px; padding: 16px;
  border: 1px solid rgba(255,255,255,.05);
}
.rmodal-info-card strong { display: block; margin-bottom: 6px; color: var(--gold); font-size: .85rem; }
.rmodal-info-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.rstep--enhanced {
  display: flex; gap: 16px;
  background: var(--surface); border-radius: 14px; overflow: hidden;
  margin-bottom: 16px; border: 1px solid rgba(255,255,255,.04);
}
.rstep--enhanced .rstep-img {
  width: 260px; min-height: 180px; flex-shrink: 0;
  background-size: cover; background-position: center;
  border-radius: 0;
}
.rstep--enhanced .rstep-content { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rstep--enhanced .rstep-content p { font-size: .88rem; line-height: 1.55; color: var(--text-muted); }
.rstep--enhanced .rstep-head { margin-bottom: 2px; }
.rstep--enhanced .rstep-num { width: 32px; height: 32px; font-size: .85rem; }
.rstep--enhanced .rstep-info strong { font-size: 1rem; }
.rstep--enhanced .rstep-stats span { font-size: .78rem; }
.rstep--enhanced .rstep-coords { margin-top: 4px; }

/* Variant tabs */
.rmodal-variants {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.rmodal-variant-btn {
  background: var(--surface); border: 1px solid rgba(255,255,255,.1); color: var(--text-muted);
  padding: 8px 18px; border-radius: 20px; cursor: pointer; font-size: .82rem;
  transition: all .2s; font-family: inherit;
}
.rmodal-variant-btn:hover { border-color: var(--gold); color: var(--text); }
.rmodal-variant-btn.active { background: var(--gold); color: #111; border-color: var(--gold); font-weight: 600; }

/* Responsive rstep */
@media (max-width: 640px) {
  .rstep--enhanced { flex-direction: column; }
  .rstep--enhanced .rstep-img { width: 100%; min-height: 160px; }
  .rmodal-hero { height: 180px; margin: -20px -20px 0; }
  .rmodal-hero-content { padding: 20px; }
  .rmodal-hero-content h2 { font-size: 1.4rem; }
  .rmodal-info-grid { grid-template-columns: 1fr; }
}

/* ===== User Menu ===== */
.user-menu {
  display: flex; align-items: center; gap: 8px; margin-left: 12px;
  position: relative;
}
.user-menu-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid rgba(255,255,255,.15);
  color: var(--text); padding: 6px 12px; border-radius: 20px;
  cursor: pointer; font-size: .85rem; font-family: inherit;
  transition: all .2s;
}
.user-menu-btn:hover { border-color: var(--green-light); }
.user-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.auth-btn {
  background: var(--green); border: none; color: #fff;
  padding: 8px 16px; border-radius: 20px; cursor: pointer;
  font-size: .85rem; font-family: inherit; font-weight: 600;
  transition: all .2s;
}
.auth-btn:hover { background: var(--green-light); }
.user-dropdown {
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: var(--bg); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 6px 0; min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4); z-index: 100;
}
.user-dropdown a {
  display: block; padding: 10px 16px; color: var(--text);
  text-decoration: none; font-size: .85rem; transition: background .15s;
}
.user-dropdown a:hover { background: rgba(255,255,255,.06); }

/* ===== Auth Modal ===== */
.auth-modal {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.7); z-index: 2000;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.auth-modal-content {
  background: var(--bg); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 32px; width: 100%; max-width: 400px;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.auth-modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.auth-modal-close:hover { color: var(--text); }
.auth-modal-content h2 {
  font-size: 1.4rem; margin-bottom: 20px; text-align: center;
}
.auth-modal-content input {
  width: 100%; padding: 12px 16px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; color: var(--text); font-size: .9rem;
  font-family: inherit; outline: none; transition: border-color .2s;
}
.auth-modal-content input:focus { border-color: var(--green-light); }
.auth-submit-btn {
  width: 100%; padding: 12px; margin-top: 4px;
  background: var(--green); border: none; color: #fff;
  border-radius: 10px; font-size: .95rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background .2s;
}
.auth-submit-btn:hover { background: var(--green-light); }
.auth-switch {
  text-align: center; margin-top: 16px; font-size: .85rem;
  color: var(--text-muted);
}
.auth-switch a { color: var(--green-light); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-error {
  margin-top: 12px; padding: 10px 14px; border-radius: 8px;
  background: rgba(220,53,69,.15); color: #f87171;
  font-size: .85rem; text-align: center;
}

/* ===== Cabinet ===== */
.cabinet-content {
  max-width: 500px; max-height: 80vh; overflow-y: auto;
}
.cabinet-info {
  text-align: center; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 20px;
}
.cabinet-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center;
  justify-content: center; font-size: 2rem; margin: 0 auto 12px;
}
.cabinet-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.cabinet-email { font-size: .85rem; color: var(--text-muted); margin-bottom: 4px; }
.cabinet-role {
  display: inline-block; padding: 3px 12px; border-radius: 12px;
  background: rgba(82,183,136,.15); color: var(--green-light);
  font-size: .75rem; font-weight: 600; margin-top: 6px;
}
.cabinet-since { font-size: .75rem; color: var(--text-muted); margin-top: 8px; }
.cabinet-content h3 {
  font-size: 1rem; margin-bottom: 12px;
}
.cabinet-favorites { min-height: 40px; }
.cabinet-empty {
  color: var(--text-muted); font-size: .85rem; text-align: center;
  padding: 20px 0;
}
.cabinet-fav-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.cabinet-fav-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 12px;
}
.cabinet-fav-card h4 { font-size: .9rem; margin-bottom: 4px; }
.cabinet-fav-card p { font-size: .75rem; color: var(--text-muted); }

@media (max-width: 640px) {
  .user-menu { margin-left: 8px; }
  .auth-modal-content { margin: 16px; padding: 24px; }
  .cabinet-fav-grid { grid-template-columns: 1fr; }
}
