.map-section {
  margin-top: 34px;
}

.map-shell {
  display: grid;
  gap: 14px;
}

.map-canvas {
  height: 470px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #e9e6dc;
  box-shadow: 0 10px 28px rgba(48, 55, 49, 0.045);
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.map-filters,
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.map-filter:hover,
.map-filter.active {
  color: var(--accent);
  border-color: rgba(47,107,87,.4);
  background: rgba(47,107,87,.09);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px rgba(37,48,42,.25);
}
.legend-dot.base { background: #2f6b57; }
.legend-dot.must { background: #c98d4b; }
.legend-dot.optional { background: #7f8b85; }

.map-tag-groups {
  display: grid;
  gap: 10px;
}

.map-tag-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.map-tag-group strong {
  min-width: 82px;
  font-size: 13px;
}

.place-link {
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  outline: none;
}

.tag.place-link:hover,
.tag.place-link:focus-visible,
.tag.place-link.is-active {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(47,107,87,.28);
}

.tag.base {
  color: #fff;
  background: var(--accent);
}

.place-card {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  min-height: 310px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.place-card:hover,
.place-card:focus-within,
.place-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(47,107,87,.42);
  box-shadow: 0 16px 34px rgba(48,55,49,.09);
}

.place-card .asset-placeholder {
  min-height: 100%;
  border-radius: 0;
}

.place-card-body {
  padding: 24px;
}

.place-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.place-card-top h3 {
  margin: 0;
}

.place-distance {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(47,107,87,.08);
  font-size: 12px;
  font-weight: 750;
}

.place-card h4 {
  margin: 18px 0 5px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6f775f;
}

.place-card p {
  margin: 0;
}

.place-highlights {
  margin: 8px 0 0;
  padding-left: 19px;
  color: var(--muted);
}

.place-highlights li {
  margin: 4px 0;
}

.place-actions {
  margin-top: 18px;
}

.place-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.place-source:hover { text-decoration: underline; }

.leaflet-container {
  font-family: inherit;
}

.leaflet-tooltip.place-tooltip {
  border: 0;
  border-radius: 10px;
  padding: 6px 9px;
  color: #25302a;
  background: rgba(255,253,248,.96);
  box-shadow: 0 6px 16px rgba(37,48,42,.14);
  font-weight: 750;
}

.leaflet-tooltip-top.place-tooltip::before {
  border-top-color: rgba(255,253,248,.96);
}

.map-popup strong {
  display: block;
  margin-bottom: 3px;
}
.map-popup span {
  color: #68736d;
  font-size: 12px;
}

.map-empty {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .map-canvas { height: 420px; }
  .place-card { grid-template-columns: 1fr; }
  .place-card .asset-placeholder { min-height: 210px; }
}

@media (max-width: 620px) {
  .map-canvas { height: 360px; border-radius: 18px; }
  .map-toolbar { align-items: flex-start; }
  .map-filter { padding: 6px 9px; }
  .map-tag-group strong { width: 100%; }
  .place-card-body { padding: 20px; }
}
