.nv-leaflet-container {
    display: flex;
    width: 100%;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.nv-map-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #ddd;
    padding: 15px;
    overflow-y: auto;
    z-index: 100; /* Ensure sidebar stays visible */
    position: relative;
}

.nv-map-sidebar h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.nv-marker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nv-marker-item {
    padding: 10px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nv-marker-item:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.nv-marker-item.active {
    background: #2196f3;
    color: white;
    border-color: #1976d2;
}

.nv-marker-item h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 500;
}

.nv-marker-item p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.nv-map-container {
    flex: 1;
    position: relative;
    z-index: 50; /* Lower than sidebar but higher than default */
}

.nv-leaflet-map {
    width: 100%;
    height: 100%;
}

.nv-info-panel {
    position: absolute;
    top: 0;
    left: 0; /* Changed from left to right to slide from right side */
    width: 350px;
    height: 100%;
    background: white;
    border-left: 1px solid #ddd; /* Changed from border-right to border-left */
    transform: translateX(-100%); /* Start hidden to the right */
    transition: transform 0.3s ease;
    z-index: 200; /* Higher than sidebar but not overlapping it */
    overflow: hidden;
}

.nv-info-panel.active {
    transform: translateX(0);
}

.nv-info-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nv-info-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 201;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.nv-info-close:hover {
    color: #333;
    background-color: #f0f0f0;
}

.nv-info-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    padding-top: 50px; /* Add space for close button */
}

.nv-info-body h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.nv-info-body img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.nv-info-body p {
    margin: 10px 0;
    line-height: 1.5;
    color: #555;
}

/* Bounce animation for markers */
@keyframes markerBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.marker-bounce {
    animation: markerBounce 0.6s ease-in-out;
}

/* Ensure marker stays visible during animation */
.leaflet-marker-icon.marker-bounce {
    z-index: 1000 !important;
    opacity: 1 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .nv-leaflet-container {
        flex-direction: column;
        height: auto;
    }
    
    .nv-map-sidebar {
        width: 100%;
        max-height: 200px;
        z-index: 100;
    }
    
    .nv-map-container {
        height: 400px;
        z-index: 50;
    }
    
    .nv-info-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transform: translateY(100%);
        z-index: 1000;
        border-left: none;
        border-top: 1px solid #ddd;
    }
    
    .nv-info-panel.active {
        transform: translateY(0);
    }
}