/* ========================================
   HOMEPAGE DASHBOARD
   Bento grid of tiles. Builds on the tokens in app.css.
   Phones (<768px):      one column, ordered for riders on the go
   Tablet (768–1099px):  two columns
   Desktop (≥1100px):    twelve columns
   ======================================== */

.home {
  /* Tiles sit a shade darker than the page so white text keeps its contrast */
  --home-tile-bg: rgba(38, 52, 42, 0.42);
  --home-tile-hover: rgba(38, 52, 42, 0.6);
  --home-sunken: rgba(30, 42, 34, 0.35);
  --home-text-2: rgba(247, 249, 249, 0.8);   /* secondary text, AA on tile bg */
  --home-text-3: rgba(247, 249, 249, 0.66);  /* tertiary, large/bold or decorative only */
  --home-on-accent: #24301f;

  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "hero"
    "next"
    "kpis"
    "routes"
    "map"
    "stops"
    "news"
    "foot";
  padding-top: var(--space-4);
}

.home > .home-hero   { grid-area: hero; }
.home > .home-next   { grid-area: next; }
.home > .home-kpis   { grid-area: kpis; }
.home > .home-routes { grid-area: routes; }
.home > .home-map    { grid-area: map; }
.home > .home-stops  { grid-area: stops; }
.home > .home-news   { grid-area: news; }
.home > .home-footer { grid-area: foot; }

@media (min-width: 768px) {
  .home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "hero   hero"
      "next   kpis"
      "map    map"
      "routes stops"
      "news   news"
      "foot   foot";
    padding-top: var(--space-6);
  }
}

@media (min-width: 1100px) {
  .home {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
      "hero hero hero hero hero hero hero next next next next next"
      "kpis kpis kpis kpis kpis kpis kpis kpis kpis kpis kpis kpis"
      "map  map  map  map  map  map  map  map  routes routes routes routes"
      "stops stops stops stops stops stops news news news news news news"
      "foot foot foot foot foot foot foot foot foot foot foot foot";
  }
}

/* Shared heading reset: sentence case, no display caps */
.home :is(h1, h2, h3, h4) {
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
}

.home a:hover {
  color: inherit;
}

/* ========================================
   TILE + HEADER
   ======================================== */

.home-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--home-tile-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.home-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.home-card-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-strong);
}

.home-card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 192, 81, 0.14);
  color: var(--yellow-light);
  font-size: 0.875rem;
}

.home-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--home-text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.home-card-link i {
  font-size: 0.6875rem;
}

.home-card-link:hover,
.home a.home-card-link:hover {
  background: var(--surface-1);
  color: var(--yellow-light);
}

/* ========================================
   LIST ROWS (routes, events, stops, news)
   ======================================== */

.home-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-list > li + li {
  border-top: 1px solid var(--border-subtle);
}

.home-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  min-height: 64px;
  padding: var(--space-3) var(--space-4);
  color: var(--text-default);
  text-decoration: none;
  transition: background-color var(--dur-fast) ease;
}

.home-row:hover,
.home a.home-row:hover {
  background: var(--surface-1);
  color: var(--text-default);
}

.home-row:focus-visible {
  border-radius: 0;
  box-shadow: inset 0 0 0 2px var(--yellow-light);
}

.home-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.home-row-title {
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-strong);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-row-meta,
.home-row-kicker {
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--home-text-2);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.home-row-kicker {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--yellow-light);
}

.home-row-arrow {
  flex: none;
  font-size: 0.75rem;
  color: var(--home-text-3);
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) ease;
}

.home-row:hover .home-row-arrow {
  color: var(--yellow-light);
  transform: translateX(2px);
}

/* Leading square: POI icon, post thumbnail or type icon */
.home-row-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text-default);
  font-size: 1rem;
}

.home-row-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-row-icon > img:not(:only-child) {
  position: absolute;
  inset: 0;
}

.home-row-icon--post {
  background: rgba(239, 123, 109, 0.22);
  color: var(--coral-light);
}

.home-row-icon--route {
  background: rgba(164, 175, 157, 0.24);
  color: #dfe6da;
}

/* ========================================
   BUTTONS & TEXT LINKS
   ======================================== */

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-out), opacity var(--dur-base) ease;
}

.home-btn:active {
  transform: scale(0.98);
}

.home-btn--primary {
  background: var(--yellow-light);
  color: var(--home-on-accent);
  box-shadow: 0 2px 10px rgba(230, 152, 0, 0.25);
}

.home-btn--primary:hover {
  background: #ffcd73;
}

.home a.home-btn--primary:hover {
  color: var(--home-on-accent);
}

/* Hold the label back until we know who is visiting (avoids "Log in" → "Find a route" flash) */
.home-btn.is-pending > * {
  opacity: 0;
}

.home-btn > * {
  transition: opacity var(--dur-base) ease;
}

.home-btn--ghost {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text-strong);
}

.home-btn--ghost:hover,
.home a.home-btn--ghost:hover {
  background: var(--surface-2);
  color: var(--text-strong);
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--yellow-light);
  text-decoration: none;
}

.home a.home-text-link:hover {
  color: #ffd27f;
}

/* ========================================
   WELCOME (HERO) TILE
   ======================================== */

.home-hero {
  position: relative;
  flex-direction: row;
  align-items: center;
  min-height: 220px;
  padding: var(--space-6) var(--space-5);
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(255, 192, 81, 0.16), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(239, 123, 109, 0.12), transparent 60%),
    linear-gradient(150deg, rgba(38, 52, 42, 0.5), rgba(38, 52, 42, 0.3));
}

.home-hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 34rem;
}

.home-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.375rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.home-hero-text {
  margin: 0;
  max-width: 44ch;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--home-text-2);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

/* "Free — through our RideWithGPS club." under the Join button */
.home-hero-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--text-sm);
  color: var(--home-text-2);
  transition: opacity var(--dur-base) ease;
}

.home-hero-note i {
  color: var(--yellow-light);
}

.home-hero-note.is-pending {
  opacity: 0;
}

.home-hero-note[hidden] {
  display: none;
}

.home-hero-art {
  display: none;
  color: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.home-hero-route {
  stroke: var(--yellow-light);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: home-draw 1.6s var(--ease-out) 0.2s forwards;
}

.home-hero-start {
  fill: var(--coral);
  stroke: #fff;
  stroke-width: 2.5;
}

.home-hero-flag {
  fill: var(--coral);
  stroke: var(--text-strong);
}

.home-hero-flag path {
  stroke: none;
}

@keyframes home-draw {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 479px) {
  .home-hero {
    min-height: 0;
    padding: var(--space-5) var(--space-4);
  }
  .home-hero-text {
    font-size: 0.9375rem;
  }
  .home-hero-actions .home-btn {
    flex: 1 1 auto;
  }
}

@media (min-width: 600px) {
  .home-hero {
    padding: var(--space-8);
  }
  .home-hero-art {
    display: block;
    position: absolute;
    right: -8px;
    bottom: -6px;
    width: min(46%, 360px);
    height: auto;
  }
  .home-hero-body {
    max-width: min(34rem, 60%);
  }
}

@media (min-width: 1100px) {
  .home-hero-body {
    max-width: min(30rem, 62%);
  }
}

/* ========================================
   NEXT RIDE
   ======================================== */

.home-next-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-4);
  color: var(--text-default);
  text-decoration: none;
  transition: background-color var(--dur-fast) ease;
}

.home a.home-next-feature:hover {
  background: var(--surface-1);
  color: var(--text-default);
}

.home-next-feature:focus-visible {
  border-radius: 0;
  box-shadow: inset 0 0 0 2px var(--yellow-light);
}

.home-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 68px;
  padding: var(--space-2) 0;
  border-radius: var(--radius-md);
  background: var(--coral);
  color: #2e1a17;
  line-height: 1;
  text-align: center;
}

.home-date-dow,
.home-date-mon {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-date-day {
  margin: 4px 0;
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.home-date--sm {
  width: 44px;
  padding: 6px 0;
  background: rgba(239, 123, 109, 0.2);
  color: var(--coral-pale);
}

.home-date--sm .home-date-day {
  margin: 2px 0 0;
  font-size: 1.0625rem;
}

/* Date TBA: "TBA" in place of the day number */
.home-date--tba .home-date-day {
  font-size: 1.25rem;
}

.home-next-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  min-width: 0;
}

.home-next-when {
  display: inline-flex;
  align-items: center;
  margin-bottom: 2px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 192, 81, 0.16);
  color: var(--yellow-light);
  font-size: var(--text-xs);
  font-weight: 500;
}

.home-next-when.is-soon {
  background: var(--yellow-light);
  color: var(--home-on-accent);
}

.home-next-name {
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-strong);
}

.home-next-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--home-text-2);
}

.home-next-meta i {
  width: 14px;
  flex: none;
  font-size: 0.75rem;
  text-align: center;
  color: var(--home-text-3);
}

.home-next-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--yellow-light);
}

.home-next-cta i {
  font-size: 0.75rem;
  transition: transform var(--dur-fast) var(--ease-out);
}

.home-next-feature:hover .home-next-cta i {
  transform: translateX(3px);
}

.home-next-more {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--home-sunken);
}

.home-subhead {
  margin: 0;
  padding: var(--space-3) var(--space-4) 0;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--home-text-2);
}

.home-next-more .home-row {
  min-height: 60px;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

/* Empty state (no upcoming rides / no news) */
.home-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  flex: 1;
  padding: var(--space-8) var(--space-5);
  text-align: center;
}

.home-empty > i {
  margin-bottom: var(--space-2);
  font-size: 1.5rem;
  color: var(--home-text-3);
}

.home-empty-title {
  margin: 0;
  font-weight: 500;
  color: var(--text-strong);
}

.home-empty-text {
  margin: 0;
  max-width: 32ch;
  font-size: var(--text-sm);
  color: var(--home-text-2);
}

/* ========================================
   KPI STRIP
   ======================================== */

.home-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  min-width: 0;
}

@media (min-width: 1100px) {
  .home-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: var(--space-4);
  background: var(--home-tile-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  color: var(--text-default);
  text-decoration: none;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.home a.home-kpi:hover {
  background: var(--home-tile-hover);
  border-color: var(--border-default);
  color: var(--text-default);
}

.home-kpi:focus-visible {
  border-radius: var(--radius-lg);
}

.home-kpi-icon {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: 0.875rem;
  color: var(--home-text-3);
}

.home-kpi-value {
  padding-right: var(--space-6);
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--yellow-light);
  font-variant-numeric: tabular-nums;
}

.home-kpi-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-strong);
}

.home-kpi-sub {
  margin-top: auto;
  padding-top: var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.35;
  color: var(--home-text-2);
}

.home-kpi-bar {
  display: flex;
  gap: 2px;
  height: 6px;
  margin-top: var(--space-3);
  overflow: hidden;
  border-radius: var(--radius-pill);
}

.home-kpi-bar + .home-kpi-sub {
  padding-top: 6px;
}

.home-kpi-bar > span {
  min-width: 4px;
}

@media (min-width: 1100px) {
  .home-kpi {
    padding: var(--space-5);
  }
  .home-kpi-icon {
    top: var(--space-5);
    right: var(--space-5);
  }
}

/* ========================================
   DIFFICULTY COLOURS
   ======================================== */

.home-diff-bg--casual    { background: var(--difficulty-casual); }
.home-diff-bg--easy      { background: var(--difficulty-easy); }
.home-diff-bg--moderate  { background: var(--difficulty-moderate); }
.home-diff-bg--hard      { background: var(--difficulty-hard); }
.home-diff-bg--multi_day { background: #c95a4e; }

.home-pill {
  flex: none;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.home-diff--casual    { background: rgba(164, 175, 157, 0.22); color: #e3e9df; }
.home-diff--easy      { background: rgba(255, 192, 81, 0.16); color: var(--yellow-light); }
.home-diff--moderate  { background: rgba(230, 152, 0, 0.24); color: #ffcf7a; }
.home-diff--hard      { background: rgba(239, 123, 109, 0.24); color: var(--coral-pale); }
.home-diff--multi_day { background: rgba(201, 90, 78, 0.3); color: var(--coral-pale); }

/* ========================================
   ROUTES
   ======================================== */

.home-route-swatch {
  align-self: stretch;
  flex: none;
  width: 4px;
  margin: 2px 0;
  border-radius: var(--radius-pill);
}

@media (min-width: 768px) {
  /* Let list rows share the height set by the tallest tile in the row */
  .home-routes .home-list,
  .home-stops .home-list {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .home-routes .home-list > li,
  .home-stops .home-list > li {
    display: flex;
    flex: 1;
  }
  .home-routes .home-row,
  .home-stops .home-row {
    flex: 1;
  }
}

/* ========================================
   REGION MAP
   ======================================== */

.home-map-frame {
  position: relative;
  flex: 1 0 auto;
  height: clamp(280px, 42svh, 340px);
  background:
    radial-gradient(circle at 30% 40%, rgba(164, 175, 157, 0.12), transparent 40%),
    radial-gradient(circle at 70% 65%, rgba(255, 192, 81, 0.08), transparent 35%),
    #3d4f42;
}

@media (min-width: 768px) {
  .home-map-frame {
    height: clamp(360px, 45svh, 440px);
  }
}

@media (min-width: 1100px) {
  .home-map-frame {
    height: auto;
    min-height: 440px;
  }
}

.home-map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.home-map-frame[data-state="ready"] .home-map-iframe {
  opacity: 1;
}

.home-map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--home-text-2);
  /* faint topo grid so the empty frame reads as a map, not a hole */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.home-map-placeholder i {
  font-size: 1.75rem;
  color: var(--home-text-3);
  animation: home-pulse 1.6s ease-in-out infinite;
}

@keyframes home-pulse {
  50% { opacity: 0.4; }
}

.home-map-frame[data-state="ready"] .home-map-placeholder {
  visibility: hidden;
}

/* Tap-to-interact shield: touch screens only, so the map can't trap page scrolling */
.home-map-shield {
  display: none;
}

/* .is-touch is set from JS when (pointer: coarse) matches */
.home-map-frame.is-touch .home-map-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  padding: 0 0 var(--space-4);
  border: 0;
  background: linear-gradient(to top, rgba(30, 42, 34, 0.45), transparent 45%);
  cursor: pointer;
}

.home-map-frame.is-touch.is-active .home-map-shield {
  display: none;
}

.home-map-shield-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  background: rgba(30, 42, 34, 0.85);
  border: 1px solid var(--border-default);
  color: var(--text-strong);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-2);
}

.home-map-shield:focus-visible {
  border-radius: 0;
  box-shadow: inset 0 0 0 2px var(--yellow-light);
}

/* ========================================
   LOCAL STOPS
   ======================================== */

.home-chips-wrap {
  position: relative;
}

.home-chips {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) 2px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--space-4);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.home-chips::-webkit-scrollbar {
  display: none;
}

/* Edge fade signals more chips off-screen; removed once scrolled to the end */
.home-chips-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(to right, transparent, rgba(56, 72, 60, 0.95));
  pointer-events: none;
  transition: opacity var(--dur-base) ease;
}

.home-chips-wrap[data-scroll-end="true"]::after {
  opacity: 0;
}

.home-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
  min-height: 40px;
  padding: 0 var(--space-3) 0 6px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  color: var(--text-default);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  scroll-snap-align: start;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.home-chip:hover {
  background: var(--surface-2);
}

.home-chip:focus-visible {
  border-radius: var(--radius-pill);
}

.home-chip-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.home-chip-count {
  color: var(--home-text-2);
  font-variant-numeric: tabular-nums;
}

.home-chip[aria-pressed="true"] {
  border-color: var(--yellow-light);
  background: rgba(255, 192, 81, 0.18);
  color: var(--text-strong);
}

.home-chip[aria-pressed="true"] .home-chip-count {
  color: var(--yellow-light);
}

.home-caption {
  margin: 0;
  padding: var(--space-3) var(--space-4) var(--space-2);
  font-size: var(--text-xs);
  color: var(--home-text-2);
  border-bottom: 1px solid var(--border-subtle);
}

#pois-list {
  min-height: calc(3 * 64px);
}

#pois-list .home-row-icon {
  background: transparent;
}

@media (min-width: 768px) {
  .home-chips {
    flex-wrap: wrap;
    overflow: visible;
  }
  .home-chips-wrap::after {
    display: none;
  }
}

/* ========================================
   FOOTER
   ======================================== */

.home-footer {
  padding: var(--space-4) 0 var(--space-2);
  font-size: var(--text-xs);
  color: var(--home-text-2);
  text-align: center;
}

/* ========================================
   MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .home-hero-route {
    stroke-dashoffset: 0;
    animation: none;
  }
  .home-map-placeholder i {
    animation: none;
  }
}
