/* Hide the black hit-area circle for disabled units */
.elg-map-hotspot-proxy.is-disabled {
  display: none !important;
}
/* Completely disable hover/focus/active effects for disabled units */
.elg-map-hotspot.is-disabled,
.elg-map-hotspot.is-disabled:hover,
.elg-map-hotspot.is-disabled:focus,
.elg-map-hotspot.is-disabled:active,
.elg-map-hotspot-proxy.is-disabled,
.elg-map-hotspot-proxy.is-disabled:hover,
.elg-map-hotspot-proxy.is-disabled:focus,
.elg-map-hotspot-proxy.is-disabled:active {
  fill: inherit !important;
  stroke: inherit !important;
  filter: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
  background: none !important;
  box-shadow: none !important;
  outline: none !important;
  border-color: inherit !important;
  transition: none !important;
}
/* Prevent hover effect for disabled units */
.elg-map-hotspot.is-disabled:hover,
.elg-map-hotspot-proxy.is-disabled:hover {
  fill: inherit !important;
  stroke: inherit !important;
  filter: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}
.project-map-shell {
  position: relative;
}

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

@media (max-width: 767px) {
  .project-map-shell {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .project-map-stage {
    min-width: 940px;
  }

  .project-map-modal__panel {
    width: min(94vw, 360px);
    padding: 18px 14px;
  }
}

.elg-map-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.project-map-stage > svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.project-map-stage .elg-map-svg,
.project-map-stage .elg-map-hotspots-svg {
  direction: ltr;
  unicode-bidi: isolate;
}

.project-map-stage .elg-map-svg text {
  direction: ltr;
  unicode-bidi: plaintext;
}

.elg-map-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
}

.elg-map-hotspots-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.elg-map-hotspot {
  cursor: pointer;
  transition: opacity .18s ease, fill .18s ease, stroke .18s ease, background-color .18s ease, border-color .18s ease;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.elg-map-hotspots button.elg-map-hotspot {
  position: absolute;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 6px;
  border: 1px solid rgba(13, 110, 67, .28);
  background: rgba(43, 201, 139, .10);
  opacity: .2;
}

.elg-map-hotspots path.elg-map-hotspot {
  pointer-events: none;
  fill: rgba(43, 201, 139, .01);
  stroke: rgba(13, 110, 67, .01);
  stroke-width: 10;
  opacity: 1;
}

.elg-map-hotspots .elg-map-hotspot-proxy {
  pointer-events: all;
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
}

.project-map-stage .elg-map-svg path.st93 {
  pointer-events: none;
  cursor: pointer;
}

.project-map-stage .elg-map-svg path.st93.elg-source-plot-active {
  fill: rgba(43, 201, 139, .16);
  stroke: rgba(13, 110, 67, .52);
}

.elg-map-hotspots .elg-map-hotspot-proxy.is-available:hover,
.elg-map-hotspots .elg-map-hotspot-proxy.is-available:focus,
.elg-map-hotspots .elg-map-hotspot-proxy.is-available.is-active {
  fill: rgba(43, 201, 139, .08);
  stroke: rgba(13, 110, 67, .72);
  stroke-width: 2.6;
}

.elg-map-hotspots .elg-map-hotspot-proxy.is-sold:hover,
.elg-map-hotspots .elg-map-hotspot-proxy.is-sold:focus,
.elg-map-hotspots .elg-map-hotspot-proxy.is-sold.is-active {
  fill: rgba(199, 161, 92, .08);
  stroke: rgba(183, 116, 31, .72);
  stroke-width: 2.6;
}

.elg-map-hotspots .elg-map-hotspot-proxy.is-unknown:hover,
.elg-map-hotspots .elg-map-hotspot-proxy.is-unknown:focus,
.elg-map-hotspots .elg-map-hotspot-proxy.is-unknown.is-active {
  fill: rgba(80, 98, 116, .08);
  stroke: rgba(53, 70, 88, .24);
  stroke-width: 1;
}

.elg-map-hotspot:focus-visible {
  outline: none;
}

.elg-map-hotspot:focus,
.elg-map-hotspot:active {
  outline: none !important;
  box-shadow: none !important;
}

.elg-map-hotspots path.elg-map-hotspot:focus-visible {
  stroke: rgba(13, 110, 67, .75);
  stroke-width: 1.5;
}

.elg-map-hotspots button.elg-map-hotspot:focus-visible {
  border-color: rgba(13, 110, 67, .75);
}

.elg-map-hotspot.is-available:hover,
.elg-map-hotspot.is-available:focus,
.elg-map-hotspot.is-available.is-active {
  opacity: 1;
}

.elg-map-hotspots path.elg-map-hotspot.is-available:hover,
.elg-map-hotspots path.elg-map-hotspot.is-available:focus,
.elg-map-hotspots path.elg-map-hotspot.is-available.is-active {
  fill: rgba(43, 201, 139, .10);
  stroke: rgba(13, 110, 67, .18);
}

.elg-map-hotspots button.elg-map-hotspot.is-available:hover,
.elg-map-hotspots button.elg-map-hotspot.is-available:focus,
.elg-map-hotspots button.elg-map-hotspot.is-available.is-active {
  background: rgba(43, 201, 139, .2);
  border-color: rgba(13, 110, 67, .62);
}

.elg-map-hotspots path.elg-map-hotspot.is-sold:hover,
.elg-map-hotspots path.elg-map-hotspot.is-sold:focus,
.elg-map-hotspots path.elg-map-hotspot.is-sold.is-active {
  fill: rgba(199, 161, 92, .08);
  stroke: rgba(183, 116, 31, .72);
  stroke-width: 2.6;
}

.elg-map-hotspots path.elg-map-hotspot.is-unknown:hover,
.elg-map-hotspots path.elg-map-hotspot.is-unknown:focus,
.elg-map-hotspots path.elg-map-hotspot.is-unknown.is-active {
  fill: rgba(80, 98, 116, .08);
  stroke: rgba(53, 70, 88, .18);
}

.elg-map-hotspots button.elg-map-hotspot.is-sold:hover,
.elg-map-hotspots button.elg-map-hotspot.is-sold:focus,
.elg-map-hotspots button.elg-map-hotspot.is-sold.is-active {
  background: rgba(199, 161, 92, .2);
  border-color: rgba(183, 116, 31, .72);
  box-shadow: 0 0 0 1px rgba(183, 116, 31, .35);
}

.elg-map-hotspots button.elg-map-hotspot.is-unknown:hover,
.elg-map-hotspots button.elg-map-hotspot.is-unknown:focus,
.elg-map-hotspots button.elg-map-hotspot.is-unknown.is-active {
  background: rgba(80, 98, 116, .14);
  border-color: rgba(53, 70, 88, .68);
}

.elg-map-hotspot.is-sold:hover,
.elg-map-hotspot.is-sold:focus,
.elg-map-hotspot.is-sold.is-active {
  opacity: 1;
}

.elg-map-hotspot {
  transition: opacity .18s ease, background-color .18s ease, border-color .18s ease;
}

.project-map-modal {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
  z-index: 100000;
}

.project-map-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 22, 19, .45);
  opacity: 0;
  transition: opacity .22s ease;
}

.project-map-modal.is-visible .project-map-modal__backdrop {
  opacity: 1;
}

.project-map-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 360px);
  transform: translate(-50%, -46%) scale(.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(13, 110, 67, .16);
  box-shadow: 0 18px 40px -24px rgba(17, 22, 19, .45);
  padding: 20px 18px;
  opacity: 0;
  transition: transform .24s ease, opacity .24s ease;
}

.project-map-modal.is-visible .project-map-modal__panel {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.project-map-modal__close {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 110, 67, .08);
  color: #083524;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.project-map-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline-end: 42px;
}

.project-map-modal__header-status {
  flex-shrink: 0;
}

.project-map-modal__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #0D6E43;
}

.project-map-modal__badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.project-map-modal__status {
  margin-top: 10px;
}

.project-map-modal__badge.is-available {
  color: #0D6E43;
  background: rgba(43, 201, 139, .16);
}

.project-map-modal__badge.is-shared {
  color: #354658;
  background: rgba(80, 98, 116, .14);
}

.project-map-modal__badge.is-sold {
  color: #915f1b;
  background: rgba(199, 161, 92, .2);
}

.project-map-modal__badge.is-unknown {
  color: #354658;
  background: rgba(80, 98, 116, .14);
}

.project-map-modal__id {
  margin-top: 10px;
  color: #0D6E43;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(13, 110, 67, .18);
  margin-inline: auto;
  line-height: 1;
  text-align: center;
}

.project-map-modal__rows {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.project-map-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(232, 221, 201, .35);
  border: 1px solid rgba(13, 110, 67, .08);
  color: #111613;
  font-size: 13px;
}

.project-map-modal__row strong {
  color: #083524;
  font-weight: 800;
}

body.map-modal-open {
  overflow: hidden;
}
