/* Mobile Fixes CSS */

/* Highlights alert styling */
.highlights-alert {
    background-color: rgba(26, 58, 143, 0.85);
    color: white;
    text-align: center;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 16px;
    margin: 15px auto 25px;
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

.highlights-alert i {
    margin-right: 10px;
    font-size: 18px;
}

.highlights-alert .close-alert {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    padding: 5px;
}

.highlights-alert .close-alert:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Additional mobile improvements */
@media (max-width: 768px) {
    /* Gallery item improvements for better visibility */
    .gallery-item {
        height: auto !important;
        max-height: none !important;
    }
    
    .gallery-item img {
        height: auto !important;
        width: 100% !important;
    }
    
    /* Ensure map is always visible */
    #map {
        display: block !important;
        visibility: visible !important;
        min-height: 350px !important;
    }
    
    .leaflet-container {
        height: 100% !important;
        min-height: 300px !important;
    }
    
    /* Improve image previews */
    .gallery-carousel {
        padding-bottom: 30px;
    }
}

/* Ensure Fancybox works properly on mobile */
@media (max-width: 480px) {
    .fancybox__container {
        --fancybox-bg: rgba(24, 24, 27, 0.95);
    }
    
    .fancybox__slide {
        padding: 10px;
    }
}