.map-page {
  background:
    radial-gradient(circle at top left, rgba(235, 186, 202, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(177, 202, 161, 0.18), transparent 24%),
    linear-gradient(180deg, #fff, #fff7f9 48%, #fff1f5 100%);
}

.map-page.map-modal-open {
  overflow: hidden;
}

.map-page .navlinks a[data-current="page"] {
  background: var(--pink-2);
  color: var(--ink);
}

.map-page .section {
  padding-top: 30px;
}

.map-page .mapIntro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.map-page .mapTitle {
  margin-bottom: 10px;
}

.map-page .mapLead {
  max-width: 60ch;
}

.map-page .mapIntroCard {
  min-height: 100%;
}

.map-page .mapWorkspace {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.74fr);
  gap: 18px;
  align-items: start;
}

.map-page .mapSidebar {
  display: grid;
  gap: 18px;
}

.map-page .mapCanvasCard,
.map-page .mapFiltersCard,
.map-page .mapListCard {
  overflow: hidden;
}

.map-page .mapCanvasCard {
  position: sticky;
  top: 84px;
}

.map-page .mapCardHead,
.map-page .mapSidebarHead {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
}

.map-page .mapSectionTitle {
  margin-bottom: 6px;
}

.map-page .mapDayTabsInline {
  justify-content: flex-end;
  align-items: center;
  padding-top: 2px;
}

.map-page .mapCardDesc {
  margin-bottom: 0;
}

.map-page .mapCountBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, var(--pink-2));
  border: 1px solid rgba(235, 186, 202, 0.65);
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}

.map-page .mapStatus {
  margin: 0 18px 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(235, 186, 202, 0.65);
  background: linear-gradient(180deg, #fff, #fff4f8);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.map-page .venueMap {
  width: calc(100% - 14px);
  height: min(72vh, 820px);
  min-height: 480px;
  margin: 0 7px 14px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #fff7f9);
}

.map-page .venueMap:focus {
  outline: 3px solid rgba(235, 186, 202, 0.45);
  outline-offset: 2px;
}

.map-page .mapLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 18px;
}

.map-page .mapLegendItem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.map-page .mapLegendSwatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.map-page .mapControls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.9fr);
  gap: 12px;
  padding: 0 18px;
}

.map-page .mapDayBlock {
  padding: 0 18px 12px;
}

.map-page .mapDayTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-page .mapDayTab {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 12px;
  min-height: 36px;
  line-height: 1.2;
  font-family: inherit;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.map-page .mapDayTab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.map-page .mapDayTab.is-active {
  color: var(--ink);
  border-color: rgba(235, 186, 202, 0.8);
  box-shadow: 0 10px 24px rgba(235, 186, 202, 0.18);
}

.map-page .mapGenreBlock {
  padding: 14px 18px 0;
}

.map-page .mapGenreLabel {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.map-page .mapGenrePills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-page .mapGenrePill {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.map-page .mapGenrePill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.map-page .mapGenrePill.is-active {
  color: var(--ink);
  border-color: rgba(235, 186, 202, 0.8);
  box-shadow: 0 10px 24px rgba(235, 186, 202, 0.18);
}

.map-page .mapGenrePillCount {
  color: var(--muted);
  opacity: 0.8;
}

.map-page .mapResultNotice {
  margin: 14px 18px 18px;
}

.map-page .mapList {
  display: grid;
  gap: 10px;
  max-height: min(72vh, 820px);
  overflow: auto;
  padding: 0 18px 18px;
}

.map-page .mapListEmpty {
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(235, 186, 202, 0.95);
  background: linear-gradient(180deg, #fff, var(--pink-2));
}

.map-page .mapListItem {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, var(--paper));
  box-shadow: var(--shadow);
  padding: 12px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.map-page .mapListItem:hover,
.map-page .mapListItem:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  border-color: rgba(235, 186, 202, 0.8);
  outline: none;
}

.map-page .mapListItemHeader {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.map-page .mapListThumb {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #fff, var(--pink-2));
  overflow: hidden;
  flex-shrink: 0;
}

.map-page .mapListThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-page .mapListBody {
  min-width: 0;
}

.map-page .mapListName {
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.map-page .mapListMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
}

.map-page .mapListBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.map-page .mapListGenre {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 8px;
}

.map-page .mapListMessage {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.map-page .mapListFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.map-page .mapListActionGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-page .mapListActionButton {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #7b3f56;
  border-radius: 999px;
  padding: 7px 12px;
  min-height: 32px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.map-page .mapListActionButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.map-page .mapListActionButton.is-detail {
  border-color: rgba(235, 186, 202, 0.9);
  background: linear-gradient(180deg, #fff, var(--pink-2));
}

.map-page .mapListActionButton.is-disabled,
.map-page .mapListActionButton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.map-page .mapListUnplaced {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.map-page .leaflet-container {
  font: inherit;
  background: #fff;
}

.map-page .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.map-page .leaflet-control-zoom a {
  color: var(--ink);
  width: 36px;
  height: 36px;
  line-height: 36px;
}

.map-page .leaflet-interactive {
  transition: opacity 0.18s ease, filter 0.18s ease, stroke-width 0.18s ease;
}

.map-page .booth-rect {
  vector-effect: non-scaling-stroke;
}

.map-page .booth-rect.is-dim {
  opacity: 0.18;
}

.map-page .booth-rect.is-match {
  filter: drop-shadow(0 8px 18px rgba(235, 186, 202, 0.65));
}

.map-page .booth-rect.is-pulse {
  animation: mapPulseStroke 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 3;
  stroke: #ff294d !important;
  fill-opacity: 0.46 !important;
  filter: drop-shadow(0 0 12px rgba(255, 41, 77, 0.75)) !important;
}

.map-page .booth-rect.is-unassigned {
  stroke-dasharray: 6 5;
}

.map-page .booth-rect:focus {
  outline: none;
}

.map-page .leaflet-tooltip.map-booth-tooltip {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  pointer-events: none;
}

.map-page .leaflet-tooltip.map-booth-tooltip::before {
  display: none;
}

.map-page .mapBoothLabel {
  min-width: 52px;
  max-width: 152px;
  padding: 5px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(54, 46, 42, 0.18);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  line-height: 1.2;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  transform: none;
}

.map-page .mapBoothLabel.mode-compact {
  min-width: 44px;
  max-width: 112px;
  padding: 4px 6px;
  border-radius: 10px;
}

.map-page .mapBoothLabel.mode-hidden {
  display: none;
}

.map-page .mapBoothLabel.is-dim {
  opacity: 0.24;
}

.map-page .mapBoothLabel.is-match {
  box-shadow: 0 10px 24px rgba(235, 186, 202, 0.34);
}

.map-page .mapBoothNo {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.map-page .mapBoothLabel.mode-compact .mapBoothNo {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.9), 0 0 6px rgba(255, 255, 255, 0.9);
}

.map-page .mapBoothLabel.mode-compact .mapBoothName.only {
  display: none;
}

.map-page .mapBoothName {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-top: 3px;
  line-height: 1.25;
}

.map-page .mapBoothName.only {
  margin-top: 0;
  font-size: 12px;
  font-weight: 900;
  color: #2f2a28;
  line-height: 1.3;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  line-break: strict;
  max-height: calc(1.3em * 2);
}

.map-page .mapBoothLabel.mode-max {
  min-width: 72px;
  max-width: 210px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
}

.map-page .mapBoothLabel.mode-max .mapBoothName.only {
  font-size: 12px;
  line-height: 1.3;
  max-height: calc(1.3em * 3);
}

.map-page .mapBoothName.is-hidden {
  display: none;
}

.map-page .mapModal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1200;
}

.map-page .mapModal.is-open {
  display: flex;
}

.map-page .mapModalPanel {
  width: min(980px, 96vw);
  max-height: min(88vh, 920px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.map-page .mapModalHead {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #fff, var(--pink-2));
}

.map-page .mapModalKicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.map-page .mapModalTitle {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.3;
}

.map-page .mapModalClose {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.map-page .mapModalBody {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.map-page .mapModalStack {
  display: grid;
  gap: 16px;
}

.map-page .mapModalVendor {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, var(--paper));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-page .mapModalVendorHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
}

.map-page .mapModalVendorName {
  font-size: 20px;
  font-weight: 950;
  line-height: 1.3;
}

.map-page .mapModalVendorSub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-top: 6px;
}

.map-page .mapModalVendorGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.map-page .mapModalInfo {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

.map-page .mapModalInfoLabel {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.map-page .mapModalInfoValue {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
  word-break: break-word;
}

.map-page .mapModalInfoValue.is-muted {
  color: var(--muted);
}

.map-page .mapModalImages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.map-page .mapModalImageButton {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, var(--pink-2));
  cursor: zoom-in;
}

.map-page .mapModalImageButton img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
}

.map-page .mapModalEmpty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(235, 186, 202, 0.95);
  background: linear-gradient(180deg, #fff, var(--pink-2));
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

.map-page .mapModalLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(235, 186, 202, 0.9);
  background: rgba(235, 186, 202, 0.24);
  color: #7b3f56;
  font-size: 12px;
  font-weight: 900;
}

@keyframes mapPulseStroke {
  0% {
    stroke: #ff9db0;
    stroke-width: 2.2;
    fill-opacity: 0.3;
    filter: drop-shadow(0 0 6px rgba(255, 80, 109, 0.55));
  }

  45% {
    stroke: #ff1f44;
    stroke-width: 5.2;
    fill-opacity: 0.58;
    filter: drop-shadow(0 0 20px rgba(255, 31, 68, 0.92));
  }

  100% {
    stroke: #ff9db0;
    stroke-width: 2.2;
    fill-opacity: 0.3;
    filter: drop-shadow(0 0 6px rgba(255, 80, 109, 0.55));
  }
}

@media (max-width: 1120px) {
  .map-page .mapWorkspace {
    grid-template-columns: 1fr;
  }

  .map-page .mapCanvasCard {
    position: static;
  }

  .map-page .mapList {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .map-page .mapIntro {
    grid-template-columns: 1fr;
  }

  .map-page .mapDayTabsInline {
    width: 100%;
    justify-content: flex-start;
    padding-top: 0;
  }

  .map-page .mapControls {
    grid-template-columns: 1fr;
  }

  .map-page .venueMap {
    width: calc(100% - 12px);
    min-height: 420px;
    margin-inline: 6px;
  }

  .map-page .mapModalVendorGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .map-page .section {
    padding-top: 20px;
  }

  .map-page .mapCardHead,
  .map-page .mapSidebarHead,
  .map-page .mapModalHead {
    padding: 16px;
  }

  .map-page .mapListItemHeader {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .map-page .mapListThumb {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

  .map-page .mapListFoot {
    flex-direction: column;
    align-items: start;
  }

  .map-page .mapModalImages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-page .mapBoothLabel {
    max-width: 92px;
    padding: 4px 6px;
  }

  .map-page .mapBoothNo {
    font-size: 11px;
  }

  .map-page .mapBoothName {
    font-size: 9px;
  }
}
