/* User Map Styles - Clean and Minimal */

#map {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
}

/* Open Route Button - Simplified */
#openRouteButton {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

#openRouteButton button {
    font-family: inherit;
    transition: all 0.2s ease;
}

#openRouteButton button:hover {
    background: #45a049 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25) !important;
}

#openRouteButton button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* Parking lot popup - Simplified */
.leaflet-popup-content-wrapper {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 12px;
}

.leaflet-popup-content h3 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
}

.leaflet-popup-content p {
    margin: 3px 0;
    font-size: 12px;
    line-height: 1.4;
}

.leaflet-popup-content button {
    transition: all 0.2s;
    font-size: 12px;
}

.leaflet-popup-content button:hover {
    background: #45a049 !important;
    transform: translateY(-1px);
}

/* Parking marker - Subtle hover */
.parking-marker {
    cursor: pointer;
    transition: transform 0.15s;
}

.parking-marker:hover {
    transform: scale(1.08);
}

/* Entry/Exit routes - No tooltips to reduce clutter */

/* User location marker - Subtle pulse */
.user-location-marker {
    animation: pulse 3s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Barricade and Entry/Exit markers - Minimal styling */
.barricade-marker,
.entry-point-marker,
.exit-point-marker {
    cursor: pointer;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

/* Responsive design */
@media (max-width: 768px) {
    #openRouteButton {
        top: 10px;
        left: 10px;
    }

    #openRouteButton button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .leaflet-popup-content {
        margin: 10px;
        font-size: 11px;
    }
}

/* Filter Button */
#filter-btn {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 1000;
    background: #FF5722;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

#filter-btn:hover {
    transform: scale(1.05);
    background: #F4511E;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-sizing: border-box;
    animation: slideUp 0.3s;
    max-height: 70vh;
    overflow-y: auto;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
}

.filter-item:hover {
    background: #eee;
}

.filter-item input {
    width: 20px;
    height: 20px;
}

@keyframes slideUp {
    from {
        bottom: -100%;
    }

    to {
        bottom: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .modal-content {
        width: 400px;
        left: 50%;
        bottom: 50%;
        transform: translate(-50%, 50%);
        border-radius: 20px;
        height: auto;
    }

    @keyframes slideUp {
        from {
            transform: translate(-50%, 150%);
        }

        to {
            transform: translate(-50%, 50%);
        }
    }
}