:root {
  --forest: #294d42;
  --ink: #17362e;
  --paper: #faf9f6;
  --muted: #68716e;
  --line: #dedfd7;
  --clay: #98735e;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
button,
input,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b97735;
}
button,
a,
select,
input[type="checkbox"] {
  cursor: pointer;
}
a {
  color: inherit;
}
button {
  background: none;
  border: 0;
}
img {
  object-fit: cover;
}
button img,
a img,
.search-box img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
button:hover {
  color: #547464;
}
button:disabled {
  cursor: not-allowed;
}
.header {
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: -1px;
  font-weight: 600;
  white-space: nowrap;
}
.brand img {
  width: 46px;
  height: 42px;
}
.header-description {
  border-left: 1px solid #b8beb6;
  padding-left: 25px;
  color: var(--muted);
  font-size: 14px;
}
.tagline {
  margin-left: auto;
  color: var(--muted);
  font-style: italic;
  font-size: 13px;
}
.explorer {
  display: grid;
  grid-template-columns: minmax(390px, 36%) 1fr;
  flex: 1;
  min-height: 0;
  position: relative;
}
.sidebar {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  z-index: 2;
  background: var(--paper);
}
.discovery {
  padding: 27px 30px 0;
}
.discovery h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 3.35vw, 54px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -1.6px;
  margin: 0 0 13px;
}
.intro {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 23px;
}
.search-box {
  height: 49px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #bfc6bc;
  border-radius: 9px;
  padding: 0 13px;
  background: #fff;
}
.search-box input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  min-width: 0;
  outline-offset: 0;
  font-size: 13px;
}
.search-box img {
  opacity: 0.75;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 17px;
}
.filters label {
  font-size: 12px;
  font-weight: 650;
}
.filters select {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: transparent;
  border: 1px solid #c6cdc3;
  border-radius: 8px;
  padding: 11px 29px 11px 10px;
  font-size: 12px;
  text-overflow: ellipsis;
}
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.sort-label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sort-label select {
  border: 0;
  background: none;
  font-size: 12px;
  padding: 4px;
  max-width: 110px;
}
.results {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 30px;
  scrollbar-width: thin;
  scrollbar-color: #ccd1c7 transparent;
}
.park-row {
  display: grid;
  grid-template-columns: 38% 1fr 36px;
  gap: 14px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.park-photo {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}
.photo-button {
  padding: 0;
  width: 100%;
  border-radius: 7px;
  overflow: hidden;
}
.photo-button:hover img {
  filter: brightness(1.07);
}
.park-title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.4px;
  text-align: left;
  padding: 0;
}
.park-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.park-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 8px;
}
.park-description {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.select-control {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  font-size: 10px;
  padding-top: 23px;
  cursor: pointer;
}
.select-control input {
  appearance: auto;
  accent-color: var(--forest);
  width: 23px;
  height: 23px;
  margin: 0;
  cursor: pointer;
}
.park-row.no-photo {
  grid-template-columns: 1fr 36px;
}
.park-row.is-active .park-title {
  color: #876148;
}
.source-note {
  padding: 11px 30px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
}
.source-note a {
  white-space: nowrap;
}
.source-note img {
  width: 10px;
  height: 10px;
  vertical-align: middle;
}
.map-panel {
  position: relative;
  min-width: 0;
  background: #e7ebdf;
}
#map {
  height: 100%;
  width: 100%;
  font-family: var(--sans);
}
.map-tools {
  position: absolute;
  z-index: 700;
  top: 23px;
  right: 23px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.map-button,
.area-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffdf9;
  border: 1px solid #d8ddd2;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px #17362e10;
  font-size: 12px;
}
.area-control {
  cursor: pointer;
}
.area-control input {
  accent-color: var(--forest);
  width: 15px;
  height: 15px;
  margin: 0;
}
.map-button img {
  width: 17px;
  height: 17px;
}
.leaflet-control-zoom {
  border: 1px solid #d8ddd2 !important;
  box-shadow: 0 2px 8px #17362e10 !important;
  border-radius: 8px !important;
  overflow: hidden;
}
.leaflet-top.leaflet-left {
  top: 12px;
  left: 12px;
}
.leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  color: var(--ink) !important;
  background: #fffdf9 !important;
  font-weight: 400 !important;
}
.leaflet-control-attribution {
  font-size: 9px !important;
  background: #faf9f6df !important;
}
.park-pin {
  border: 2px solid white;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 1px 5px #17362e40;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 650;
}
.park-pin img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}
.park-pin.selected {
  background: var(--forest);
  border-width: 3px;
  box-shadow: 0 0 0 3px #294d4230;
}
.cluster-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f6ef;
  color: var(--forest);
  border: 1px solid #7c947f;
  border-radius: 50%;
  font: 600 13px var(--sans);
  box-shadow: 0 0 0 5px #f8f9ef70;
}
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  padding: 0;
  background: var(--paper);
  box-shadow: 0 4px 24px #17362e28;
}
.leaflet-popup-content {
  width: 230px !important;
  margin: 10px !important;
}
.popup-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}
.popup-title {
  font: 600 25px/1.03 var(--serif);
  margin: 11px 4px 6px;
}
.popup-meta {
  margin: 0 4px 9px !important;
  color: var(--muted);
  font: 12px var(--sans);
}
.popup-details {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 12px var(--sans);
  padding: 4px 4px 8px;
}
.popup-details img {
  width: 16px;
  height: 16px;
}
.leaflet-container a.leaflet-popup-close-button {
  background: #fffdf9;
  top: 15px;
  right: 15px;
  border-radius: 5px;
  color: var(--ink);
  z-index: 2;
}
.selection-bar {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 30px;
  border-top: 1px solid #c9d0c3;
  z-index: 800;
  background: var(--paper);
  flex-shrink: 0;
}
.selection-summary {
  min-width: 215px;
}
.selection-summary h2 {
  font: 600 29px/1 var(--serif);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.selection-summary p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  max-width: 230px;
  line-height: 1.4;
}
.selected-parks {
  display: flex;
  gap: 9px;
  flex: 1;
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: thin;
}
.selected-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid #d3d9cd;
  border-radius: 8px;
  min-width: 168px;
  max-width: 215px;
  flex-shrink: 0;
}
.selected-chip > img {
  width: 46px;
  height: 42px;
  border-radius: 4px;
}
.selected-chip span {
  font-size: 11px;
  line-height: 1.4;
  flex: 1;
}
.selected-chip button {
  padding: 4px;
  display: flex;
}
.selected-chip button img {
  width: 17px;
  height: 17px;
}
.text-button {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 12px;
  padding: 9px;
}
.export {
  min-width: 265px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--forest);
  color: white;
  border: 1px solid var(--forest);
  border-radius: 30px;
  text-decoration: none;
  padding: 15px 25px;
  font-size: 13px;
  font-weight: 550;
  min-height: 47px;
  cursor: pointer;
}
.primary:hover {
  background: #183e32;
  color: #fff;
}
.primary img {
  filter: brightness(0) invert(1);
  width: 17px;
  height: 17px;
}
.primary.disabled {
  opacity: 0.42;
  cursor: default;
}
.export .primary {
  width: 100%;
}
.export > span {
  font-size: 10px;
  color: var(--muted);
}
.loading,
.empty {
  padding: 28px 0;
  color: var(--muted);
  line-height: 1.7;
}
.empty h3 {
  font: 28px var(--serif);
  color: var(--ink);
  margin: 5px 0;
}
.empty button {
  margin-top: 10px;
  text-decoration: underline;
}
.toast {
  position: fixed;
  bottom: 122px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  background: var(--forest);
  color: white;
  padding: 13px 23px;
  border-radius: 8px;
  max-width: 90%;
  font-size: 13px;
  box-shadow: 0 4px 20px #17362e25;
}
.map-notice {
  position: absolute;
  bottom: 32px;
  left: 16px;
  right: 16px;
  z-index: 700;
  background: #fffdf9;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
}
.mobile-view {
  display: none;
}
.skip {
  position: absolute;
  top: -60px;
  background: #fff;
  padding: 14px;
  z-index: 2000;
}
.skip:focus {
  top: 0;
}
dialog {
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  width: min(570px, calc(100% - 28px));
  max-height: 90dvh;
  box-shadow: 0 18px 100px #16332940;
}
dialog::backdrop {
  background: #10291fc0;
}
.close-dialog {
  position: absolute;
  right: 15px;
  top: 15px;
  border-radius: 50%;
  background: var(--paper);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  z-index: 1;
}
.detail-image {
  width: 100%;
  height: 235px;
  display: block;
}
.detail-body {
  padding: 28px;
}
.detail-body h2 {
  font: 500 42px/1.05 var(--serif);
  letter-spacing: -1px;
  margin: 12px 0;
}
.detail-type {
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 10px;
  color: var(--muted);
}
.detail-description {
  font-size: 14px;
  line-height: 1.8;
  color: #56635b;
}
.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.detail-actions .primary {
  flex: 1;
}
.secondary {
  border: 1px solid #bac7b9;
  border-radius: 25px;
  padding: 13px 19px;
  font-size: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.detail-credit {
  font-size: 10px;
  color: var(--muted);
  margin: 18px 0 0;
}
.detail-caution {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1450px) {
  .discovery {
    padding: 33px 38px 0;
  }
  .results {
    padding: 0 38px;
  }
  .park-row {
    padding: 21px 0;
    gap: 17px;
  }
  .park-title {
    font-size: 27px;
  }
  .park-description {
    font-size: 13px;
  }
  .intro {
    font-size: 15px;
  }
  .source-note {
    padding-left: 38px;
  }
  .search-box {
    height: 53px;
  }
}
@media (max-width: 1100px) {
  .header {
    padding: 0 24px;
  }
  .tagline {
    display: none;
  }
  .explorer {
    grid-template-columns: 365px 1fr;
  }
  .discovery {
    padding: 24px 24px 0;
  }
  .discovery h1 {
    font-size: 40px;
  }
  .results {
    padding: 0 24px;
  }
  .park-row {
    gap: 11px;
  }
  .park-title {
    font-size: 22px;
  }
  .park-description {
    -webkit-line-clamp: 2;
  }
  .selection-bar {
    gap: 14px;
    padding: 16px 24px;
  }
  .selection-summary {
    min-width: 160px;
  }
  .selection-summary p {
    max-width: 175px;
  }
  .selection-summary h2 {
    font-size: 26px;
  }
  .export {
    min-width: 230px;
  }
  .map-tools {
    right: 14px;
    top: 18px;
  }
  .map-button {
    padding: 11px;
  }
  .area-control {
    padding: 11px;
  }
  .source-note {
    padding-left: 24px;
  }
}
@media (max-width: 720px) {
  .header {
    height: 60px;
    padding: 0 20px;
    gap: 16px;
  }
  .brand {
    font-size: 29px;
    gap: 8px;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .header-description {
    font-size: 10px;
    padding-left: 15px;
    max-width: 125px;
  }
  .explorer {
    display: block;
    min-height: 0;
  }
  .sidebar {
    height: 100%;
    border: 0;
  }
  .discovery {
    padding: 23px 22px 0;
  }
  .discovery h1 {
    font-size: 42px;
  }
  .intro {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 17px;
  }
  .intro br {
    display: none;
  }
  .search-box {
    height: 45px;
  }
  .filters {
    margin-top: 13px;
  }
  .results-toolbar {
    padding-top: 13px;
    padding-bottom: 10px;
  }
  .results {
    padding: 0 22px 67px;
  }
  .park-row {
    grid-template-columns: 32% 1fr 35px;
    padding: 16px 0;
    gap: 13px;
  }
  .park-title {
    font-size: 23px;
  }
  .park-description {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }
  .source-note {
    display: none;
  }
  .map-panel {
    position: absolute;
    inset: 0;
    visibility: hidden;
  }
  .show-map .map-panel {
    visibility: visible;
  }
  .show-map .sidebar {
    visibility: hidden;
  }
  .mobile-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: absolute;
    z-index: 750;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--forest);
    color: white;
    padding: 12px 23px;
    border-radius: 26px;
    box-shadow: 0 3px 14px #10291f30;
    font-size: 12px;
    white-space: nowrap;
  }
  .mobile-view img {
    filter: brightness(0) invert(1);
    width: 17px;
    height: 17px;
  }
  .selection-bar {
    position: relative;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 13px 18px 14px;
    min-height: 100px;
  }
  .selection-summary {
    min-width: 0;
    flex: 1;
  }
  .selection-summary h2 {
    font-size: 25px;
    margin: 0 0 5px;
  }
  .selection-summary p {
    font-size: 10px;
    max-width: none;
  }
  .export {
    min-width: 0;
    width: 100%;
    gap: 0;
  }
  .export .primary {
    padding: 12px;
    font-size: 12px;
    min-height: 44px;
  }
  .export > span {
    display: none;
  }
  .selected-parks {
    order: 3;
    width: 100%;
    flex: none;
    max-height: 42px;
  }
  .selected-parks:empty {
    display: none;
  }
  .selected-chip {
    min-width: 0;
    padding: 5px 7px;
    max-width: 195px;
    gap: 5px;
  }
  .selected-chip > img {
    width: 28px;
    height: 27px;
  }
  .selected-chip span {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .text-button {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 11px;
  }
  .selection-bar:has(.text-button:not([hidden])) .selection-summary {
    padding-right: 40px;
  }
  .toast {
    bottom: 210px;
    width: max-content;
    text-align: center;
  }
  .detail-image {
    height: 170px;
  }
  .detail-body {
    padding: 23px;
  }
  .detail-body h2 {
    font-size: 34px;
  }
  .map-tools {
    gap: 5px;
    right: 12px;
  }
  .area-control,
  .map-button {
    font-size: 11px;
    padding: 11px 9px;
  }
  .leaflet-control-attribution {
    font-size: 8px !important;
  }
}
/* Keep content photography separate from small control icons. */
.photo-button .park-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1.4;
  object-fit: cover;
}
.park-label {
  display: none;
  border: 0;
  background: #faf9f6dd;
  box-shadow: none;
  border-radius: 3px;
  padding: 3px 5px;
  color: var(--ink);
  font: 550 11px/1.3 var(--sans);
  white-space: normal;
  max-width: 135px;
}
.park-label:before {
  display: none;
}
.show-labels .park-label {
  display: block;
}
.mobile-view:hover {
  color: white;
}
.leaflet-popup-pane {
  z-index: 800;
}
/* Show names on hover/focus or in the popup, avoiding collisions in dense regions. */
.park-label {
  display: block;
}
/* Match the selected concept's compact photo rows and readable footer. */
@media (min-width: 1101px) {
  .park-row { padding: 17px 0; }
  .park-title { font-size: 24px; font-weight: 400; }
  .selection-bar { min-height: 126px; }
  .selection-summary h2 { font-size: 31px; }
  .export .primary { font-size: 14px; }
  .selected-chip span { font-size: 12px; }
  .selected-chip { min-width: 198px; }
}
@media (max-width: 720px) and (max-height: 700px) {
  .sidebar { overflow-y: auto; }
  .discovery { flex-shrink: 0; padding-top: 17px; }
  .discovery h1 { font-size: 34px; }
  .intro { display: none; }
  .results { flex: none; overflow: visible; padding-bottom: 70px; }
}
