/* Map Container */
.lah-map-container {
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lah-map-single,
.lah-map-all {
    width: 100%;
    min-height: 400px;
}

/* Info Window - Google Maps overrides */
.gm-style-iw-c {
    max-height: none !important;
    padding: 2px 12px 12px !important;
}

.gm-style-iw-ch {
    display: none !important;
}

.gm-style-iw-chr {
    justify-content: end !important;
}

.gm-style-iw-d {
    max-height: none !important;
    overflow: auto !important;
    margin-top: -20px !important;
}

.gm-ui-hover-effect {
    top: 0 !important;
    right: 0 !important;
    width: 30px !important;
    height: 30px !important;
    background-color: white !important;
    border-radius: 50%;
    opacity: 1 !important;
}

.gm-ui-hover-effect > span {
    margin: 2px 0 0 3px !important;
    background-color: #333 !important;
}

/* Info Window Styling */
.lah-map-infowindow {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 280px;
    overflow: hidden;
}

.lah-infowindow-image {
    margin: 0 0 10px 0;
    overflow: hidden;
    line-height: 0;
}

.lah-infowindow-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.lah-map-infowindow h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.lah-map-infowindow h3 a {
    color: #0073aa;
    text-decoration: none;
}

.lah-map-infowindow h3 a:hover {
    text-decoration: underline;
}

.lah-map-infowindow p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.lah-map-infowindow .property-address {
    font-weight: 500;
    color: #333;
}

.lah-map-infowindow .property-price {
    font-weight: bold;
    color: #0073aa;
    font-size: 15px;
}

.lah-map-infowindow .property-type {
    font-style: italic;
    color: #888;
}

.lah-map-infowindow .view-details {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-size: 13px;
    transition: background 0.3s ease;
}

.lah-map-infowindow .view-details:hover {
    background: #005a87;
}

/* Loading State */
.lah-map-container.loading::before {
    content: 'Loading map...';
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    font-size: 16px;
    color: #666;
}

/* Map Legend */
.lah-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 14px 18px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lah-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lah-legend-item img {
    height: 32px;
    width: auto;
    display: block;
}

.lah-legend-item span {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .lah-map-single,
    .lah-map-all {
        min-height: 300px;
    }
    
    .lah-map-infowindow {
        max-width: 220px;
    }

    .lah-infowindow-image img {
        height: 120px;
    }
    
    .lah-map-infowindow h3 {
        font-size: 14px;
    }
    
    .lah-map-infowindow p {
        font-size: 12px;
    }
}
