:root {
  color-scheme: light;
  --collapsed-rail-width: 78px;
  --collapsed-rail-height: 72px;
  --map-bg: #efe8db;
  --panel-bg: rgba(243, 240, 234, 0.94);
  --panel-border: rgba(63, 107, 85, 0.22);
  --panel-shadow: 0 14px 34px rgba(18, 18, 18, 0.18);
  --text: #1c1b18;
  --muted: #5a564f;
  --accent: #3f6b55;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100dvh;
  margin: 0;
  overscroll-behavior: none;
}

body {
  font-family: "Alata", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: var(--map-bg);
}

#map-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

#map {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.35), transparent 34%),
    linear-gradient(180deg, #e7dfd0, #d7cfbe);
}

.map-brand-badge {
  position: absolute;
  top: max(0.8rem, env(safe-area-inset-top));
  left: max(0.8rem, env(safe-area-inset-left));
  z-index: 560;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.55rem 0.38rem 0.42rem;
  color: var(--text);
  background: rgba(247, 243, 236, 0.9);
  border: 1px solid rgba(63, 107, 85, 0.16);
  box-shadow: 0 10px 22px rgba(18, 18, 18, 0.14);
  backdrop-filter: blur(10px);
}

.map-brand-badge img {
  display: block;
  width: 2.1rem;
  height: 2.1rem;
}

.map-brand-badge p,
.map-brand-badge span {
  margin: 0;
}

.map-brand-badge p {
  font-family: "Architects Daughter", "Comic Sans MS", cursive;
  font-size: 1.05rem;
  line-height: 0.95;
}

.map-brand-badge span {
  display: block;
  margin-top: 0.12rem;
  color: var(--accent);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.map-brand-return {
  display: inline-block;
  margin-top: 0.32rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.map-brand-return:visited,
.map-brand-return:hover,
.map-brand-return:focus {
  color: var(--accent);
  text-decoration: underline;
}

.location-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(420px, 100vw);
  z-index: 550;
  background: rgba(247, 243, 236, 0.96);
  border-right: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: transform 0.28s ease;
}

body.is-embedded-map .location-panel {
  display: none;
}

.location-panel.is-collapsed {
  transform: translateX(calc(-100% + var(--collapsed-rail-width)));
}

.location-panel__toggle {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 116px;
  border: 1px solid var(--panel-border);
  border-left: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    rgba(240, 235, 226, 0.98);
  box-shadow: 8px 12px 26px rgba(18, 18, 18, 0.12);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 0 14px 14px 0;
}

.location-panel__toggle-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.location-panel.is-collapsed .location-panel__toggle-icon {
  transform: rotate(180deg);
}

.location-panel__content,
.location-panel__content-view,
.location-panel__gallery-view {
  flex: 1;
}

.location-panel__filters {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem 0.9rem;
  border-bottom: 1px solid rgba(63, 107, 85, 0.12);
  background:
    linear-gradient(180deg, rgba(249, 245, 238, 0.98), rgba(244, 239, 231, 0.95));
  box-shadow: 0 8px 18px rgba(18, 18, 18, 0.05);
  transition:
    padding 0.28s ease,
    gap 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease;
}

.location-panel__filter {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(63, 107, 85, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(234, 228, 217, 0.98));
  box-shadow: 0 6px 16px rgba(18, 18, 18, 0.08);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.location-panel__filter:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(18, 18, 18, 0.12);
}

.location-panel__filter.is-active {
  border-color: rgba(63, 107, 85, 0.7);
  background:
    linear-gradient(180deg, rgba(98, 147, 117, 0.22), rgba(241, 236, 228, 0.98));
  box-shadow:
    inset 0 0 0 2px rgba(63, 107, 85, 0.18),
    0 8px 18px rgba(18, 18, 18, 0.12);
}

.location-panel__filter img {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  transition:
    filter 0.18s ease,
    opacity 0.18s ease;
}

.location-panel__filter:not(.is-active) img {
  filter: grayscale(1) saturate(0);
  opacity: 0.8;
}

.location-panel.is-collapsed .location-panel__brand,
.location-panel.is-collapsed .location-panel__content-view,
.location-panel.is-collapsed .location-panel__gallery-view {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.location-panel.is-collapsed .location-panel__filters {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--collapsed-rail-width);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 0.7rem 1rem;
  border-left: 1px solid rgba(63, 107, 85, 0.12);
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(249, 245, 238, 0.98), rgba(239, 233, 223, 0.96));
  box-shadow: none;
}

.location-panel__brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1.25rem 1.15rem;
  border-bottom: 1px solid rgba(63, 107, 85, 0.16);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(226, 220, 207, 0.95), rgba(240, 235, 226, 0.98));
}

.location-panel__brand::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(63, 107, 85, 0.85), rgba(123, 197, 154, 0.3));
}

.location-panel__brand-copy p,
.location-panel__brand-copy span {
  margin: 0;
}

.location-panel__brand-copy p {
  font-family: "Architects Daughter", "Comic Sans MS", cursive;
  font-size: 1.72rem;
  line-height: 0.95;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.location-panel__brand-copy span {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.28rem 0.55rem 0.22rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(63, 107, 85, 0.16);
}

.location-panel__brand-copy .map-brand-return {
  display: block;
  width: fit-content;
  margin-top: 0.42rem;
  font-size: 0.84rem;
}

.location-panel__content-view,
.location-panel__gallery-view {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.35rem 1.25rem 6rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.location-panel__content-view::-webkit-scrollbar,
.location-panel__gallery-view::-webkit-scrollbar {
  display: none;
}

.location-panel__content-view {
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    filter 0.2s ease;
}

.location-panel__content-view.is-switching-out {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
}

.location-panel__content-view.is-switching-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.location-panel__head {
  display: block;
  margin-bottom: 1rem;
}

.location-panel__eyebrow {
  margin: 0 0 0.3rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.location-panel h2 {
  margin: 0;
  font-family: "Architects Daughter", "Comic Sans MS", cursive;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 0.95;
}

.location-panel__lead {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  line-height: 1.55;
}

.location-panel__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.18rem;
  column-gap: 0.18rem;
  row-gap: 0.18rem;
  margin: 0 0 1.1rem;
}

.location-panel__photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(63, 107, 85, 0.12);
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(18, 18, 18, 0.08);
}

.location-panel__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.location-panel__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(28, 27, 24, 0.08));
  pointer-events: none;
}

.location-panel__photo:hover img {
  transform: scale(1.02);
}

.location-panel__photo-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(28, 27, 24, 0.46);
  color: #fff;
  font-family: "Architects Daughter", "Comic Sans MS", cursive;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
}

.location-panel__gallery-head {
  position: sticky;
  top: -1.35rem;
  z-index: 2;
  margin: 0 -1.25rem 1rem;
  padding: 1rem 1.25rem 0.9rem;
  background:
    linear-gradient(180deg, rgba(247, 243, 236, 0.98), rgba(247, 243, 236, 0.92));
  border-bottom: 1px solid rgba(63, 107, 85, 0.12);
}

.location-panel__back {
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
}

.location-panel__back span {
  font-size: 1.6rem;
  line-height: 1;
}

.location-panel__gallery-list {
  display: grid;
  gap: 0.8rem;
}

.location-panel__gallery-image {
  margin: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(63, 107, 85, 0.12);
  overflow: hidden;
}

.location-panel__gallery-image img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(18, 18, 18, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 5rem;
}

.map-lightbox[hidden] {
  display: none;
}

.map-lightbox__stage {
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: grid;
  place-items: center;
}

.map-lightbox__stage img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
}

.map-lightbox__close,
.map-lightbox__nav {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.map-lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
}

.map-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 72px;
  font-size: 2.4rem;
  line-height: 1;
}

.map-lightbox__nav--prev {
  left: 1rem;
}

.map-lightbox__nav--next {
  right: 1rem;
}

.location-panel__sections {
  display: grid;
  gap: 1rem;
}

.location-panel__section {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(63, 107, 85, 0.16);
  padding: 1rem;
  scroll-margin-top: 1rem;
}

.location-panel__section-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
}

.location-panel__section-icon {
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 2.1rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(231, 224, 212, 0.95));
  border: 1px solid rgba(63, 107, 85, 0.14);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.location-panel__section-icon img {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}

.location-panel__section.is-targeted {
  outline: 2px solid rgba(63, 107, 85, 0.45);
}

.location-panel__section h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.location-panel__section p,
.location-panel__section ul {
  margin: 0;
  line-height: 1.55;
}

.location-panel__section ul {
  padding-left: 1.15rem;
}

.leaflet-top.leaflet-right {
  top: 1rem;
  right: 1rem;
}

.leaflet-control-zoom {
  box-shadow: var(--panel-shadow);
}

.leaflet-control-zoom a {
  color: var(--text);
  width: 42px;
  height: 42px;
  line-height: 42px;
  font-size: 1.35rem;
}

.leaflet-popup-content-wrapper {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(253, 251, 247, 0.98), rgba(242, 236, 226, 0.98));
  box-shadow: 0 18px 32px rgba(18, 18, 18, 0.18);
  font-family: "Alata", "Trebuchet MS", sans-serif;
  border: 1px solid rgba(63, 107, 85, 0.14);
}

.leaflet-popup-content {
  margin: 0;
}

.leaflet-popup-tip {
  background: rgba(242, 236, 226, 0.98);
  box-shadow: none;
}

.leaflet-popup-close-button {
  top: 10px !important;
  right: 10px !important;
  color: rgba(28, 27, 24, 0.62) !important;
  font-size: 1.1rem !important;
}

.leaflet-popup-close-button:hover {
  color: rgba(28, 27, 24, 0.92) !important;
}

.map-popup-card {
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
}

.map-popup-card__icon {
  width: 2.9rem;
  height: 2.9rem;
  flex: 0 0 2.9rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(228, 221, 209, 0.95));
  border: 1px solid rgba(63, 107, 85, 0.16);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.map-popup-card__icon img {
  display: block;
  width: 1.6rem;
  height: 1.6rem;
  object-fit: contain;
}

.map-popup-card__body h3,
.map-popup-card__body p {
  margin: 0;
}

.map-popup-card__eyebrow {
  margin-bottom: 0.18rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.63rem;
}

.map-popup-card__body h3 {
  font-family: "Architects Daughter", "Comic Sans MS", cursive;
  font-size: 1.28rem;
  line-height: 1;
}

.map-popup-card__hint {
  display: none;
}

.embedded-map-popup {
  width: min(250px, 72vw);
  padding: 1rem;
  text-align: center;
}

.embedded-map-popup p,
.embedded-map-popup h3 {
  margin: 0;
}

.embedded-map-popup__eyebrow {
  margin-bottom: 0.25rem !important;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.embedded-map-popup h3 {
  font-family: "Architects Daughter", "Comic Sans MS", cursive;
  font-size: 1.32rem;
  line-height: 1.05;
}

.embedded-map-popup h3 + p {
  margin-top: 0.42rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.embedded-map-popup__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  margin-top: 0.8rem;
  padding: 0.58rem 0.85rem;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.embedded-map-popup__link:visited,
.embedded-map-popup__link:hover,
.embedded-map-popup__link:focus {
  color: #fff;
}

.map-marker {
  border: 0;
  background: transparent;
}

.map-marker--hotspot .map-marker__hotspot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.001);
}

.map-marker__frame {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  transform: scale(var(--marker-zoom-scale, 1));
  transform-origin: 50% 100%;
  transition: filter 0.22s ease;
}

.leaflet-container.is-marker-zoom-animating .map-marker__frame {
  transition:
    transform 0.25s cubic-bezier(0, 0, 0.25, 1),
    filter 0.22s ease;
}

.map-marker__fire-stack {
  position: absolute;
  inset: 0;
  transform: scale(var(--fire-render-scale, 1));
  transform-origin: 50% 100%;
}

.map-marker__frame--fire img {
  position: absolute;
  inset: 0;
}

.map-marker__fire-base,
.map-marker__fire-overlay {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.map-marker__fire-overlay {
  opacity: 0;
  transition: opacity 2s ease;
}

.map-marker__fire-overlay.is-visible {
  opacity: 1;
}

.map-marker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.22));
}

.map-marker--primary.is-selected {
  z-index: 700 !important;
}

.map-marker--primary.is-selected .map-marker__frame {
  transform: translateY(-5px) scale(calc(var(--marker-zoom-scale, 1) * 1.08));
}

.map-marker--primary.is-selected img {
  filter:
    drop-shadow(0 0 0 rgba(0, 0, 0, 0))
    drop-shadow(0 14px 18px rgba(0, 0, 0, 0.22))
    drop-shadow(0 0 14px rgba(115, 194, 145, 0.55));
}

.map-location-highlight {
  animation: map-location-highlight-fade 3.2s ease-out forwards;
  transform-origin: center;
}

.map-location-highlight.leaflet-interactive {
  pointer-events: none;
}

@keyframes map-location-highlight-fade {
  0% {
    stroke-opacity: 0;
    fill-opacity: 0;
  }

  12% {
    stroke-opacity: 0.95;
    fill-opacity: 0.24;
  }

  55% {
    stroke-opacity: 0.72;
    fill-opacity: 0.18;
  }

  100% {
    stroke-opacity: 0;
    fill-opacity: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --collapsed-rail-height: 64px;
  }

  .location-panel {
    width: 100%;
    max-height: min(58dvh, 560px);
    top: auto;
    border-right: 0;
    border-top: 1px solid var(--panel-border);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -14px 34px rgba(18, 18, 18, 0.18);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    touch-action: pan-y;
  }

  .location-panel::-webkit-scrollbar {
    display: none;
  }

  .location-panel.is-dragging {
    transition: none;
  }

  .location-panel.is-collapsed {
    transform: translateY(calc(100% - var(--collapsed-rail-height)));
    overflow: hidden;
    touch-action: none;
  }

  .location-panel__toggle {
    position: sticky;
    top: 0;
    left: 0;
    right: auto;
    width: 100%;
    height: 92px;
    transform: none;
    translate: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 20px 20px 0 0;
    touch-action: none;
    background: rgba(247, 243, 236, 0.94);
    backdrop-filter: blur(8px);
  }

  .location-panel__toggle::before {
    content: "";
    width: 88px;
    height: 7px;
    border-radius: 999px;
    background: rgba(63, 107, 85, 0.48);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      0 1px 5px rgba(18, 18, 18, 0.08);
  }

  .location-panel__toggle-icon {
    display: none;
  }

  .location-panel.is-collapsed .location-panel__toggle-icon {
    transform: none;
  }

  .location-panel__brand {
    display: none;
  }

  .map-brand-badge {
    display: inline-flex;
  }

  .location-panel.is-collapsed .location-panel__filters {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--collapsed-rail-height);
    flex-direction: row;
    justify-content: center;
    gap: 0.28rem;
    padding: 1.32rem max(0.75rem, env(safe-area-inset-right)) max(0.38rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    border-right: 0;
    border-top: 1px solid rgba(63, 107, 85, 0.12);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    touch-action: none;
  }

  .location-panel.is-collapsed .location-panel__filter {
    touch-action: manipulation;
  }

  .location-panel__content-view,
  .location-panel__gallery-view {
    padding: 0.7rem 0.95rem 3.8rem;
    overflow: visible;
  }

  .location-panel__filters {
    gap: 0.3rem;
    padding: 1.15rem max(0.95rem, env(safe-area-inset-right)) 0.2rem max(0.95rem, env(safe-area-inset-left));
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
  }

  .location-panel:not(.is-collapsed) .location-panel__filters {
    position: static;
    width: auto;
    height: auto;
    min-height: 4.6rem;
    margin-bottom: 0.45rem;
    padding-top: 1.45rem;
    padding-bottom: 0.55rem;
    border: 0;
    border-radius: 0;
    overflow-y: visible;
  }

  .location-panel__filters::-webkit-scrollbar {
    display: none;
  }

  .map-popup-card {
    cursor: pointer;
    touch-action: manipulation;
  }

  .map-popup-card__hint {
    display: inline-block;
    margin-top: 0.22rem;
    color: #1f65b7;
    font-size: 0.72rem;
    line-height: 1;
    text-decoration: underline;
  }

  .location-panel__filter {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
  }

  .location-panel__filter img {
    width: 1.12rem;
    height: 1.12rem;
  }

  .location-panel__head {
    margin-bottom: 0.42rem;
  }

  .location-panel__eyebrow {
    margin-bottom: 0.16rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .location-panel h2 {
    font-size: 1.48rem;
    line-height: 0.98;
  }

  .location-panel__lead {
    margin-bottom: 0.65rem;
    font-size: 0.86rem;
    line-height: 1.36;
  }

  .location-panel__photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.18rem;
    margin-bottom: 0.68rem;
  }

  .location-panel__photo {
    box-shadow: 0 5px 10px rgba(18, 18, 18, 0.08);
  }

  .location-panel__photo img {
    aspect-ratio: 1 / 1;
  }

  .location-panel__photo-more {
    font-size: 1.24rem;
  }

  .location-panel__sections {
    gap: 0.56rem;
  }

  .location-panel__section {
    padding: 0.68rem;
  }

  .location-panel__section-head {
    gap: 0.48rem;
    margin-bottom: 0.28rem;
  }

  .location-panel__section-icon {
    width: 1.72rem;
    height: 1.72rem;
    flex-basis: 1.72rem;
  }

  .location-panel__section-icon img {
    width: 0.92rem;
    height: 0.92rem;
  }

  .location-panel__section h3 {
    font-size: 0.76rem;
    letter-spacing: 0.07em;
  }

  .location-panel__section p,
  .location-panel__section ul {
    font-size: 0.84rem;
    line-height: 1.38;
  }

  .location-panel__gallery-head {
    top: -0.75rem;
    margin: 0 -0.95rem 0.65rem;
    padding: 0.72rem 0.95rem 0.55rem;
  }

  .location-panel__gallery-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.2rem;
  }

  .location-panel__gallery-image img {
    aspect-ratio: 1 / 1;
  }

  .map-lightbox {
    padding: 4.25rem 0.85rem 4.5rem;
  }

  .map-lightbox__close {
    top: max(0.85rem, env(safe-area-inset-top));
    right: max(0.85rem, env(safe-area-inset-right));
  }

  .map-lightbox__nav {
    top: auto;
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    transform: none;
    width: 48px;
    height: 52px;
  }

  .map-lightbox__nav--prev {
    left: calc(50% - 58px);
  }

  .map-lightbox__nav--next {
    right: calc(50% - 58px);
  }
}
