/* Local Perks page — per-card mini maps, directions links, sidebar grouping. */

/* legend swatch + marker pin + popup badge colors as classes, not inline style="" (this site's CSP has no
   'unsafe-inline' exception) -- one set per category, reused by the legend, the map pins and the popup badges */
.legend-swatch.swatch-park, .perks-pin .perk-cat-park { background: #0e5e63; }
.legend-swatch.swatch-beach, .perks-pin .perk-cat-beach { background: #2f6f9e; }
.legend-swatch.swatch-golf, .perks-pin .perk-cat-golf { background: #4a7c3f; }
.legend-swatch.swatch-library, .perks-pin .perk-cat-library { background: #c9975a; }
.popup-type.perk-cat-park { background: #0e5e6322; color: #0e5e63; }
.popup-type.perk-cat-beach { background: #2f6f9e22; color: #2f6f9e; }
.popup-type.perk-cat-golf { background: #4a7c3f22; color: #4a7c3f; }
.popup-type.perk-cat-library { background: #c9975a22; color: #c9975a; }

.map-sidebar-group-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 14px 0 2px;
}
.map-sidebar-group-heading:first-child { margin-top: 0; }

/* Divicon pins used on both the big map and the per-card mini maps */
.perks-pin span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.35);
}

.feature-card.has-perk-map {
  padding-top: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.perk-card-map {
  width: calc(100% + 40px);
  margin: 0 -20px 16px;
  height: 140px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.perk-card-map .leaflet-control-attribution { display: none; }

.feature-card.has-perk-map h3 { margin-bottom: 6px; }
.feature-card.has-perk-map p { flex: 1 0 auto; }

.perk-card-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.perk-directions-link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--lake, var(--primary));
}
.perk-maps-link {
  font-size: 0.8rem;
  color: var(--muted);
}
.perk-directions-link, .perk-maps-link { text-decoration: none; }
.perk-directions-link:hover, .perk-maps-link:hover { text-decoration: underline; }
