/* Map is the surface; recommendations and filters are dismissible layers within it. */
.map-workspace {
  display: block;
}
.map-workspace .map-panel {
  overflow: hidden;
  border-radius: 24px;
  isolation: isolate;
}
.map-workspace #map {
  height: calc(100svh - 235px);
  min-height: 570px;
  max-height: 1000px;
}
.map-overlay-toolbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}
.map-overlay-toolbar button {
  pointer-events: auto;
  background: #fffefbf2;
  box-shadow: 0 6px 24px #243d371c;
  border-radius: 14px;
  font-size: 13px;
}
.map-overlay-toolbar button[aria-expanded='true'] {
  background: var(--ink);
  color: white;
}
.map-group-dock {
  position: absolute;
  right: 14px;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 4;
  padding: 7px;
  background: #fffffff0;
  border: 1px solid #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 24px #243d3720;
}
.map-group-dock button {
  width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--group, var(--ink));
  border-radius: 13px;
}
.map-group-dock .icon {
  width: 20px;
  height: 20px;
}
.map-group-dock button[aria-pressed='true'] {
  background: var(--group, var(--ink));
  color: white;
}
.map-suggestions,
.map-filter-panel {
  position: absolute;
  top: 76px;
  bottom: 76px;
  width: 320px;
  max-width: calc(100% - 102px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  background: #fffefbf5;
  backdrop-filter: blur(16px);
  border: 1px solid #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px #243d3726;
  animation: panel-arrive 0.24s ease;
  overflow: hidden;
  padding: 16px;
}
.map-suggestions {
  left: 14px;
}
.map-filter-panel {
  right: 84px;
  width: 340px;
  overflow-y: auto;
  margin: 0;
}
.map-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.map-panel-heading h2 {
  font-size: 20px;
  margin: 3px 0 0;
}
.map-panel-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1.2px;
}
.map-panel-heading button {
  flex: none;
  width: 44px;
  padding: 0;
  background: transparent;
  border: 0;
}
.map-filter-panel .search-row {
  flex-direction: column;
}
.map-filter-panel .zone-pick {
  max-width: none;
}
.map-filter-panel .chips {
  flex-wrap: wrap;
  overflow: visible;
}
.map-filter-panel .groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 12px;
}
.map-filter-panel .groups button {
  justify-content: flex-start;
  border-radius: 12px;
}
.map-filter-panel .chip-gap {
  display: none;
}
.map-filter-panel .kinds button {
  font-size: 12px;
  white-space: normal;
  text-align: left;
}
.map-suggestions .rail {
  display: block;
  flex: 1;
  min-height: 0;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  padding: 2px 4px 8px 0;
}
.map-suggestions .rail .place-card {
  max-width: none;
  width: 100%;
  margin: 0 0 14px;
  scroll-snap-align: start;
}
.map-suggestions .poster {
  height: 132px;
}
.map-suggestions .rail-heading {
  font-size: 12px;
  margin-bottom: 8px;
}
.map-suggestions .sort-pick {
  font-size: 12px;
}
.map-suggestions .sort-pick select {
  font-size: 14px;
}
.map-workspace .map-tools {
  top: auto;
  bottom: 25px;
  left: 14px;
  right: 84px;
  z-index: 3;
}
.map-workspace .map-tools button {
  background: #fffefbf2;
  min-height: 44px;
}
.map-workspace .maplibregl-ctrl-top-right {
  top: auto;
  bottom: 32px;
}
.map-workspace .map-note {
  z-index: 6;
}
.map-workspace .map-note button {
  min-height: 44px;
}
@keyframes panel-arrive {
  from {
    opacity: 0;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (max-width: 800px) {
  body[data-view='map'] .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  #view-map .page-head {
    gap: 10px;
    margin: 14px 0;
  }
  #view-map .page-head .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  #view-map .page-head.compact h1 {
    font-size: 20px;
    max-width: 190px;
  }
  .map-workspace #map {
    height: calc(100svh - 200px);
    min-height: 510px;
  }
  .map-workspace .map-panel {
    border-radius: 20px;
  }
  .map-overlay-toolbar {
    left: 10px;
    right: 10px;
    top: 10px;
  }
  .map-overlay-toolbar button {
    font-size: 12px;
    padding: 9px 10px;
  }
  .map-group-dock {
    right: 10px;
    top: 68px;
    padding: 5px;
    gap: 5px;
    border-radius: 17px;
  }
  .map-filter-panel,
  .map-suggestions {
    top: 68px;
    bottom: 84px;
    max-width: calc(100% - 84px);
    padding: 12px;
  }
  .map-suggestions {
    left: 10px;
  }
  .map-filter-panel {
    right: 72px;
  }
  .map-panel-heading h2 {
    font-size: 17px;
  }
  .map-panel-heading .eyebrow {
    display: none;
  }
  .map-suggestions .rail-heading {
    flex-wrap: wrap;
    gap: 0;
  }
  .map-suggestions .sort-pick {
    display: block;
  }
  .map-suggestions .sort-pick select {
    width: 100%;
  }
  .map-suggestions .place-card h3 {
    font-size: 16px;
  }
  .map-suggestions .place-card .copy {
    padding: 10px;
  }
  .map-suggestions .place-card .actions button {
    width: 100%;
    font-size: 12px;
  }
  .map-suggestions .poster {
    height: 105px;
  }
  .map-filter-panel .chips button {
    font-size: 12px;
    padding: 8px;
  }
  .map-workspace .map-tools {
    left: 10px;
    right: 72px;
    bottom: 24px;
    gap: 4px;
  }
  .map-workspace .map-tools button {
    font-size: 11px;
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .map-filter-panel,
  .map-suggestions {
    animation: none;
  }
}
