/* ========================================
   CUSTOM MAP STYLES
   ======================================== */

/* Custom marker cluster styling */
.custom-cluster {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cluster-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cluster-icon span {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

/* Custom marker icon styling */
.custom-marker-icon {
    background: transparent;
    border: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.custom-marker-icon:hover {
    transform: scale(1.1);
}

/* Custom popup styling */
.custom-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    width: 224px !important;
}

.custom-popup .leaflet-popup-tip {
    background-color: #fff;
}

/* User location marker */
.user-location-marker {
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Hide scrollbar for filter buttons */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile bottom sheet enhancement */
/* Mobile bottom sheet enhancement */
@media (max-width: 768px) {
    #attractions-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 60vh;
        /* Default height */
        max-height: 90vh;
        z-index: 500;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        transform: translateY(calc(100% - 140px));
        /* Initial collapsed state showing just the header */
        transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    }

    #attractions-sidebar.is-open {
        transform: translateY(0);
    }

    #attractions-sidebar.is-dragging {
        transition: none;
    }

    #content-area {
        height: calc(100% - 140px);
        /* Ensure content area takes up remaining space */
    }
}

/* Smooth transitions for cards */
.group {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover {
    transform: translateY(-2px);
}

/* Improve mobile touch scrolling for the content area */
#content-area {
    -webkit-overflow-scrolling: touch;
}

/* Leaflet controls customization */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    background-color: #fff !important;
    color: #064e3b !important;
    border: 1px solid #ecfdf5 !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-weight: bold !important;
    transition: all 0.2s ease !important;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
}

.leaflet-control-zoom-in {
    border-radius: 10px 10px 0 0 !important;
}

.leaflet-control-zoom-out {
    border-radius: 0 0 10px 10px !important;
}

/* Glassmorphism sidebar elements */
.glass-sidebar-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Tab button improvements */
.tab-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #059669;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tab-btn.active::after {
    width: 100%;
}

/* Filter button active state */
.filter-btn.active {
    background-color: #10b981 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Custom Scrollbar */
#content-area::-webkit-scrollbar {
    width: 6px;
}

#content-area::-webkit-scrollbar-track {
    background: transparent;
}

#content-area::-webkit-scrollbar-thumb {
    background: rgba(209, 213, 219, 0.5);
    border-radius: 10px;
}

#content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.7);
}
