﻿html, body { height: 100%; margin: 0; }
#map { height: 100vh; width: 100%; }
.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;
}
.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;
  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-catch {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 12px;
  color: #1f2937;
  line-height: 1.5;
  display: grid;
  gap: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.menu-catch strong {
  font-weight: 700;
}
.menu-catch a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.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;
}
.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-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}
.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;
}
.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-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.35);
  backdrop-filter: blur(8px);
  z-index: 2000;
}
.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;
}
.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-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;
}
.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) {
  .side-menu {
    width: 100vw;
    max-width: 100vw;
    height: 50vh;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    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: 16px;
    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%;
  }
}
.menu-section {
  margin-top: 14px;
}
.menu-subtitle {
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}
.menu-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  min-width: 0;
}
.category-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #cbd5f5;
  box-sizing: border-box;
  flex: 0 0 auto;
}
.menu-option input {
  margin: 2px 0 0;
}
.menu-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #c8c8c8;
  background: #ffffff;
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
#category-filters {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}



















