/* ── Variables ────────────────────────────────────────── */
:root {
  --coral:      #e84d2b;
  --night:      #1a0a2e;
  --cream:      #faf7f4;
  --green:      #22c55e;
  --amber:      #f59e0b;
  --red:        #ef4444;
  --gray:       #6b7280;
  --border:     rgba(26,10,46,0.1);
  --shadow-sm:  0 1px 4px rgba(26,10,46,0.07);
  --shadow-md:  0 4px 20px rgba(26,10,46,0.09);
  --shadow-lg:  0 8px 40px rgba(26,10,46,0.12);
  --radius-full: 9999px;
  --radius-xl:   0.875rem;
  --radius-2xl:  1.25rem;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--night);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar--scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.logo {
  font-weight: 700;
  font-size: 1.375rem;
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo-dest { color: var(--coral); }
.logo-io   { color: var(--night); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(26,10,46,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--night); }

.btn-cta {
  height: 40px;
  padding: 0 1.375rem;
  border-radius: var(--radius-full);
  background: var(--coral);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(232,77,43,0.35);
}
.btn-cta:hover  { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(232,77,43,0.45); }
.btn-cta:active { transform: translateY(0); opacity: 1; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding-top: 108px;
  padding-bottom: 80px;
  padding-left:  clamp(1.5rem, 4vw, 4rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Subtle noise texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* Floating orbs — animated via separate divs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.hero-orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232,77,43,0.13) 0%, transparent 65%);
  top: -280px; left: -180px;
  animation: orbDrift1 14s ease-in-out infinite;
  filter: blur(1px);
}
.hero-orb--2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(100,60,200,0.10) 0%, transparent 65%);
  top: -100px; right: -200px;
  animation: orbDrift2 18s ease-in-out infinite;
  filter: blur(1px);
}
.hero-orb--3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,180,220,0.08) 0%, transparent 65%);
  bottom: -100px; left: 30%;
  animation: orbDrift3 22s ease-in-out infinite;
  filter: blur(1px);
}

@keyframes orbDrift1 {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, 40px) scale(1.07); }
  66%      { transform: translate(-30px, 70px) scale(0.95); }
}
@keyframes orbDrift2 {
  0%,100% { transform: translate(0, 0) scale(1); }
  40%     { transform: translate(-80px, 50px) scale(1.05); }
  70%     { transform: translate(40px, -30px) scale(0.97); }
}
@keyframes orbDrift3 {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%     { transform: translate(50px, -60px) scale(1.08); }
}

.hero-top {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 3-col panel */
.hero-panel {
  width: 100%;
  max-width: 1300px;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 1.5rem;
  align-items: start;
}

/* Side ranking panels */
.panel-rankings {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 1.375rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.panel-rank-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.pr-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.pr-dot--green { background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
.pr-dot--red   { background: var(--red);   box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
.pr-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--night);
  letter-spacing: -0.01em;
}
.pr-sub {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 0.1rem;
}

/* Rank cards inside panels */
.panel-rankings .rank-card {
  padding: 0.5rem 0.375rem;
  gap: 0.625rem;
}
.panel-rankings .rank-flag { font-size: 1.125rem; }
.panel-rankings .rank-name { font-size: 0.875rem; }
.panel-rankings .rank-reason { font-size: 0.6875rem; }
.panel-rankings .rank-score-bar { width: 44px; }

/* Filter tabs — hidden, all panels shown inline */
.filter-tabs { display: none; }

.filter-panel {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}
.filter-panel:last-of-type { border-bottom: none; }

.filter-panel .filter-group-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(26,10,46,0.38);
  min-width: 52px;
  flex-shrink: 0;
  padding-top: 2px;
}
.filter-panel .chips-row {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* Filter footer */
.filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  min-height: 28px;
}

/* Filters card in 3-col layout */
.hero-panel .filters-card {
  max-width: none;
  width: 100%;
}

.hero-content {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(26,10,46,0.55);
  background: rgba(26,10,46,0.04);
  border: 1px solid rgba(26,10,46,0.1);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.875rem;
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.875rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--night);
  margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #ff6b47, #e84d2b, #d63020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(26,10,46,0.48);
  margin-bottom: 2.5rem;
  line-height: 1.65;
  max-width: 480px;
}

/* ── Search bar ───────────────────────────────────────── */
.search-wrap {
  width: 100%;
  max-width: 580px;
  margin-bottom: 1.75rem;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 24px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.06);
  padding: 0 0.5rem 0 1.25rem;
  height: 58px;
  border: 1.5px solid rgba(26,10,46,0.09);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-bar:focus-within {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(232,77,43,0.12), 0 4px 24px rgba(0,0,0,0.1);
}

.search-icon { color: rgba(26,10,46,0.3); flex-shrink: 0; }

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--night);
  padding: 0 0.875rem;
}
.search-bar input::placeholder { color: rgba(26,10,46,0.3); }

.search-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  background: var(--coral);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.search-btn:hover { opacity: 0.85; }

/* ── Filters card ─────────────────────────────────────── */
.filters-card {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1.25rem;
  text-align: left;
  position: relative;
}

/* Filter bar header */
.fbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}
.fbar-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26,10,46,0.38);
}

/* Pill row */
.fbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fpill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 38px;
  padding: 0 1rem;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(26,10,46,0.15);
  background: var(--cream);
  color: var(--night);
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative;
}
.fpill-emoji { font-size: 0.875rem; }
.fpill-label { font-weight: 600; }
.fpill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 100px;
  background: rgba(255,255,255,0.35);
  font-size: 0.6875rem;
  font-weight: 700;
}
.fpill-count[hidden] { display: none; }

.fpill:hover:not(.fpill--active) {
  background: rgba(26,10,46,0.06);
  border-color: rgba(26,10,46,0.3);
  box-shadow: var(--shadow-sm);
}

/* Pill open/active states */
.fpill--open {
  border-color: var(--night);
  background: var(--night);
  color: #fff;
}
.fpill--active:not(.fpill--open) {
  border-color: var(--coral);
  background: rgba(232,77,43,0.07);
  color: var(--coral);
}
.fpill--active.fpill--open {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
}
.fpill--active .fpill-count { background: rgba(255,255,255,0.35); }

/* Dropdown panels */
.fdrop {
  display: none;
  margin-top: 0.75rem;
  padding: 0.875rem 1rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  animation: fdropIn 0.16s ease;
}
.fdrop--open { display: block; }

@keyframes fdropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Destination marquee ──────────────────────────────── */
.dest-marquee-wrap {
  margin-top: 1.125rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* Fade edges */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  border-radius: var(--radius-xl);
}

.dest-marquee-row {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  animation: marqueeLeft 40s linear infinite;
}
.dest-marquee-row--rev {
  animation-direction: reverse;
}
@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.dest-marquee-wrap:hover .dest-marquee-row { animation-play-state: paused; }

/* Individual destination mini-card */
.dmc {
  flex-shrink: 0;
  width: 120px;
  height: 76px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.dmc:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.dmc-emoji {
  font-size: 1.625rem;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25));
}
.dmc-name {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  letter-spacing: -0.01em;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.dmc-stat {
  font-size: 0.625rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.filters-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.375rem;
}

.filters-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(26,10,46,0.35);
}

.reset-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--coral);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  padding: 0;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.reset-btn:hover { opacity: 0.6; }
.reset-btn[hidden] { display: none; }

/* Filter grid — 2 columns on desktop */
.filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2.5rem;
}

.filter-group { display: flex; flex-direction: column; gap: 0.5rem; }
.filter-group--full { grid-column: 1 / -1; }

.filter-group-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26,10,46,0.4);
}

/* Divider between filter rows */
.filter-group--full {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4375rem;
}

/* ── Chips ────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  height: 36px;
  padding: 0 0.9375rem;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(26,10,46,0.18);
  background: var(--cream);
  color: var(--night);
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s, box-shadow 0.14s, transform 0.1s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.chip:hover:not(.chip--active) {
  background: rgba(26,10,46,0.05);
  border-color: rgba(26,10,46,0.35);
  box-shadow: var(--shadow-sm);
}
.chip:active { transform: scale(0.96); }

.chip--active {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
  box-shadow: 0 2px 8px rgba(232,77,43,0.3);
}
.chip--active:hover { opacity: 0.9; }

/* ── Active filters bar ───────────────────────────────── */
.active-filters {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  animation: fadeIn 0.2s ease;
}
.active-filters[hidden] { display: none !important; }

.active-filters-text {
  font-size: 0.8125rem;
  color: var(--gray);
}

/* ── Map section ──────────────────────────────────────── */
.map-section {
  padding: 72px clamp(1rem, 4vw, 4rem) 80px;
}

.map-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.map-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--night);
  margin-bottom: 0.375rem;
}
.map-sub {
  color: var(--gray);
  font-size: 0.9375rem;
}

.map-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
}

#map {
  height: 700px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.leaflet-top { z-index: 50 !important; }

.map-legend {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-radius: 0.625rem;
  padding: 0.5rem 1rem;
  display: flex;
  gap: 1.125rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.legend-item {
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--night);
}
.legend-item::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-green::before { background: var(--green); }
.legend-amber::before { background: var(--amber); }
.legend-red::before   { background: var(--red); }

/* ── Leaflet popup ────────────────────────────────────── */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: 'Inter', sans-serif !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--border) !important;
}
.leaflet-popup-content { margin: 0 !important; }
.leaflet-popup-tip-container { display: none; }

.popup-card { padding: 1rem 1.25rem; min-width: 190px; }
.popup-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--night);
  margin-bottom: 0.2rem;
}
.popup-score {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.popup-score--green { color: var(--green); }
.popup-score--amber { color: var(--amber); }
.popup-score--red   { color: var(--red); }
.popup-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.popup-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(26,10,46,0.06);
  color: var(--night);
}

/* ── How it works ─────────────────────────────────────── */
.how-section {
  padding: 100px clamp(1.5rem, 5vw, 5rem);
  background: var(--night);
  text-align: center;
}
.how-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 3.5rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.step-num {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  padding: 3rem clamp(1.5rem, 5vw, 5rem);
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer .logo { display: inline-block; margin-bottom: 0.5rem; }
.footer-tag  { font-size: 0.875rem; color: var(--gray); margin-bottom: 0.25rem; }
.footer-copy { font-size: 0.8125rem; color: var(--gray); opacity: 0.5; }

/* ── Flight modal ─────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15,7,32,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.18s ease;
}
.modal-overlay[hidden] { display: none !important; }

.modal-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.1);
  animation: heroRise 0.28s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}

/* Modal hero band */
.modal-hero {
  position: relative;
  padding: 2rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-height: 150px;
}
.modal-emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.modal-destination {
  font-size: 1.625rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.modal-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.45;
  max-width: 300px;
  margin-top: 0.125rem;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  backdrop-filter: blur(4px);
}
.modal-close:hover { background: rgba(255,255,255,0.32); }

/* Stats strip */
.modal-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}
.mstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.mstat-val {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--night);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.mstat-label {
  font-size: 0.6875rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.mstat-div {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* Body */
.modal-body {
  padding: 1.375rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.modal-body-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(26,10,46,0.5);
}
.modal-origin-row { display: flex; gap: 0.625rem; }
.modal-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 46px;
  padding: 0 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--cream);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.modal-input-wrap:focus-within {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232,77,43,0.1);
  background: #fff;
}
.modal-input-wrap svg { color: rgba(26,10,46,0.3); flex-shrink: 0; }
.modal-input-wrap input {
  border: none; outline: none; background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--night);
  width: 100%;
}
.modal-input-wrap input::placeholder { color: rgba(26,10,46,0.3); }

.modal-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--coral);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(232,77,43,0.4);
}
.modal-cta-btn:hover  { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(232,77,43,0.5); }
.modal-cta-btn:active { transform: translateY(0); }

.modal-powered {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(26,10,46,0.3);
  font-weight: 500;
}

/* Form */
.modal-form {
  padding: 1.375rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(26,10,46,0.45);
}

.form-input,
.form-select {
  height: 44px;
  padding: 0 0.875rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--night);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232,77,43,0.1);
  background: #fff;
}

.form-select-wrap { position: relative; }
.form-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--gray);
  pointer-events: none;
}

/* Passengers */
.pax-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pax-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--night);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.pax-btn:hover { border-color: var(--coral); color: var(--coral); }
.pax-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--night);
  min-width: 1.5rem;
  text-align: center;
}
.pax-label {
  font-size: 0.875rem;
  color: var(--gray);
}

/* Search button */
.btn-search-flights {
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--coral);
  color: #fff;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  transition: opacity 0.15s, transform 0.1s;
  margin-top: 0.25rem;
}
.btn-search-flights:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn-search-flights:active { transform: translateY(0); }
.btn-search-flights.loading { opacity: 0.7; pointer-events: none; }

.modal-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray);
  padding: 0 1.5rem 1.25rem;
  opacity: 0.7;
}

/* Popup flight button */
.popup-flights-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  height: 34px;
  margin-top: 0.625rem;
  border-radius: var(--radius-full);
  background: var(--coral);
  color: #fff;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.popup-flights-btn:hover { opacity: 0.87; }

/* ── Rankings section ─────────────────────────────────── */
.rankings-section {
  padding: 0 clamp(1rem, 4vw, 4rem) 72px;
}
.rankings-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 3rem;
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 2.5rem 3rem;
}
.rankings-divider {
  background: var(--border);
  width: 1px;
}
.rankings-col { display: flex; flex-direction: column; gap: 1.25rem; }

.rankings-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--border);
}
.rh-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.rh-dot--green { background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
.rh-dot--red   { background: var(--red);   box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
.rh-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--night);
  letter-spacing: -0.01em;
}
.rh-sub {
  font-size: 0.8125rem;
  color: var(--gray);
  margin-top: 0.125rem;
}

.rankings-list { display: flex; flex-direction: column; gap: 0.5rem; }

.rank-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  cursor: default;
}
.rank-card:hover {
  background: rgba(26,10,46,0.03);
  border-color: var(--border);
}
.rank-pos {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(26,10,46,0.25);
  min-width: 1.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.rank-flag { font-size: 1.375rem; line-height: 1; flex-shrink: 0; }
.rank-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}
.rank-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--night);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-reason {
  font-size: 0.75rem;
  color: var(--gray);
}
.rank-score-bar {
  width: 64px;
  height: 4px;
  background: rgba(26,10,46,0.08);
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
}
.rank-score-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s ease;
}

/* ── Filter label icons ───────────────────────────────── */
.filter-group-label {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
}
.filter-group-label svg { opacity: 0.5; flex-shrink: 0; }

/* ── Chip SVG icons ───────────────────────────────────── */
.chip svg { flex-shrink: 0; opacity: 0.7; transition: opacity 0.14s; }
.chip:hover svg, .chip--active svg { opacity: 1; }

/* ── Animations ───────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-panel { grid-template-columns: 220px 1fr 220px; }
}

@media (max-width: 900px) {
  .hero-panel { grid-template-columns: 1fr; }
  .panel-rankings { display: none; }
  .rankings-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.75rem;
  }
  .rankings-divider { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding-top: 80px; padding-bottom: 48px; }
  #map { height: 480px; }
  .map-legend { gap: 0.625rem; padding: 0.4rem 0.75rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.125rem; }
  .filters-card { padding: 1.25rem 1.125rem 1rem; }
  .chip { height: 34px; font-size: 0.8125rem; padding: 0 0.75rem; }
  #map { height: 380px; }
}

/* ══════════════════════════════════════════════════════
   DESTINATION DETAIL PAGE
   ══════════════════════════════════════════════════════ */

body.dest-page { background: var(--cream); }

/* Hero */
.dest-hero {
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.dest-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
}
.dest-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 2rem 3rem;
}
.dest-back-link {
  display: inline-block;
  color: rgba(255,255,255,0.75);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color 0.15s;
}
.dest-back-link:hover { color: #fff; }
.dest-hero-flag { font-size: 3.5rem; line-height: 1; margin-bottom: 0.5rem; }
.dest-name {
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.625rem;
}
.dest-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.dest-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.18);
}

/* Container */
.dest-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Stats */
.dest-stats-section { padding: 2.5rem 0 0; }
.dest-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.dest-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow-sm);
}
.dest-stat-icon { font-size: 1.25rem; }
.dest-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray);
}
.dest-stat-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--night);
}

/* Tags */
.dest-tags-section { padding: 2rem 0 0; }
.dest-tags-row { display: flex; flex-direction: column; gap: 0.875rem; }
.dest-tag-group { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.dest-tag-group-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(26,10,46,0.38);
  min-width: 72px;
}
.dest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 30px;
  padding: 0 0.75rem;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--night);
}

/* Flights */
.dest-flights-section { padding: 2.5rem 0 3rem; }
.dest-flight-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
.dest-flight-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(26,10,46,0.55);
  margin-bottom: 0.875rem;
}
.dest-flight-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}
.dest-flight-input { flex: 1; }
.dest-flight-btn {
  height: 46px;
  padding: 0 1.5rem;
  flex-shrink: 0;
  font-size: 0.9375rem;
}
.dest-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* Map popup "view details" link */
.popup-detail-link {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  color: var(--coral);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.popup-detail-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 700px) {
  .dest-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dest-name { font-size: 2rem; }
}
@media (max-width: 480px) {
  .dest-stats-grid { grid-template-columns: 1fr 1fr; }
  .dest-hero-inner { padding: 2rem 1.25rem 2.5rem; }
}

/* ══════════════════════════════════════════════════════
   GUIDES SECTION
   ══════════════════════════════════════════════════════ */

/* Guides hero */
.guides-hero {
  background: linear-gradient(135deg, var(--night) 0%, #2d1b69 100%);
  padding: 120px 2rem 4rem;
  text-align: center;
}
.guides-hero-inner { max-width: 600px; margin: 0 auto; }
.guides-hero h1 { font-size: 2.5rem; font-weight: 700; color: #fff; margin: 0.75rem 0 0.5rem; }
.guides-hero p  { font-size: 1rem; color: rgba(255,255,255,0.72); }

/* Guides grid */
.guides-container { max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.guides-grid-section { padding: 3rem 0; }
.guides-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

.guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--night);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.guide-card-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.guide-card-img--solo   { background: linear-gradient(135deg,#1a1a2e,#0f3460); }
.guide-card-img--budget { background: linear-gradient(135deg,#1b4332,#40916c); }
.guide-card-img--winter { background: linear-gradient(135deg,#0077b6,#00b4d8); }

.guide-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.375rem; flex: 1; }
.guide-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--coral);
  margin-bottom: 0.125rem;
}
.guide-card-body h2 { font-size: 0.9375rem; font-weight: 700; line-height: 1.35; }
.guide-card-body p  { font-size: 0.8125rem; color: var(--gray); line-height: 1.5; flex: 1; }
.guide-meta { font-size: 0.75rem; color: rgba(26,10,46,0.38); font-weight: 500; margin-top: 0.5rem; }

/* Guides CTA box */
.guides-cta-section { padding: 0 0 4rem; }
.guides-cta-box {
  background: linear-gradient(135deg, var(--coral) 0%, #c43a1f 100%);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  text-align: center;
  color: #fff;
}
.guides-cta-box h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.guides-cta-box p  { color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; }
.guides-cta-box .btn-cta {
  background: #fff;
  color: var(--coral);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9375rem;
}

/* ── Article pages ──────────────────────────────────── */
.article-page { padding: 4rem 0 0; }
.article-container { max-width: 720px; margin: 0 auto; padding: 0 2rem; }

.article-header { margin-bottom: 2.5rem; }
.article-tag-row { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0 1rem; }
.article-meta { font-size: 0.8125rem; color: var(--gray); }
.article-header h1 { font-size: 2.25rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.article-lead { font-size: 1.125rem; color: #444; line-height: 1.65; }

.article-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
}
.article-body p { font-size: 0.9375rem; color: #374151; line-height: 1.75; margin-bottom: 1rem; }

.article-cta { margin: 0.75rem 0 1.5rem; }
.article-dest-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 1.125rem;
  border-radius: var(--radius-full);
  background: rgba(232,77,43,0.08);
  color: var(--coral);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(232,77,43,0.2);
  transition: background 0.15s;
}
.article-dest-btn:hover { background: rgba(232,77,43,0.15); }

.article-summary-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin: 2rem 0;
}
.article-summary-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.article-summary-box ul { padding-left: 1.25rem; }
.article-summary-box li { font-size: 0.9rem; color: #374151; line-height: 1.7; }

.article-footer-cta {
  margin: 3rem 0 4rem;
  background: linear-gradient(135deg, var(--night) 0%, #2d1b69 100%);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  text-align: center;
  color: #fff;
}
.article-footer-cta h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.article-footer-cta p  { color: rgba(255,255,255,0.75); margin-bottom: 1.25rem; font-size: 0.9375rem; }

/* Budget table */
.article-budget-table {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  font-size: 0.875rem;
}
.budget-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.budget-row:last-child { border-bottom: none; }
.budget-row--header { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray); background: var(--cream); }
.budget-green { color: #16a34a; font-weight: 600; }
.budget-amber { color: #d97706; font-weight: 600; }

/* Navbar active guide link */
.nav-links a[href="/guides/"] { color: var(--coral); }

@media (max-width: 700px) {
  .guides-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.75rem; }
}

/* Destination hero amb foto real */
.dest-hero {
  transition: background-image 0.4s ease;
}
.dest-hero--photo::after {
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%);
}
.dest-hero--photo .dest-name,
.dest-hero--photo .dest-tagline { text-shadow: 0 1px 4px rgba(0,0,0,0.4); }

/* ══════════════════════════════════════════════════════
   HERO STATS ROW
   ══════════════════════════════════════════════════════ */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.25rem;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--night);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.6875rem;
  color: rgba(26,10,46,0.38);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(26,10,46,0.1);
}

/* ── Hero top animations — Apple-style stagger ────────── */
.hero-top > * {
  animation: heroRise 0.72s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-top > *:nth-child(1) { animation-delay: 0.08s; }
.hero-top > *:nth-child(2) { animation-delay: 0.18s; }
.hero-top > *:nth-child(3) { animation-delay: 0.28s; }
.hero-top > *:nth-child(4) { animation-delay: 0.38s; }
.hero-top > *:nth-child(5) { animation-delay: 0.46s; }

.hero-panel {
  animation: heroRise 0.8s cubic-bezier(0.16,1,0.3,1) 0.55s both;
}

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

/* ── Panel cards — liquid glass on light bg ───────────── */
.hero-panel .panel-rankings,
.hero-panel .filters-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.8) inset,
    0 8px 40px rgba(26,10,46,0.09),
    0 2px 8px rgba(26,10,46,0.04);
}

/* ── Section label ────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

/* ══════════════════════════════════════════════════════
   HOW IT WORKS — redesigned
   ══════════════════════════════════════════════════════ */
.how-section {
  background: var(--night);
  position: relative;
  overflow: hidden;
}
.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.how-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem clamp(1.5rem, 4vw, 4rem);
  text-align: center;
}
.how-inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.how-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.5);
  max-width: 480px;
  margin: 0 auto 3.5rem;
  line-height: 1.6;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-2xl);
  padding: 2rem 1.5rem;
  text-align: left;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.step:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
}
.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.step-num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--coral);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════
   MAP SECTION — more pro
   ══════════════════════════════════════════════════════ */
.map-section {
  background: var(--cream);
  padding: 4rem clamp(1.5rem, 4vw, 4rem);
}
.map-header {
  text-align: center;
  margin-bottom: 2rem;
}
.map-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.375rem;
}
.map-sub {
  color: var(--gray);
  font-size: 0.9375rem;
}

/* ── Footer redesigned ────────────────────────────────── */
.footer {
  background: var(--night);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3rem clamp(1.5rem, 4vw, 4rem);
  text-align: center;
}
.footer .logo { font-size: 1.25rem; }
.footer .logo-io { color: rgba(255,255,255,0.6); }
.footer-tag {
  color: rgba(255,255,255,0.35);
  font-size: 0.875rem;
  margin-top: 0.375rem;
}
.footer-copy {
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .hero-stats { gap: 1rem; }
  .hero-stat-num { font-size: 1.25rem; }
}

/* ══════════════════════════════════════════════════════
   FILTER ACCORDION
   ══════════════════════════════════════════════════════ */

/* Override old inline layout */
.filter-panel {
  display: block !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--border);
  align-items: unset;
  gap: unset;
}
.filter-panel:last-of-type { border-bottom: none; }

.filter-panel-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-align: left;
}
.filter-panel-toggle:hover .fpt-label { color: var(--night); }

.fpt-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(26,10,46,0.65);
  min-width: 56px;
  transition: color 0.15s;
}
.fpt-summary {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  padding-right: 0.375rem;
  transition: color 0.15s;
}
.fpt-summary--active {
  color: var(--coral);
  font-weight: 500;
}
.fpt-chevron {
  flex-shrink: 0;
  color: var(--gray);
  transition: transform 0.22s ease;
}
.filter-panel--open .fpt-chevron {
  transform: rotate(180deg);
}
.filter-panel--open .fpt-label { color: var(--night); }

/* Collapsible body */
.filter-panel-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.4,0,0.2,1),
              padding   0.28s cubic-bezier(0.4,0,0.2,1);
  padding-bottom: 0;
}
.filter-panel--open .filter-panel-body {
  max-height: 160px;
  padding-bottom: 0.75rem;
}
