/* Interactive Listings Map Styles */

#wsus__interactive_map {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Filter Container */
.map-filter-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color: #FF6B6B;
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.2);
}

.filter-btn.active {
    background: #FF6B6B;
    border-color: #FF6B6B;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.filter-btn i {
    font-size: 14px;
}

/* Map Container */
#listings-map {
    width: 100%;
    height: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Info Window Styles */
.map-info-window {
    font-family: 'Arial', sans-serif;
}

.map-info-window h6 {
    color: #333;
    margin: 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.map-info-window p {
    margin: 5px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.map-info-window i {
    margin-right: 5px;
    color: #FF6B6B;
}

.map-info-window img {
    border: 2px solid #f0f0f0;
}

/* Marker Cluster Styles */
.cluster {
    background-color: #FF6B6B;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    #wsus__interactive_map {
        padding: 40px 0;
    }

    #listings-map {
        height: 400px;
    }

    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .filter-btn {
        font-size: 12px;
        padding: 8px 15px;
        white-space: nowrap;
    }

    .map-filter-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #listings-map {
        height: 350px;
    }

    .filter-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* Loading State */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    background: #f8f9fa;
    border-radius: 10px;
}

.map-loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #e0e0e0;
    border-top-color: #FF6B6B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar for Filter Buttons on Mobile */
.filter-buttons::-webkit-scrollbar {
    height: 6px;
}

.filter-buttons::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filter-buttons::-webkit-scrollbar-thumb {
    background: #FF6B6B;
    border-radius: 10px;
}

.filter-buttons::-webkit-scrollbar-thumb:hover {
    background: #ff5252;
}
