/* Minimal custom styles for VFVIC Veterans Diary Event Map */
/* This file now only contains styles that can't be handled by Tailwind CSS */

/* Leaflet map popup custom styles */

.leaflet-popup-content-wrapper {
    min-width: 350px !important;
    max-width: min(90vw, 420px) !important;
}

/* Mobile-optimized popup wrapper */
@media (max-width: 768px) {
    .leaflet-popup-content-wrapper {
        min-width: 0 !important;
        max-width: 90vw !important;
    }
}

.leaflet-popup-content h4 {
    color: #1f2937 !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
}

.leaflet-popup-content p {
    margin-bottom: 5px !important;
    color: #6b7280 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* #eventItems {
    max-height: calc(85vh - 150px) !important;
}
 */
/* Ensure map takes full height of container */
#map {
    height: 100% !important;
    width: 100% !important;
    min-height: 250px !important;
}

/* Mobile-optimized popup content */
@media (max-width: 768px) {
    .leaflet-popup-content {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin: 8px 12px !important;
    }

    .leaflet-popup-content h4 {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }

    .leaflet-popup-content p {
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }
}

/* Custom scrollbar for event list */
.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile touch improvements */
@media (max-width: 768px) {

    /* Increase touch target sizes */
    button,
    select,
    input {
        min-height: 44px !important;
    }

    /* Ensure adequate spacing for touch */
    .space-y-3>*+* {
        margin-top: 12px !important;
    }
}

/* Mobile modal animations */
.mobile-modal-enter {
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.mobile-modal-enter-active {
    transform: translateY(0);
}

/* Line clamp utility for mobile event descriptions */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure mobile event items are touch-friendly */
@media (max-width: 768px) {
    .mobile-event-item {
        min-height: 44px;
        padding: 12px;
        margin-bottom: 8px;
    }

    /* Make sure mobile list is properly scrollable */
    #mobileEventItems {
        overflow: auto;
        scroll-behavior: smooth;
    }

    /* Mobile event scroll area height */
    .mobile-event-scroll {
        max-height: calc(85vh - 80px);
    }
}