.places-page { max-width: 85rem; margin: auto; padding: clamp(1rem, 2.5vw, 2rem) var(--gutter) 4rem; }
.places-title { margin-bottom: .8rem; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; }
.places-sources a { text-decoration: underline; text-underline-offset: .2em; }
.place-filters { display: grid; grid-template-columns: minmax(13rem,1.4fr) repeat(4,minmax(0,1fr)); gap: .8rem; padding-block: .8rem; border-block: 1px solid var(--line); }
.place-filters label, .place-type-filter { font-size: .85rem; font-weight: 600; }
.place-filters :is(input,select) { font: inherit; font-weight: normal; display: block; width: 100%; min-height: 44px; padding: .45rem .6rem; margin-top: .4rem; border: 1px solid #9ba99f; background: white; color: var(--ink); border-radius: .2rem; }
#type-picker { position: relative; margin-top: .4rem; }
#type-picker summary { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 44px; padding: .45rem .6rem; border: 1px solid #9ba99f; border-radius: .2rem; background: white; color: var(--ink); font-weight: normal; cursor: pointer; }
#type-picker summary::-webkit-details-marker { display: none; }
#type-picker summary::after { content: ''; flex: none; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
#type-picker[open] summary::after { transform: rotate(225deg); }
#type-options { position: absolute; z-index: 5; top: 100%; left: 0; width: max-content; max-width: 90vw; min-width: 100%; max-height: min(22rem, 50vh); overflow-y: auto; margin: .25rem 0 0; padding: .35rem; border: 1px solid #9ba99f; border-radius: .2rem; background: white; box-shadow: 0 .3rem 1rem #1c302721; }
#type-options label { display: flex; gap: .65rem; align-items: center; min-height: 44px; padding: .35rem .55rem; font-weight: normal; cursor: pointer; }
#type-options label:is(:hover,:focus-within) { background: #f0f4f0; }
#type-options input { display: inline-block; flex: none; width: 1rem; height: 1rem; min-height: 0; margin: 0; padding: 0; accent-color: var(--forest); }
@media(max-width:42rem){ #type-options { left: auto; right: 0; } }
.places-summary { display: flex; gap: 1rem; align-items: center; justify-content: space-between; min-height: 3.5rem; color: var(--muted); }
.places-summary button { font: inherit; background: none; border: 0; text-decoration: underline; min-height: 44px; }
.places-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.explorer-result {
  display: grid;
  gap: .2rem;
  width: 100%;
  padding: .7rem .85rem;
  color: var(--ink);
  font: inherit;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: .45rem;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.explorer-result:hover { background: #eff4ee; border-color: #879e8d; }
.explorer-result:focus-visible { outline: 2px solid #986014; outline-offset: 2px; }
.explorer-place-name { font: 400 clamp(1.1rem, 1.6vw, 1.35rem)/1.2 var(--serif); }
.explorer-place-meta { color: var(--muted); font-size: .85rem; }
#places-more { display: block; margin: 1.5rem auto; padding: .65rem 1.5rem; border: 1px solid var(--forest); background: var(--forest); color: white; }
.places-sources { margin-top: 2rem; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.places-sources summary { cursor: pointer; color: var(--ink); }
.places-sources p { margin-top: .6rem; }
@media (max-width: 65rem) {
  .place-filters { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .place-query { grid-column: 1/-1; }
}
@media (max-width: 42rem) {
  .place-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.places-results {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 2.6vw, 2rem);
  margin-top: 1.25rem;
}
.places-cards { min-width: 0; scroll-margin-top: 6rem; }
.places-summary { margin-top: -.6rem; }
#places-selection { min-width: 0; }
#places-back { margin-bottom: 1rem; }
#places-detail .location-intro h2 { font: 400 clamp(1.7rem, 3vw, 2.5rem)/1.1 var(--serif); overflow-wrap: anywhere; scroll-margin-top: 6rem; }
#places-detail .location-overview:has(figure:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
#places-detail .location-feed { margin-top: 1.75rem; }
#places-detail .location-feed h3 { font: 400 1.5rem/1.2 var(--serif); margin-bottom: .65rem; }

.places-map { position: sticky; top: 6rem; min-width: 0; }
.places-map > summary { display: none; }
.explorer-map-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: clamp(23rem, calc(100dvh - 8rem), 41rem);
  overflow: hidden;
  background: #dbeaec;
  border: 1px solid #879e8d;
  border-radius: .6rem;
}
.explorer-toolbar, .explorer-zoom { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.explorer-toolbar { justify-content: space-between; flex: none; padding: .5rem .7rem; background: #f6f8f4; border-bottom: 1px solid #bdcbc0; }
.explorer-toolbar h2 { margin: 0; font: 400 clamp(1.1rem, 1.8vw, 1.4rem)/1.2 var(--serif); }
#locations-explorer button, #places-back { font: inherit; color: var(--forest); background: white; border: 1px solid #96a69c; border-radius: .25rem; min-height: 44px; padding: .4rem .7rem; }
#locations-explorer button:hover, #places-back:hover { background: #eff4ee; }
#locations-explorer :is(button, [tabindex]):focus-visible, #places-back:focus-visible { outline: 3px solid #986014; outline-offset: -2px; }
.explorer-zoom button { min-width: 44px; }
.explorer-surface { display: block; width: 100%; flex: 1 1 0; min-height: 0; overflow: hidden; touch-action: none; user-select: none; cursor: grab; }
.explorer-surface:active { cursor: grabbing; }
.explorer-map-note { margin: 0; padding: .5rem .7rem; font-size: .85rem; background: #f4f8f7; color: #38554b; }
.explorer-county[tabindex="0"], .explorer-marker { cursor: pointer; }
.explorer-county[tabindex="0"]:hover { stroke: #284e39; stroke-width: 2; }
#locations-explorer .explorer-county:focus-visible { outline: none; stroke: #986014; stroke-width: 2; }
.explorer-marker:hover circle:last-of-type, .explorer-marker:focus-visible circle:last-of-type { stroke: #a35412; stroke-width: 3; }

@media (max-width: 52rem) {
  .places-results { grid-template-columns: minmax(0, 1fr); }
  .places-map { position: static; }
  .places-map > summary { display: list-item; width: fit-content; min-height: 44px; padding-block: .55rem; cursor: pointer; }
  .explorer-map-panel { height: clamp(20rem, 50dvh, 27rem); }
  .places-summary { margin-top: 0; }
  .place-card :is(a, button), #places-selection { scroll-margin-top: 6rem; }
}
@media (max-height: 33rem) {
  .places-map { position: static; }
}
