.project-map-open {
  overflow: hidden;
}

.project-map-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 19, 18, 0.78);
  backdrop-filter: blur(6px);
}

.project-map-overlay[hidden] {
  display: none;
}

.project-map-panel {
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 20px;
  border-radius: 28px;
  background: #f7f4ef;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.project-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 2px 16px;
}

.project-map-header div {
  display: grid;
  gap: 2px;
}

.project-map-header span {
  color: #b5966a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-map-header strong {
  color: #242321;
  font-size: clamp(20px, 3vw, 30px);
}

.project-map-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: #242321;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.project-map-shell {
  position: relative;
  min-width: 0;
}

.project-all-map {
  width: 100%;
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  background: #e9e7e2;
  box-shadow: 0 18px 44px rgba(29, 28, 26, 0.12);
  z-index: 1;
}

.project-map-status {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  max-width: calc(100% - 36px);
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(30, 29, 27, 0.88);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.project-map-marker {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 10%;
  color: #1f1e1c;
  background: #b5966a;
  box-shadow: 0 7px 18px rgba(31, 30, 28, 0.3);
  transform: rotate(-45deg);
  font-size: 13px;
  font-weight: 800;
}

.project-map-marker span {
  transform: rotate(45deg);
}

.project-map-popup {
  min-width: 250px;
  color: #242321;
}

.project-map-popup h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
}

.project-map-popup > p {
  margin: 0 0 10px;
  color: #6b675f;
  font-size: 13px;
}

.project-map-popup-list {
  display: grid;
  gap: 7px;
  max-height: 230px;
  overflow: auto;
  padding-right: 4px;
}

.project-map-popup-list a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #242321;
  background: #f3efe9;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.project-map-popup-list a:hover,
.project-map-popup-list a:focus-visible {
  color: #fff;
  background: #b5966a;
  outline: none;
}

.project-map-fallback {
  display: grid;
  align-content: center;
  min-height: 560px;
  padding: 32px;
  border-radius: 24px;
  color: #fff;
  background: #242321;
}

.project-map-fallback h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.project-map-fallback p {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 760px) {
  .project-map-overlay {
    padding: 10px;
  }

  .project-map-panel {
    max-height: calc(100vh - 20px);
    padding: 14px;
    border-radius: 20px;
  }

  .project-all-map,
  .project-map-fallback {
    min-height: 480px;
    border-radius: 18px;
  }
}
