/* ═══════════════════════════════════════════════════════════
   Malownicze Drogi Polski — Design System & Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Colors — deep forest / golden sun palette */
  --c-bg:          #0a0f0d;
  --c-bg-raised:   #111916;
  --c-bg-card:     #151d19;
  --c-bg-glass:    rgba(21, 29, 25, 0.72);
  --c-border:      rgba(255, 255, 255, 0.06);
  --c-border-hover:rgba(255, 255, 255, 0.12);

  --c-text:        #e8ede9;
  --c-text-muted:  #8b9a8f;
  --c-text-dim:    #5a6b5f;

  --c-accent:      #5dcd8a;
  --c-accent-soft: rgba(93, 205, 138, 0.12);
  --c-accent-glow: rgba(93, 205, 138, 0.25);
  --c-gold:        #e8b74a;
  --c-gold-soft:   rgba(232, 183, 74, 0.10);

  /* Gradients */
  --g-hero:        linear-gradient(160deg, rgba(10,15,13,0.35) 0%, rgba(10,15,13,0.85) 60%, rgba(10,15,13,0.97) 100%);
  --g-card:        linear-gradient(135deg, var(--c-bg-card) 0%, #1a2520 100%);
  --g-accent:      linear-gradient(135deg, #4eba77 0%, #5dcd8a 50%, #7be0a4 100%);
  --g-gold:        linear-gradient(135deg, #c9963a 0%, #e8b74a 50%, #f0ca6e 100%);

  /* Typography */
  --f-display: 'Playfair Display', Georgia, serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --s-page: clamp(1rem, 5vw, 4rem);
  --s-gap:  1.25rem;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Transitions */
  --t-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --t-med:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.6s  cubic-bezier(0.22, 1, 0.36, 1);

  /* Shadows */
  --sh-card:  0 2px 20px rgba(0,0,0,0.35), 0 0 0 1px var(--c-border);
  --sh-hover: 0 8px 40px rgba(0,0,0,0.45), 0 0 0 1px var(--c-border-hover);
  --sh-glow:  0 0 30px var(--c-accent-glow);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--s-page);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
select { font: inherit; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--t-med), backdrop-filter var(--t-med), padding var(--t-med);
}

.nav--scrolled {
  background: var(--c-bg-glass);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--c-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--s-page);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-text);
  transition: color var(--t-fast);
}
.nav__logo:hover { color: var(--c-accent); }

.nav__icon {
  width: 26px;
  height: 26px;
  color: var(--c-accent);
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--t-fast);
  letter-spacing: 0.02em;
}
.nav__links a:hover { color: var(--c-text); }

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

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 12s ease-out;
}
.hero--loaded .hero__img { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--g-hero);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 var(--s-page);
}

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.3s ease forwards;
}

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.9s 0.5s ease forwards;
}
.hero__title em {
  font-style: normal;
  background: var(--g-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.7s ease forwards;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--g-accent);
  color: #0a0f0d;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.9s ease forwards;
}
.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-glow);
}
.hero__cta-arrow {
  transition: transform var(--t-fast);
}
.hero__cta:hover .hero__cta-arrow { transform: translateY(3px); }

.hero__stats {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  opacity: 0;
  animation: fadeIn 1s 1.2s ease forwards;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--c-gold);
}

.hero__stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── Filter Bar ───────────────────────────────────────────── */
.filter-section {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1.5rem 0 1rem;
  background: rgba(10, 15, 13, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--c-border);
}

.filter-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-bar__search {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.filter-bar__search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--c-text-dim);
  pointer-events: none;
}

.filter-bar__input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.filter-bar__input::placeholder { color: var(--c-text-dim); }
.filter-bar__input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.filter-bar__controls {
  display: flex;
  gap: 0.5rem;
}

.filter-bar__select {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: 0.88rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b9a8f' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 4.5l6.5 7 6.5-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  cursor: pointer;
  outline: none;
  transition: border-color var(--t-fast);
}
.filter-bar__select:focus {
  border-color: var(--c-accent);
}
.filter-bar__select option {
  background: var(--c-bg-card);
  color: var(--c-text);
}

.filter-bar__sort {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 0.88rem;
  color: var(--c-text-muted);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.filter-bar__sort svg { width: 16px; height: 16px; }
.filter-bar__sort:hover {
  border-color: var(--c-border-hover);
  color: var(--c-text);
}

.results-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--c-text-dim);
}

.results-info__clear {
  font-size: 0.78rem;
  color: var(--c-accent);
  opacity: 0.8;
  transition: opacity var(--t-fast);
}
.results-info__clear:hover { opacity: 1; }

/* ── Route Cards ──────────────────────────────────────────── */
.routes-section {
  padding: 2rem 0 4rem;
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--s-gap);
}

.route-card {
  position: relative;
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  animation: cardIn 0.4s ease backwards;
}
.route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
  border-color: var(--c-border-hover);
}
.route-card:active { transform: translateY(-2px); }

.route-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.route-card__number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: var(--r-sm);
}

.route-card__title {
  font-family: var(--f-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-text);
}

.route-card__prov {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  opacity: 0.8;
}

.route-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.8rem;
}

.route-card__meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--c-text-muted);
}
.route-card__meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.route-card__desc {
  font-size: 0.84rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.route-card__waypoints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--c-border);
}

.route-card__wp {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50px;
  font-size: 0.72rem;
  color: var(--c-text-muted);
}

.route-card__wp-dot {
  width: 5px;
  height: 5px;
  background: var(--c-accent);
  border-radius: 50%;
  opacity: 0.6;
}

.routes-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--c-text-dim);
}
.routes-empty svg { width: 48px; height: 48px; margin: 0 auto 1rem; }

.load-more {
  display: block;
  margin: 2.5rem auto 0;
  padding: 0.85rem 2.5rem;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: all var(--t-fast);
}
.load-more:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  box-shadow: 0 0 20px var(--c-accent-soft);
}

/* ── Province Cards ───────────────────────────────────────── */
.prov-section {
  padding: 5rem 0;
  background: var(--c-bg-raised);
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--c-text-muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

.prov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.prov-card {
  position: relative;
  padding: 1.3rem 1.5rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-med);
  overflow: hidden;
}
.prov-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.prov-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--g-accent);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.prov-card:hover::before { opacity: 1; }

.prov-card__name {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.prov-card__stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--c-text-muted);
}

.prov-card__stat-value {
  color: var(--c-gold);
  font-weight: 600;
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem var(--s-page);
  opacity: 0;
  transition: opacity var(--t-med);
}
.modal-backdrop--open {
  display: flex;
  opacity: 1;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  transform: translateY(30px) scale(0.96);
  transition: transform var(--t-slow);
}
.modal-backdrop--open .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--c-text-muted);
  transition: all var(--t-fast);
}
.modal__close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--c-text);
}

.modal__badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.modal__title {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 1.5rem;
}

.modal__meta-item {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}
.modal__meta-item strong {
  color: var(--c-text);
  font-weight: 600;
}

.modal__waypoints {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.modal__wp {
  padding: 0.35rem 0.75rem;
  background: rgba(93, 205, 138, 0.08);
  border: 1px solid rgba(93, 205, 138, 0.15);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--c-accent);
}

.modal__wp-arrow {
  color: var(--c-text-dim);
  font-size: 0.75rem;
}

.modal__desc {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--c-text-muted);
}

.modal__region {
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  background: var(--c-gold-soft);
  border-radius: var(--r-sm);
  font-size: 0.84rem;
  color: var(--c-gold);
}
.modal__region strong {
  font-weight: 600;
}

/* ── About ────────────────────────────────────────────────── */
.about-section {
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.about-card {
  padding: 2rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  text-align: center;
  transition: transform var(--t-med), border-color var(--t-med);
}
.about-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-border-hover);
}

.about-card__icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.about-card p {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--c-border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__brand {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

.footer__note {
  font-size: 0.78rem;
  color: var(--c-text-dim);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Map ──────────────────────────────────────────────────── */
.map-section {
  position: relative;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.map-section__header {
  padding: 3rem 0 2rem;
  background: var(--c-bg-raised);
}

.map-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.map-hint {
  font-size: 0.82rem;
  color: var(--c-text-dim);
  max-width: 420px;
  line-height: 1.5;
}

.route-marker {
  background: none !important;
  border: none !important;
}

.map-container {
  width: 100%;
  height: 65vh;
  min-height: 450px;
  max-height: 750px;
  background: #0a0f0d;
  z-index: 10;
}

/* Custom Leaflet Popup */
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--c-bg-card) !important;
  color: var(--c-text) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--c-border) !important;
  border-radius: var(--r-md) !important;
}
.leaflet-popup-content {
  margin: 16px !important;
  font-family: var(--f-body);
}
.leaflet-container a.leaflet-popup-close-button {
  color: var(--c-text-muted) !important;
  top: 8px !important;
  right: 8px !important;
}
.map-popup__prov {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--c-accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.map-popup__title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}
.map-popup__meta {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-bottom: 0.5rem;
}
.map-popup__meta strong {
  color: var(--c-text);
}
.map-popup__wps {
  font-size: 0.75rem;
  color: var(--c-text-dim);
  border-top: 1px solid var(--c-border);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}
.map-popup__btn {
  display: block;
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.4rem;
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--r-sm);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s;
}
.map-popup__btn:hover {
  background: var(--c-gold);
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: #2a3830; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a4f42; }

/* ── AI Rating in Modal ────────────────────────────────────── */
.modal__ai-rating {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--g-card);
  border: 1px solid var(--c-gold-soft);
  border-radius: var(--r-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal__ai-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.modal__ai-title {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--c-gold);
}

.modal__ai-score {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-gold);
}

.modal__ai-score svg {
  width: 20px;
  height: 20px;
}

.modal__ai-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--c-text-muted);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }

  .hero__stats { gap: 1.5rem; bottom: 2rem; }

  .filter-bar { flex-direction: column; }
  .filter-bar__search { width: 100%; }
  .filter-bar__controls { width: 100%; }
  .filter-bar__select { flex: 1; }

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

  .modal { padding: 1.5rem; border-radius: var(--r-lg); }
  .modal__title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .hero__stats { flex-direction: column; gap: 0.5rem; }
  .prov-grid { grid-template-columns: 1fr; }
}
