.location-hero {
  position: relative;
  overflow-x: clip;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-canvas);
}

.location-hero::before,
.location-hero::after {
  position: absolute;
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius-pill);
  content: "";
  pointer-events: none;
}

.location-hero::before {
  top: 72px;
  left: -88px;
  width: 260px;
  height: 260px;
}

.location-hero::after {
  right: -54px;
  bottom: 54px;
  width: 180px;
  height: 180px;
}

.location-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 620px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 96px;
  text-align: center;
}

.location-hero h1 {
  margin-top: 24px;
  margin-bottom: 0;
}

.location-hero-lead {
  max-width: 820px;
  margin: 24px auto 0;
  color: var(--color-muted);
  font-size: 19px;
  line-height: 1.75;
}

.location-hero-lead strong {
  color: var(--color-ink);
}

.location-hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.location-facts {
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.location-facts span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 13px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-canvas);
  color: var(--color-muted);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.location-heading {
  max-width: 860px;
  margin-bottom: 44px;
}

.location-heading .lead {
  max-width: 820px;
}

.region-jumps {
  display: flex;
  max-width: 100%;
  gap: 8px;
  margin-bottom: 34px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-medium);
  background: var(--color-panel);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.region-jumps a {
  display: inline-flex;
  min-width: max-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-small);
  background: var(--color-canvas);
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 750;
  transition: color var(--transition-fast), box-shadow var(--transition-fast);
}

.region-jumps a:hover {
  color: var(--color-accent);
  box-shadow: var(--shadow-soft);
}

.location-region {
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid var(--color-line);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.location-region-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 26px;
}

.location-region-heading h3 {
  margin-bottom: 0;
}

.location-region-heading p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.route-kind {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.route-explain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.route-explain-card {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-medium);
  background: var(--color-canvas);
  box-shadow: var(--shadow-soft);
}

.route-explain-card:nth-child(2) {
  transform: translateY(22px);
}

.route-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 30px;
}

.route-index {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.route-explain-card h3 {
  font-size: 25px;
}

.route-explain-card p {
  color: var(--color-muted);
}

.route-explain-card p:last-child {
  margin-bottom: 0;
}

.use-case-list {
  border-top: 1px solid var(--color-line);
}

.use-case-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.65fr) minmax(0, 1.35fr);
  gap: 64px;
  padding-top: 54px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--color-line);
}

.use-case-label span {
  display: block;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.use-case-label h3 {
  margin-bottom: 0;
}

.use-case-copy {
  min-width: 0;
}

.use-case-copy p {
  color: var(--color-muted);
}

.use-case-copy p:last-child {
  margin-bottom: 0;
}

.location-decision-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 72px;
  align-items: start;
}

.location-decision-copy {
  min-width: 0;
}

.location-decision-copy p {
  color: var(--color-muted);
}

.location-decision-copy .button-row {
  margin-top: 32px;
}

.decision-panel {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-medium);
  background: var(--color-canvas);
  box-shadow: var(--shadow-raised);
}

.decision-panel h3 {
  margin-bottom: 24px;
}

.decision-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.decision-list div {
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid var(--color-line);
}

.decision-list dt {
  margin-bottom: 5px;
  color: var(--color-ink);
  font-weight: 800;
}

.decision-list dd {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.location-summary {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 40px;
}

.location-summary h2 {
  margin-bottom: 0;
}

.location-summary-copy p {
  color: var(--color-muted);
}

.location-summary-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .route-explain-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-explain-card:nth-child(2) {
    transform: none;
  }

  .location-decision-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .decision-panel {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .location-hero::before,
  .location-hero::after {
    display: none;
  }

  .location-hero-inner {
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .location-hero-lead {
    font-size: 16px;
  }

  .location-hero-actions {
    width: 100%;
  }

  .location-region-heading,
  .use-case-row,
  .location-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-region-heading {
    gap: 18px;
  }

  .use-case-row {
    gap: 24px;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .location-summary {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .location-facts {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 300px);
  }

  .location-facts span {
    justify-content: center;
  }

  .location-heading {
    margin-bottom: 32px;
  }

  .location-region {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .route-explain-card,
  .decision-panel {
    padding: 22px;
  }

  .route-card-top {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }
}