.rep-map-tooltip {
  z-index: 9999;
  transition: opacity 0.15s;
}

/* Ensure container allows absolute-positioned controls */
.rep-map-svg-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  @media (max-width:1100px){
    overflow: visible;
  }
}

#rep-map-svg-root {
  position: relative;
  width: 100%;
  padding-bottom: 60%;
}

#rep-map-svg-root svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Control container — floats over the map */
.rep-map-svg-container .mapsvg-buttons {
  position: absolute !important;
  top: 10px;
  left: 10px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove any inherited white background or border */
.rep-map-svg-container .mapsvg-buttons::before,
.rep-map-svg-container .mapsvg-buttons::after {
  display: none !important;
}

/* Individual button group */
.rep-map-svg-container .mapsvg-btn-group {
  display: flex;
  flex-direction: column;
  background: transparent !important;
  border: none !important;
  padding: 0;
}

/* Button styling */
.rep-map-svg-container .mapsvg-btn-map {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #bbb;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, box-shadow 0.2s;
}

.rep-map-svg-container .mapsvg-btn-map:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Icons inside buttons */
.rep-map-svg-container .mapsvg-btn-map svg {
  width: 14px;
  height: 14px;
  fill: #333;
  pointer-events: none;
}

/* Responsive tweak */
@media (max-width: 600px) {
  .rep-map-svg-container .mapsvg-buttons {
    top: 6px;
    left: 6px;
  }
  .rep-map-svg-container .mapsvg-btn-map {
    width: 24px;
    height: 24px;
  }
}

/* Tooltip styling */
.rep-map-tooltip {
  position: absolute;
  pointer-events: none;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  display: none;
  z-index: 10000;
  transition: opacity 0.15s;
}

/* Popup styling */
.rep-map-popup {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  padding: 10px;
  font-size: 14px;
  display: none;
  z-index: 10000;
  width: 175px;
  height: auto;
}

.rep-map-popup h3 {
  margin-top: 20px;
  font-size: 16px;
  color: #333;
}

.rep-map-popup p {
  margin: 4px 0;
  color: #555;
  font-size: 17px;
  line-height: 21px;
}

.rep-map-photo {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
}

.rep-map-close {
  position: absolute;
  top: 0;
  right: 10px;
  border: none;
  background: none;
  font-size: 30px;
  cursor: pointer;
  color: #333;
}
.rep-map-close:hover {
  color: #000;
}