* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1f2328;
  background: #f7f5f0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e2ded4;
}

.sitename { margin: 0; font-size: 1.1rem; }

.lang { display: flex; gap: 6px; }

.lang-btn {
  min-width: 44px;
  padding: 6px 10px;
  border: 1px solid #c9a227;
  border-radius: 8px;
  background: #fff;
  color: #1f2328;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
  background: #c9a227;
  color: #fff;
}

main { padding: 12px 16px 40px; }

.map-wrap { position: relative; width: 100%; }

.map-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  touch-action: none;
  cursor: grab;
}

.map-viewport.is-panning { cursor: grabbing; }

.map-canvas {
  position: relative;
  width: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

.map-reset {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  padding: 8px 12px;
  border: 1px solid #e2ded4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

#map-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.marker {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #b3261e;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.marker.is-revealed {
  opacity: 1;
  pointer-events: auto;
}

.index-list { list-style: none; margin: 0; padding: 0; }

.index-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid #e2ded4;
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.card-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.card-backdrop[hidden],
.load-error[hidden] { display: none; }

.card {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow: auto;
  padding: 18px 20px 22px;
  border-radius: 16px 16px 0 0;
  background: #fff;
}

@media (min-width: 768px) {
  .card-backdrop { align-items: center; }
  .card { border-radius: 16px; }
}

.card-close {
  display: block;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid #e2ded4;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.card h3 { margin: 4px 0 6px; }

.card-logo { max-width: 120px; border-radius: 8px; }

.row { padding: 8px 0; border-bottom: 1px solid #f0ede6; }
.row:last-child { border-bottom: none; }

.row-label { font-weight: 600; }

.btn-maps {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: #1a73e8;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

body.no-scroll { overflow: hidden; }

.load-error {
  margin: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fdecea;
  color: #b3261e;
}
