/* Scroll Lock */
html.map-modal-open,
body.map-modal-open {
  overflow: hidden !important;
}

/* Modal Overlay */
.map-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.map-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Content */
.map-modal-content {
  width: 95%;
  max-width: 900px;
  height: 70vh;
  background: #fff;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Wide Screen Adjustments */
@media (min-width: 1200px) {
  .map-modal-content {
    max-width: 1400px;
    height: 85vh;
  }
}

/* Ultra Wide Screen Adjustments */
@media (min-width: 1800px) {
  .map-modal-content {
    max-width: 1700px;
    height: 90vh;
  }
}

/* Mobile Fullscreen Overrides */
@media (max-width: 768px) {
  .map-modal-content {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
  }

  .map-modal-close {
    top: 10px;
    right: 10px;
  }
}

.map-canvas {
  width: 100%;
  height: 100%;
}

/* Close Button */
.map-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  border: none;
  outline: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 20;
}

/* Google Maps Main UI */
.gm-style-mtc {
  margin-right: 10px !important;
}

.gm-style-mtc > button,
.gm-style-mtc > div[role="button"] {
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  height: 28px !important;
  line-height: 28px !important;
}

/* Google Maps Dropdown Menu */
.gm-style-mtc ul {
  border-radius: 8px !important;
  padding: 2px 0 !important;
  margin-top: 4px !important;
}

.gm-style-mtc ul li {
  display: flex !important;
  align-items: center !important;
  padding: 4px 12px !important;
  min-height: 24px !important;
  font-family: inherit !important;
  font-size: 12px !important;
}

/* Dropdown Checkboxes */
.gm-style-mtc ul li > span:first-child {
  transform: scale(1) !important;
  margin-right: 6px !important;
}

.gm-style-mtc ul li > span:not(:first-child) {
  display: none !important;
}
