.nearby-v2 {
  --nb-text: #241f1a;
  --nb-muted: #5e5246;
  --nb-line: rgba(36, 31, 26, 0.11);
  --nb-surface: linear-gradient(160deg, rgba(255, 252, 247, 0.97), rgba(249, 240, 227, 0.93));
  --nb-surface-soft: rgba(255, 252, 247, 0.9);
  --nb-shadow: 0 14px 30px rgba(73, 44, 10, 0.09);
  --nb-accent-a: #b96b20;
  --nb-accent-b: #2f8c52;
  color: var(--nb-text);
}

.nearby-v2-shell {
  display: grid;
  gap: 1.35rem;
  padding-bottom: 1.4rem;
}

.nearby-v2-hero {
  border: 1px solid rgba(141, 74, 18, 0.18);
  border-radius: 28px;
  padding: 1.5rem 1.55rem;
  background:
    radial-gradient(circle at right top, rgba(255, 215, 157, 0.45), transparent 36%),
    var(--nb-surface);
  box-shadow: var(--nb-shadow);
}

.nearby-v2-kicker {
  margin: 0;
  font-family: "Urbanist", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #9a5a1f;
}

.nearby-v2-title {
  margin: 0.55rem 0 0;
  max-width: 16ch;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.nearby-v2-subtitle {
  margin: 1rem 0 0;
  max-width: 50ch;
  color: var(--nb-muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.nearby-v2-chip-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.nearby-v2-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 74, 18, 0.22);
  background: rgba(255, 250, 242, 0.9);
  font-size: 0.86rem;
  font-weight: 700;
  color: #3b2a1a;
}

.nearby-v2-section {
  border: 1px solid rgba(141, 74, 18, 0.15);
  border-radius: 28px;
  padding: 1.4rem;
  background: var(--nb-surface-soft);
  box-shadow: var(--nb-shadow);
  display: grid;
  gap: 1rem;
}

.nearby-v2-section-head {
  display: grid;
  gap: 0.34rem;
}

.nearby-v2-section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.nearby-v2-section-head p {
  margin: 0;
  max-width: 56ch;
  color: var(--nb-muted);
  font-size: 1rem;
  line-height: 1.58;
}

.nearby-v2-grid {
  display: grid;
  gap: 1rem;
}

.nearby-v2-grid--transit {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.nearby-v2-card {
  border: 1px solid var(--nb-line);
  border-radius: 22px;
  padding: 1.15rem 1.18rem;
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.98), rgba(248, 241, 230, 0.94));
  min-width: 0;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.nearby-v2-card--prime {
  box-shadow: inset 0 3px 0 rgba(185, 107, 32, 0.8);
}

.nearby-v2-card--lux {
  box-shadow: inset 0 3px 0 rgba(47, 140, 82, 0.8);
}

.nearby-v2-card--neo {
  box-shadow: inset 0 3px 0 rgba(37, 99, 235, 0.74);
}

.nearby-v2-card--wide {
  box-shadow: inset 0 3px 0 rgba(185, 107, 32, 0.8);
}

.nearby-v2-card--neo.nearby-v2-card--wide {
  box-shadow: inset 0 3px 0 rgba(37, 99, 235, 0.74);
}

.nearby-v2-card--motion:hover,
.nearby-v2-card--motion:focus-within {
  transform: translateY(-4px);
  box-shadow:
    inset 0 3px 0 rgba(185, 107, 32, 0.45),
    0 20px 34px rgba(73, 44, 10, 0.11);
  border-color: rgba(141, 74, 18, 0.24);
}

.nearby-v2-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.08;
}

.nearby-v2-card-kicker {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6c6055;
}

.nearby-v2-card-head {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nearby-v2-card-copy {
  margin: 0.78rem 0 0;
  max-width: 42ch;
  color: var(--nb-muted);
  font-size: 0.96rem;
  line-height: 1.56;
}

.nearby-v2-card-footnote {
  margin: 0.75rem 0 0;
  color: #75695d;
  font-size: 0.82rem;
  line-height: 1.45;
}

.nearby-v2-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 74, 18, 0.18);
  background: rgba(255, 248, 237, 0.9);
  font-size: 1rem;
  flex: 0 0 auto;
}

.nearby-v2-route-stack {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.nearby-v2-route-item {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--nb-line);
}

.nearby-v2-route-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.nearby-v2-route-label,
.nearby-v2-route-value,
.nearby-v2-route-note {
  margin: 0;
}

.nearby-v2-route-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a4e1f;
}

.nearby-v2-route-value {
  margin-top: 0.28rem;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.22;
  color: #2c2118;
}

.nearby-v2-route-note {
  margin-top: 0.24rem;
  color: var(--nb-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.nearby-v2-list {
  margin: 0.72rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.nearby-v2-list li {
  position: relative;
  margin: 0;
  padding: 0.56rem 0 0.56rem 0.86rem;
  border-bottom: 1px solid var(--nb-line);
  font-size: 0.97rem;
  line-height: 1.5;
  color: #3f3429;
  overflow-wrap: anywhere;
}

.nearby-v2-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.47rem;
  color: var(--nb-accent-a);
  line-height: 1;
}

.nearby-v2-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.nearby-v2-list--tight {
  margin-top: 0.6rem;
}

.nearby-v2-list--tight li {
  padding-top: 0.42rem;
  padding-bottom: 0.48rem;
}

.nearby-v2-map-pill {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(141, 74, 18, 0.3);
  padding: 0.42rem 1rem;
  background: rgba(255, 242, 220, 0.92);
  color: #7a3f0b;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  max-width: 100%;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.nearby-v2-map-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 235, 205, 0.96);
}

.nearby-v2-mini-grid {
  margin-top: 0.92rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.nearby-v2-mini-card {
  border: 1px solid var(--nb-line);
  border-radius: 18px;
  padding: 0.86rem 0.88rem;
  background: rgba(255, 255, 255, 0.55);
  min-width: 0;
}

.nearby-v2-mini-card h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
}

.nearby-v2-list--compact {
  margin-top: 0.6rem;
}

.nearby-v2-list--compact li {
  font-size: 0.92rem;
  padding-top: 0.44rem;
  padding-bottom: 0.44rem;
}

.nearby-v2-list--columns {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
}

.nearby-v2-actions {
  margin-top: 0.2rem;
}

@media (max-width: 980px) {
  .nearby-v2-grid--transit,
  .nearby-v2-grid--dual,
  .nearby-v2-mini-grid,
  .nearby-v2-list--columns {
    grid-template-columns: 1fr;
  }

  .nearby-v2-title {
    max-width: 18ch;
  }

  .nearby-v2-map-pill {
    width: fit-content;
  }

  .nearby-v2-route-value {
    font-size: 1.08rem;
  }
}

@media (max-width: 560px) {
  .nearby-v2-shell {
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .nearby-v2-hero,
  .nearby-v2-section {
    border-radius: 22px;
    padding: 1rem;
  }

  .nearby-v2-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }

  .nearby-v2-title {
    margin-top: 0.38rem;
    max-width: 11ch;
    font-size: clamp(1.68rem, 7vw, 2.1rem);
    line-height: 1.02;
  }

  .nearby-v2-subtitle {
    margin-top: 0.8rem;
    font-size: 0.94rem;
    line-height: 1.54;
    max-width: 30ch;
  }

  .nearby-v2-chip-row {
    margin-top: 0.9rem;
    gap: 0.42rem;
  }

  .nearby-v2-chip {
    min-height: 30px;
    padding: 0.22rem 0.58rem;
    font-size: 0.76rem;
  }

  .nearby-v2-section-head {
    gap: 0.24rem;
  }

  .nearby-v2-section-head h2 {
    font-size: clamp(1.45rem, 6.1vw, 1.78rem);
  }

  .nearby-v2-section-head p {
    font-size: 0.92rem;
    line-height: 1.48;
    max-width: 31ch;
  }

  .nearby-v2-card {
    border-radius: 18px;
    padding: 0.9rem;
  }

  .nearby-v2-card h3 {
    font-size: 1.2rem;
  }

  .nearby-v2-card-copy {
    margin-top: 0.7rem;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .nearby-v2-card-kicker {
    font-size: 0.68rem;
  }

  .nearby-v2-card-head {
    align-items: flex-start;
  }

  .nearby-v2-icon-badge {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.86rem;
  }

  .nearby-v2-route-stack {
    margin-top: 0.82rem;
    gap: 0.82rem;
  }

  .nearby-v2-route-item {
    padding-bottom: 0.82rem;
  }

  .nearby-v2-route-label {
    font-size: 0.72rem;
  }

  .nearby-v2-route-value {
    margin-top: 0.22rem;
    font-size: 1.02rem;
    line-height: 1.24;
  }

  .nearby-v2-route-note {
    margin-top: 0.22rem;
    font-size: 0.85rem;
  }

  .nearby-v2-list {
    margin-top: 0.56rem;
  }

  .nearby-v2-list li {
    padding: 0.42rem 0 0.44rem 0.72rem;
    font-size: 0.9rem;
    line-height: 1.46;
  }

  .nearby-v2-list li::before {
    top: 0.42rem;
    font-size: 0.72rem;
  }

  .nearby-v2-map-pill {
    margin-top: 0.9rem;
    width: 100%;
    min-height: 40px;
    padding: 0.34rem 0.8rem;
    font-size: 0.92rem;
  }

  .nearby-v2-mini-card {
    border-radius: 16px;
    padding: 0.78rem;
  }

  .nearby-v2-mini-card h4 {
    font-size: 1rem;
  }

  .nearby-v2-list--compact li {
    font-size: 0.88rem;
  }

  .nearby-v2-card-footnote {
    font-size: 0.8rem;
  }

  .nearby-v2-card--motion:hover,
  .nearby-v2-card--motion:focus-within,
  .nearby-v2-map-pill:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nearby-v2-card,
  .nearby-v2-map-pill {
    transition: none;
  }

  .nearby-v2-card--motion:hover,
  .nearby-v2-card--motion:focus-within,
  .nearby-v2-map-pill:hover {
    transform: none;
  }
}

html[data-theme="midnight-dark"] .nearby-v2 {
  --nb-text: #eef2fa;
  --nb-muted: #c5d2e2;
  --nb-line: rgba(255, 255, 255, 0.12);
  --nb-surface: linear-gradient(160deg, rgba(18, 23, 31, 0.98), rgba(13, 17, 24, 0.95));
  --nb-surface-soft: rgba(16, 21, 29, 0.92);
}

html[data-theme="midnight-dark"] .nearby-v2-kicker {
  color: #ffca63;
}

html[data-theme="midnight-dark"] .nearby-v2-chip,
html[data-theme="midnight-dark"] .nearby-v2-mini-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #eaf0f8;
}

html[data-theme="midnight-dark"] .nearby-v2-card {
  background: linear-gradient(160deg, rgba(24, 30, 40, 0.98), rgba(19, 24, 33, 0.96));
}

html[data-theme="midnight-dark"] .nearby-v2-list li {
  color: #d5dfec;
}

html[data-theme="midnight-dark"] .nearby-v2-list li::before {
  color: #ffca63;
}

html[data-theme="midnight-dark"] .nearby-v2-card-kicker,
html[data-theme="midnight-dark"] .nearby-v2-route-label {
  color: #ffca63;
}

html[data-theme="midnight-dark"] .nearby-v2-card-copy,
html[data-theme="midnight-dark"] .nearby-v2-route-note,
html[data-theme="midnight-dark"] .nearby-v2-card-footnote {
  color: #c5d2e2;
}

html[data-theme="midnight-dark"] .nearby-v2-icon-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="midnight-dark"] .nearby-v2-route-value {
  color: #eef2fa;
}

html[data-theme="midnight-dark"] .nearby-v2-map-pill {
  background: rgba(255, 202, 99, 0.16);
  border-color: rgba(255, 202, 99, 0.42);
  color: #ffdd97;
}

html[data-theme="apple-white"] .nearby-v2 {
  --nb-text: #111827;
  --nb-muted: #4b5563;
  --nb-line: rgba(55, 65, 81, 0.16);
  --nb-surface: #ffffff;
  --nb-surface-soft: #ffffff;
  --nb-shadow: 0 18px 44px rgba(31, 41, 55, 0.08), 0 5px 14px rgba(31, 41, 55, 0.05);
  --nb-accent-a: #6b7280;
  --nb-accent-b: #9ca3af;
}

html[data-theme="apple-white"] .nearby-v2-hero,
html[data-theme="apple-white"] .nearby-v2-section,
html[data-theme="apple-white"] .nearby-v2-card,
html[data-theme="apple-white"] .nearby-v2-mini-card {
  background: #ffffff;
  border-color: rgba(55, 65, 81, 0.18);
  box-shadow: var(--nb-shadow);
}

html[data-theme="apple-white"] .nearby-v2-card--prime,
html[data-theme="apple-white"] .nearby-v2-card--lux,
html[data-theme="apple-white"] .nearby-v2-card--neo,
html[data-theme="apple-white"] .nearby-v2-card--wide {
  box-shadow:
    inset 0 3px 0 rgba(75, 85, 99, 0.58),
    var(--nb-shadow);
}

html[data-theme="apple-white"] .nearby-v2-card--motion:hover,
html[data-theme="apple-white"] .nearby-v2-card--motion:focus-within {
  border-color: rgba(55, 65, 81, 0.28);
  box-shadow:
    inset 0 3px 0 rgba(75, 85, 99, 0.62),
    0 28px 62px rgba(31, 41, 55, 0.13),
    0 10px 24px rgba(31, 41, 55, 0.08);
}

html[data-theme="apple-white"] .nearby-v2-chip,
html[data-theme="apple-white"] .nearby-v2-icon-badge,
html[data-theme="apple-white"] .nearby-v2-map-pill {
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
  border-color: rgba(75, 85, 99, 0.2);
  color: #1f2937;
}

html[data-theme="apple-white"] .nearby-v2-map-pill:hover {
  background: linear-gradient(180deg, #f9fafb 0%, #e5e7eb 100%);
  border-color: rgba(75, 85, 99, 0.28);
}

html[data-theme="apple-white"] .nearby-v2-kicker,
html[data-theme="apple-white"] .nearby-v2-card-kicker,
html[data-theme="apple-white"] .nearby-v2-route-label {
  color: #374151;
}

html[data-theme="apple-white"] .nearby-v2-list li,
html[data-theme="apple-white"] .nearby-v2-route-value {
  color: #1f2937;
}

html[data-theme="apple-white"] .nearby-v2-card-copy,
html[data-theme="apple-white"] .nearby-v2-route-note,
html[data-theme="apple-white"] .nearby-v2-card-footnote {
  color: #4b5563;
}

html[data-theme="apple-white"] .nearby-v2-list li::before {
  color: #6b7280;
}
