/* Mobile-Compatible Map Styles */
.cs_navigation_map {
    width: 100%;
    height: 400px;
    margin: 40px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.cs_navigation_map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
    display: block;
}

#maps-fallback {
    display: none;
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    height: 100%;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#maps-fallback h4 {
    color: #31738c;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

#maps-fallback p {
    margin-bottom: 15px;
    line-height: 1.6;
}

#maps-fallback .fallback-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

#maps-fallback .fallback-buttons a {
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

#maps-fallback .fallback-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .cs_navigation_map {
        height: 300px;
        margin: 30px 0;
        border-radius: 8px;
    }
    
    #maps-fallback {
        padding: 30px 20px;
    }
    
    #maps-fallback h4 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    #maps-fallback .fallback-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    #maps-fallback .fallback-buttons a {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .cs_navigation_map {
        height: 250px;
        margin: 20px 0;
        border-radius: 6px;
    }
    
    #maps-fallback {
        padding: 20px 15px;
    }
    
    #maps-fallback h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    #maps-fallback p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    #maps-fallback .fallback-buttons a {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Touch-friendly map interaction */
@media (pointer: coarse) {
    .cs_navigation_map {
        /* Prevent accidental scrolling on touch devices */
        touch-action: manipulation;
    }
    
    .cs_navigation_map iframe {
        pointer-events: auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cs_navigation_map {
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }
}