/* Township Mode homepage takeover (township.php) — 3 selectable hero treatments
   (pto_townships.landing_design, migration 0231). Only the hero differs; everything below it
   reuses the site's existing bws-card/section styling untouched. */

/* Design 2 — Map-Forward */
.pto-township-hero-map .pto-map,
.pto-township-hero-map .pto-township-map {
  height: 420px;
  border-radius: 0;
}
.pto-township-hero-map-overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 400; /* above Leaflet's own panes (max ~650, tiles/markers sit well under this) */
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 32px);
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(15, 27, 51, 0.88);
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.pto-township-hero-map-overlay p {
  color: rgba(255, 255, 255, 0.82);
}
@media (max-width: 640px) {
  .pto-township-hero-map .pto-map,
  .pto-township-hero-map .pto-township-map {
    height: 300px;
  }
  .pto-township-hero-map-overlay {
    left: 8px;
    bottom: 8px;
    padding: 10px 14px;
    gap: 10px;
  }
}

/* Design 3 — News-Forward */
.pto-township-hero-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}
.pto-township-hero-news-photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.06);
}
.pto-township-hero-news-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pto-township-hero-news-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.35);
}
.pto-township-hero-news-card {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
@media (max-width: 900px) {
  .pto-township-hero-news-grid {
    grid-template-columns: 1fr;
  }
  .pto-township-hero-news-photo {
    aspect-ratio: 16 / 9;
    max-width: 480px;
    margin: 0 auto;
  }
}
