﻿html, body { height: 100%; margin: 0; }
#map { height: 100vh; width: 100%; background: #b9d9e8; }
.loading {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1004;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.loading.open {
  opacity: 1;
}

.marker-label {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  color: #222;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 2px 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  white-space: normal;
  max-width: 180px;
  min-width: 120px;
  text-align: center;
  overflow-wrap: anywhere;
  transition: opacity 0.2s ease;
}
.marker-label.leaflet-tooltip {
  border: 1px solid #c8c8c8;
  pointer-events: auto;
  cursor: pointer;
}
.marker-label .label-title {
  display: block;
  font-weight: 700;
}
.marker-label .label-meta {
  display: block;
  font-size: 10px;
  font-weight: 500;
  margin-top: 2px;
  color: #374151;
}
.marker-label-event {
  background: rgba(255, 255, 255, 0.92);
  border-color: #93c5fd;
}
.event-marker-wrapper {
  background: transparent;
  border: 0;
}
.event-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border: 2px solid var(--marker-border, #475569);
  border-radius: 50% 50% 50% 8px;
  background: var(--marker-color, #ffffff);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.35);
  isolation: isolate;
  transform: rotate(-45deg);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.event-marker::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  z-index: 0;
}
.event-marker-wrapper:hover .event-marker,
.event-marker-wrapper:focus .event-marker {
  filter: brightness(1.04);
  transform: rotate(-45deg) scale(1.12);
}
.event-marker-emoji {
  position: relative;
  z-index: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 19px;
  font-style: normal;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  pointer-events: none;
}
.event-marker-group-wrapper {
  overflow: visible !important;
  border: 0;
  background: transparent;
}
.event-marker-group-shell {
  position: relative;
  display: block;
  width: 48px;
  height: 36px;
  overflow: visible;
}
.event-marker-group {
  position: absolute;
  top: 2px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 27px;
  padding: 0 7px;
  box-sizing: border-box;
  border: 2px solid var(--marker-border, #2563eb);
  border-radius: 16px;
  background: var(--marker-color, #dbeafe);
  box-shadow: 0 3px 9px rgba(15, 23, 42, 0.34);
  transform: translateX(-50%);
  transition: transform 0.16s ease, filter 0.16s ease;
}
.event-marker-group::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.78);
}
.event-marker-group-icons {
  display: flex;
  align-items: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}
.event-marker-group-icons > span + span {
  margin-left: -3px;
}
.event-marker-group-icons small {
  margin-left: 2px;
  color: #475569;
  font-family: system-ui, sans-serif;
  font-size: 8px;
  font-weight: 800;
}
.event-marker-count {
  position: absolute;
  top: -9px;
  right: -10px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  box-sizing: border-box;
  border: 2px solid #ffffff;
  border-radius: 11px;
  background: #1d4ed8;
  color: #ffffff;
  font-family: system-ui, sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.3);
}
.event-marker-group-shell:hover .event-marker-group,
.event-marker-group-shell:focus-within .event-marker-group {
  filter: brightness(1.03);
  transform: translateX(-50%) scale(1.08);
}
.marker-label-stacked:hover {
  z-index: 10000 !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.3);
}
.marker-label-more {
  background: #eff6ff;
  border-color: #60a5fa;
}
.leaflet-control-locate {
  margin-bottom: 10px;
}
.locate-button {
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.locate-button svg {
  width: 18px;
  height: 18px;
  stroke: #374151;
  stroke-width: 2;
  fill: none;
}
.locate-button:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
.locate-button:active {
  transform: translateY(1px);
}
  .menu-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1001;
  width: 72px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}
.menu-handle {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 56px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.8);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  z-index: 1003;
  cursor: pointer;
}
.menu-handle.hidden {
  opacity: 0;
  pointer-events: none;
}
.menu-backdrop.open {
  opacity: 1;
  pointer-events: none;
}
.side-menu {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 320px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 8px 0 24px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  z-index: 1002;
  padding: 16px 16px 64px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.side-menu.open {
  transform: translateX(0);
}
.menu-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.menu-header {
  font-size: 16px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}
.menu-intro {
  margin: 0 0 2px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}
.menu-close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: #1f2937;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
.menu-close:active {
  transform: translateY(1px);
}
.menu-label {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.menu-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}
.date-filter {
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.07);
}
.date-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.date-filter-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 13px;
}
.date-clear-button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.date-clear-button:hover {
  text-decoration: underline;
}
.date-range-trigger {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 16px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.date-range-trigger:hover,
.date-range-trigger[aria-expanded="true"] {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.date-range-trigger:focus-visible,
.calendar-nav:focus-visible,
.calendar-day:focus-visible,
.date-picker-close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.calendar-glyph {
  position: relative;
  width: 18px;
  height: 17px;
  border: 2px solid #2563eb;
  border-radius: 4px;
  box-sizing: border-box;
}
.calendar-glyph::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 100%;
  border-top: 2px solid #2563eb;
}
.calendar-glyph::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 3px;
  width: 8px;
  height: 4px;
  border-right: 2px solid #2563eb;
  border-left: 2px solid #2563eb;
}
.date-range-part {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.date-range-part small {
  color: #64748b;
  font-size: 9px;
  font-weight: 600;
}
.date-range-part strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.date-range-part strong.is-placeholder {
  color: #94a3b8;
  font-weight: 600;
}
.date-range-arrow {
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}
.date-picker[hidden] {
  display: none;
}
.date-picker {
  position: fixed;
  top: 72px;
  left: 332px;
  z-index: 1900;
  width: min(680px, calc(100vw - 348px));
  max-height: calc(100vh - 24px);
  padding: 16px;
  box-sizing: border-box;
  overflow: auto;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.26);
}
.date-picker-header {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}
.date-picker-header strong {
  color: #0f172a;
  font-size: 14px;
  text-align: center;
}
.calendar-nav {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.calendar-nav:hover:not(:disabled) {
  background: #eff6ff;
  color: #1d4ed8;
}
.calendar-nav:disabled {
  color: #cbd5e1;
  cursor: default;
}
.calendar-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.calendar-month {
  min-width: 0;
}
.calendar-month-title {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 14px;
  text-align: center;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays {
  margin-bottom: 5px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
.calendar-grid {
  gap: 2px 0;
}
.calendar-day-spacer {
  min-height: 38px;
}
.calendar-day {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1e293b;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.calendar-day::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px;
  border-radius: 50%;
  background: transparent;
}
.calendar-day:hover:not(:disabled)::before {
  background: #e0ecff;
}
.calendar-day.is-in-range {
  background: #dbeafe;
}
.calendar-day.is-range-start {
  border-radius: 999px 0 0 999px;
}
.calendar-day.is-range-end {
  border-radius: 0 999px 999px 0;
}
.calendar-day.is-range-start.is-range-end {
  border-radius: 999px;
  background: transparent;
}
.calendar-day.is-range-start::before,
.calendar-day.is-range-end::before {
  background: #2563eb;
}
.calendar-day.is-range-start,
.calendar-day.is-range-end {
  color: #ffffff;
  font-weight: 800;
}
.calendar-day.is-today:not(.is-range-start):not(.is-range-end)::before {
  box-shadow: inset 0 0 0 1px #2563eb;
}
.calendar-day:disabled {
  color: #cbd5e1;
  cursor: default;
}
.date-picker-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.date-picker-guide {
  flex: 1 1 auto;
  min-height: 18px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.date-picker-close {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.date-picker-close:hover {
  background: #eff6ff;
}
.date-filter-summary {
  margin-top: 9px;
  color: #334155;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}
.date-range-hint {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 9px;
  line-height: 1.4;
}
.menu-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.menu-button {
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.8);
  color: #1f2937;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
.menu-button:hover {
  filter: brightness(0.98);
}
.menu-button:active {
  transform: translateY(1px);
}
.menu-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
}
.menu-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}
.data-refresh-status {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(219, 234, 254, 0.7);
  color: #1e3a8a;
}
.data-refresh-status[data-state="success"] {
  background: rgba(220, 252, 231, 0.75);
  color: #166534;
}
.data-refresh-status[data-state="warning"] {
  background: rgba(254, 249, 195, 0.8);
  color: #854d0e;
}
.visitor-counter {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  padding: 13px;
  border: 1px solid rgba(147, 197, 253, 0.65);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.08);
}
.visitor-counter-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.visitor-counter-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #0284c7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.visitor-counter h2 {
  margin: 0;
  color: #0f172a;
  font-size: 13px;
}
.visitor-counter h2 small {
  color: #64748b;
  font-size: 10px;
  font-weight: 500;
}
.visitor-counter-pulse {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border: 3px solid rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  background: #22c55e;
  box-sizing: content-box;
}
.visitor-counter[data-state="warning"] .visitor-counter-pulse {
  border-color: rgba(245, 158, 11, 0.2);
  background: #f59e0b;
}
.visitor-counter[data-state="preview"] .visitor-counter-pulse {
  border-color: rgba(100, 116, 139, 0.18);
  background: #94a3b8;
}
.visitor-counter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 11px;
}
.visitor-counter-stat {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: 10px;
  background: rgba(239, 246, 255, 0.78);
}
.visitor-counter-value {
  color: #1d4ed8;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.visitor-counter-value[data-value="number"]::after {
  content: " 人";
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}
.visitor-counter-label {
  color: #64748b;
  font-size: 10px;
}
.visitor-counter-updated {
  margin-top: 8px;
  color: #475569;
  font-size: 10px;
  line-height: 1.4;
}
.visitor-history {
  margin-top: 8px;
  border-top: 1px solid rgba(203, 213, 225, 0.72);
}
.visitor-history summary {
  padding: 8px 0 2px;
  color: #2563eb;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.visitor-history-list {
  display: grid;
  gap: 6px;
  margin: 9px 0 2px;
  padding: 0;
  list-style: none;
}
.visitor-history-list li {
  display: grid;
  grid-template-columns: 54px minmax(28px, 1fr) 32px;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 9px;
}
.visitor-history-date {
  white-space: nowrap;
}
.visitor-history-bar {
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
}
.visitor-history-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}
.visitor-history-list strong {
  color: #334155;
  font-size: 9px;
  text-align: right;
  white-space: nowrap;
}
.visitor-counter-note {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 9px;
  line-height: 1.5;
}
.status-summary {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: #111827;
}
.status-summary.hidden {
  display: none;
}
.status-summary span {
  font-size: 16px;
}
.status-row {
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.menu-note {
  margin-top: auto;
  font-size: 12px;
  color: #475569;
}
.menu-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.menu-license {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.menu-license a {
  color: #2563eb;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.menu-license a:hover {
  text-decoration: underline;
}
.menu-footer .menu-note {
  margin-top: 0;
}
.site-policy-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1005;
  display: flex;
  justify-content: center;
  padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  pointer-events: none;
}
.site-policy-links {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 24px);
  padding: 7px 12px;
  border: 1px solid rgba(203, 213, 225, 0.84);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}
.site-policy-links a {
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.site-policy-links a + a::before {
  content: "｜";
  margin: 0 6px;
  color: #94a3b8;
  font-weight: 400;
}
.site-policy-links a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.site-policy-links a:focus-visible,
.policy-local-nav a:focus-visible,
.policy-close-button:focus-visible,
.policy-document:focus-visible,
#correction-request:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}
.leaflet-control-attribution {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.4;
  max-width: min(520px, 70vw);
}
.leaflet-bottom {
  bottom: 42px;
}
.leaflet-control-attribution .attribution-block {
  display: block;
  margin-top: 2px;
}
.details-modal {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
  z-index: 2000;
  padding: 20px;
  box-sizing: border-box;
}
.details-modal.open {
  display: flex;
}
.details-container {
  width: min(640px, 94%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.3);
  padding: 16px;
  max-height: 85vh;
  overflow: auto;
}
.policy-modal.open {
  animation: modal-backdrop-in 0.2s ease-out both;
}
.policy-container {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(820px, 96vw);
  height: min(90vh, 860px);
  max-height: min(90vh, 860px);
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #f8fafc;
  animation: modal-card-in 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.policy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px 17px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #0369a1 58%, #0f766e);
}
.policy-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #cffafe;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.policy-header h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}
.policy-close-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.policy-close-button:hover {
  background: rgba(255, 255, 255, 0.25);
}
.policy-local-nav {
  display: flex;
  gap: 6px;
  padding: 11px 18px;
  overflow-x: auto;
  border-bottom: 1px solid #dbe3ee;
  background: #ffffff;
}
.policy-local-nav a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.policy-local-nav a:hover {
  color: #1d4ed8;
  background: #dbeafe;
}
.policy-scroll {
  min-height: 0;
  padding: 25px 30px 34px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.policy-document {
  max-width: 700px;
  margin: 0 auto;
  color: #334155;
  font-size: 13px;
  line-height: 1.8;
}
.policy-document h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(20px, 4vw, 27px);
  line-height: 1.4;
}
.policy-updated {
  margin: 7px 0 26px;
  color: #64748b;
  font-size: 11px;
}
.policy-document > section {
  scroll-margin-top: 16px;
}
.policy-document h3 {
  margin: 28px 0 9px;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.5;
}
.policy-document p {
  margin: 8px 0;
}
.policy-document ul {
  margin: 10px 0 14px;
  padding-left: 1.5em;
}
.policy-document li + li {
  margin-top: 3px;
}
.policy-contact {
  margin-top: 15px !important;
  padding: 13px 15px;
  border: 1px solid #bfdbfe;
  border-radius: 11px;
  background: #eff6ff;
}
.policy-contact a {
  color: #1d4ed8;
  font-weight: 700;
}
.policy-caution {
  color: #9a3412;
  font-size: 11px;
}
.policy-privacy {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #cbd5e1;
  scroll-margin-top: 16px;
}
.about-modal.open {
  animation: modal-backdrop-in 0.24s ease-out both;
}
.about-container {
  width: min(760px, 96vw);
  max-height: min(90vh, 820px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  overflow: auto;
  background: #f8fafc;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.38);
  animation: modal-card-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.about-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 30px 26px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 15%, rgba(103, 232, 249, 0.42), transparent 28%),
    radial-gradient(circle at 10% 100%, rgba(96, 165, 250, 0.36), transparent 34%),
    linear-gradient(135deg, #1d4ed8 0%, #0369a1 52%, #0f766e 100%);
}
.about-hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -70px;
  bottom: -125px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.06);
}
.about-eyebrow {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #cffafe;
}
.about-hero-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.about-hero h1 {
  margin: 0;
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.about-hero p {
  margin: 10px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}
.about-close-button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.about-close-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(4deg);
}
.about-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 18px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.14);
  font-size: 11px;
  font-weight: 700;
}
.about-body {
  padding: 26px 30px 30px;
  color: #334155;
}
.about-lead {
  max-width: 620px;
  margin: 0 0 20px;
  color: #334155;
  font-size: 15px;
  line-height: 1.75;
}
.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.about-feature-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.about-feature-number {
  color: #0284c7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.about-feature-card strong {
  color: #0f172a;
  font-size: 15px;
}
.about-feature-card > span:last-child {
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}
.about-primary-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.about-primary-button,
.about-secondary-button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.about-primary-button {
  flex: 1 1 220px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}
.about-primary-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.about-secondary-button {
  flex: 0 1 auto;
  border: 1px solid #cbd5e1;
  color: #334155;
  background: #fff;
}
.about-secondary-button:hover {
  border-color: #60a5fa;
  color: #1d4ed8;
}
.about-more {
  margin-top: 18px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.about-more summary {
  padding: 13px 2px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.about-more-content {
  padding: 0 2px 12px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.65;
}
.about-more-content p {
  margin: 7px 0;
}
.details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.details-title {
  font-size: 16px;
  font-weight: 700;
}
.details-summary {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: #1f2937;
  margin-bottom: 12px;
}
.details-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  align-items: center;
}
.details-source-notice {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
}
.details-source-notice strong {
  color: #1f2937;
}
.details-source-notice a {
  color: #1d4ed8;
}
.details-source-notice-web {
  border-color: #fed7aa;
  background: #fff7ed;
}
.details-source-notice-open-data {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.event-group-list-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}
.event-group-list-summary strong {
  color: #1e3a8a;
  font-size: 14px;
}
.event-group-list-summary span {
  color: #475569;
  font-size: 12px;
  white-space: nowrap;
}
.event-group-list {
  display: grid;
  gap: 8px;
}
.event-group-list-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #ffffff;
  color: #1f2937;
  text-align: left;
  cursor: pointer;
}
.event-group-list-item:hover,
.event-group-list-item:focus-visible {
  border-color: #93c5fd;
  background: #f8fbff;
  outline: none;
}
.event-group-list-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eff6ff;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 20px;
}
.event-group-list-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.event-group-list-copy strong {
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.event-group-list-copy span,
.event-group-list-copy small {
  color: #64748b;
  font-size: 11px;
}
.event-group-list-arrow {
  color: #2563eb;
  font-size: 22px;
  line-height: 1;
}
.event-group-back {
  margin-bottom: 12px;
  padding: 7px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.details-favicon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  flex: 0 0 auto;
}
.details-link-button {
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}
.details-link-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.5);
  color: #64748b;
}
.about-author {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}
.about-author-label {
  color: #0284c7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.about-author h2 {
  margin: 4px 0 5px;
  color: #1f2937;
  font-size: 15px;
}
.about-author p {
  max-width: 460px;
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.55;
}
.about-links {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}
.about-links a {
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.about-links a:hover {
  text-decoration: underline;
}
@keyframes modal-backdrop-in {
  from { background: rgba(15, 23, 42, 0); }
}
@keyframes modal-card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.details-grid {
  display: grid;
  gap: 8px;
}
.detail-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.5);
}
.detail-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.detail-value {
  font-size: 13px;
  color: #111827;
  word-break: break-word;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .date-picker {
    inset: 8px;
    width: auto;
    max-height: calc(100dvh - 16px);
    padding: 14px;
    border-radius: 14px;
  }
  .date-picker-header {
    position: sticky;
    top: -14px;
    z-index: 2;
    padding-top: 6px;
    background: #ffffff;
  }
  .calendar-months {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .calendar-month + .calendar-month {
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
  }
  .date-picker-footer {
    position: sticky;
    bottom: -14px;
    z-index: 2;
    padding: 10px 0 6px;
    background: #ffffff;
  }
  .calendar-day,
  .calendar-day-spacer {
    height: 40px;
    min-height: 40px;
  }
  .event-group-list-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .side-menu {
    width: 100vw;
    max-width: 100vw;
    height: 50vh;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 16px 62px;
    border-radius: 16px 16px 0 0;
    gap: 8px;
    transform: translateY(100%);
  }
  .side-menu.open {
    transform: translateY(0);
  }
  .menu-handle {
    display: none;
  }
  .menu-toggle {
    top: auto;
    left: auto;
    bottom: 54px;
    right: 12px;
    width: 80px;
    height: 48px;
    font-size: 14px;
  }
  .menu-close {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
  .menu-label {
    font-size: 13px;
  }
  .menu-input {
    font-size: 15px;
    padding: 10px 12px;
  }
  .menu-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .menu-button {
    width: 100%;
    font-size: 13px;
    padding: 10px 12px;
  }
  .status-summary {
    font-size: 15px;
  }
  .status-summary span {
    font-size: 17px;
  }
  .marker-label {
    font-size: 10px;
    padding: 2px 5px;
    max-width: 140px;
    min-width: 100px;
  }
  .detail-row {
    grid-template-columns: 1fr;
  }
  .detail-label {
    font-size: 12px;
  }
  .details-link-button {
    width: 100%;
  }
  .details-modal {
    padding: 8px;
  }
  .site-policy-footer {
    padding: 5px 7px calc(5px + env(safe-area-inset-bottom));
  }
  .site-policy-links {
    max-width: calc(100vw - 14px);
    padding: 7px 9px;
  }
  .site-policy-links a {
    font-size: 9px;
  }
  .site-policy-links a + a::before {
    margin: 0 3px;
  }
  .policy-container {
    width: 100%;
    height: 94vh;
    max-height: 94vh;
    border-radius: 18px;
  }
  .policy-header {
    padding: 17px 18px 14px;
  }
  .policy-header h1 {
    font-size: 19px;
  }
  .policy-close-button {
    width: 34px;
    height: 34px;
  }
  .policy-local-nav {
    padding: 9px 12px;
  }
  .policy-scroll {
    padding: 21px 19px 30px;
  }
  .policy-document {
    font-size: 12px;
    line-height: 1.75;
  }
  .policy-document h3 {
    margin-top: 24px;
    font-size: 15px;
  }
  .about-container {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px;
  }
  .about-hero {
    padding: 20px 20px 19px;
  }
  .about-hero h1 {
    font-size: 24px;
  }
  .about-hero p {
    max-width: 260px;
    font-size: 13px;
    line-height: 1.5;
  }
  .about-close-button {
    width: 36px;
    height: 36px;
  }
  .about-body {
    padding: 20px;
  }
  .about-lead {
    margin-bottom: 15px;
    font-size: 13px;
  }
  .about-feature-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .about-feature-card {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 3px 8px;
    padding: 12px 14px;
  }
  .about-feature-number {
    grid-row: 1 / 3;
    align-self: center;
  }
  .about-primary-actions {
    flex-direction: column;
  }
  .about-primary-button,
  .about-secondary-button {
    width: 100%;
    flex-basis: auto;
  }
  .about-author {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .about-links {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-modal.open,
  .about-container {
    animation: none;
  }
}

/* Neo city-pop social refresh */
:root {
  --vibe-ink: #101019;
  --vibe-panel: #171724;
  --vibe-card: rgba(255, 255, 255, 0.075);
  --vibe-line: rgba(255, 255, 255, 0.14);
  --vibe-text: #f8f7fb;
  --vibe-muted: #aaa8b8;
  --vibe-lime: #d9ff5b;
  --vibe-pink: #ff4fa3;
  --vibe-violet: #8b5cf6;
  --vibe-cyan: #61e7ff;
  --vibe-shadow: 0 24px 70px rgba(9, 8, 18, 0.34);
}

html,
body {
  color: var(--vibe-text);
  background: var(--vibe-ink);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

#map {
  background: #b9d9dd;
}

#map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 399;
  background:
    linear-gradient(120deg, rgba(97, 231, 255, 0.055), transparent 34%),
    linear-gradient(305deg, rgba(255, 79, 163, 0.045), transparent 42%);
  pointer-events: none;
}

.leaflet-tile-pane {
  filter: saturate(0.72) contrast(0.96) brightness(1.03);
}

.side-menu {
  width: 390px;
  gap: 14px;
  padding: 22px 20px 76px;
  border: 0;
  border-right: 1px solid var(--vibe-line);
  color: var(--vibe-text);
  background:
    radial-gradient(circle at 5% 2%, rgba(255, 79, 163, 0.28), transparent 24%),
    radial-gradient(circle at 100% 18%, rgba(139, 92, 246, 0.24), transparent 28%),
    radial-gradient(circle at 28% 100%, rgba(97, 231, 255, 0.1), transparent 30%),
    rgba(16, 16, 25, 0.94);
  box-shadow: 14px 0 46px rgba(8, 8, 16, 0.3);
  backdrop-filter: blur(24px) saturate(1.35);
}

.side-menu::-webkit-scrollbar,
#category-filters::-webkit-scrollbar {
  width: 5px;
}

.side-menu::-webkit-scrollbar-thumb,
#category-filters::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.menu-header-row {
  position: relative;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
}

.brand-lockup {
  align-items: flex-start;
  gap: 13px;
}

.brand-mascot {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 19px;
  box-shadow:
    0 0 0 5px rgba(255, 79, 163, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.28);
  transform: rotate(-4deg);
}

.brand-eyebrow {
  margin: 1px 0 5px;
  color: var(--vibe-lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.menu-header {
  max-width: 226px;
  color: var(--vibe-text);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.055em;
}

.brand-mood {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  margin-top: 8px;
  color: #d4d1dc;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.brand-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--vibe-pink);
}

.brand-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 79, 163, 0.14);
  animation: vibe-pulse 1.8s ease-in-out infinite;
}

.menu-intro {
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--vibe-line);
  border-radius: 15px;
  color: #cbc8d5;
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.65;
}

.menu-close,
.menu-toggle,
.locate-button {
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--vibe-text);
  background: rgba(16, 16, 25, 0.86);
  box-shadow: 0 10px 30px rgba(9, 8, 18, 0.22);
  backdrop-filter: blur(16px);
}

.menu-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-weight: 300;
}

.menu-toggle {
  min-width: 98px;
  height: 48px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.menu-toggle:hover,
.menu-close:hover,
.locate-button:hover {
  border-color: var(--vibe-lime);
  color: var(--vibe-ink);
  background: var(--vibe-lime);
}

.date-filter {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--vibe-line);
  border-radius: 21px;
  color: var(--vibe-text);
  background:
    radial-gradient(circle at 100% 0, rgba(139, 92, 246, 0.22), transparent 40%),
    rgba(255, 255, 255, 0.065);
  box-shadow: none;
}

.date-filter::before {
  content: "01";
  position: absolute;
  right: 12px;
  bottom: -19px;
  color: rgba(255, 255, 255, 0.035);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.date-filter-heading h2,
.menu-subtitle {
  color: var(--vibe-text);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.date-filter-heading h2::before {
  content: "✦";
  color: var(--vibe-lime);
  text-shadow: 0 0 14px rgba(217, 255, 91, 0.48);
}

.date-clear-button {
  min-width: auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #d6d3de;
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
}

.date-clear-button:hover {
  color: var(--vibe-ink);
  background: var(--vibe-lime);
  text-decoration: none;
}

.date-range-trigger {
  position: relative;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 16px;
  color: var(--vibe-text);
  background: rgba(8, 8, 15, 0.42);
}

.date-range-trigger:hover,
.date-range-trigger[aria-expanded="true"] {
  border-color: var(--vibe-pink);
  background: rgba(255, 79, 163, 0.075);
  box-shadow: 0 0 0 3px rgba(255, 79, 163, 0.1);
}

.calendar-glyph {
  color: var(--vibe-lime);
  filter: invert(1);
}

.date-range-part small,
.date-filter-summary,
.date-range-hint {
  color: var(--vibe-muted);
}

.date-range-part strong {
  color: var(--vibe-text);
  font-size: 12px;
  font-weight: 900;
}

.date-range-arrow {
  color: var(--vibe-pink);
}

.date-filter-summary {
  font-size: 10px;
}

.menu-label {
  margin: 1px 0 -6px;
  color: var(--vibe-text);
  font-size: 12px;
  font-weight: 900;
}

.search-field {
  position: relative;
}

.search-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  color: var(--vibe-lime);
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-54%) rotate(-15deg);
  pointer-events: none;
}

.menu-input {
  min-height: 50px;
  padding: 11px 14px 11px 44px;
  border: 1px solid var(--vibe-line);
  border-radius: 16px;
  color: var(--vibe-text);
  background: rgba(255, 255, 255, 0.07);
  caret-color: var(--vibe-lime);
}

.menu-input::placeholder {
  color: #7e7b8c;
}

.menu-input:focus {
  border-color: var(--vibe-lime);
  outline: 3px solid rgba(217, 255, 91, 0.12);
  background: rgba(255, 255, 255, 0.1);
}

.menu-subtitle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}

.menu-subtitle span {
  color: #767384;
  font-size: 8px;
  font-weight: 700;
}

#category-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 248px;
  padding: 1px 5px 5px 1px;
}

.menu-option {
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 7px;
  min-height: 54px;
  padding: 8px 28px 8px 9px;
  border: 1px solid var(--vibe-line);
  border-radius: 16px;
  color: var(--vibe-text);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.menu-option::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--vibe-ink);
  font-size: 9px;
  font-weight: 900;
}

.menu-option:hover {
  transform: translateY(-2px);
  border-color: var(--chip-color, var(--vibe-cyan));
  background: rgba(255, 255, 255, 0.085);
}

.menu-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--chip-color, var(--vibe-cyan)) 78%, white);
  background: color-mix(in srgb, var(--chip-color, var(--vibe-cyan)) 17%, #1c1b2b);
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--chip-color, var(--vibe-cyan)) 9%, transparent);
}

.menu-option:has(input:checked)::after {
  content: "✓";
  border-color: var(--vibe-lime);
  background: var(--vibe-lime);
  box-shadow: 0 0 12px rgba(217, 255, 91, 0.3);
}

.category-icon {
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1) !important;
  font-size: 18px;
  filter: saturate(1.15);
}

.menu-tag {
  color: var(--vibe-text);
  font-size: 11px;
  font-weight: 800;
}

.category-count {
  color: #8e8b9b;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.category-actions {
  gap: 8px;
}

.menu-button {
  min-height: 42px;
  border: 1px solid var(--vibe-line);
  border-radius: 13px;
  color: #cfccd7;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  font-size: 10px;
  font-weight: 800;
}

.menu-button:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--vibe-text);
  background: rgba(255, 255, 255, 0.1);
}

.status-summary {
  gap: 8px;
}

.status-row {
  padding: 10px 12px;
  border: 1px solid var(--vibe-line);
  border-radius: 14px;
  color: var(--vibe-muted);
  background: rgba(255, 255, 255, 0.045);
}

.status-summary span {
  color: var(--vibe-lime);
  font-size: 21px;
  text-shadow: 0 0 16px rgba(217, 255, 91, 0.18);
}

.share-map-button,
.event-share-button {
  position: relative;
  overflow: hidden;
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(105deg, #ff3d8d, #9a55ff 58%, #6b5cff);
  box-shadow: 0 12px 28px rgba(184, 62, 174, 0.28);
  font-size: 12px;
  letter-spacing: 0.025em;
}

.share-map-button::after,
.event-share-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.28) 48%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}

.share-map-button:hover,
.event-share-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.12) brightness(1.05);
}

.share-map-button:hover::after,
.event-share-button:hover::after {
  transform: translateX(120%);
}

.share-map-button:active,
.event-share-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(184, 62, 174, 0.22);
}

.data-refresh-status {
  border: 1px solid rgba(97, 231, 255, 0.14);
  color: #94dce7;
  background: rgba(97, 231, 255, 0.06);
}

.menu-more {
  border-top-color: var(--vibe-line);
}

.menu-more > summary {
  color: #8f8c9d;
}

.visitor-counter,
.site-policy-links {
  border-color: var(--vibe-line);
  color: var(--vibe-text);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.visitor-counter-value,
.visitor-counter h2,
.menu-footer,
.menu-license,
.site-policy-links a {
  color: var(--vibe-text);
}

.floating-result {
  left: 408px;
  bottom: 58px;
  min-height: 46px;
  padding: 6px 15px 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--vibe-text);
  background: rgba(16, 16, 25, 0.87);
  box-shadow: 0 16px 38px rgba(9, 8, 18, 0.26);
  backdrop-filter: blur(18px) saturate(1.3);
}

.floating-result img {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px;
}

.floating-result strong {
  color: var(--vibe-lime);
  text-shadow: 0 0 14px rgba(217, 255, 91, 0.28);
}

.loading,
.share-toast {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--vibe-text);
  background: rgba(16, 16, 25, 0.9);
  box-shadow: 0 15px 36px rgba(9, 8, 18, 0.28);
  backdrop-filter: blur(18px);
}

.event-marker {
  width: 32px;
  height: 32px;
  border: 2px solid var(--vibe-ink);
  box-shadow: 0 5px 0 rgba(16, 16, 25, 0.35), 0 8px 16px rgba(16, 16, 25, 0.22);
}

.event-marker::before,
.event-marker-group::before {
  background: rgba(255, 255, 255, 0.86);
}

.event-marker-group {
  min-width: 46px;
  height: 32px;
  border: 2px solid var(--vibe-ink);
  box-shadow: 0 5px 0 rgba(16, 16, 25, 0.34), 0 8px 16px rgba(16, 16, 25, 0.2);
}

.event-marker-count {
  border-color: var(--vibe-ink);
  color: var(--vibe-ink);
  background: var(--vibe-lime);
  box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(16, 16, 25, 0.32);
}

.marker-label {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  color: var(--vibe-text);
  background: rgba(16, 16, 25, 0.88);
  box-shadow: 0 10px 24px rgba(9, 8, 18, 0.24);
  backdrop-filter: blur(14px);
}

.marker-label .label-meta {
  color: #b6b3c2;
}

.leaflet-control-zoom a,
.locate-button {
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: var(--vibe-text) !important;
  background: rgba(16, 16, 25, 0.88) !important;
}

.locate-button svg {
  stroke: currentColor;
}

.leaflet-control-attribution,
.site-policy-links {
  border-radius: 999px;
  color: #cac7d3 !important;
  background: rgba(16, 16, 25, 0.78) !important;
  backdrop-filter: blur(12px);
}

.leaflet-control-attribution a,
.site-policy-links a {
  color: var(--vibe-cyan) !important;
}

.date-picker,
.share-sheet-card,
#details-modal .details-container,
.about-container {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--vibe-text);
  background:
    radial-gradient(circle at 100% 0, rgba(139, 92, 246, 0.16), transparent 34%),
    var(--vibe-panel);
  box-shadow: var(--vibe-shadow);
}

.date-picker-header strong,
.calendar-month h3,
.details-title,
.share-sheet h2,
.about-body,
.about-body h2,
.about-body h3 {
  color: var(--vibe-text);
}

.calendar-nav,
.date-picker-close,
.share-sheet-close,
.about-close-button {
  border: 1px solid var(--vibe-line);
  color: var(--vibe-text);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.calendar-day {
  color: var(--vibe-text);
  background: transparent;
}

.calendar-day:hover:not(:disabled) {
  color: var(--vibe-ink);
  background: var(--vibe-lime);
}

.calendar-day.is-selected,
.calendar-day.is-range-start,
.calendar-day.is-range-end {
  color: #fff;
  background: linear-gradient(135deg, var(--vibe-pink), var(--vibe-violet));
}

.calendar-day.is-in-range {
  color: var(--vibe-text);
  background: rgba(139, 92, 246, 0.18);
}

.calendar-weekdays,
.date-picker-guide,
.share-sheet-description {
  color: var(--vibe-muted);
}

.details-modal,
.share-sheet {
  background: rgba(8, 8, 14, 0.68);
  backdrop-filter: blur(16px) saturate(0.8);
}

.about-hero {
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(217, 255, 91, 0.42), transparent 24%),
    radial-gradient(circle at 8% 106%, rgba(97, 231, 255, 0.38), transparent 32%),
    linear-gradient(135deg, #ff397f, #8b4fff 64%, #5548ff);
}

.about-eyebrow,
.about-feature-number,
.about-author-label,
.share-sheet-eyebrow {
  color: var(--vibe-lime);
}

.about-feature-card,
.event-detail-hero,
.event-group-list-summary,
.event-group-list-item,
.details-source-notice,
.share-choice {
  border-color: var(--vibe-line);
  color: var(--vibe-text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.about-feature-card span,
.event-description,
.event-group-list-copy span,
.event-group-list-copy small,
.detail-value,
.details-source-notice,
.share-choice small {
  color: var(--vibe-muted);
}

.about-primary-button,
.event-share-button {
  color: #fff;
  background: linear-gradient(105deg, var(--vibe-pink), var(--vibe-violet));
  box-shadow: 0 12px 28px rgba(184, 62, 174, 0.25);
}

.about-secondary-button,
.details-link-button,
.event-group-back {
  border-color: var(--vibe-line);
  color: var(--vibe-text);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.event-detail-hero {
  background:
    radial-gradient(circle at 98% 2%, color-mix(in srgb, var(--event-color) 25%, transparent), transparent 38%),
    rgba(255, 255, 255, 0.055);
}

.event-category-chip {
  border-width: 1px;
  color: var(--vibe-text);
  background: color-mix(in srgb, var(--event-color) 18%, #222131);
}

.event-meta-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.event-meta-item dt {
  color: #8f8c9d;
}

.event-meta-item dd,
.event-group-list-summary strong,
.event-group-list-copy strong {
  color: var(--vibe-text);
}

.event-group-list-item:hover,
.event-group-list-item:focus-visible {
  border-color: var(--event-color, var(--vibe-cyan));
  background: rgba(255, 255, 255, 0.09);
}

.share-sheet-card {
  border-radius: 26px;
}

.share-choice:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.share-choice-x {
  background: #08080c;
}

.share-choice-facebook {
  background: #1877f2;
}

.share-choice-instagram {
  background:
    linear-gradient(var(--vibe-panel), var(--vibe-panel)) padding-box,
    linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) border-box;
}

.share-choice-copy {
  background: rgba(97, 231, 255, 0.08);
}

:focus-visible {
  outline-color: var(--vibe-lime);
}

@keyframes vibe-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

@media (max-width: 768px) {
  .side-menu {
    width: 100%;
    height: min(78dvh, 720px);
    padding: 18px 16px 72px;
    border: 1px solid var(--vibe-line);
    border-bottom: 0;
    border-radius: 27px 27px 0 0;
    box-shadow: 0 -24px 60px rgba(8, 8, 14, 0.42);
  }

  .side-menu::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    flex: 0 0 auto;
    margin: -8px auto 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
  }

  .brand-mascot {
    width: 52px;
    height: 52px;
  }

  .menu-header {
    font-size: 19px;
  }

  .brand-mood {
    margin-top: 5px;
  }

  .menu-intro {
    display: none;
  }

  .menu-toggle {
    bottom: 62px;
    height: 52px;
    min-width: 104px;
  }

  #category-filters {
    max-height: 220px;
  }

  .floating-result {
    left: 10px;
    bottom: 64px;
    max-width: calc(100vw - 132px);
  }

  .share-sheet-card {
    border-radius: 28px 28px 20px 20px;
  }
}

@media (max-width: 390px) {
  #category-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-option {
    min-height: 50px;
    padding-left: 7px;
  }

  .menu-tag {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-live i,
  .share-map-button::after,
  .event-share-button::after {
    animation: none !important;
    transition: none !important;
  }
}
.menu-section {
  margin-top: 14px;
}
.menu-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}
.menu-subtitle span {
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
}
.menu-option {
  display: grid;
  grid-template-columns: 16px 21px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  min-width: 0;
  cursor: pointer;
}
.menu-option:hover {
  background: rgba(255, 255, 255, 0.95);
}
.category-icon {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  border: 1px solid #cbd5f5;
  box-sizing: border-box;
  flex: 0 0 auto;
  background: #ffffff;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 16px;
  line-height: 1;
}
.menu-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #2563eb;
}
.menu-tag {
  display: block;
  font-weight: 600;
  color: #1f2937;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.category-count {
  color: #64748b;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#category-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}
.category-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
}
.category-actions .menu-button {
  width: 100%;
  padding: 7px 8px;
  box-shadow: none;
}

/* Category rules live late in the legacy stylesheet, so keep the social
   theme's compact selectable cards nearest to them in the cascade. */
.menu-header-row,
.menu-intro,
.date-filter,
.menu-label,
.search-field,
.menu-section,
.status-summary,
.share-map-button,
.data-refresh-status,
.menu-more {
  flex-shrink: 0;
}

.menu-section {
  margin-top: 2px;
}

.menu-subtitle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--vibe-text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.menu-subtitle span {
  color: #767384;
  font-size: 8px;
  font-weight: 700;
}

#category-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 248px;
  padding: 1px 5px 5px 1px;
}

.menu-option {
  position: relative;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 7px;
  min-height: 54px;
  padding: 8px 28px 8px 9px;
  border: 1px solid var(--vibe-line);
  border-radius: 16px;
  color: var(--vibe-text);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.menu-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.category-icon {
  grid-row: 1 / 3;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1) !important;
  font-size: 18px;
}

.menu-tag {
  align-self: end;
  color: var(--vibe-text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.category-count {
  align-self: start;
  color: #8e8b9b;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.category-actions {
  gap: 8px;
}

.category-actions .menu-button {
  padding: 7px 8px;
  color: #cfccd7;
  background: rgba(255, 255, 255, 0.055);
}

.about-lead,
.about-more > summary,
.about-more-content,
.about-author {
  color: var(--vibe-muted);
}

.about-feature-card strong,
.about-more-content strong {
  color: var(--vibe-text);
}

.about-feature-number {
  color: var(--vibe-lime) !important;
}

.about-links a {
  color: var(--vibe-cyan);
}

.date-picker-header,
.date-picker-footer {
  border-color: var(--vibe-line);
  color: var(--vibe-text);
  background: rgba(23, 23, 36, 0.96);
}

.date-picker-footer {
  box-shadow: 0 -12px 24px rgba(9, 8, 18, 0.16);
}

.date-picker-guide {
  color: var(--vibe-muted);
  background: rgba(255, 255, 255, 0.06);
}

.calendar-day.is-range-start::before,
.calendar-day.is-range-end::before {
  background: linear-gradient(135deg, var(--vibe-pink), var(--vibe-violet));
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.calendar-day.is-range-start.is-range-end {
  background: transparent;
}

.calendar-day.is-today:not(.is-range-start):not(.is-range-end)::before {
  box-shadow: inset 0 0 0 1px var(--vibe-lime);
}

/* The previous theme still supplies structural layout for newer dialogs.
   Keeping it in a low-priority layer lets the unlayered social theme win. */
@layer festival-legacy {
:root {
  --festival-coral: #ff5a36;
  --festival-yellow: #ffd33d;
  --festival-turquoise: #20c7b5;
  --festival-sky: #39a8ff;
  --festival-navy: #18314f;
  --festival-cream: #fff8e8;
  --festival-paper: #fffdf7;
  --festival-shadow: 0 8px 0 rgba(24, 49, 79, 0.12);
}

html,
body {
  color: var(--festival-navy);
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

#map {
  background: #bce9e4;
}

.side-menu {
  width: 360px;
  gap: 12px;
  padding: 18px 18px 70px;
  border-right: 3px solid rgba(24, 49, 79, 0.12);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 211, 61, 0.3), transparent 20%),
    radial-gradient(circle at 92% 16%, rgba(32, 199, 181, 0.2), transparent 22%),
    rgba(255, 248, 232, 0.95);
  box-shadow: 12px 0 0 rgba(24, 49, 79, 0.08), 18px 0 36px rgba(24, 49, 79, 0.18);
  backdrop-filter: blur(14px);
}

.menu-header-row {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.brand-mascot {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 3px solid #fff;
  border-radius: 17px;
  box-shadow: 0 5px 0 rgba(24, 49, 79, 0.14);
  transform: rotate(-3deg);
}

.brand-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--festival-coral);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.menu-header {
  color: var(--festival-navy);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.menu-intro {
  margin-left: 69px;
  color: #49617a;
  font-size: 12px;
  font-weight: 700;
}

.menu-close,
.menu-toggle,
.locate-button {
  border: 2px solid var(--festival-navy);
  color: var(--festival-navy);
  background: var(--festival-paper);
  box-shadow: 0 4px 0 rgba(24, 49, 79, 0.18);
}

.menu-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
}

.menu-toggle {
  width: auto;
  min-width: 86px;
  gap: 7px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.menu-toggle:hover,
.menu-close:hover,
.locate-button:hover {
  background: var(--festival-yellow);
}

.date-filter {
  padding: 15px;
  border: 2px solid var(--festival-navy);
  border-radius: 20px;
  background: var(--festival-paper);
  box-shadow: var(--festival-shadow);
}

.date-filter-heading h2,
.menu-subtitle {
  color: var(--festival-navy);
  font-weight: 900;
}

.date-filter-heading h2::before {
  content: "☀️";
  margin-right: 6px;
}

.date-clear-button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #8b341f;
  background: #ffe1d8;
  font-weight: 800;
}

.calendar-nav,
.date-picker-close {
  min-width: 44px;
  min-height: 44px;
}

.date-range-trigger {
  min-height: 68px;
  border: 2px solid rgba(24, 49, 79, 0.2);
  border-radius: 15px;
  background: #fff;
}

.date-range-trigger:hover,
.date-range-trigger[aria-expanded="true"] {
  border-color: var(--festival-coral);
  background: #fff9f5;
}

.date-range-part strong,
.date-filter-summary {
  color: var(--festival-navy);
  font-weight: 800;
}

.menu-label {
  margin: 2px 0 -4px;
  color: var(--festival-navy);
  font-weight: 900;
}

.menu-input {
  min-height: 46px;
  padding: 10px 13px;
  border: 2px solid rgba(24, 49, 79, 0.2);
  border-radius: 14px;
  color: var(--festival-navy);
  background: #fff;
}

.menu-input:focus {
  border-color: var(--festival-turquoise);
  outline: 3px solid rgba(32, 199, 181, 0.2);
}

.menu-section {
  margin-top: 2px;
}

#category-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 238px;
}

.menu-option {
  position: relative;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  min-height: 48px;
  padding: 7px 9px;
  border: 2px solid rgba(24, 49, 79, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.menu-option:hover {
  transform: translateY(-1px);
  border-color: var(--chip-color, var(--festival-sky));
  background: #fff;
}

.menu-option:has(input:checked) {
  border-color: var(--chip-color, var(--festival-sky));
  background: var(--chip-background, #e9f6ff);
  box-shadow: 0 3px 0 rgba(24, 49, 79, 0.12);
}

.menu-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.category-icon {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  border-width: 2px;
  border-radius: 10px;
  font-size: 19px;
}

.menu-tag {
  align-self: end;
  color: var(--festival-navy);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.category-count {
  align-self: start;
  color: #60758a;
  font-size: 9px;
}

.category-actions {
  gap: 8px;
}

.menu-button {
  min-height: 44px;
  border: 2px solid rgba(24, 49, 79, 0.2);
  border-radius: 12px;
  color: var(--festival-navy);
  background: #fff;
  font-weight: 800;
  box-shadow: 0 3px 0 rgba(24, 49, 79, 0.12);
}

.status-summary {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.status-row {
  display: grid;
  gap: 1px;
  padding: 9px 11px;
  border-radius: 13px;
  color: #60758a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.status-summary span {
  color: var(--festival-coral);
  font-size: 20px;
  font-weight: 900;
}

.share-map-button,
.event-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 10px 16px;
  border: 2px solid var(--festival-navy);
  border-radius: 14px;
  color: var(--festival-navy);
  background: var(--festival-yellow);
  box-shadow: 0 5px 0 var(--festival-coral);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.share-map-button:hover,
.event-share-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08) brightness(1.03);
}

.share-map-button:active,
.event-share-button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--festival-coral);
}

.data-refresh-status {
  margin: 0;
  border-radius: 12px;
  background: rgba(57, 168, 255, 0.14);
  color: #28577d;
}

.menu-more {
  border-top: 1px dashed rgba(24, 49, 79, 0.25);
}

.menu-more > summary {
  padding: 11px 2px 2px;
  color: #526a82;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.menu-more-content {
  display: grid;
  gap: 10px;
  padding-top: 7px;
}

.visitor-counter {
  border: 2px solid rgba(57, 168, 255, 0.4);
  border-radius: 16px;
  box-shadow: none;
}

.site-policy-links {
  border: 2px solid rgba(24, 49, 79, 0.16);
  color: var(--festival-navy);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 5px 0 rgba(24, 49, 79, 0.12);
}

.floating-result {
  position: fixed;
  left: 378px;
  bottom: 58px;
  z-index: 1004;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 13px 5px 6px;
  border: 2px solid var(--festival-navy);
  border-radius: 999px;
  color: var(--festival-navy);
  background: var(--festival-paper);
  box-shadow: 0 5px 0 rgba(24, 49, 79, 0.18);
  font-size: 12px;
  font-weight: 800;
  transition: left 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}

.floating-result img {
  border-radius: 8px;
}

.floating-result strong {
  color: var(--festival-coral);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

body:not(:has(.side-menu.open)) .floating-result {
  left: 14px;
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 70px;
  z-index: 3000;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 16px;
  border: 2px solid var(--festival-navy);
  border-radius: 999px;
  color: #fff;
  background: var(--festival-navy);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.share-toast.open {
  opacity: 1;
  transform: translate(-50%, 0);
}

.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
  background: rgba(24, 49, 79, 0.52);
  backdrop-filter: blur(9px);
}

.share-sheet.open {
  display: flex;
}

.share-sheet-card {
  width: min(480px, 100%);
  padding: 20px;
  border: 3px solid var(--festival-navy);
  border-radius: 24px;
  background: var(--festival-cream);
  box-shadow: 0 9px 0 rgba(24, 49, 79, 0.22), 0 28px 65px rgba(24, 49, 79, 0.34);
}

.share-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.share-sheet-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--festival-coral);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.share-sheet h2 {
  margin: 0;
  color: var(--festival-navy);
  font-size: 21px;
  line-height: 1.35;
}

.share-sheet-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 2px solid var(--festival-navy);
  border-radius: 14px;
  color: var(--festival-navy);
  background: #fff;
  box-shadow: 0 3px 0 rgba(24, 49, 79, 0.16);
  font-size: 22px;
  cursor: pointer;
}

.share-sheet-description {
  margin: 9px 0 15px;
  color: #526a82;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.share-sheet-actions {
  display: grid;
  gap: 10px;
}

.share-choice {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 64px;
  padding: 9px 13px;
  border: 2px solid var(--festival-navy);
  border-radius: 16px;
  color: var(--festival-navy);
  background: #fff;
  box-shadow: 0 4px 0 rgba(24, 49, 79, 0.14);
  text-align: left;
  cursor: pointer;
}

.share-choice:hover {
  transform: translateY(-1px);
}

.share-choice-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(24, 49, 79, 0.08);
  font-size: 23px;
  font-weight: 900;
}

.share-choice > span:last-child {
  display: grid;
  gap: 2px;
}

.share-choice strong {
  font-size: 14px;
  font-weight: 900;
}

.share-choice small {
  color: #60758a;
  font-size: 10px;
  line-height: 1.4;
}

.share-choice-x {
  color: #fff;
  background: #0f1419;
}

.share-choice-x .share-choice-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.share-choice-x small {
  color: #d6dce1;
}

.share-choice-facebook {
  color: #fff;
  background: #1877f2;
}

.share-choice-facebook .share-choice-icon {
  color: #1877f2;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 31px;
}

.share-choice-facebook small {
  color: #e7f0ff;
}

.share-choice-instagram {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) border-box;
  border-color: transparent;
}

.share-choice-instagram .share-choice-icon {
  color: #fff;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  font-size: 28px;
}

.share-choice:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.share-choice-copy {
  background: #dffaf6;
}

.share-choice-native[hidden] {
  display: none;
}

.event-marker {
  width: 30px;
  height: 30px;
  border-width: 3px;
  border-color: var(--festival-navy);
  box-shadow: 0 4px 0 rgba(24, 49, 79, 0.3);
}

.event-marker-emoji {
  font-size: 20px;
}

.event-marker-group {
  min-width: 44px;
  height: 31px;
  border-width: 3px;
  border-color: var(--festival-navy);
  box-shadow: 0 4px 0 rgba(24, 49, 79, 0.28);
}

.event-marker-count {
  border-color: #fff;
  color: var(--festival-navy);
  background: var(--festival-yellow);
}

.marker-label {
  border: 2px solid var(--festival-navy);
  border-radius: 10px;
  color: var(--festival-navy);
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 4px 0 rgba(24, 49, 79, 0.16);
}

.details-modal {
  background: rgba(24, 49, 79, 0.5);
}

.about-hero {
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 211, 61, 0.72), transparent 26%),
    radial-gradient(circle at 8% 105%, rgba(32, 199, 181, 0.55), transparent 34%),
    linear-gradient(135deg, var(--festival-coral), #f0446d 58%, #8b5cf6);
}

.about-eyebrow,
.about-feature-number,
.about-author-label {
  color: var(--festival-yellow);
}

.about-feature-card {
  border: 2px solid rgba(24, 49, 79, 0.14);
  border-radius: 17px;
  box-shadow: 0 5px 0 rgba(24, 49, 79, 0.1);
}

.about-feature-number,
.about-author-label {
  color: var(--festival-coral);
}

.about-primary-button {
  border: 2px solid var(--festival-navy);
  color: var(--festival-navy);
  background: var(--festival-yellow);
  box-shadow: 0 5px 0 var(--festival-coral);
}

.about-secondary-button {
  border: 2px solid rgba(24, 49, 79, 0.2);
  color: var(--festival-navy);
  border-radius: 14px;
}

#details-modal .details-container {
  width: min(680px, 94%);
  padding: 18px;
  border: 3px solid var(--festival-navy);
  border-radius: 24px;
  background: var(--festival-cream);
  box-shadow: 0 12px 0 rgba(24, 49, 79, 0.2), 0 30px 70px rgba(24, 49, 79, 0.3);
}

.details-header {
  align-items: flex-start;
  gap: 12px;
}

.details-title {
  color: var(--festival-navy);
  font-size: clamp(19px, 4vw, 26px);
  font-weight: 900;
  line-height: 1.35;
}

.event-detail-card {
  display: grid;
  gap: 14px;
}

.event-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 2px solid var(--festival-navy);
  border-radius: 19px;
  background:
    radial-gradient(circle at 96% 6%, var(--event-soft-color, #d8f5f1), transparent 34%),
    #fff;
  box-shadow: 0 5px 0 rgba(24, 49, 79, 0.12);
}

.event-detail-hero::after {
  content: attr(data-icon);
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 58px;
  opacity: 0.14;
  transform: rotate(8deg);
  pointer-events: none;
}

.event-category-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.event-category-chip {
  padding: 5px 9px;
  border: 2px solid var(--event-color, var(--festival-sky));
  border-radius: 999px;
  color: var(--festival-navy);
  background: var(--event-soft-color, #e9f6ff);
  font-size: 10px;
  font-weight: 900;
}

.event-description {
  position: relative;
  z-index: 1;
  margin: 0 0 15px;
  color: #425c74;
  font-size: 13px;
  line-height: 1.75;
}

.event-meta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.event-meta-item {
  display: grid;
  gap: 2px;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 248, 232, 0.88);
}

.event-meta-item dt {
  color: #6b7d8f;
  font-size: 9px;
  font-weight: 800;
}

.event-meta-item dd {
  margin: 0;
  color: var(--festival-navy);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.details-actions {
  gap: 10px;
  margin-bottom: 0;
}

.event-share-button,
.details-link-button {
  min-height: 46px;
  box-sizing: border-box;
}

.event-share-button {
  flex: 1 1 210px;
}

.details-link-button {
  flex: 1 1 180px;
  border: 2px solid var(--festival-navy);
  border-radius: 14px;
  color: var(--festival-navy);
  background: #fff;
  box-shadow: 0 4px 0 rgba(24, 49, 79, 0.14);
  font-weight: 800;
}

.details-link-button-secondary {
  flex: 0 1 auto;
  border-color: rgba(24, 49, 79, 0.25);
  color: #526a82;
  font-size: 11px;
}

.event-more {
  border-top: 1px dashed rgba(24, 49, 79, 0.28);
}

.event-more > summary {
  padding: 13px 2px 3px;
  color: #526a82;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.event-more-content {
  padding-top: 10px;
}

.detail-row {
  grid-template-columns: 135px 1fr;
  padding: 7px 3px;
  border-bottom: 1px dashed rgba(24, 49, 79, 0.18);
}

.details-source-notice {
  border-width: 2px;
  border-radius: 14px;
}

.event-group-list-summary {
  border: 2px solid var(--festival-navy);
  border-radius: 15px;
  background: #e2f8f4;
  box-shadow: 0 4px 0 rgba(24, 49, 79, 0.12);
}

.event-group-list-summary strong {
  color: var(--festival-navy);
}

.event-group-list-item {
  min-height: 64px;
  border: 2px solid rgba(24, 49, 79, 0.17);
  border-left: 6px solid var(--event-color, var(--festival-sky));
  border-radius: 15px;
  color: var(--festival-navy);
  box-shadow: 0 3px 0 rgba(24, 49, 79, 0.1);
}

.event-group-list-item:hover,
.event-group-list-item:focus-visible {
  border-color: var(--event-color, var(--festival-sky));
  background: var(--event-soft-color, #f2fbff);
  transform: translateY(-1px);
}

.event-group-list-icon {
  border: 2px solid var(--event-color, var(--festival-sky));
  background: var(--event-soft-color, #e9f6ff);
}

.event-group-list-arrow,
.event-group-back {
  color: var(--festival-coral);
}

.event-group-back {
  min-height: 44px;
  border: 2px solid rgba(24, 49, 79, 0.18);
  border-radius: 12px;
  background: #fff;
  font-weight: 900;
}

:focus-visible {
  outline: 3px solid var(--festival-yellow);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .side-menu {
    height: min(72dvh, 680px);
    padding: 14px 14px 68px;
    border: 3px solid rgba(24, 49, 79, 0.12);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -6px 0 rgba(24, 49, 79, 0.08), 0 -18px 40px rgba(24, 49, 79, 0.22);
  }

  .brand-mascot {
    width: 50px;
    height: 50px;
  }

  .menu-header {
    font-size: 17px;
  }

  .menu-intro {
    margin-left: 61px;
  }

  .menu-toggle {
    bottom: 58px;
    min-width: 92px;
    height: 50px;
  }

  .calendar-day,
  .calendar-day-spacer {
    min-height: 44px;
  }

  #category-filters {
    max-height: 210px;
  }

  .menu-actions {
    flex-direction: row;
  }

  .category-actions .menu-button {
    width: auto;
    flex: 1;
  }

  .floating-result {
    left: 10px;
    bottom: 61px;
    max-width: calc(100vw - 126px);
  }

  body:has(.side-menu.open) .floating-result {
    opacity: 0;
  }

  #details-modal .details-container {
    width: 100%;
    max-height: 94dvh;
    padding: 14px;
    border-radius: 20px;
  }

  .event-meta-grid {
    grid-template-columns: 1fr;
  }

  .event-share-button,
  .details-link-button {
    width: 100%;
    flex-basis: 100%;
  }

  .details-link-button-secondary {
    flex-basis: 100%;
  }

  .detail-row {
    grid-template-columns: 1fr;
  }

  .share-sheet {
    align-items: flex-end;
    padding: 10px;
  }

  .share-sheet-card {
    width: 100%;
    padding: 18px;
    border-radius: 24px 24px 18px 18px;
  }
}

@media (max-width: 390px) {
  #category-filters {
    grid-template-columns: 1fr;
  }

  .menu-intro {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-option,
  .share-map-button,
  .event-share-button,
  .floating-result,
  .share-toast,
  .share-choice,
  .event-group-list-item,
  .event-marker,
  .event-marker-group {
    transition: none !important;
    animation: none !important;
  }
}
}

/* White editorial refinement */
:root {
  --vibe-ink: #191720;
  --vibe-panel: #ffffff;
  --vibe-card: rgba(25, 23, 32, 0.035);
  --vibe-line: rgba(25, 23, 32, 0.11);
  --vibe-text: #191720;
  --vibe-muted: #746f7e;
  --vibe-lime: #8fbe24;
  --vibe-pink: #f04483;
  --vibe-violet: #7c4dff;
  --vibe-cyan: #007f96;
  --vibe-shadow: 0 28px 80px rgba(38, 31, 52, 0.16);
  --white-canvas: #f7f6f3;
  --white-surface: #ffffff;
  --white-soft: #f2f0f4;
  --white-line: #e2dfe7;
  --white-ink: #191720;
  --white-muted: #746f7e;
}

html,
body {
  color: var(--white-ink);
  background: var(--white-canvas);
}

#map {
  background: #d8e7e9;
}

#map::after {
  background:
    linear-gradient(120deg, rgba(124, 77, 255, 0.025), transparent 38%),
    linear-gradient(310deg, rgba(240, 68, 131, 0.025), transparent 44%);
}

.leaflet-tile-pane {
  filter: saturate(0.62) contrast(0.94) brightness(1.055);
}

.side-menu {
  color: var(--white-ink);
  border-right-color: rgba(25, 23, 32, 0.09);
  background:
    radial-gradient(circle at 4% 0%, rgba(240, 68, 131, 0.095), transparent 24%),
    radial-gradient(circle at 100% 17%, rgba(124, 77, 255, 0.085), transparent 29%),
    rgba(250, 249, 247, 0.965);
  box-shadow: 18px 0 52px rgba(38, 31, 52, 0.13);
  backdrop-filter: blur(24px) saturate(1.2);
}

.side-menu::-webkit-scrollbar-thumb,
#category-filters::-webkit-scrollbar-thumb {
  background: rgba(25, 23, 32, 0.15);
}

.brand-mascot {
  border-color: #fff;
  box-shadow:
    0 0 0 5px rgba(240, 68, 131, 0.075),
    0 13px 30px rgba(38, 31, 52, 0.14);
}

.brand-eyebrow {
  color: #7144de;
}

.menu-header {
  color: var(--white-ink);
}

.brand-mood {
  color: #77717f;
}

.brand-live {
  color: #d92f70;
}

.brand-live i {
  box-shadow: 0 0 0 4px rgba(240, 68, 131, 0.11);
}

.menu-intro {
  color: #67616f;
  border-color: rgba(25, 23, 32, 0.09);
  background: rgba(255, 255, 255, 0.64);
}

.menu-close,
.menu-toggle,
.locate-button {
  color: var(--white-ink);
  border-color: rgba(25, 23, 32, 0.13);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(38, 31, 52, 0.13);
}

.menu-toggle:hover,
.menu-close:hover,
.locate-button:hover {
  color: #fff;
  border-color: var(--vibe-violet);
  background: var(--vibe-violet);
}

.date-filter {
  color: var(--white-ink);
  border-color: rgba(25, 23, 32, 0.1);
  background:
    radial-gradient(circle at 100% 0, rgba(124, 77, 255, 0.095), transparent 40%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(38, 31, 52, 0.07);
}

.date-filter::before {
  color: rgba(25, 23, 32, 0.028);
}

.date-filter-heading h2,
.menu-label,
.menu-subtitle {
  color: var(--white-ink);
}

.date-filter-heading h2::before {
  color: #7144de;
  text-shadow: none;
}

.date-clear-button {
  color: #655f6c;
  border-color: rgba(25, 23, 32, 0.08);
  background: rgba(25, 23, 32, 0.045);
}

.date-clear-button:hover {
  color: #fff;
  background: var(--vibe-violet);
}

.date-range-trigger {
  color: var(--white-ink);
  border-color: rgba(25, 23, 32, 0.11);
  background: rgba(247, 246, 249, 0.9);
}

.date-range-trigger:hover,
.date-range-trigger[aria-expanded="true"] {
  border-color: rgba(124, 77, 255, 0.48);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.08);
}

.calendar-glyph {
  color: #7144de;
  filter: none;
}

.date-range-part small,
.date-filter-summary,
.date-range-hint {
  color: var(--white-muted);
}

.date-range-part strong {
  color: var(--white-ink);
}

.date-range-arrow {
  color: var(--vibe-pink);
}

.search-field-icon {
  color: #7144de;
}

.menu-input {
  color: var(--white-ink);
  border-color: rgba(25, 23, 32, 0.1);
  background: rgba(255, 255, 255, 0.82);
  caret-color: var(--vibe-violet);
}

.menu-input::placeholder {
  color: #9a94a1;
}

.menu-input:focus {
  border-color: rgba(124, 77, 255, 0.62);
  outline-color: rgba(124, 77, 255, 0.1);
  background: #fff;
}

.menu-subtitle span {
  color: #918b98;
}

.menu-option {
  color: var(--white-ink);
  border-color: rgba(25, 23, 32, 0.09);
  background: rgba(255, 255, 255, 0.72);
}

.menu-option::after {
  color: #fff;
  border-color: rgba(25, 23, 32, 0.16);
}

.menu-option:hover {
  background: #fff;
  box-shadow: 0 10px 22px rgba(38, 31, 52, 0.07);
}

.menu-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--chip-color, var(--vibe-violet)) 44%, #cfcbd5);
  background: color-mix(in srgb, var(--chip-color, var(--vibe-violet)) 8%, white);
  box-shadow: inset 0 0 22px color-mix(in srgb, var(--chip-color, var(--vibe-violet)) 4%, transparent);
}

.menu-option:has(input:checked)::after {
  color: #fff;
  border-color: var(--vibe-violet);
  background: var(--vibe-violet);
  box-shadow: 0 3px 8px rgba(124, 77, 255, 0.2);
}

.category-icon {
  border-color: rgba(25, 23, 32, 0.08) !important;
  background: rgba(25, 23, 32, 0.045) !important;
}

.menu-tag {
  color: var(--white-ink);
}

.category-count {
  color: #8b8592;
}

.menu-button,
.category-actions .menu-button {
  color: #5d5764;
  border-color: rgba(25, 23, 32, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.menu-button:hover,
.category-actions .menu-button:hover {
  color: var(--white-ink);
  border-color: rgba(25, 23, 32, 0.17);
  background: #fff;
}

.status-row {
  color: var(--white-muted);
  border-color: rgba(25, 23, 32, 0.09);
  background: rgba(255, 255, 255, 0.72);
}

.status-summary span {
  color: #7144de;
  text-shadow: none;
}

.share-map-button,
.event-share-button,
.about-primary-button {
  color: #fff;
  background: linear-gradient(108deg, #ef3e7f, #8a50ee 62%, #6e57ff);
  box-shadow: 0 13px 28px rgba(128, 71, 214, 0.2);
}

.data-refresh-status {
  color: #336b74;
  border-color: rgba(0, 127, 150, 0.12);
  background: rgba(0, 127, 150, 0.055);
}

.menu-more {
  border-top-color: rgba(25, 23, 32, 0.1);
}

.menu-more > summary,
.menu-license,
.visitor-counter-label,
.visitor-counter-updated,
.visitor-counter-note {
  color: var(--white-muted);
}

.visitor-counter,
.site-policy-links {
  color: var(--white-ink);
  border-color: rgba(25, 23, 32, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(38, 31, 52, 0.08);
}

.visitor-counter-value,
.visitor-counter h2,
.menu-footer,
.site-policy-links a {
  color: var(--white-ink);
}

.floating-result {
  color: var(--white-ink);
  border-color: rgba(25, 23, 32, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(38, 31, 52, 0.14);
  backdrop-filter: blur(18px) saturate(1.2);
}

.floating-result img {
  border-color: rgba(25, 23, 32, 0.12);
}

.floating-result strong {
  color: #7144de;
  text-shadow: none;
}

.loading,
.share-toast {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(25, 23, 32, 0.9);
}

.marker-label {
  color: var(--white-ink);
  border-color: rgba(25, 23, 32, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(38, 31, 52, 0.13);
}

.marker-label .label-meta {
  color: var(--white-muted);
}

.leaflet-control-zoom a,
.locate-button {
  color: var(--white-ink) !important;
  border-color: rgba(25, 23, 32, 0.12) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.leaflet-control-attribution,
.site-policy-links {
  color: #5f5966 !important;
  background: rgba(255, 255, 255, 0.84) !important;
}

.leaflet-control-attribution a,
.site-policy-links a {
  color: #6740bf !important;
}

.details-modal,
.share-sheet {
  background: rgba(34, 29, 43, 0.32);
  backdrop-filter: blur(15px) saturate(0.86);
}

.date-picker,
.share-sheet-card,
#details-modal .details-container,
.about-container {
  color: var(--white-ink);
  border-color: rgba(25, 23, 32, 0.11);
  background:
    radial-gradient(circle at 100% 0, rgba(124, 77, 255, 0.06), transparent 35%),
    #fff;
  box-shadow: var(--vibe-shadow);
}

.date-picker-header,
.date-picker-footer {
  color: var(--white-ink);
  border-color: var(--white-line);
  background: rgba(255, 255, 255, 0.96);
}

.date-picker-header strong,
.calendar-month-title,
.calendar-month h3,
.details-title,
.share-sheet h2,
.about-body,
.about-body h2,
.about-body h3 {
  color: var(--white-ink);
}

.calendar-nav,
.date-picker-close,
.share-sheet-close,
.about-close-button {
  color: var(--white-ink);
  border-color: rgba(25, 23, 32, 0.1);
  background: var(--white-soft);
}

.calendar-nav:hover:not(:disabled),
.date-picker-close:hover {
  color: #fff;
  background: var(--vibe-violet);
}

.calendar-weekdays,
.date-picker-guide,
.share-sheet-description {
  color: var(--white-muted);
}

.date-picker-guide {
  background: var(--white-soft);
}

.calendar-day {
  color: var(--white-ink);
}

.calendar-day:hover:not(:disabled)::before {
  background: rgba(124, 77, 255, 0.1);
}

.calendar-day.is-in-range {
  color: var(--white-ink);
  background: rgba(124, 77, 255, 0.08);
}

.calendar-day.is-range-start,
.calendar-day.is-range-end {
  color: #fff;
}

.calendar-day:disabled {
  color: #c1bdc5;
}

.about-body {
  background: #fff;
}

.about-lead,
.about-more > summary,
.about-more-content,
.about-author,
.about-feature-card span {
  color: var(--white-muted);
}

.about-feature-card,
.event-detail-hero,
.event-group-list-summary,
.event-group-list-item,
.details-source-notice,
.share-choice {
  color: var(--white-ink);
  border-color: rgba(25, 23, 32, 0.1);
  background: #fff;
  box-shadow: 0 10px 28px rgba(38, 31, 52, 0.065);
}

.about-feature-card strong,
.about-more-content strong,
.event-group-list-summary strong,
.event-group-list-copy strong {
  color: var(--white-ink);
}

.about-feature-number {
  color: #7144de !important;
}

.about-secondary-button,
.details-link-button,
.event-group-back {
  color: var(--white-ink);
  border-color: rgba(25, 23, 32, 0.1);
  background: var(--white-soft);
}

.event-detail-hero {
  background:
    radial-gradient(circle at 98% 2%, color-mix(in srgb, var(--event-color) 12%, transparent), transparent 38%),
    #fff;
}

.event-category-chip {
  color: var(--white-ink);
  background: color-mix(in srgb, var(--event-color) 9%, white);
}

.event-description,
.event-group-list-copy span,
.event-group-list-copy small,
.detail-value,
.details-source-notice,
.share-choice small {
  color: var(--white-muted);
}

.event-meta-item {
  border-color: rgba(25, 23, 32, 0.07);
  background: var(--white-soft);
}

.event-meta-item dt {
  color: #8e8895;
}

.event-meta-item dd {
  color: var(--white-ink);
}

.event-group-list-item:hover,
.event-group-list-item:focus-visible,
.share-choice:hover {
  background: #fbfafc;
}

.share-choice-x {
  color: #fff;
  background: #111116;
}

.share-choice-facebook {
  color: #fff;
  background: #1877f2;
}

.share-choice-facebook:hover {
  color: #fff;
  background: #1877f2;
}

.share-choice-x small {
  color: #d7d4dc;
}

.share-choice-facebook small {
  color: #e7f0ff;
}

.share-choice-instagram {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) border-box;
}

.share-choice-copy {
  background: #f1f8fa;
}

:focus-visible {
  outline-color: #9a6cff;
}

@media (max-width: 768px) {
  .side-menu {
    border-color: rgba(25, 23, 32, 0.09);
    background:
      radial-gradient(circle at 100% 0, rgba(124, 77, 255, 0.075), transparent 27%),
      rgba(250, 249, 247, 0.985);
    box-shadow: 0 -24px 60px rgba(38, 31, 52, 0.16);
  }

  .side-menu::before {
    background: rgba(25, 23, 32, 0.18);
  }

  .share-sheet-card {
    background: #fff;
  }
}
