.map-container {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 60px;
  z-index: 1;
}

.filters-container {
  position: relative;
  z-index: 2;
  background-color: rgba(22, 22, 22, 0.8);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 15px;
}

.map-popup-horizontal {
  display: flex;
}

.map-popup-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.map-popup-content {
  flex: 1;
}

.map-popup-price {
  color: #e67e22;
  font-weight: bold;
  font-size: 16px;
  margin: 5px 0;
}

.map-popup-details {
  display: flex;
  font-size: 12px;
}

.price-marker {
  background-color: rgba(108, 52, 131, 0.8);
  color: white;
  border-radius: 5px;
  padding: 3px 5px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  min-width: fit-content;
  display: inline-block;
  text-align: center;
}

.custom-marker div {
  position: relative;
}

.property-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.price-slider {
  margin: 20px 10px 0 10px;
}

.noUi-connect {
  background: #6c3483;
}

.noUi-handle {
  border-radius: 50%;
  background: #6c3483;
  box-shadow: none;
  width: 28px !important;
  height: 28px !important;
}

.noUi-handle:before,
.noUi-handle:after {
  display: none;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: white;
}

.marker-cluster-small {
  background-color: rgba(108, 52, 131, 0.6);
}

.marker-cluster-small div {
  background-color: rgba(108, 52, 131, 0.8);
  color: white;
}

.marker-cluster-medium {
  background-color: rgba(108, 52, 131, 0.6);
}

.marker-cluster-medium div {
  background-color: rgba(108, 52, 131, 0.8);
  color: white;
}

.marker-cluster-large {
  background-color: rgba(108, 52, 131, 0.6);
}

.marker-cluster-large div {
  background-color: rgba(108, 52, 131, 0.8);
  color: white;
}

.count-badge {
  display: inline-block;
  padding: 2px 8px;
  background-color: #6c3483;
  color: white;
  border-radius: 50px;
  font-size: 12px;
  margin-left: 8px;
}

.map-loader .spinner-border {
  color: #6c3483 !important;
}

.map-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(108, 52, 131, 0.3);
}

.map-loader .mt-2 {
  color: #6c3483;
  font-weight: 500;
}

#custom-popup {
  transition: all 0.3s ease;
  border: 1px solid rgba(108, 52, 131, 0.3);
  top: 112px;
}

#custom-popup .map-popup-horizontal {
  display: flex;
  max-height: 150px;
  max-width: fit-content;
}

#custom-popup .map-popup-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

#custom-popup .map-popup-content {
  flex: 1;
  padding: 15px 10px;
}

#custom-popup .map-popup-title {
  font-size: 14px;
}

#custom-popup .map-popup-adress {
  font-size: 14px;
  padding: 0;
  margin: 0;
}

#custom-popup .map-popup-price {
  color: #e67e22;
  font-weight: bold;
  font-size: 16px;
  margin: 0;
}

#custom-popup .map-popup-details {
  display: flex;
  font-size: 12px;
  margin-bottom: 5px;
}

#custom-popup .map-popup-details p {
  margin: 0;
}

@media (max-width: 576px) {
  .btn-group {
    flex: 1;
  }

  .property-type-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    width: 100%;
  }

  .property-type-filter .material-icons {
    margin-bottom: 5px;
  }

  .count-badge {
    margin-top: 5px;
    margin-left: 0;
  }

  #custom-popup {
    top: 265px;
  }
}
