/* Add Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.psl-wrapper {
    display: block !important;
    visibility: visible !important;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.04);
    background: #ffffff;
}

.psl-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 500px;
}

.psl-sidemenu {
    width: 100%;
    height: auto;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    background-color: #fafafa;
}

@media (min-width: 768px) {
    .psl-sidemenu {
        width: 35%;
        height: 500px;
        overflow-y: auto;
    }
}

/* Custom scrollbar */
.psl-sidemenu::-webkit-scrollbar {
    width: 8px;
}

.psl-sidemenu::-webkit-scrollbar-track {
    background: transparent;
}

.psl-sidemenu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.psl-sidemenu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.psl-map-wrapper {
    width: 100%;
    height: 300px;
}

@media (min-width: 768px) {
    .psl-map-wrapper {
        width: 65%;
        height: 500px;
    }
}

#psl-map {
    width: 100%;
    height: 100%;
}

#psl-map .psl-popup img {
    max-height: 120px;
    width: 100%;
    object-fit: cover;
}


.psl-city {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    list-style: none;
}

.psl-city-header {
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    padding: 20px 24px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    position: relative;
    color: #0a0a0a;
}

.psl-city-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.psl-city-header::after {
    content: '›';
    font-size: 24px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.psl-city.open .psl-city-header {
    background-color: rgba(0, 0, 0, 0.02);
}

.psl-city.open .psl-city-header::after {
    transform: rotate(90deg);
}

.psl-store-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.psl-city.open .psl-store-list {
    max-height: 1000px;
    background-color: #ffffff;
}

.psl-store-item {
    cursor: pointer;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.psl-store-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
    padding-left: 24px;
}

.psl-store-item.active {
    background-color: rgba(0, 0, 0, 0.04);
    border-left: 2px solid #0a0a0a;
    padding-left: 18px;
}

.psl-store-image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
}

.psl-store-info {
    font-weight: 500;
    font-size: 14px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    
    
    .psl-sidemenu {
        background-color: #1e222c;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .psl-city {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .psl-city-header {
        color: #ffffff;
    }
    
    .psl-city-header:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .psl-city.open .psl-city-header {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .psl-city-header::after {
        color: rgba(255, 255, 255, 0.3);
    }
    
    .psl-city.open .psl-store-list {
        background-color: #141820;
    }
    
    .psl-store-item {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .psl-store-item:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .psl-store-item.active {
        background-color: rgba(255, 255, 255, 0.08);
        border-left: 2px solid #ffffff;
    }
    
    .psl-store-info {
        color: #e5e5e5;
    }
    
    .psl-sidemenu::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .psl-sidemenu::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }
}

/* ================= PRETTY LEAFLET POPUP ================= */ 
.psl-popup .psl-popup-image { 
    width: 100%; 
    max-height: 160px; 
    object-fit: cover; 
    border-radius: 12px; 
    margin-bottom: 14px; 
    box-shadow: 0 6px 18px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.35);
 } 
 
 /* Popup wrapper */ 
 
 .leaflet-popup-content-wrapper { 
    background: linear-gradient( 180deg, rgba(255,255,255,0.95), rgba(245,248,255,0.95) ); 
    backdrop-filter: blur(8px); 
    border-radius: 16px; 
    border: 1px solid rgba(0,0,0,0.06); 
    box-shadow: 0 14px 32px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.7); 
}

/* Popup content */ 
.leaflet-popup-content { 
    margin: 20px; 
    font-size: 14.5px; 
    line-height: 1.65; 
    color: #2a2a2a; 
} 

/* Title */ 

.leaflet-popup-content strong { 
    display: block; 
    margin-bottom: 8px;
    font-size: 18px; 
    font-weight: 600; 
    letter-spacing: 0.4px; 
    color: #0a0a0a; 
} 


/* Optional subtle separator */ 
.leaflet-popup-content strong::after { 
    content: ''; 
    display: block; 
    width: 36px; 
    height: 3px; 
    margin-top: 6px; 
    background: linear-gradient(90deg, #ff4d8d, #7b2cff); 
    border-radius: 2px; 
}