/* Maps View - Full Screen Map with Pins */

/* Base Layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow: hidden;
}

.maps-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Map Section (Full Screen) */
.map-section {
  flex: 1;
  position: relative;
  background: #f0f0f0;
  width: 100%;
  height: 100%;
}

#map {
  height: 100%;
  width: 100%;
}

/* Hide Leaflet attribution watermark */
.leaflet-control-attribution {
  display: none;
}

/* Hide default Leaflet zoom control */
.leaflet-control-zoom {
  display: none;
}

/* Close Button (Top Right) - Rectangular */
.map-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 1001;
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
}

.map-close-btn:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.map-close-btn:active {
  transform: translateY(0);
}

.map-close-btn svg {
  width: 20px;
  height: 20px;
  color: #333333;
}

/* Map Controls (Bottom Left) */
.map-controls {
  position: absolute;
  bottom: 30px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.map-control-btn {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.map-control-btn:hover {
  background: #f5f5f5;
  transform: scale(1.05);
}

.map-control-btn:active {
  transform: scale(0.95);
}

.map-control-btn svg {
  width: 20px;
  height: 20px;
  color: #333333;
}

/* Custom Leaflet Popup Styles */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
  margin: 0;
  min-width: 280px;
}

.leaflet-popup-tip {
  background: white;
}

.property-popup {
  display: flex;
  flex-direction: column;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.property-popup-image {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #4a7c23 0%, #6ba83e 100%);
  background-size: cover;
  background-position: center;
}

.property-popup-content {
  padding: 16px;
}

.property-popup-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.property-popup-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #555555;
  margin-bottom: 8px;
}

.property-popup-price {
  font-size: 18px;
  font-weight: 700;
  color: #4a7c23;
  margin-bottom: 12px;
}

.property-popup-amenities {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.amenity-badge {
  padding: 4px 10px;
  background: #e8f5e9;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  color: #4a7c23;
  text-transform: capitalize;
}

/* Responsive Design */
@media (max-width: 768px) {
  .map-close-btn {
    top: 15px;
    right: 15px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .map-close-btn svg {
    width: 18px;
    height: 18px;
  }

  .map-controls {
    bottom: 20px;
    left: 15px;
  }

  .map-control-btn {
    width: 40px;
    height: 40px;
  }

  .property-popup-content {
    min-width: 240px;
  }
}

/* Custom Leaflet Popup Styles */
.leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
  margin: 0;
  min-width: 250px;
}

.leaflet-popup-tip {
  background: white;
}

.amenity-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #e8f5e9;
  color: #4a7c23;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
