/*----------------------------------
  Wrapper Layout
----------------------------------*/
.location-map-wrapper {
  display: flex;
  gap: 25px;
  padding: 30px;
  background: #f6f8fb;
  border-radius: 25px;
  box-sizing: border-box;
}

/*----------------------------------
  Location List
----------------------------------*/
.location-list {
  width: 30%;
}

.location-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.location-list li {
  display: flex;
  align-items: center;
  padding: 15px 22px;
  margin-bottom: 12px;
  background: #ffffff;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #222;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.location-list li:hover {
  transform: translateX(5px);
}

.location-list li.active {
  background: linear-gradient(135deg, #0d5bd8, #0b4cb3);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(13,91,216,0.35);
}

/*----------------------------------
  Map Area
----------------------------------*/
.map-area {
  width: 70%;
  position: relative;
}

#serviceMap {
  width: 100%;
  height: 420px;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
}


/*----------------------------------
  Leaflet Popup Styling
----------------------------------*/
.leaflet-popup-content-wrapper {
  border-radius: 14px;
  padding: 0;
}

.leaflet-popup-content {
  margin: 0;
  font-family: inherit;
}

.map-popup {
  padding: 12px 14px;
  max-width: 240px;
}

.map-popup h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #0d5bd8;
}

.map-popup .popup-content {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.map-popup img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 8px;
}

/*----------------------------------
  Leaflet Close Button
----------------------------------*/
.leaflet-popup-close-button {
  top: 6px;
  right: 6px;
  color: #333;
}


.leaflet-popup-tip {
  margin-top: -10px; /* push tip slightly above */
}

#serviceMap .leaflet-popup-content-wrapper {
  overflow: visible !important;
}

.map-area {
  overflow: visible; /* allow popup to appear outside container */
}


/*----------------------------------
  Responsive
----------------------------------*/
@media (max-width: 991px) {

  .location-map-wrapper {
    flex-direction: column;
    padding: 20px;
  }

  .location-list,
  .map-area {
    width: 100%;
  }

  #serviceMap {
    height: 350px;
  }

  .location-list li:hover {
    transform: none;
  }
}

@media (max-width: 480px) {

  .location-list li {
    padding: 14px 18px;
    font-size: 14px;
  }

  .map-popup h4 {
    font-size: 15px;
  }

  .map-popup .popup-content {
    font-size: 13px;
  }
}
