* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: system-ui, sans-serif;
}

#map {
  width: 100%;
  height: 100%;
}

.poi-button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #d9455f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  padding: 0;
}

.poi-button:hover {
  background: #b8334a;
}

.poi-label {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  pointer-events: none;
}

.poi-label::before {
  display: none;
}

.poi-name-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.poi-marker:hover .poi-name-label {
  opacity: 1;
}

.map-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  text-align: center;
  width: max-content;
  max-width: 90vw;
  padding: 34px 70px 30px;
  pointer-events: none;
}

.map-header::before {
  content: "";
  position: absolute;
  inset: -12px -20px -14px;
  background: radial-gradient(ellipse closest-side,
      rgba(250, 246, 235, 0.97) 78%,
      rgba(250, 246, 235, 0.4) 92%,
      rgba(250, 246, 235, 0) 100%);
  z-index: 0;
}

.map-title,
.map-divider,
.map-subtitle {
  position: relative;
  z-index: 1;
}

.map-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.map-divider {
  width: 160px;
  height: 2px;
  background: #4a7c3f;
  margin: 8px auto;
}

.map-subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 18px;
  color: #4a7c3f;
}

.language-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.language-panel.visible {
  display: flex;
}

.language-panel-box {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.language-button {
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  background: #fff;
  border: 2px solid #d9455f;
  border-radius: 6px;
  padding: 12px 24px;
  cursor: pointer;
}

.language-button:hover {
  background: #d9455f;
  color: #fff;
}

.language-button.active {
  background: #d9455f;
  color: #fff;
}

.language-reopen-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 950;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #d9455f;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.language-reopen-button:hover {
  background: #d9455f;
}

.language-reopen-button .translate-glyph-cjk {
  position: absolute;
  top: 8px;
  left: 11px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: #222;
}

.language-reopen-button .translate-glyph-latin {
  position: absolute;
  bottom: 6px;
  right: 9px;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  color: #d9455f;
}

.language-reopen-button:hover .translate-glyph-cjk,
.language-reopen-button:hover .translate-glyph-latin {
  color: #fff;
}

.map-logo {
  position: fixed;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  height: 90px;
  width: auto;
  max-width: 90vw;
  pointer-events: none;
}