.site-map-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.site-map-modal[hidden] {
  display: none !important;
}

.site-map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.site-map-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.site-map-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.site-map-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0b1220;
}

.site-map-modal__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.site-map-modal__body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  background: #f8fafc;
}

.site-map-modal__body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-map-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
}

.site-map-modal__open {
  color: #0b4fd6;
  font-weight: 600;
  text-decoration: none;
}

.site-map-modal__open:hover {
  text-decoration: underline;
}

.site-map-modal__close-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 640px) {
  .site-map-modal {
    padding: 10px;
  }

  .site-map-modal__body {
    aspect-ratio: 4 / 5;
    min-height: 320px;
  }
}
