/* Per-city service-area pages. Builds on service-area.css, which already
   supplies the map palette, the markers and the fire-watch strip. */

.city-head {
  padding: 2.5rem 0 3rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.city-crumbs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.city-crumbs a { color: var(--accent-text); font-weight: 600; }
.city-crumbs a:hover { text-decoration: underline; }
.city-crumbs span[aria-current] { color: var(--text-primary); font-weight: 600; }

.city-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 3rem;
  align-items: start;
}

.city-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  text-wrap: balance;
  margin-bottom: 0.9rem;
}

.city-lede {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 60ch;
  margin-bottom: 1.4rem;
}

.city-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.city-badge-plain {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
}

.city-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ---- The locator map ----------------------------------------------------- */

/* This page's header band shares a colour with the map's unshaded counties, so
   without an edge the map bleeds into the section around it. */
.city-map { margin: 0; }
.city-map .sa-map { border: 1px solid var(--border); }

.city-map figcaption {
  font-size: 0.76rem;
  color: var(--text-secondary);
  opacity: 0.75;
  padding-top: 0.75rem;
  line-height: 1.5;
}

/* Every other covered city stays on the map but recedes, so the page's own
   city is the only thing the eye lands on. */
.city-pin-other {
  fill: var(--map-pin);
  stroke: var(--map-pin-edge);
  stroke-width: 1.5;
  opacity: 0.5;
}

.city-pin-ring {
  fill: none;
  stroke: #22c55e;
  stroke-width: 3;
  opacity: 0.55;
}

.city-pin-core {
  fill: #22c55e;
  stroke: #ffffff;
  stroke-width: 3;
}

/* ---- Body ---------------------------------------------------------------- */

.city-body { padding: 3rem 0 4rem; }

.city-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr);
  gap: 3rem;
  align-items: start;
}

.city-main h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.city-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 62ch;
  margin-bottom: 1.6rem;
}

.city-services {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.15rem 1.75rem;
}

.city-service {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.city-service-name {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}

.city-service:hover .city-service-name { color: var(--accent-text); }

.city-service-tag {
  display: block;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.city-urgent { margin-top: 0.5rem; }

/* ---- Side panels --------------------------------------------------------- */

.city-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.city-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
}

.city-panel h3 {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.city-zips {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.city-zips li {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.12rem 0.5rem;
}

.city-panel-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.city-panel-note a { color: var(--accent-text); font-weight: 600; }
.city-panel-note a:hover { text-decoration: underline; }

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

.city-nearby li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

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

.city-nearby a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-primary);
}

.city-nearby a:hover { color: var(--accent-text); }

.city-nearby span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 900px) {
  .city-head-grid,
  .city-body-grid { grid-template-columns: 1fr; gap: 2rem; }
  .city-map { max-width: 520px; }
}

@media (max-width: 600px) {
  .city-services { grid-template-columns: 1fr; }
  .city-actions .primary-btn,
  .city-actions .secondary-btn { flex: 1 1 100%; text-align: center; }
}



/* ---- Closing CTA --------------------------------------------------------- */

.city-cta {
  padding: 3rem 0 3.5rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  text-align: center;
}

.city-cta h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.city-cta p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 54ch;
  margin: 0 auto 1.6rem;
}

.city-cta .city-actions { justify-content: center; }
