/* Onde estamos — mapa Rede Rota */

.onde-page .page-hero h1 em {
  color: #f3c226;
}

.onde-map-section {
  background: #0c1012;
  color: #f7f4ea;
  padding: 64px 0 72px;
}

.onde-map-section .section-head {
  margin-bottom: 28px;
}

.onde-map-section .section-head h2 {
  color: #f7f4ea;
  margin: 0;
}

.onde-map-section .section-head h2 em {
  color: #f3c226;
  font-style: normal;
}

.onde-map-section .section-description {
  color: rgba(247, 244, 234, 0.72);
  margin: 0;
}

.onde-map-shell {
  position: relative;
  border: 1px solid rgba(247, 244, 234, 0.12);
  background: #141a1c;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

#rota-stations-map {
  width: 100%;
  height: min(62vh, 560px);
  min-height: 360px;
  background: #dfe6ea;
  z-index: 0;
}

#rota-stations-map iframe,
.rota-google-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.rota-map-error {
  margin: 0;
  padding: 28px 20px;
  color: #5c656c;
  font: 600 15px / 1.45 "Manrope", sans-serif;
  text-align: center;
}

.rota-map-popup {
  display: grid;
  gap: 8px;
  min-width: 180px;
  max-width: 240px;
  font-family: "Manrope", sans-serif;
}

.rota-map-popup strong {
  font: 700 15px / 1.15 "Chakra Petch", sans-serif;
  color: #1b252f;
}

.rota-map-popup span {
  color: #5c656c;
  font-size: 13px;
  line-height: 1.4;
}

.rota-map-popup a {
  color: #df6320;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.onde-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.onde-map-filter {
  appearance: none;
  border: 1px solid rgba(247, 244, 234, 0.22);
  background: transparent;
  color: rgba(247, 244, 234, 0.88);
  font: 700 13px / 1 "Chakra Petch", sans-serif;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.onde-map-filter:hover {
  border-color: #f3c226;
  color: #fff;
}

.onde-map-filter.is-active {
  background: #f3c226;
  border-color: #f3c226;
  color: #1b252f;
}

.onde-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  padding: 14px 18px;
  background: #141a1c;
  border-top: 1px solid rgba(247, 244, 234, 0.1);
  color: rgba(247, 244, 234, 0.78);
  font: 600 13px / 1.35 "Manrope", sans-serif;
}

.onde-map-legend strong {
  color: #f3c226;
  font: 700 12px / 1 "Chakra Petch", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.onde-stations {
  padding: 72px 0 56px;
  background: #f7f4ea;
}

.onde-stations .station-cards {
  gap: 18px;
}

.onde-page .station-card {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  border-top-color: #21843d;
  display: grid;
  gap: 0;
  align-content: start;
}

.onde-page .station-card:hover,
.onde-page .station-card.is-active {
  border-color: #21843d;
  border-top-color: #f3c226;
  box-shadow: 0 18px 40px rgba(33, 132, 61, 0.12);
  transform: translateY(-2px);
}

.onde-page .station-card .station-kicker {
  margin: 0 0 8px;
  color: #21843d;
  font: 700 12px / 1 "Chakra Petch", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.onde-page .station-card h3 {
  margin-bottom: 12px;
}

.onde-page .station-card p {
  margin-bottom: 10px;
}

.onde-page .station-card p:last-of-type {
  margin-bottom: 18px;
}

.onde-page .station-card a {
  color: #df6320;
  font-weight: 700;
  text-decoration: none;
  justify-self: start;
}

.onde-page .station-card a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.onde-cta {
  background: #21843d;
  color: #fff;
  padding: 72px 0;
}

.onde-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.onde-cta h2 {
  font: 700 clamp(32px, 4vw, 46px) / 0.98 "Chakra Petch", sans-serif;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.onde-cta h2 em {
  color: #f3c226;
  font-style: normal;
}

.onde-cta p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42ch;
  line-height: 1.55;
}

.onde-cta a:not(.button) {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.onde-cta .button.primary {
  background: #f3c226;
  color: #1b252f;
  border-color: #f3c226;
}

.onde-cta .button.ghost-on-green {
  margin-left: 10px;
}

.onde-cta-note {
  margin: 0;
  padding: 8px 0 8px 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  max-width: 34ch;
}

.onde-cta-note strong {
  display: block;
  margin-bottom: 8px;
  font: 700 13px / 1.2 "Chakra Petch", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f3c226;
}

/* Google map frame (contato) */
.contact-map-frame #rota-stations-map {
  height: 420px;
  min-height: 320px;
}

.contact-map-frame .onde-map-shell,
.contact-map .onde-map-shell {
  border: 1px solid var(--line, #e2ddd0);
  box-shadow: 0 16px 40px rgba(24, 38, 46, 0.06);
}

@media (max-width: 900px) {
  .onde-map-section {
    padding: 48px 0 56px;
  }

  #rota-stations-map {
    height: 52vh;
    min-height: 300px;
  }

  .onde-cta-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .onde-cta-note {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
  }

  .onde-cta .button.ghost-on-green {
    margin-left: 0;
    margin-top: 10px;
  }
}
