*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --map-bg: var(--color-bg);
  --map-ink: var(--color-text);
  --map-muted: var(--color-muted);
  --map-panel: var(--color-surface);
  --map-panel-strong: var(--color-surface-soft);
  --map-border: var(--color-border);
  --map-green: #13795b;
  --map-green-soft: #e3f3ec;
  --map-blue: #1246ff;
  --map-blue-soft: #e5edf9;
  --map-yellow: #f4c542;
  --map-orange: #d8651d;
  --map-red: #b4232d;
  --map-purple: #7357a9;
  --map-cluster: #0b0b0f;
  --map-shadow: var(--shadow-md);
}

html {
  min-height: 100%;
  background: var(--map-bg);
}

body.dlp-map-page {
  min-height: 100dvh;
  margin: 0;
  background: var(--map-bg);
  color: var(--map-ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  overflow: hidden;
}

.map-shell {
  position: relative;
  width: 100%;
  max-width: 1880px;
  height: calc(100dvh - 120px);
  margin: 0 auto;
  display: block;
  padding: 12px;
  overflow: hidden;
}

.map-stage {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
}

.park-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--map-border);
  border-radius: var(--radius-card);
  background: #dfe9e2;
  box-shadow: var(--map-shadow);
  user-select: none;
}

.park-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 410;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 0 80px rgba(21, 42, 36, .12);
}

.park-map:focus-visible {
  outline: 3px solid #6ea6ff;
  outline-offset: -3px;
}

.leaflet-container {
  background: #dfe9e2;
  color: var(--map-ink);
  font: inherit;
}

.leaflet-control-attribution {
  display: none;
}

.leaflet-tile {
  filter: saturate(.92) contrast(.97) brightness(1.04);
}

.map-bootstrap-overlay {
  filter: saturate(.92) contrast(.97) brightness(1.04);
  image-rendering: auto;
}

.map-marker-icon,
.map-cluster-icon,
.map-route-pin-icon {
  border: 0;
  background: transparent;
}

.map-marker,
.map-cluster {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: .72rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 3px 9px rgba(21, 36, 33, .18), 0 0 0 1px rgba(20, 38, 34, .06);
  cursor: pointer;
}

.map-marker {
  position: relative;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  transition: box-shadow .14s ease, transform .14s ease, opacity .14s ease;
}

.map-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: inherit;
  border-right: 1px solid rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(255, 255, 255, .9);
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
}

.map-marker-label {
  position: relative;
  z-index: 1;
}

.map-marker:hover,
.map-marker:focus-visible {
  outline: none;
  transform: translateY(-2px) scale(1.04);
}

.map-marker.is-compact {
  min-width: 16px;
  width: 16px;
  height: 16px;
  padding: 0;
  border-width: 2px;
  box-shadow: 0 2px 7px rgba(21, 36, 33, .16), 0 0 0 2px rgba(255, 255, 255, .58);
  opacity: .92;
}

.map-marker.is-compact::after {
  content: none;
}

.map-marker.is-selected {
  min-width: 40px;
  height: 40px;
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(216, 240, 107, .68), 0 10px 22px rgba(16, 37, 34, .26);
  z-index: 2;
}

.marker-attraction.wait-low {
  background: var(--map-green);
}

.marker-attraction.wait-medium {
  background: #9c7a00;
}

.marker-attraction.wait-high {
  background: var(--map-orange);
}

.marker-attraction.wait-closed {
  background: #65726c;
}

.marker-entertainment {
  background: var(--map-purple);
}

.marker-restaurant {
  background: var(--map-blue);
}

.marker-shop {
  background: #007f73;
}

.marker-hotel {
  background: #7a4f12;
}

.marker-service {
  background: #5f53b8;
}

.marker-toilet {
  background: #39566b;
}

.map-cluster {
  --cluster-accent: #31443d;
  min-width: 38px;
  height: 28px;
  gap: 6px;
  border: 1px solid rgba(18, 40, 34, .16);
  background: rgba(255, 255, 255, .92);
  color: #152721;
  font-size: .78rem;
  transition: transform .14s ease;
  box-shadow: 0 5px 14px rgba(21, 36, 33, .18), inset 0 0 0 1px rgba(255, 255, 255, .65);
  backdrop-filter: blur(2px);
}

.map-cluster::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cluster-accent);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .75);
}

.cluster-count {
  min-width: 1.2em;
  text-align: center;
}

.map-cluster:hover,
.map-cluster:focus-visible {
  transform: translateY(-1px) scale(1.04);
}

.cluster-attraction {
  --cluster-accent: #214b3b;
}

.cluster-entertainment {
  --cluster-accent: var(--map-purple);
}

.cluster-restaurant {
  --cluster-accent: var(--map-blue);
}

.cluster-shop {
  --cluster-accent: #007f73;
}

.cluster-hotel {
  --cluster-accent: #7a4f12;
}

.cluster-service {
  --cluster-accent: #5f53b8;
}

.cluster-toilet {
  --cluster-accent: #39566b;
}

.cluster-mixed {
  --cluster-accent: #26332f;
}

.map-route-line-shadow {
  stroke: rgba(255, 255, 255, .92);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-route-line {
  stroke: #ff3ed1;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12 13;
  animation: map-route-dash 1.8s linear infinite;
  filter: drop-shadow(0 3px 5px rgba(11, 11, 15, .22));
}

@keyframes map-route-dash {
  to {
    stroke-dashoffset: -25;
  }
}

.map-route-pin {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ff3ed1;
  color: #fff;
  font-size: .72rem;
  font-weight: 950;
  box-shadow: 0 6px 14px rgba(11, 11, 15, .24);
}

.map-user-pin {
  min-width: 42px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #00a36c;
  color: #ffffff;
  padding: 0 9px;
  font-size: .72rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(0, 88, 64, .24);
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(11, 11, 15, .2);
}

.leaflet-popup-content {
  min-width: 190px;
  margin: 12px;
  font: inherit;
}

.map-popup {
  display: grid;
  gap: 6px;
}

.map-popup h2 {
  margin: 0;
  color: var(--map-ink);
  font-size: 1rem;
  line-height: 1.18;
}

.map-popup p {
  margin: 0;
  color: var(--map-muted);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
}

.park-map.is-placing-user {
  cursor: crosshair;
}

.map-refresh-btn {
  min-height: 38px;
  border: 1px solid rgba(18, 49, 47, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: var(--map-ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: none;
}

.map-refresh-btn:hover,
.map-refresh-btn:focus-visible {
  outline: none;
  border-color: var(--map-blue);
}

.map-side {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 720;
  min-width: 0;
  min-height: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
}

.map-side > * {
  pointer-events: auto;
}

.map-sheet-handle {
  display: none;
  justify-self: center;
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: rgba(28, 45, 40, .18);
}

.map-sheet-toggle,
.map-filter-option {
  min-width: 280px;
  min-height: 56px;
  display: inline-grid;
  grid-template-columns: 40px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(18, 49, 47, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: #172f55;
  padding: 8px 12px;
  font: inherit;
  box-shadow: 0 14px 34px rgba(11, 11, 15, .18);
  cursor: pointer;
}

.map-sheet-toggle:hover,
.map-sheet-toggle:focus-visible,
.map-filter-option:hover,
.map-filter-option:focus-visible {
  outline: none;
  border-color: var(--map-blue);
}

.sheet-toggle-icon,
.sheet-toggle-arrows {
  display: inline-grid;
  place-items: center;
}

.sheet-toggle-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--map-blue);
  color: #ffffff;
}

.sheet-toggle-icon svg,
.sheet-toggle-arrows svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-toggle-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sheet-toggle-arrows {
  color: var(--map-blue);
}

.map-side.is-expanded .sheet-toggle-arrow-up,
.map-side.is-collapsed .sheet-toggle-arrow-down {
  display: none;
}

.sheet-toggle-title {
  overflow: hidden;
  font-size: .95rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-toggle-count {
  color: var(--map-muted);
  font-size: .74rem;
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
}

.map-sheet-body {
  width: min(100%, 1220px);
  max-height: min(56dvh, 520px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(360px, .95fr) minmax(420px, 1.25fr);
  grid-template-areas: "status filters results";
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(18, 49, 47, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 44px rgba(11, 11, 15, .18);
}

.map-side.is-collapsed .map-sheet-body {
  display: none;
}

.map-status-panel,
.map-filter-panel,
.map-results-panel {
  min-width: 0;
  min-height: 0;
}

.map-status-panel {
  grid-area: status;
  display: grid;
  align-content: start;
  gap: 10px;
}

.map-filter-panel {
  grid-area: filters;
  display: grid;
  align-content: start;
  gap: 10px;
}

.map-filter-panel-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.map-filter-panel-heading h2 {
  margin: 0;
  color: var(--map-ink);
  font-size: 1rem;
  line-height: 1.1;
}

.map-results-panel {
  grid-area: results;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
}

.map-status-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.map-kicker {
  margin: 0 0 4px;
  color: var(--map-green);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-status-row h1 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.12;
}

.map-refresh-btn {
  padding: 0 12px;
  flex: 0 0 auto;
}

.map-status {
  margin: 0;
  color: var(--map-muted);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.35;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.map-primary-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.map-filter-option {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  justify-items: stretch;
  padding: 6px 9px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(11, 11, 15, .08);
  text-align: left;
}

.map-filter-option > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-filter-option-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--map-panel-strong);
  color: var(--map-blue);
  font-size: .72rem;
  font-weight: 950;
}

.map-filter-option-state {
  color: transparent;
  font-size: .9rem;
  font-weight: 950;
  text-align: center;
}

.map-filter-option.active .map-filter-option-icon {
  background: var(--map-blue);
  color: #fff;
}

.map-filter-option.active .map-filter-option-state {
  color: var(--map-blue);
}

.map-filter-option.active {
  border-color: var(--map-blue);
  background: rgba(11, 99, 255, .08);
  color: var(--map-ink);
}

.filter-chip {
  min-height: 36px;
  border: 1px solid var(--map-border);
  border-radius: 999px;
  background: var(--map-panel);
  color: var(--map-muted);
  padding: 7px 11px;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--map-blue);
  background: var(--map-blue);
  color: #fff;
}

.filter-chip:focus-visible {
  outline: 2px solid #6ea6ff;
  outline-offset: 2px;
}

.map-search {
  display: grid;
  gap: 5px;
  color: var(--map-muted);
  font-size: .78rem;
  font-weight: 900;
}

.map-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--map-border);
  border-radius: 8px;
  background: #fff;
  color: var(--map-ink);
  padding: 9px 11px;
  font: inherit;
}

.map-search input:focus-visible {
  border-color: var(--map-blue);
  outline: 2px solid #6ea6ff;
  outline-offset: 1px;
}

.map-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.summary-pill,
.map-detail,
.map-list-item {
  background: var(--map-panel);
  border: 1px solid var(--map-border);
  border-radius: 8px;
}

.summary-pill {
  padding: 8px 9px;
  box-shadow: none;
}

.summary-pill:nth-child(2) {
  box-shadow: none;
}

.summary-pill:nth-child(3) {
  box-shadow: none;
}

.summary-pill strong,
.summary-pill span {
  display: block;
}

.summary-pill strong {
  font-size: 1rem;
  line-height: 1;
}

.summary-pill span {
  margin-top: 4px;
  color: var(--map-muted);
  font-size: .66rem;
  font-weight: 800;
}

.map-detail {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  box-shadow: none;
}

.map-selection-overlay {
  position: absolute;
  right: 18px;
  bottom: 92px;
  z-index: 650;
  width: min(380px, calc(100% - 36px));
  max-height: min(44dvh, 360px);
  overflow: auto;
  padding: 14px 44px 14px 16px;
  box-shadow: 0 16px 36px rgba(11, 11, 15, .22);
  overscroll-behavior: contain;
}

.map-detail.hidden {
  display: none;
}

.map-detail-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--map-muted);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.map-detail-close:hover,
.map-detail-close:focus-visible {
  outline: none;
  background: var(--map-panel-strong);
  color: var(--map-ink);
}

.detail-type {
  color: var(--map-muted);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.map-detail-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.map-detail h2 {
  margin: 0;
  font-size: .98rem;
  line-height: 1.2;
}

.detail-meta,
.detail-line {
  margin: 0;
  color: var(--map-muted);
  font-size: .84rem;
  line-height: 1.35;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-lines {
  display: grid;
  gap: 5px;
}

.cluster-detail-list {
  display: grid;
  gap: 6px;
}

.cluster-detail-button {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--map-border);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  padding: 8px 9px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.cluster-detail-button:hover,
.cluster-detail-button:focus-visible {
  outline: none;
  border-color: var(--map-blue);
  background: var(--map-panel-strong);
}

.cluster-detail-button strong,
.cluster-detail-button small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cluster-detail-button strong {
  color: var(--map-ink);
  font-size: .82rem;
  font-weight: 950;
  line-height: 1.2;
}

.cluster-detail-button small {
  margin-top: 3px;
  color: var(--map-muted);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.2;
}

.cluster-detail-button em {
  justify-self: end;
  max-width: 96px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--map-panel-strong);
  color: var(--map-ink);
  padding: 5px 7px;
  font-size: .68rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-times {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.schedule-time-chip,
.list-schedule span {
  border-radius: 999px;
  background: var(--map-green-soft);
  color: var(--map-green);
  font-size: .72rem;
  font-weight: 950;
  line-height: 1;
}

.schedule-time-chip {
  padding: 6px 8px;
}

.schedule-time-chip.is-more,
.list-schedule span.is-more {
  background: var(--map-panel-strong);
  color: var(--map-muted);
}

.detail-badge {
  border-radius: 8px;
  background: var(--map-panel-strong);
  color: #20362e;
  padding: 5px 8px;
  font-size: .76rem;
  font-weight: 900;
}

.detail-badge.is-green {
  background: var(--map-green-soft);
  color: var(--map-green);
}

.detail-badge.is-blue {
  background: var(--map-blue-soft);
  color: var(--map-blue);
}

.detail-badge.is-red {
  background: #fde7e8;
  color: var(--map-red);
}

.map-list {
  list-style: none;
  display: block;
  margin: 0;
  padding: 0 0 calc(14px + env(safe-area-inset-bottom, 0px));
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.map-list-item {
  display: block;
  overflow: hidden;
  box-shadow: none;
}

.map-list-item + .map-list-item {
  margin-top: 7px;
}

.map-list-item.type-attraction {
  border-left: 4px solid var(--map-green);
}

.map-list-item.type-entertainment {
  border-left: 4px solid var(--map-purple);
}

.map-list-item.type-restaurant {
  border-left: 4px solid var(--map-blue);
}

.map-list-button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 10px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.list-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.list-schedule {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.list-schedule span {
  padding: 5px 7px;
}

.map-picture {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  color: #ffffff;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, .42) 0 10px, transparent 11px),
    linear-gradient(135deg, #008f5b, #0066ff);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .08), 0 8px 18px rgba(17, 24, 39, .10);
}

.map-picture::before {
  content: "";
  position: absolute;
  inset: auto -16px -22px -10px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .24);
  transform: rotate(-8deg);
  z-index: -1;
}

.map-picture::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
}

.map-picture span {
  font-size: .92rem;
  font-weight: 950;
  line-height: 1;
}

.map-picture strong {
  position: absolute;
  left: 6px;
  bottom: 5px;
  font-size: .52rem;
  font-weight: 950;
  letter-spacing: 0;
}

.map-picture-list {
  width: 46px;
  height: 42px;
}

.map-picture-detail {
  width: 96px;
  min-height: 116px;
}

.map-picture-detail span {
  font-size: 1.45rem;
}

.map-picture.tone-easy {
  background: linear-gradient(135deg, #00a36c, #62c554);
}

.map-picture.tone-ride {
  background: linear-gradient(135deg, #0066ff, #00a36c);
}

.map-picture.tone-hot {
  background: linear-gradient(135deg, #ff6a00, #0066ff);
}

.map-picture.tone-closed {
  background: linear-gradient(135deg, #64748b, #172f55);
}

.map-picture.tone-show,
.map-picture.tone-show-vq {
  background: linear-gradient(135deg, #7830ff, #ff4fc4);
}

.map-picture.tone-food,
.map-picture.tone-food-order {
  background: linear-gradient(135deg, #ffb000, #00a36c);
}

.map-picture.tone-shop {
  background: linear-gradient(135deg, #007f73, #ffb000);
}

.map-picture.tone-hotel {
  background: linear-gradient(135deg, #7a4f12, #1246ff);
}

.map-picture.tone-service {
  background: linear-gradient(135deg, #5f53b8, #00a36c);
}

.map-picture.tone-toilet {
  background: linear-gradient(135deg, #39566b, #00a36c);
}

.map-list-button:hover,
.map-list-button:focus-visible {
  outline: none;
  background: var(--map-panel-strong);
}

.map-list-item.is-selected .map-list-button {
  background: #eef7db;
}

.list-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.list-icon.type-attraction {
  background: var(--map-green);
}

.list-icon.type-entertainment {
  background: var(--map-purple);
}

.list-icon.type-restaurant {
  background: var(--map-blue);
}

.list-icon.type-shop {
  background: #007f73;
}

.list-icon.type-hotel {
  background: #7a4f12;
}

.list-icon.type-service {
  background: #5f53b8;
}

.list-icon.type-toilet {
  background: #39566b;
}

.list-copy {
  min-width: 0;
}

.list-title {
  display: block;
  overflow: hidden;
  color: var(--map-ink);
  font-size: .88rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-meta {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--map-muted);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-value {
  justify-self: end;
  max-width: min(178px, 38vw);
  border-radius: 8px;
  background: var(--map-panel-strong);
  color: var(--map-ink);
  padding: 5px 8px;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.list-empty {
  padding: 18px 12px;
  color: var(--map-muted);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 960px) {
  body.dlp-map-page {
    overflow: hidden;
  }

  .map-shell {
    height: calc(100dvh - 120px);
    display: block;
    padding: 10px;
    overflow: hidden;
  }

  .map-stage {
    height: 100%;
    padding: 0;
    min-height: 0;
  }

  .park-map {
    min-height: 0;
    height: 100%;
  }

  .map-side {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .map-sheet-handle {
    display: block;
  }

  .map-sheet-toggle {
    width: min(100%, 560px);
    min-width: 0;
  }

  .map-sheet-body {
    width: 100%;
    max-height: min(62dvh, 520px);
    overflow: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "status"
      "filters"
      "results";
    gap: 10px;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px 20px 8px 8px;
    box-shadow: 0 -12px 30px rgba(11, 11, 15, .16);
    overscroll-behavior: contain;
  }

  .map-selection-overlay {
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    width: min(420px, calc(100% - 24px));
    max-height: min(40dvh, 300px);
  }

  .map-status-panel,
  .map-filter-panel,
  .map-results-panel {
    gap: 8px;
  }

  .map-list {
    max-height: 210px;
  }
}

@media (max-width: 700px) {
  .map-shell {
    height: calc(100dvh - 80px);
    padding: 8px;
  }

  .map-shell .map-side.is-collapsed {
    left: 50%;
    right: auto;
    bottom: 12px;
    width: min(360px, calc(100% - 32px));
    transform: translateX(-50%);
  }

  .map-shell .map-side.is-collapsed .map-sheet-handle,
  .map-shell .map-side.is-collapsed .sheet-toggle-count {
    display: none;
  }

  .map-shell .map-side.is-collapsed .map-sheet-toggle {
    width: 100%;
    min-height: 48px;
    padding: 4px 12px;
  }

  .map-shell .map-side.is-expanded {
    position: absolute;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    height: auto;
    max-height: calc(100% - 24px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "body"
      "toggle";
    align-items: end;
    justify-items: center;
    gap: 8px;
    padding: 0;
    transform: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
  }

  .ptp-page .map-shell .map-side.is-expanded {
    bottom: 12px;
  }

  .map-shell .map-side.is-expanded .map-sheet-handle {
    display: none;
  }

  .map-shell .map-side.is-expanded .map-sheet-toggle {
    grid-area: toggle;
    width: min(360px, 100%);
    min-height: 52px;
    justify-self: center;
    padding: 6px 12px;
  }

  .map-shell .map-side.is-expanded .map-sheet-body {
    grid-area: body;
    width: min(560px, 100%);
    height: auto;
    max-height: none;
    min-height: 0;
    display: block;
    overflow: visible;
    padding: 10px;
    background: var(--map-panel);
    border: 1px solid var(--map-border);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(11, 11, 15, .20);
  }

  .map-shell .map-side.is-expanded .map-status-panel,
  .map-shell .map-side.is-expanded .map-search,
  .map-shell .map-side.is-expanded .map-results-panel {
    display: none;
  }

  .map-shell .map-side.is-expanded .map-filter-panel {
    width: 100%;
    display: grid;
    gap: 9px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .map-shell .map-side.is-expanded .map-primary-filters {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
    background: transparent;
  }

  .map-shell .map-side.is-expanded .map-filter-option {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-radius: 13px;
    padding: 6px 8px;
    box-shadow: none;
    font-size: .76rem;
    text-align: center;
  }

  .map-shell .map-side.is-expanded .map-filter-option-icon {
    display: none;
  }

  .map-shell .map-side.is-expanded .map-filter-option-state {
    display: none;
  }
}

@media (max-width: 380px) {
  .map-shell .map-side.is-expanded .map-primary-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .map-shell {
    height: calc(100dvh - 80px);
    padding: 8px;
  }

  .map-side {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .map-sheet-toggle {
    min-height: 60px;
    padding: 8px 12px 8px 18px;
  }

  .sheet-toggle-title {
    font-size: .9rem;
  }

  .sheet-toggle-count {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .map-sheet-body {
    max-height: min(60dvh, 480px);
    padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .map-selection-overlay {
    left: 10px;
    right: 10px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: min(38dvh, 280px);
  }

  .map-status-row {
    align-items: center;
    flex-direction: row;
  }

  .map-status-row h1 {
    font-size: 1rem;
  }

  .map-status {
    font-size: .72rem;
  }

  .map-refresh-btn {
    width: auto;
  }

  .map-summary {
    display: none;
  }

  .filter-group {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-group::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .map-list-button {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .list-value {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .map-shell .map-side.is-expanded {
    right: 8px;
    bottom: 8px;
    left: 8px;
    max-height: calc(100% - 16px);
  }

  .map-shell .map-side.is-expanded .map-filter-option {
    min-height: 42px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 6px 8px;
    font-size: .72rem;
  }

  .map-shell .map-side.is-expanded .map-filter-option-icon {
    display: none;
  }
}

/* Map view: PTP design kit panel and control styling. */
:root {
  --map-bg: #f5f7fa;
  --map-ink: #111827;
  --map-muted: #64748b;
  --map-panel: #ffffff;
  --map-panel-strong: #eef3fb;
  --map-border: #d9e2ef;
  --map-green: #008f5b;
  --map-green-soft: #e7f8ef;
  --map-blue: #0066ff;
  --map-blue-soft: #e9f1ff;
  --map-yellow: #ffd600;
  --map-orange: #ff6a00;
  --map-red: #b42318;
  --map-purple: #7830ff;
  --map-cluster: #111827;
  --map-shadow: 0 18px 44px rgba(17, 24, 39, .10);
}

body.dlp-map-page {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  color: var(--map-ink);
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.map-stage {
  border: 1px solid var(--map-border);
  border-radius: 8px;
  box-shadow: var(--map-shadow);
}

.park-map {
  border-radius: 8px;
}

.map-sheet-toggle,
.map-sheet-body,
.map-detail,
.map-list-item,
.map-status-panel,
.map-filter-panel,
.map-results-panel {
  border: 1px solid var(--map-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: var(--map-ink);
  box-shadow: 0 12px 30px rgba(17, 24, 39, .08);
}

.map-refresh-btn,
.map-detail-close {
  border: 1px solid var(--map-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--map-ink);
  font-family: var(--ptp-header-font);
  font-weight: 800;
}

.map-refresh-btn,
.filter-chip.active {
  border-color: var(--map-blue);
  background: var(--map-blue);
  color: #ffffff;
}

.map-kicker {
  color: var(--map-blue);
  letter-spacing: .08em;
}

.map-status-row h1,
.map-detail h2 {
  color: var(--map-ink);
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.map-status,
.map-search,
.map-detail p,
.map-list-meta,
.list-meta,
.list-value {
  color: var(--map-muted);
}

.filter-group {
  border-color: var(--map-border);
  background: #eef3fb;
}

.filter-chip {
  border-radius: 7px;
  color: var(--map-muted);
  font-family: var(--ptp-header-font);
  font-weight: 800;
}

.map-search input {
  border: 1px solid var(--map-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--map-ink);
}

.map-marker,
.map-cluster,
.map-route-pin {
  box-shadow: 0 6px 16px rgba(17, 24, 39, .20), 0 0 0 2px rgba(255, 255, 255, .8);
}

.map-marker.is-selected {
  box-shadow: 0 0 0 4px rgba(255, 214, 0, .72), 0 10px 22px rgba(17, 24, 39, .24);
}

.map-marker.wait-low {
  background: var(--map-green);
}

.map-marker.wait-medium {
  background: #d69b00;
}

.map-marker.wait-high {
  background: var(--map-orange);
}

.map-route-pin {
  background: #ff4fc4;
}

.map-sheet-toggle {
  border-radius: 999px;
}

.sheet-toggle-count {
  background: var(--map-blue);
  color: #ffffff;
}

.map-list-button:hover,
.map-list-button:focus-visible,
.map-list-item.is-selected .map-list-button {
  background: #eef7ff;
}

@media (max-width: 760px) {
  .map-sheet-body {
    border-radius: 20px 20px 8px 8px;
  }

  .map-selection-overlay {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .map-picture-detail {
    width: 72px;
    min-height: 92px;
  }
}
