/* ========================================= */
/* INTERACTIVE MAP STYLES                    */
/* ========================================= */

.map-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    font-weight: 500;
}

.filter-checkbox input[type="checkbox"]:checked+.filter-label {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
}

.filter-checkbox input[type="checkbox"]:checked+.filter-label .filter-icon {
    background: rgba(255, 255, 255, 0.2) !important;
}

.map-container {
    width: 100%;
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
}

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

.map-popup {
    padding: 0;
}

.map-popup-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.map-popup-content {
    padding: 1rem;
}

.map-popup-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.map-popup-description {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.map-popup-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.map-popup-link:hover {
    background: #234a31;
    transform: translateY(-1px);
}

/* Custom Marker Icons */
.custom-marker {
    background: none;
    border: none;
}

.custom-marker-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-base);
    cursor: pointer;
}

.custom-marker-icon:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.marker-hotel {
    background: #E84545;
}

.marker-luxury {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #D4A574;
}

.marker-ecolodge {
    background: #4A7C59;
}

.marker-homestay {
    background: #E88D67;
}

.marker-restaurant {
    background: #D4A574;
}

.marker-bar {
    background: #2D5F3F;
}

/* Loading State */
.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
}

.map-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(45, 95, 63, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }

    .filter-label {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .filter-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}