:root {
  --bg: #f7f1e7;
  --bg-soft: #fcf8f2;
  --surface: rgba(255, 250, 244, 0.92);
  --surface-strong: #fffdf8;
  --text: #1f2a2f;
  --muted: #58656b;
  --line: rgba(31, 42, 47, 0.1);
  --primary: #0c6b58;
  --primary-deep: #084c40;
  --accent: #eb8f34;
  --accent-soft: #ffe0bb;
  --success: #d9efe5;
  --fun: #ffe8d5;
  --shadow: 0 18px 40px rgba(29, 35, 38, 0.08);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --page-width: 980px;
  --font-heading: "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(235, 143, 52, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(12, 107, 88, 0.18), transparent 34%),
    linear-gradient(180deg, #fff9f0 0%, var(--bg) 48%, #f2efe8 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

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

.app-shell {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.section-intro h2,
.hero-card h2 {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

.section-intro__eyebrow,
.hero-card__eyebrow,
.award-card__eyebrow,
.bottom-nav__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
}

.app-main,
.page-stack {
  display: grid;
  gap: 18px;
}

.hero-card,
.info-card,
.module-tile,
.map-card,
.route-hero-card,
.route-visual-card,
.route-loading-card,
.timeline-card,
.feed-card,
.stat-card,
.gallery-card,
.profile-card,
.status-panel,
.list-card,
.story-card,
.award-card,
.list-inline-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(12, 107, 88, 0.95), rgba(8, 76, 64, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  color: #f5fbf8;
}

.route-loading-card {
  padding: 24px;
}

.route-hero-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 242, 232, 0.92)),
    radial-gradient(circle at top left, rgba(235, 143, 52, 0.18), transparent 30%);
}

.route-hero-card__copy {
  display: grid;
  gap: 16px;
}

.route-hero-card__lead {
  line-height: 1.6;
  color: var(--muted);
}

.route-hero-card__metrics {
  display: grid;
  gap: 12px;
}

.route-hero-card__metrics article {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(12, 107, 88, 0.08);
}

.route-hero-card__metrics span,
.route-progress-block__label span,
.route-milestone__label {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.route-hero-card__metrics strong,
.route-progress-block__label strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
  color: var(--primary-deep);
}

.route-progress-block {
  display: grid;
  gap: 10px;
}

.route-progress-block__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.route-progress__bar {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(12, 107, 88, 0.12);
}

.route-progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.route-visual-stack {
  display: grid;
  gap: 14px;
}

.route-visual-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.route-visual-card__header,
.route-visual-card__footer {
  display: grid;
  gap: 8px;
}

.route-visual-card__header {
  margin-bottom: 14px;
}

.route-map-svg,
.route-profile-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}

.route-map-svg__bg {
  fill: rgba(12, 107, 88, 0.06);
}

.route-map-svg__tile {
  opacity: 0.95;
}

.route-map-svg__veil {
  fill: rgba(255, 250, 243, 0.22);
}

.route-map-svg__line {
  fill: none;
  stroke: url(#routeLineGradient);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-map-svg__current {
  filter: drop-shadow(0 0 4px rgba(12, 107, 88, 0.5));
}

.route-map-svg__live-ring {
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 0.18; r: 16; }
  50%       { opacity: 0.08; r: 22; }
}

.route-map-svg__flag {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  pointer-events: none;
  user-select: none;
}

.route-map-svg__climb-label {
  font-family: var(--font-body);
  pointer-events: none;
}

.route-map-svg__poi {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 3;
}

.route-map-svg__poi--top {
  fill: #d94c2d;
}

.route-map-svg__poi--strong {
  fill: #eb8f34;
}

.route-map-svg__poi--context {
  fill: #3c8f7c;
}

.route-profile-svg__bg {
  fill: rgba(235, 143, 52, 0.08);
}

.route-profile-svg__line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-visual-card__footer {
  margin-top: 14px;
}

.route-visual-card__attribution,
.dashboard-focus-card__attribution {
  font-size: 0.76rem;
  color: var(--muted);
}

.route-milestones {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.route-milestone {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.route-milestone:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.route-milestone__dot {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(31, 42, 47, 0.14);
}

.route-milestone.is-reached .route-milestone__dot {
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.poi-filter-card,
.poi-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.poi-filter-card {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.poi-filter-card__heading {
  display: grid;
  gap: 8px;
}

.poi-filter-grid,
.poi-list {
  display: grid;
  gap: 14px;
}

.poi-filter-field {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.poi-filter-field span,
.poi-filter-toggle span,
.poi-card__eyebrow,
.poi-card__meta {
  color: var(--muted);
}

.poi-filter-field select {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
}

.poi-filter-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
}

.poi-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.poi-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.poi-card__header-meta,
.poi-inline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.poi-card__header-meta {
  flex-direction: column;
  align-items: flex-end;
}

.poi-card__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8b4f10;
  font-weight: 800;
}

.poi-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.poi-breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.poi-breadcrumb--highlight span:first-child,
.poi-breadcrumb--highlight span:last-child {
  background: rgba(217, 76, 45, 0.12);
  color: #a33b24;
}

.poi-breadcrumb--culture span:first-child,
.poi-breadcrumb--culture span:last-child {
  background: rgba(94, 74, 163, 0.12);
  color: #5c4aa3;
}

.poi-breadcrumb--nature span:first-child,
.poi-breadcrumb--nature span:last-child {
  background: rgba(12, 107, 88, 0.14);
  color: #0c6b58;
}

.poi-breadcrumb--local span:first-child,
.poi-breadcrumb--local span:last-child {
  background: rgba(235, 143, 52, 0.14);
  color: #8b4f10;
}

.poi-breadcrumb--route span:first-child,
.poi-breadcrumb--route span:last-child {
  background: rgba(31, 42, 47, 0.12);
  color: #425056;
}

.poi-breadcrumb--stage span:first-child,
.poi-breadcrumb--stage span:last-child {
  background: rgba(47, 126, 203, 0.12);
  color: #2f7ecb;
}

.poi-breadcrumb--border span:first-child,
.poi-breadcrumb--border span:last-child {
  background: rgba(191, 50, 109, 0.12);
  color: #bf326d;
}

.poi-breadcrumb--supply span:first-child,
.poi-breadcrumb--supply span:last-child {
  background: rgba(148, 94, 43, 0.12);
  color: #945e2b;
}

.poi-card__description,
.poi-card__impact {
  line-height: 1.55;
  color: var(--muted);
}

.poi-next-card,
.poi-journey-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(12, 107, 88, 0.08);
}

.poi-next-card {
  background:
    linear-gradient(135deg, rgba(235, 143, 52, 0.16), rgba(12, 107, 88, 0.09)),
    rgba(255, 255, 255, 0.84);
}

.poi-audience-card {
  padding: 20px;
  display: grid;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(247, 242, 232, 0.94)),
    radial-gradient(circle at top left, rgba(235, 143, 52, 0.18), transparent 34%);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.poi-audience-card__hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.poi-journey-stack,
.poi-journey-list {
  display: grid;
  gap: 12px;
}

.poi-journey-grid,
.poi-audience-grid,
.poi-audience-list {
  display: grid;
  gap: 14px;
}

.poi-journey-section,
.poi-audience-section {
  display: grid;
  gap: 10px;
}

.poi-audience-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(12, 107, 88, 0.08);
}

.dashboard-page,
.dashboard-focus-card__header,
.dashboard-focus-card__section,
.dashboard-focus-card__lead,
.dashboard-poi-list,
.dashboard-focus-card__metrics,
.dashboard-focus-card__progress {
  display: grid;
  gap: 10px;
}

.dashboard-page {
  gap: 22px;
}

.dashboard-status-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-chip--moving {
  background: var(--success);
  color: var(--primary-deep);
}

.status-chip--still {
  background: rgba(31, 42, 47, 0.08);
  color: var(--muted);
}

.status-chip--unknown {
  background: rgba(31, 42, 47, 0.06);
  color: var(--muted);
  font-weight: 600;
}

.status-chip__ellipsis {
  display: inline-flex;
  gap: 2px;
  margin-left: 2px;
}

.status-chip__ellipsis span {
  color: var(--accent);
  font-weight: 900;
  animation: chip-dot 1.4s ease-in-out infinite;
  opacity: 0;
}

.status-chip__ellipsis span:nth-child(2) { animation-delay: 0.22s; }
.status-chip__ellipsis span:nth-child(3) { animation-delay: 0.44s; }

@keyframes chip-dot {
  0%, 60%, 100% { opacity: 0; }
  30%            { opacity: 1; }
}

.status-chip--searching {
  background: rgba(31, 42, 47, 0.06);
  color: var(--muted);
  font-weight: 600;
}

.status-chip--searching .status-chip__dot {
  background: var(--muted);
  animation: dot-searching 1.6s ease-in-out infinite;
}

@keyframes dot-searching {
  0%, 100% { opacity: 0.2; transform: scale(0.75); }
  50%       { opacity: 1;   transform: scale(1.1);  }
}

.status-chip--meta {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}

.status-chip--location {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--text);
  gap: 8px;
}

.status-chip__pin {
  width: 10px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.55;
}

.status-chip__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-chip--moving .status-chip__dot {
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}


.dashboard-main-grid,
.dashboard-sandbox-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

/* Journey Timeline Card */

.journey-timeline-card {
  grid-column: 1 / -1;
  padding: 16px 20px 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(247, 242, 232, 0.94)),
    radial-gradient(circle at top left, rgba(235, 143, 52, 0.12), transparent 40%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.jt-progress-pct {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.jt-dist-labels {
  padding-top: 14px;
  border-top: 1px solid rgba(31, 42, 47, 0.09);
}

.jt-dist-labels > div:last-child {
  text-align: right;
}

.jt-track {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.jt-flags {
  position: relative;
  height: 22px;
}

.jt-flag-slot {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  overflow: hidden;
  min-width: 0;
  transition: opacity 0.3s ease, font-size 0.3s ease;
}

.jt-flag-slot--passed  { opacity: 0.3; }
.jt-flag-slot--active  { opacity: 1; font-size: 1.1rem; }
.jt-flag-slot--next    { opacity: 0.7; }
.jt-flag-slot--future  { opacity: 0.3; }

.jt-profile-svg {
  width: 100%;
  height: 72px;
  display: block;
  border-radius: 6px;
  overflow: visible;
}

.jt-svg-pulse {
  animation: jt-svg-pulse 2.2s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.jt-svg-pulse--outer {
  animation-delay: -1.1s;
}

@keyframes jt-svg-pulse {
  0%   { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(3.2); opacity: 0; }
}

.dashboard-focus-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(247, 242, 232, 0.94)),
    radial-gradient(circle at top left, rgba(235, 143, 52, 0.18), transparent 34%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.dashboard-focus-card--route-map,
.dashboard-focus-card--route-stats {
  gap: 16px;
}

.dashboard-focus-card__metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-focus-card__metrics--stacked {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-focus-card__metrics article,
.dashboard-poi-item,
.dashboard-focus-card__lead {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(12, 107, 88, 0.08);
}

.dashboard-focus-card__metrics span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.dashboard-focus-card__metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
  color: var(--primary-deep);
}

.dashboard-focus-card__map {
  display: grid;
  gap: 10px;
}

.dashboard-focus-card__map .route-map-svg {
  width: 100%;
  height: auto;
  display: block;
}


.dashboard-focus-card__detail {
  color: var(--muted);
  line-height: 1.5;
}

/* ── Stats tile: progress block ─────────────────────────── */
.stats-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-progress__bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(31, 42, 47, 0.09);
  overflow: hidden;
}

.stats-progress__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width 0.6s ease;
}

.stats-progress__labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.stats-progress__labels > div:last-child {
  text-align: right;
}

.stats-progress__total {
  text-align: center;
  opacity: 0.65;
}

.stats-progress__labels strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.1;
  margin-bottom: 1px;
}

.stats-progress__total strong {
  font-size: 0.92rem;
  font-weight: 700;
}

/* ── Stats tile: daily section ───────────────────────────── */
.stats-daily {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 42, 47, 0.09);
}

.stats-daily__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stats-daily__item span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.stats-daily__item strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1;
}

.stats-daily__item--muted {
  opacity: 0.55;
}

/* ── Compact POI rows (dashboard audience tiles) ─────────── */
.poi-lead-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(12, 107, 88, 0.1);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.poi-lead-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.poi-lead-item__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-deep);
  line-height: 1.2;
}

.poi-lead-item__dist {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.poi-compact-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.poi-compact-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
}

.poi-compact-row__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.poi-compact-row__name {
  flex: 1;
  font-size: 0.87rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--primary-deep);
}

.poi-compact-row__badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.poi-compact-row__dist {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.dashboard-poi-list {
  align-content: start;
}

/* ── Forward route tile ────────────────────────────────── */
.dashboard-focus-card__header--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.forward-limit-control {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-shrink: 0;
}

.forward-limit-btn {
  padding: 3px 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.4;
}

.forward-limit-btn--active {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: #fff;
}

.forward-route-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.forward-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
}

.forward-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.forward-item__name {
  flex: 1;
  font-size: 0.87rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--primary-deep);
}

.forward-item__badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.forward-item__dist {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.dashboard-poi-item h4,
.dashboard-focus-card__lead h4 {
  margin-top: 6px;
  font-size: 1.05rem;
}

/* ── Live map ───────────────────────────────────────────────── */
.live-map-el {
  height: 360px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(31, 42, 47, 0.06);
  flex-shrink: 0;
  position: relative;
}

.map-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(248, 247, 244, 0.82);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.map-loading-overlay--done {
  opacity: 0;
}

.map-loading-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.map-loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #eb8f34;
  animation: map-dot-bounce 1.3s ease-in-out infinite;
}

.map-loading-dots span:nth-child(2) { animation-delay: 0.18s; }
.map-loading-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes map-dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-9px); opacity: 1; }
}

.map-loading-label {
  margin: 0;
  font-size: 12px;
  color: #999;
  letter-spacing: 0.03em;
}

.live-pos-marker {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.live-pos-marker__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(235, 143, 52, 0.6);
  position: relative;
  z-index: 2;
}

.live-pos-marker__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(235, 143, 52, 0.3);
  animation: pos-pulse 2s ease-out infinite;
}

@keyframes pos-pulse {
  0%   { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.map-popup-wrap .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 0;
  border: none;
}

.map-popup-wrap .leaflet-popup-content {
  margin: 0;
}

.map-popup {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  min-width: 170px;
  max-width: 210px;
}

.map-popup__img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.map-popup__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-deep);
  line-height: 1.3;
}

.map-popup__desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.map-popup__cat {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.dashboard-sandbox-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.dashboard-sandbox-card__value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.dashboard-sandbox-card__meta {
  color: var(--primary);
  font-weight: 700;
}

.dashboard-sandbox-grid .info-card,
.dashboard-sandbox-grid .module-tile,
.dashboard-sandbox-grid .dashboard-sandbox-card {
  min-height: 148px;
}

.hero-card h2 {
  font-size: clamp(1.9rem, 8vw, 3.2rem);
  margin-top: 8px;
}

.hero-card__text,
.hero-card__meta,
.section-intro__text,
.info-card__detail,
.muted-text,
.profile-card p,
.story-card p,
.gallery-card p,
.feed-card p,
.list-card li {
  color: var(--muted);
  line-height: 1.5;
}

.hero-card__text,
.hero-card__meta {
  color: rgba(245, 251, 248, 0.88);
}

.hero-card__text {
  margin-top: 12px;
  font-size: 1.05rem;
}

.hero-card__meta {
  margin-top: 18px;
}

.section-intro {
  display: grid;
  gap: 8px;
  padding: 4px 4px 2px;
}

.section-intro h2 {
  font-size: clamp(1.45rem, 6vw, 2.2rem);
}

.card-grid,
.tile-grid,
.stats-grid,
.gallery-grid,
.profile-grid,
.story-grid,
.status-panel__grid,
.provider-grid {
  display: grid;
  gap: 14px;
}

.info-card,
.module-tile,
.feed-card,
.stat-card,
.gallery-card,
.profile-card,
.list-card,
.story-card,
.award-card,
.list-inline-card {
  padding: 18px;
}

.info-card h3,
.stat-card h3,
.module-tile h3,
.feed-card h3,
.gallery-card h3,
.profile-card h3,
.award-card h3 {
  margin-top: 10px;
  font-size: 1.28rem;
}

.info-card__title,
.profile-card__role {
  color: var(--primary);
  font-weight: 700;
}

.module-tile {
  min-height: 148px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 238, 0.98));
}

.module-tile__index {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--primary-deep);
  font-weight: 800;
}

.map-card {
  overflow: hidden;
}

.map-card__placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(235, 143, 52, 0.18), rgba(12, 107, 88, 0.18)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.45),
      rgba(255, 255, 255, 0.45) 18px,
      rgba(255, 255, 255, 0.2) 18px,
      rgba(255, 255, 255, 0.2) 36px
    );
  font-weight: 700;
  color: var(--primary-deep);
}

.map-card__details,
.timeline-card {
  padding: 18px;
}

.progress-row {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.progress-row__bar {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(12, 107, 88, 0.12);
  overflow: hidden;
}

.progress-row__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.timeline-list,
.feed-list {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-item__day,
.feed-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.media-placeholder,
.gallery-card__media {
  min-height: 120px;
  display: grid;
  place-items: center;
  margin-top: 14px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(12, 107, 88, 0.12), rgba(235, 143, 52, 0.15));
  color: var(--primary-deep);
  font-weight: 700;
}

.stat-card--primary {
  background: rgba(12, 107, 88, 0.93);
  color: #f5fbf8;
}

.stat-card--calm {
  background: rgba(255, 255, 255, 0.88);
}

.stat-card--fun {
  background: var(--fun);
}

.stat-card--primary p,
.stat-card--primary h3 {
  color: #f5fbf8;
}

.profile-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-card__avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

.profile-card__traits {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.profile-card ul,
.list-card ul {
  padding-left: 18px;
  margin: 10px 0 0;
}

.status-panel {
  padding: 20px;
}

.status-panel__headline {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(31, 42, 47, 0.08);
}

.tag--accent {
  background: var(--accent-soft);
  color: #8b4f10;
}

.tag--success {
  background: var(--success);
  color: var(--primary-deep);
}

.award-card {
  background:
    linear-gradient(135deg, rgba(235, 143, 52, 0.95), rgba(212, 115, 46, 0.93));
  color: #fff9f1;
}

.award-card p,
.award-card .award-card__eyebrow {
  color: rgba(255, 249, 241, 0.9);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(calc(100% - 20px), 720px);
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 30px rgba(31, 42, 47, 0.12);
  overflow-x: auto;
  scrollbar-width: none;
}

.bottom-nav::-webkit-scrollbar {
  display: none;
}

.bottom-nav__link {
  min-width: 88px;
  min-height: 64px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 8px 4px;
  flex: 1 0 auto;
  border-radius: 18px;
  text-align: center;
}

.bottom-nav__label {
  font-size: 0.88rem;
  font-weight: 700;
}

.bottom-nav__link.is-active {
  background: rgba(12, 107, 88, 0.12);
  color: var(--primary-deep);
}

@media (min-width: 700px) {
  .app-shell {
    padding-left: 24px;
    padding-right: 24px;
  }

  .card-grid,
  .tile-grid,
  .stats-grid,
  .gallery-grid,
  .profile-grid,
  .story-grid,
  .status-panel__grid,
  .poi-filter-grid,
  .provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poi-journey-grid,
  .poi-audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
  }

  .route-hero-card {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
  }

  .route-hero-card__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-sandbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profile-card__traits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-sandbox-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Photo Dashboard Tile ──────────────────────────────── */
.dashboard-focus-card--photos {
  gap: 16px;
}

.photo-tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: 180px;
}

.photo-tile-highlight {
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 100%;
}

.photo-tile-highlight img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-tile-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-content: start;
}

.photo-tile-small {
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.photo-tile-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-tile-clickable {
  cursor: pointer;
}

.photo-tile-count {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  align-self: center;
}

@media (max-width: 540px) {
  .photo-tile-grid {
    height: 160px;
  }
}

/* ── Gallery Page ──────────────────────────────────────── */
.gallery-tabs {
  display: flex;
  gap: 8px;
}

.gallery-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s, color 0.15s;
}

.gallery-tab.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.gallery-grid-view {
  display: grid;
  gap: 28px;
}

.gallery-day-group {
  display: grid;
  gap: 10px;
}

.gallery-day-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gallery-photo-btn {
  all: unset;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
}

.gallery-photo-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s;
}

.gallery-photo-btn:hover img {
  opacity: 0.85;
}

/* ── Page Header (Subpage-Navigation) ──────────────────── */
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
  position: sticky;
  top: 0;
  z-index: 20;
}

.page-header[hidden] {
  display: none;
}

.page-header__back {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 4px 0;
}

.page-header__back svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.page-header__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted, #888);
}

/* Lightbox */
.photo-lightbox {
  position: relative;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: min(90vw, 880px);
  max-height: 90vh;
  background: #1a1a1a;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.photo-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.photo-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 60px);
  object-fit: contain;
  margin: 0 auto;
}

.photo-lightbox__caption {
  padding: 10px 16px 14px;
  margin: 0;
}

.lc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.lc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.lc-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.75;
}

.photo-lightbox__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.gallery-no-gps {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

/* ── Gallery Map View ──────────────────────────────────── */
.gallery-map-view {
  display: grid;
  gap: 16px;
}

.gallery-map-el {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #e8e4da;
}

.photo-map-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.photo-map-marker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Gallery Route Timeline ────────────────────────────── */
.gallery-route-view {
  display: grid;
  gap: 10px;
}

.route-map-svg__photo-dot {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2;
  transition: r 0.1s;
}

.route-map-svg__photo-dot:hover {
  r: 11;
}

@media (max-width: 540px) {
  .gallery-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-map-el {
    height: 300px;
  }
}

/* ══════════════════════════════════════════════════════════
   Route Page  (.rp-*)
   ══════════════════════════════════════════════════════════ */

.rp-page {
  display: grid;
  gap: 20px;
}

/* ── Intro header ──────────────────────────────────────── */
.rp-intro {
  padding: 4px 0 0;
}

.rp-intro h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 4px;
}

.rp-intro__arrow {
  color: var(--accent);
  font-weight: 300;
  display: inline-block;
  margin: 0 4px;
}

/* ── Progress hero ─────────────────────────────────────── */
.rp-hero {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: #fff;
}

.rp-hero__body {
  padding: 22px 22px 24px;
  display: grid;
  gap: 14px;
}

.rp-location-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.01em;
}

.rp-location-line svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.rp-hero__progress-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.rp-hero__pct {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.rp-hero__pct sup {
  font-size: 1.1rem;
  font-weight: 600;
  vertical-align: super;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.7);
}

.rp-hero__day {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.rp-hero__sub-labels {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rp-hero__done {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.rp-hero__rem {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

/* ── Animated progress bar ─────────────────────────────── */
.rp-progress-bar {
  position: relative;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  overflow: visible;
}

.rp-progress-bar__fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rp-progress-bar__glow {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

/* ── Quick stats grid ──────────────────────────────────── */
.rp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.rp-stat-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.rp-stat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(12, 107, 88, 0.08);
  color: var(--primary);
}

.rp-stat-card__icon svg {
  width: 15px;
  height: 15px;
}

.rp-stat-card__value {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.rp-stat-card__label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

/* ── Sections ──────────────────────────────────────────── */
.rp-section {
  display: grid;
  gap: 12px;
}

.rp-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-transform: uppercase;
}

.rp-section__title svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--primary);
}

/* ── Country list ──────────────────────────────────────── */
.rp-country-list {
  display: grid;
  gap: 8px;
}

.rp-country {
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: opacity 0.2s;
}

.rp-country.is-future {
  opacity: 0.55;
}

.rp-country__flag {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.rp-country__info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rp-country__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.rp-country.is-done .rp-country__name {
  color: var(--muted);
}

.rp-country__meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.rp-country__bar {
  height: 5px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.rp-country__bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
  min-width: 3px;
}

.rp-country__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.rp-country__badge--done {
  background: var(--success);
  color: var(--primary-deep);
}

.rp-country__badge--active {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 2px 8px rgba(12, 107, 88, 0.35);
}

.rp-country__badge--future {
  background: rgba(31, 42, 47, 0.07);
  color: var(--muted);
}

.rp-check-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 540px) {
  .rp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rp-intro h2 {
    font-size: 1.3rem;
  }

  .rp-hero__pct {
    font-size: 2.4rem;
  }
}
