.map-page {
  overflow: hidden;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
}

.map-sidebar {
  padding: 1.25rem 1.15rem 1.5rem;
  background: #f6f3ee;
  border-right: 1px solid rgba(92, 64, 51, 0.12);
  overflow: auto;
  z-index: 2;
}

.map-sidebar h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0.25rem 0 0.5rem;
  color: #1c1814;
}

.map-lede {
  margin: 0 0 1rem;
  color: #5c4033;
  font-size: 0.95rem;
  line-height: 1.5;
}

.map-search {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.map-search input,
.map-actions select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(92, 64, 51, 0.2);
  border-radius: 0.75rem;
  background: #fff;
  font: inherit;
}

.map-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(154, 63, 40, 0.45);
  color: #9a3f28;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  font: inherit;
  cursor: pointer;
}

.map-status {
  font-size: 0.85rem;
  color: #5c4033;
  margin: 0 0 0.75rem;
}

.map-fallback-note {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #5c4033;
  background: #f4ead0;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 0.65rem;
}

.map-results {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.map-result {
  display: block;
  text-align: left;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 0.85rem;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.map-result:hover,
.map-result.is-active {
  border-color: #c45c3e;
  box-shadow: 0 8px 20px rgba(28, 24, 20, 0.08);
}

.map-result strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.map-result span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a3f28;
}

.map-result em {
  display: block;
  margin-top: 0.25rem;
  font-style: normal;
  font-size: 0.85rem;
  color: #5c4033;
}

.map-canvas {
  width: 100%;
  height: 100%;
  background: #d8d2c8;
  z-index: 1;
}

.leaflet-popup-content {
  margin: 0.65rem 0.75rem;
  font-family: Outfit, sans-serif;
}

.leaflet-popup-content strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
}

.gmap-popup {
  max-width: 240px;
  font-family: Outfit, "Segoe UI", sans-serif;
  color: #1c1814;
}

.gmap-popup strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.gmap-popup__region {
  display: block;
  color: #9a3f28;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.gmap-popup p {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.gmap-popup a {
  color: #2a5a9e;
  font-weight: 500;
}

.atlas-user-marker {
  background: #2a5a9e;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 860px) {
  .map-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: calc(100vh - var(--header-h));
  }

  .map-sidebar {
    max-height: 42vh;
    border-right: 0;
    border-bottom: 1px solid rgba(92, 64, 51, 0.12);
  }

  .map-actions {
    grid-template-columns: 1fr;
  }
}
