/* Map Styles */
.map-section {
    margin: 30px 0;
}

.map-title {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 22px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

#property-map {
    width: 100%;
    height: 400px;
    border-radius: 2px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    z-index: 1; /* Ensure proper stacking */
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 2px;
    padding: 0px;
}

.leaflet-popup-content {
    margin: 5px 6px;
    line-height: 1.5;
}

/* Print styles */
@media print {
    .map-section {
        page-break-inside: avoid;
        break-inside: avoid;
        margin: 20px 0;
    }
    
    #property-map {
        height: 300px;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Overview Map Styles */
#overview-map {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 40px;
    z-index: 1;
}

.map-section p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

/* Custom popup styles for overview map */
.overview-popup {
    padding: 0px;
    font-size: 14px;
    line-height: 1.4;
}

.overview-popup h4 {
    margin: 0 0 0px;
    color: #0056b3;
    font-size: 16px;
}

.overview-popup .price {
    font-weight: bold;
    margin: 5px 0;
}

.overview-popup .view-link {
    display: inline-block;
    margin-top: 2px;
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}

.overview-popup .view-link:hover {
    text-decoration: underline;
}

@media print {
    #overview-map {
        display: none; /* Hide overview map when printing */
    }
}

/* Popup Styles */
.property-popup {
    padding: 0px;
    max-width: 250px;
}

.popup-image-container {
    margin: 0px 0;
    text-align: center;
}

.popup-image {
    max-width: 100%;
    max-height: 120px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popup-address {
    margin: 0px 0;
    font-size: 13px;
    color: #555;
}

.popup-price {
    font-weight: bold;
    color: #0056b3;
    margin: 5px 0;
}

.popup-link {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 4px;
    background-color: #a7d0fb;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.popup-link:hover {
    background-color: #70a7e6;
}

/* Style the Leaflet popup */
.leaflet-popup-content-wrapper {
    border-radius: 6px;
}

.leaflet-popup-content {
    margin: 0px;
    line-height: 1.4;
}
