.places-stage {
  padding: clamp(0.8rem, 2.5vw, 1.75rem) 0 clamp(2rem, 5vw, 4rem);
}

.places-layout {
  width: min(100%, 76rem);
}

.places-back-link {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 14px rgba(33, 37, 41, 0.14);
  color: #17633a;
  font-weight: 700;
}

.places-back-link:hover {
  color: #0c4828;
  text-decoration: none;
}

.places-panel {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(83, 135, 87, 0.35);
  border-radius: 22px;
  background: rgba(250, 255, 247, 0.97);
  box-shadow: 0 18px 50px rgba(30, 64, 39, 0.3);
  color: #173c29;
}

.places-header {
  max-width: 54rem;
  margin: 0 auto;
  text-align: center;
}

.places-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.places-header p:last-child {
  margin: 0.5rem 0 0;
  color: #4e6c59;
}

.places-kicker {
  margin: 0 0 0.12rem;
  color: #16744a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.places-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(13rem, 1fr));
  gap: 0.85rem;
  width: min(100%, 48rem);
  margin: 1.25rem auto 0;
  padding: 0.9rem;
  border: 1px solid rgba(56, 116, 72, 0.24);
  border-radius: 14px;
  background: rgba(226, 242, 220, 0.78);
}

.places-control {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.places-control label {
  margin-bottom: 0.3rem;
  color: #234d33;
  font-size: 0.82rem;
  font-weight: 700;
}

.places-control select {
  width: 100%;
  min-height: 44px;
  padding: 0.48rem 0.6rem;
  border: 1px solid #6d9c78;
  border-radius: 8px;
  background: #fff;
  color: #173c29;
  font: inherit;
}

.places-data-summary {
  display: flex;
  gap: 0.45rem 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0.8rem auto 0;
  color: #4c6855;
  font-size: 0.75rem;
  font-weight: 700;
}

.places-status {
  min-height: 1.5rem;
  margin: 0.5rem auto;
  color: #315f41;
  font-weight: 700;
  text-align: center;
}

.places-status.is-error {
  color: #9c2e25;
}

.places-map {
  width: min(100%, 68rem);
  height: clamp(24rem, 63vh, 42rem);
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid #518d64;
  border-radius: 16px;
  background: #dcebdd;
  box-shadow: 0 12px 32px rgba(27, 70, 42, 0.22);
}

.places-map .leaflet-popup-content {
  min-width: 12rem;
  margin: 0.8rem 1rem;
  color: #20392a;
}

.place-popup h2 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.place-popup p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
}

.place-popup .place-popup-categories {
  color: #55705e;
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.places-help,
.places-credit {
  max-width: 64rem;
  margin: 0.65rem auto 0;
  color: #536d5b;
  font-size: 0.76rem;
  text-align: center;
}

.places-credit a {
  color: #126940;
  font-weight: 700;
}

.places-back-link:focus-visible,
.places-control select:focus-visible {
  outline: 3px solid #2a9160;
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .places-panel {
    padding: 0.9rem 0.55rem 1.15rem;
  }

  .places-controls {
    grid-template-columns: 1fr;
  }

  .places-map {
    height: 68vh;
    min-height: 25rem;
    border-radius: 11px;
  }
}
