.map-shell {
  border: 1px solid #cbd3bf;
  border-radius: 6px;
  background: var(--paper);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  scroll-margin-top: 0;
}
.map-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  padding: 15px;
  background: var(--paper);
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
}
.map-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  flex: 1;
  min-width: 0;
  max-width: 440px;
  background: var(--bg);
  border: 1px solid #acb7a1;
  border-radius: 4px;
}
.map-search input {
  border: 0;
  outline-offset: -3px;
  border-radius: 4px;
  background: transparent;
  min-width: 0;
  flex: 1;
  width: 100%;
  font-size: var(--text-min);
  height: 44px;
  color: var(--ink);
}
.map-search button {
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.map-category-label {
  margin-right: auto;
  min-width: 0;
}
.map-category-label select {
  border: 1px solid #acb7a1;
  border-radius: 4px;
  height: 46px;
  max-width: 100%;
  padding: 8px 29px 8px 12px;
  font-size: var(--text-min);
  color: var(--ink);
  background: var(--paper);
}
.map-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
  max-width: 100%;
}
.map-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #c5cdba;
  border-radius: 4px;
  background: var(--paper);
  font-size: var(--text-min);
}
.map-tool:hover {
  background: var(--soft);
}
.map-tool:disabled {
  opacity: 0.6;
  cursor: wait;
}
.map-stage {
  height: 485px;
  position: relative;
}
.park-map {
  height: 100%;
  width: 100%;
  background: #e4e9dc;
  z-index: 1;
  font-family: var(--sans);
}
.map-loading {
  position: absolute;
  z-index: 500;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 18px 25px;
  background: var(--paper);
  box-shadow: 0 4px 20px #20352315;
  border-radius: 4px;
  font-size: var(--text-min);
  text-align: center;
}
.map-loading-error {
  pointer-events: none;
  max-width: 330px;
  top: auto;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 12px 18px;
}
.map-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 16px;
  min-height: 44px;
  font-size: var(--text-min);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.map-hint {
  flex-shrink: 0;
}
.map-interest-note {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: var(--text-min);
  line-height: 1.6;
}
.map-detail {
  position: absolute;
  z-index: 650;
  right: 18px;
  top: 18px;
  bottom: auto;
  width: 320px;
  max-height: calc(100% - 36px);
  background: var(--paper);
  box-shadow: 0 5px 30px #18291d35;
  border: 1px solid #bac7af;
  border-radius: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.map-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 5px 0 16px;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 45px;
  border-bottom: 1px solid var(--line);
}
.map-panel-header .eyebrow {
  font-size: var(--text-min);
  letter-spacing: 0.1em;
  margin: 0;
  line-height: 1.7;
}
.map-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 1.625rem;
  font-weight: 300;
  flex-shrink: 0;
}
.map-close:hover {
  background: var(--soft);
}
.map-panel-image img {
  width: 100%;
  height: 155px;
  object-fit: cover;
}
.map-panel-body {
  padding: 19px 20px;
}
.map-panel-body h2 {
  font-family: var(--serif);
  font-size: 1.625rem;
  line-height: 1.2;
  margin: 0 0 11px;
  letter-spacing: -0.025em;
}
.map-panel-body h2:focus {
  outline: 0;
}
.map-panel-body > p {
  font-size: var(--text-min);
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
}
.map-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.map-panel-actions .btn {
  font-size: var(--text-min);
  min-height: 44px;
}
.map-panel-actions .text-link {
  font-size: var(--text-min);
  justify-content: center;
  margin-top: 5px;
}
.map-group-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.map-group-place {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 11px 0;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
}
.map-group-place:hover {
  background: var(--soft);
}
.map-group-place img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
.map-group-place strong {
  font-size: var(--text-min);
  font-weight: 500;
  line-height: 1.5;
  display: block;
}
.map-group-place small {
  font-size: var(--text-min);
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.place-marker {
  background: none;
  border: 0;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
}
.place-marker > span {
  width: 36px;
  height: 36px;
  background: #334e39;
  border: 2px solid #fffef3;
  border-radius: 50%;
  box-shadow: 0 2px 8px #21332840;
  display: grid;
  place-items: center;
  color: white;
  font-size: var(--text-min);
  font-weight: 600;
  transition: transform 0.15s;
}
.place-marker:hover > span,
.place-marker:focus-visible > span {
  transform: scale(1.15);
}
.marker-cluster > span {
  width: 40px;
  height: 40px;
  background: #f8f6eb;
  color: var(--ink);
  border: 5px solid #789164;
  font-size: var(--text-min);
  box-shadow: 0 0 0 3px #eeeeeccc;
}
.marker-museums:not(.marker-cluster) > span {
  background: #945e37;
}
.marker-fountains:not(.marker-cluster) > span {
  background: #45717b;
}
.marker-viewpoints:not(.marker-cluster) > span {
  background: #857032;
}
.marker-monuments:not(.marker-cluster) > span {
  background: #7c6850;
}
.marker-gardens:not(.marker-cluster) > span {
  background: #5a753e;
}
.leaflet-control-zoom {
  border: 1px solid #b6c3ab !important;
  border-radius: 5px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px #20352310 !important;
}
.leaflet-control-zoom a {
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  color: var(--ink) !important;
  background: var(--paper) !important;
  font-size: 1.5rem !important;
}
.leaflet-control-zoom a:hover {
  background: var(--soft) !important;
}
.leaflet-container .leaflet-control-attribution {
  font-size: var(--text-min);
  background: #fffef3e8;
  line-height: 1.5;
}
.leaflet-control-attribution a {
  color: #425438;
}
.leaflet-top.leaflet-left {
  top: 5px;
  left: 5px;
}
.leaflet-container:focus-visible {
  outline-offset: -4px;
}
.map-page-heading .section-heading {
  align-items: center;
  margin-top: 17px;
  margin-bottom: 25px;
}
.map-page-heading h1 {
  font-size: 2.6875rem;
}
.map-page-heading p {
  font-size: var(--text-min);
  color: var(--muted);
  margin-top: 12px;
}
.map-page-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 0;
  border: 1px solid #cbd3bf;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
}
.map-page-layout .map-shell {
  grid-column: 2;
  grid-row: 1;
  border: 0;
  border-radius: 0;
}
.map-page-layout .map-toolbar {
  gap: 9px;
  padding: 12px;
}
.map-page-layout .map-tools {
  gap: 7px;
}
.map-page-layout .map-tool {
  padding: 8px;
}
.map-page-layout .map-category-label select {
  max-width: 165px;
  font-size: var(--text-min);
}
.map-page-layout .map-stage {
  height: min(620px, calc(100dvh - 295px));
  min-height: 440px;
}
.map-page-layout .map-status-row {
  padding: 10px 12px;
  font-size: var(--text-min);
}
.map-page-layout .map-hint {
  display: none;
}
.map-results {
  grid-column: 1;
  grid-row: 1;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  height: 100%;
  position: relative;
}
.map-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 23px 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  height: 71px;
}
.map-results-header h2 {
  font-size: 1.4375rem;
  margin: 0;
}
.map-results-header > span {
  font-size: var(--text-min);
  color: var(--muted);
}
.map-result-items {
  position: absolute;
  top: 71px;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.map-result {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  min-height: 85px;
  background: var(--paper);
}
.map-result:hover {
  background: var(--soft);
}
.map-result > img {
  width: 57px;
  height: 57px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 3px;
}
.map-result > span {
  min-width: 0;
  flex: 1;
}
.map-result strong {
  font-size: var(--text-min);
  line-height: 1.5;
  font-weight: 600;
  display: block;
}
.map-result small {
  display: block;
  font-size: var(--text-min);
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.7;
}
.map-result > .icon {
  width: 14px;
  flex-shrink: 0;
}
.map-result .result-symbol {
  width: 57px;
  height: 57px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 3px;
  flex: 0 0 57px;
  color: #688054;
}
.map-results-empty {
  font-size: var(--text-min);
  color: var(--muted);
  padding: 25px 18px;
}
.map-note {
  font-size: var(--text-min);
  color: var(--muted);
  margin-top: 18px;
  margin-bottom: 35px;
}
.map-page .site-footer {
  margin-top: 28px;
}
@media (max-width: 1100px) {
  .map-page-layout {
    grid-template-columns: 265px minmax(0, 1fr);
  }
  .map-page-layout .map-detail {
    width: 290px;
  }
  .map-page-layout .map-category-label select {
    max-width: 125px;
  }
  .map-page-layout .map-toolbar {
    flex-wrap: wrap;
  }
  .map-page-layout .map-search {
    max-width: none;
    flex-basis: calc(100% - 135px);
  }
  .map-page-layout .map-tools {
    margin-left: auto;
  }
  .map-page-layout .map-stage {
    height: 540px;
  }
  .map-results-header {
    height: 118px;
  }
  .map-result-items {
    top: 118px;
  }
}
@media (max-width: 900px) {
  .map-page-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .map-result {
    padding: 12px;
    gap: 9px;
  }
  .map-result > img {
    width: 45px;
    height: 45px;
  }
  .map-page-layout .map-search {
    flex-basis: 100%;
  }
  .map-page-layout .map-category-label select {
    max-width: none;
  }
  .map-page-layout .map-detail {
    width: calc(100% - 28px);
    right: 14px;
  }
  .map-page-layout .map-toolbar {
    height: 118px;
  }
  .map-page-heading h1 {
    font-size: 2.25rem;
  }
  .map-page-heading .btn {
    font-size: var(--text-min);
    padding: 10px 12px;
  }
}
@media (max-width: 700px) {
  .map-toolbar {
    padding: 12px;
    flex-wrap: wrap;
    gap: 9px;
  }
  .map-search {
    flex-basis: 100%;
    max-width: none;
    order: 0;
  }
  .map-search input {
    font-size: var(--text-min);
  }
  .map-category-label {
    order: 1;
    flex: 1 1 100%;
  }
  .map-category-label select {
    width: 100%;
    font-size: var(--text-min);
    height: 44px;
  }
  .map-tools {
    order: 2;
    gap: 7px;
  }
  .map-tool {
    padding: 8px 10px;
    min-width: 44px;
    min-height: 44px;
  }
  .map-stage {
    height: 470px;
  }
  .map-status-row {
    font-size: var(--text-min);
    padding: 9px 12px;
    min-height: 48px;
    align-items: flex-start;
  }
  .map-hint {
    display: none;
  }
  .map-detail {
    top: auto;
    bottom: 30px;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100% - 55px);
    border-radius: 7px;
    box-shadow: 0 2px 22px #18291d35;
  }
  .map-panel-header {
    min-height: 44px;
    padding-left: 15px;
  }
  .map-panel-header .eyebrow {
    font-size: var(--text-min);
  }
  .map-panel-image img {
    height: 120px;
  }
  .map-panel-body {
    padding: 15px 17px;
  }
  .map-panel-body h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  .map-panel-body > p {
    font-size: var(--text-min);
    line-height: 1.65;
    margin-bottom: 12px;
  }
  .map-panel-actions {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .map-panel-actions .btn {
    font-size: var(--text-min);
    padding: 10px 14px;
    flex: 1;
  }
  .map-panel-actions .text-link {
    font-size: var(--text-min);
    margin: 0;
    flex: 1;
    line-height: 1.6;
  }
  .map-panel-actions .text-link:after {
    display: none;
  }
  .map-loading {
    width: 80%;
    font-size: var(--text-min);
  }
  .map-page-heading h1 {
    font-size: 2.1875rem;
  }
  .map-page-heading p {
    font-size: var(--text-min);
  }
  .map-page-heading .section-heading {
    margin-top: 14px;
    margin-bottom: 21px;
  }
  .map-page-heading .btn {
    margin-top: 13px;
    font-size: var(--text-min);
    min-height: 44px;
  }
  .map-page-layout {
    display: flex;
    flex-direction: column;
    overflow: visible;
    border: none;
    gap: 25px;
  }
  .map-page-layout .map-shell {
    border: 1px solid #cbd3bf;
    border-radius: 6px;
    width: 100%;
  }
  .map-page-layout .map-toolbar {
    padding: 12px;
    height: auto;
  }
  .map-page-layout .map-search {
    flex-basis: 100%;
  }
  .map-page-layout .map-detail {
    width: auto;
    right: 10px;
    left: 10px;
  }
  .map-page-layout .map-stage {
    height: calc(100dvh - 270px);
    min-height: 350px;
    max-height: 560px;
  }
  .map-page-layout .map-status-row {
    font-size: var(--text-min);
  }
  .map-page-layout .map-results {
    height: 380px;
    border: 1px solid #cbd3bf;
    border-radius: 5px;
    position: relative;
    width: 100%;
  }
  .map-results-header {
    height: 60px;
    padding: 17px;
  }
  .map-result-items {
    top: 60px;
  }
  .map-result {
    gap: 14px;
    padding: 13px 15px;
  }
  .map-result > img {
    width: 56px;
    height: 56px;
  }
  .map-result strong {
    font-size: var(--text-min);
  }
  .map-result small {
    font-size: var(--text-min);
  }
  .map-result > .icon {
    margin-left: auto;
  }
  .map-note {
    font-size: var(--text-min);
    margin-top: 20px;
  }
  .leaflet-control-zoom a {
    width: 44px !important;
    height: 44px !important;
  }
  .leaflet-container .leaflet-control-attribution {
    font-size: var(--text-min);
  }
  .map-page-heading .breadcrumb {
    padding-top: 12px;
  }
}
html:not(.js) .map-toolbar,
html:not(.js) .map-loading {
  display: none;
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 78px;
  }
}
@media (max-width: 700px) {
  .map-search input,
  .map-category-label select {
    font-size: var(--text-min);
  }
  .map-panel-body > p {
    font-size: var(--text-min);
    line-height: 1.6;
  }
  .map-result strong {
    font-size: var(--text-min);
  }
}

/* Text can grow without clipping the map controls. */
.map-toolbar,
.map-page-layout .map-toolbar {
  flex-wrap: wrap;
  height: auto;
}
.map-search {
  min-height: 52px;
}
.map-search input {
  height: auto;
  min-height: 50px;
}
.map-category-label select {
  height: auto;
  min-height: 52px;
}
.map-status-row {
  flex-wrap: wrap;
  gap: 6px 20px;
}
.map-panel-header .eyebrow {
  letter-spacing: 0.04em;
}
.map-detail {
  width: min(370px, calc(100% - 36px));
}
.map-panel-body,
.map-group-place > span {
  overflow-wrap: anywhere;
}
.map-panel-actions .btn {
  min-height: 52px;
}
.leaflet-control-attribution {
  max-width: 100%;
  white-space: normal;
}
@media (max-width: 700px) {
  .map-detail,
  .map-page-layout .map-detail {
    width: auto;
    bottom: 60px;
    max-height: calc(100% - 82px);
  }
  .map-panel-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .map-panel-actions .text-link {
    min-height: 44px;
  }
  .map-category-label {
    flex-basis: calc(100% - 115px);
  }
}
