:root {
  --theme-color: #d65f83;
  --theme-color-strong: #be3f67;
  --theme-color-soft: rgba(214, 95, 131, 0.14);
  --theme-shadow: rgba(190, 63, 103, 0.24);
  --surface: #fffdfa;
  --surface-muted: #f7f3ef;
  --border: rgba(41, 34, 34, 0.12);
  --text: #1f2329;
  --text-soft: #596170;
  --success: #2f7de1;
  --danger: #df4f5f;
  --area-color: #f2b84b;
  --cluster-bg: var(--theme-color);
  --cluster-ring: rgba(214, 95, 131, 0.2);
  --map-bg: #efe8de;
  --sheet-height: min(46dvh, 440px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-lg: 0 20px 48px rgba(31, 35, 41, 0.18);
  --shadow-md: 0 8px 24px rgba(31, 35, 41, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(180deg, #fbf6f0 0%, #f1ebe4 100%);
}

body {
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-map,
.page-admin {
  min-height: 100dvh;
}

.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
}

.site-footer {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
  padding: 14px 0 calc(18px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.75rem;
  line-height: 1.7;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 10px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.topbar-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.topbar-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.header-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.header-links[hidden] {
  display: none;
}

.header-links-switch {
  align-self: start;
  justify-content: flex-end;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--theme-color-strong);
  letter-spacing: 0.06em;
}

.event-summary h1,
.admin-header h1 {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.85rem);
  line-height: 1.2;
}

.event-date,
.admin-subtitle {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.event-summary {
  display: grid;
  align-content: start;
}

.icon-button,
.action-button,
.secondary-button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 16px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.icon-button,
.action-button {
  background: var(--theme-color);
  color: #fff;
  box-shadow: 0 10px 24px var(--theme-shadow);
}

.icon-button:hover,
.action-button:hover {
  background: var(--theme-color-strong);
}

.secondary-button {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.nav-link-button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--border);
  font-weight: 400;
  white-space: nowrap;
}

.nav-link-button--secondary {
  background: #fff;
  color: var(--text);
}

.nav-link-button--primary {
  background: var(--theme-color);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px var(--theme-shadow);
}

.locate-button.is-active {
  background: var(--theme-color-soft);
  color: var(--theme-color-strong);
  border-color: color-mix(in srgb, var(--theme-color) 55%, white);
}

.map-actions-overlay {
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  z-index: 560;
}

.map-action-button {
  min-width: 84px;
  min-height: 38px;
  padding: 0 12px;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border-radius: 12px;
}

.map-stage {
  min-height: 0;
  padding: 0 12px 12px;
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  align-content: start;
}

.map-frame {
  position: relative;
  height: min(calc((100vw - 24px) * 1.2), calc(100dvh - 48px));
  width: 100%;
  min-height: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--map-bg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.list-launcher-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  gap: 8px;
}

.shop-list-toggle {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.bus-info-toggle {
  min-width: 132px;
}

.shop-list-toggle.is-active {
  background: var(--theme-color-soft);
  color: var(--theme-color-strong);
  border-color: color-mix(in srgb, var(--theme-color) 55%, white);
}

.shop-list-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
}

.shop-list-panel[hidden] {
  display: none !important;
}

.bus-info-panel {
  gap: 16px;
}

.bus-info-copy {
  display: grid;
  gap: 10px;
}

.bus-info-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.bus-info-link {
  width: fit-content;
  text-decoration: none;
  white-space: nowrap;
  min-width: 148px;
}

.shop-list-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.shop-list-panel__header h2 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.shop-list-panel__summary {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.shop-list-close {
  min-height: 40px;
}

.shop-list-search {
  display: grid;
  gap: 6px;
}

.shop-list-search__label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-soft);
}

.shop-list-search__input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.shop-list-search__input:focus {
  outline: 2px solid color-mix(in srgb, var(--theme-color) 24%, white);
  outline-offset: 1px;
}

.shop-filter-chips {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shop-filter-chips::-webkit-scrollbar {
  display: none;
}

.shop-filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  white-space: nowrap;
}

.shop-filter-chip.is-active {
  background: var(--theme-color-soft);
  color: var(--theme-color-strong);
  border-color: color-mix(in srgb, var(--theme-color) 55%, white);
}

.shop-list-cards {
  display: grid;
  gap: 10px;
}

.shop-list-card {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(41, 34, 34, 0.08);
  background: #fff;
  text-align: left;
  display: grid;
  gap: 10px;
}

.shop-list-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.shop-list-card__header strong {
  font-size: 0.98rem;
}

.shop-list-card__focus {
  color: var(--theme-color-strong);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.shop-list-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-list-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.shop-list-card.is-cancelled {
  opacity: 0.58;
  filter: grayscale(0.9);
}

.shop-list-card.is-cancelled strong,
.shop-list-card.is-cancelled p {
  text-decoration: line-through;
}

.shop-list-card__focus--cancelled {
  color: #7a7f89;
}

.map-toolbar {
  display: grid;
  margin: 0;
  grid-column: 1 / -1;
  gap: 10px;
}

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

.leaflet-container {
  width: 100%;
  height: 100%;
  background: var(--map-bg);
  font-family: inherit;
}

.leaflet-control-zoom {
  border: 0;
  box-shadow: var(--shadow-md);
}

.leaflet-control-zoom a {
  color: var(--text);
  width: 40px;
  height: 40px;
  line-height: 40px;
}

.map-overlay {
  position: absolute;
  z-index: 500;
  pointer-events: none;
}

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

.bottom-center {
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  z-index: 1200;
}

.control-card,
.info-sheet,
.panel-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-md);
}

.control-card {
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.control-card {
  width: min(100%, 100%);
}

.panel-card h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.chip-group-toolbar {
  width: 100%;
  justify-content: flex-start;
  row-gap: 8px;
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.control-label {
  font-size: 0.9rem;
  font-weight: 700;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.toggle-chip,
.segmented-option {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-self: center;
}

.toggle-chip input,
.segmented-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-chip span,
.segmented-option span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.toggle-chip input:checked + span,
.segmented-option input:checked + span {
  background: var(--theme-color-soft);
  border-color: color-mix(in srgb, var(--theme-color) 55%, white);
  color: var(--theme-color-strong);
}

.route-chip i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.route-chip--left i {
  background: var(--success);
}

.route-chip--right i {
  background: var(--danger);
}

.info-sheet {
  position: relative;
  width: min(960px, calc(100% - 16px));
  min-height: 132px;
  max-height: calc(var(--sheet-height) + var(--safe-bottom));
  border-radius: 24px 24px 0 0;
  padding: 10px 16px calc(16px + var(--safe-bottom));
  transform: translateY(calc(100% + 16px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.26s ease, opacity 0.2s ease;
}

.info-sheet.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sheet-handle {
  width: 52px;
  height: 6px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(89, 97, 112, 0.24);
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 16px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
}

.sheet-content {
  overflow: auto;
  max-height: calc(var(--sheet-height) - 18px);
  padding-right: 4px;
}

.empty-state,
.sheet-card {
  display: grid;
  gap: 12px;
}

.empty-state {
  padding: 12px 0 4px;
}

.empty-state h2,
.sheet-card h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.empty-state p,
.sheet-card p,
.sheet-card li,
.helper-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  background: var(--theme-color-soft);
  color: var(--theme-color-strong);
}

.pill.area {
  background: rgba(242, 184, 75, 0.2);
  color: #8b6309;
}

.pill.bus {
  background: rgba(35, 71, 111, 0.12);
  color: #23476f;
}

.pill.cancelled {
  background: rgba(89, 97, 112, 0.14);
  color: #596170;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--theme-color) 36%, white);
  color: var(--theme-color-strong);
  text-decoration: none;
  font-weight: 700;
}

.subsection {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  border-left: 4px solid var(--theme-color);
}

.subsection h3 {
  margin: 0;
  font-size: 0.95rem;
}

.detail-list,
.time-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.detail-item,
.time-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid rgba(41, 34, 34, 0.08);
}

.sheet-card.is-cancelled,
.detail-item.is-cancelled {
  opacity: 0.6;
  filter: grayscale(0.9);
}

.sheet-card.is-cancelled h2,
.sheet-card.is-cancelled p,
.detail-item.is-cancelled .detail-button,
.detail-item.is-cancelled > span:not(.pill) {
  text-decoration: line-through;
}

.time-item.is-past {
  opacity: 0.5;
}

.time-item.is-past strong,
.time-item.is-past span {
  text-decoration: line-through;
}

.detail-title,
.detail-button {
  font-weight: 700;
  color: var(--text);
}

.detail-button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.detail-kicker {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.mono-field,
.mono-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 12px 14px;
  color: var(--text);
  font-family: "Consolas", "Menlo", monospace;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.field-grid label,
.panel-card label {
  display: grid;
  gap: 6px;
}

.field-grid span,
.panel-card label > span {
  font-size: 0.88rem;
  font-weight: 700;
}

.inline-message {
  font-size: 0.88rem;
}

.inline-message.error {
  color: #b42318;
}

.shop-marker,
.cluster-marker,
.area-marker,
.bus-stop-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaflet-marker-icon.shop-marker,
.leaflet-marker-icon.area-marker,
.leaflet-marker-icon.image-pin-marker {
  transition: transform 0.18s ease, filter 0.18s ease;
}

.leaflet-marker-icon.is-selected {
  z-index: 1200 !important;
}

.shop-marker__bubble {
  position: relative;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.shop-marker__bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--theme-color);
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px 999px 999px 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
  transform: rotate(-45deg);
  z-index: -1;
}

.shop-marker__bubble::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  background: var(--theme-color);
  border-right: 2px solid rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid rgba(255, 255, 255, 0.96);
  box-sizing: border-box;
  z-index: -2;
}

.area-marker__bubble-text {
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.area-marker__bubble-text::before,
.area-marker__bubble-text::after {
  background: var(--area-color);
}

.area-marker__bubble-text::before {
  box-shadow: 0 12px 24px rgba(139, 99, 9, 0.24);
}

.leaflet-marker-icon.is-selected .shop-marker__bubble {
  transform: scale(1.08);
}

.leaflet-marker-icon.is-selected .shop-marker__bubble::before {
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--theme-color) 24%, white),
    0 12px 24px rgba(0, 0, 0, 0.18);
  animation: marker-ring-pulse 1.4s ease-in-out infinite;
}

.leaflet-marker-icon.is-cancelled {
  opacity: 0.52;
  filter: grayscale(1);
}

.leaflet-marker-icon.is-cancelled .shop-marker__bubble {
  text-decoration: line-through;
}

.leaflet-marker-icon.is-cancelled .shop-marker__bubble::before,
.leaflet-marker-icon.is-cancelled .shop-marker__bubble::after {
  background: #8c929c;
}

.cluster-marker__bubble {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-color-strong) 88%, black);
  color: #fff;
  border: 4px solid color-mix(in srgb, var(--theme-color-strong) 18%, white);
  background-clip: padding-box;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  font-weight: 800;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.area-marker__bubble {
  min-width: 60px;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 18px 18px 18px 6px;
  background: linear-gradient(180deg, #ffd98a 0%, #f1b84b 100%);
  border: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(90, 65, 17, 0.22);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 2px;
}

.image-pin-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-pin-marker__wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.image-pin-marker__img {
  display: block;
  width: 100%;
  height: 100%;
}

.image-pin-marker__emoji {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(31, 35, 41, 0.18));
}

.image-pin-marker--bus-stop .image-pin-marker__wrap {
  width: 29px;
  height: 37px;
}

.image-pin-marker--parking .image-pin-marker__wrap {
  width: 22px;
  height: 22px;
}

.image-pin-marker--toilet .image-pin-marker__wrap {
  width: 22px;
  height: 29px;
}

.leaflet-marker-icon.is-selected .image-pin-marker__wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--theme-color) 20%, white),
    0 8px 18px rgba(31, 35, 41, 0.16);
  animation: marker-image-pulse 1.4s ease-in-out infinite;
  pointer-events: none;
}

.leaflet-marker-icon.is-selected.image-pin-marker--bus-stop .image-pin-marker__wrap::after {
  width: 29px;
  height: 29px;
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.leaflet-marker-icon.is-selected.image-pin-marker--parking .image-pin-marker__wrap::after {
  width: 22px;
  height: 22px;
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.area-marker__label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #6f4b05;
  line-height: 1;
}

.area-marker__count {
  font-size: 0.96rem;
  font-weight: 900;
  color: #402a04;
  line-height: 1;
}

.bus-stop-marker__bubble {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  background: #23476f;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 20px rgba(35, 71, 111, 0.24);
  font-size: 1rem;
}

.user-location-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-location-marker__dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #1565c0;
  border: 3px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 10px rgba(21, 101, 192, 0.18);
}

.bus-route {
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12 10;
  animation: route-flow 14s linear infinite;
}

.bus-route.route-left {
  stroke: var(--success);
}

.bus-route.route-right {
  stroke: var(--danger);
}

.route-arrow-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.route-arrow-marker__glyph {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.95);
  opacity: 0.98;
  transform-origin: 50% 50%;
}

.route-arrow-marker__glyph.is-left {
  color: var(--success);
}

.route-arrow-marker__glyph.is-right {
  color: var(--danger);
}

@keyframes route-flow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -44;
  }
}

@keyframes marker-pop {
  0%,
  100% {
    transform: scale(1.08);
  }

  50% {
    transform: scale(1.14);
  }
}

@keyframes marker-ring-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 6px color-mix(in srgb, var(--theme-color) 24%, white),
      0 12px 24px rgba(0, 0, 0, 0.18);
  }

  50% {
    box-shadow:
      0 0 0 10px color-mix(in srgb, var(--theme-color) 18%, white),
      0 14px 26px rgba(0, 0, 0, 0.2);
  }
}

@keyframes marker-image-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.82),
      0 0 0 6px color-mix(in srgb, var(--theme-color) 24%, white),
      0 10px 20px rgba(31, 35, 41, 0.16);
  }

  50% {
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.88),
      0 0 0 8px color-mix(in srgb, var(--theme-color) 18%, white),
      0 12px 24px rgba(31, 35, 41, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bus-route {
    animation: none;
  }

  .leaflet-marker-icon.is-selected .shop-marker__bubble::before,
  .leaflet-marker-icon.is-selected .image-pin-marker__wrap::after {
    animation: none;
  }
}

@media (max-width: 767px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 10px 12px 2px;
    gap: 6px 8px;
  }

  .topbar-main {
    gap: 4px;
  }

  .topbar-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
  }

  .header-links-switch {
    width: auto;
    justify-content: flex-end;
    align-self: start;
  }

  .event-summary {
    gap: 2px;
  }

  .eyebrow {
    margin-bottom: 2px;
  }

  .event-summary h1 {
    font-size: 1.05rem;
    line-height: 1.18;
  }

  .event-date {
    margin-top: 0;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .map-toolbar {
    grid-column: 1 / -1;
    margin-top: -1px;
  }

  .header-links-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .header-links-toolbar::-webkit-scrollbar {
    display: none;
  }

  .map-stage {
    padding: 0 8px 8px;
    gap: 0;
  }

  .map-frame {
    width: 100%;
    height: calc((100vw - 16px) * 1.2);
    max-height: none;
    border-radius: 22px;
  }

  .map-actions-overlay {
    top: 10px;
    left: 10px;
    gap: 6px;
  }

  .control-card {
    padding: 10px 12px;
  }

  .chip-group-toolbar {
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
    padding-bottom: 0;
    align-items: center;
    justify-content: flex-start;
  }

  .chip-group-toolbar .toggle-chip span {
    height: 36px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .header-links-toolbar .nav-link-button,
  .header-links-switch .nav-link-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .info-sheet {
    width: 100%;
    border-radius: 24px 24px 0 0;
    transform: translateY(calc(100% + 16px));
  }

  .sheet-close {
    top: 10px;
    right: 12px;
  }

  .shop-list-panel {
    margin-top: 8px;
    padding: 14px 12px calc(14px + var(--safe-bottom));
    border-radius: 22px;
  }

  .shop-list-panel__header {
    align-items: center;
  }

  .list-launcher-row {
    margin-top: 4px;
  }

  .shop-list-close,
  .shop-list-toggle {
    min-height: 38px;
    padding: 0 14px;
  }

  .map-action-button {
    min-width: 76px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  .shop-list-toggle {
    width: auto;
    min-width: 132px;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(31, 35, 41, 0.16);
  }
}

@media (max-width: 959px) and (orientation: landscape) {
  .topbar {
    padding-top: 8px;
    gap: 4px 8px;
  }

  .event-summary h1 {
    font-size: 1rem;
  }

  .event-date {
    font-size: 0.82rem;
  }

  .chip-group-toolbar {
    gap: 5px;
  }

  .chip-group-toolbar .toggle-chip span {
    height: 32px;
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .map-stage {
    padding-bottom: 8px;
  }

  .site-footer {
    width: calc(100% - 16px);
    padding-top: 12px;
    font-size: 0.72rem;
  }

  .map-frame {
    height: clamp(200px, calc(100dvh - 118px), 420px);
    max-height: none;
  }
}

@media (min-width: 960px) {
  .topbar {
    --desktop-map-width: min(calc(100dvh - 132px), calc(100vw - 40px));
    padding: 18px 20px 12px;
    width: min(var(--desktop-map-width), calc(100vw - 40px));
    margin: 0 auto;
    gap: 10px 16px;
  }

  .map-stage {
    --desktop-map-width: min(calc(100dvh - 132px), calc(100vw - 40px));
    padding: 0 20px 20px;
    justify-items: center;
    width: min(var(--desktop-map-width), calc(100vw - 40px));
    margin: 0 auto;
  }

  .site-footer {
    --desktop-map-width: min(calc(100dvh - 132px), calc(100vw - 40px));
    width: min(var(--desktop-map-width), calc(100vw - 40px));
  }

  .map-frame {
    width: 100%;
    height: calc(var(--desktop-map-width) * 1.2);
    max-width: 100%;
    max-height: none;
  }

  .topbar-main,
  .map-toolbar {
    width: 100%;
  }

  .header-links-toolbar {
    justify-content: flex-start;
  }

  .info-sheet {
    width: calc(100% - 32px);
    max-width: 760px;
    border-radius: 26px 26px 18px 18px;
    bottom: 16px;
    transform: translateY(calc(100% + 16px));
  }

  .bottom-center {
    justify-content: flex-end;
    padding: 0 16px 0 16px;
    left: 0;
    right: 0;
    width: 100%;
  }
}
