/* Custom styles for PionGIS - National Industrial Mapping */

.custom-div-icon {
    background: transparent;
    border: none;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Sidebar and Main content transitions */
aside, main {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Map Popup Overrides */
.leaflet-popup-content-wrapper {
    border-radius: 1.5rem;
    padding: 0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.leaflet-popup-tip-container {
    display: none;
}

/* Glass effect for overlays */
.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animation for search results */
#gisSearchResults {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .leaflet-popup-content {
        width: 200px !important;
    }
    
    #detailModal > div:last-child {
        margin-top: auto;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        max-height: 90vh;
        overflow-y: auto;
    }
}
