/**
 * Estilos específicos de la página de eventos.
 * Versión limpiada para vista única en formato lista y sin clases sobrantes de grid/list toggle.
 */

.ev-lineclamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ev-lineclamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes evFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ev-card {
    animation: evFadeUp 0.45s ease both;
}

.ev-img {
    transition: transform 0.55s ease;
}

.ev-image-button:hover .ev-img,
.ev-image-button:focus-visible .ev-img {
    transform: scale(1.05);
}

select option {
    color: #0f172a;
}

body.ev-noscroll {
    overflow: hidden;
}

.ev-cal-day {
    min-height: 36px;
    padding: 4px;
}

.ev-cal-day.is-out {
    opacity: 0.45;
}

.ev-cal-day.has-events {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08) inset;
}

.ev-cal-day.is-selected {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.ev-cal-day.is-today:not(.is-selected) {
    outline: 2px solid rgba(16, 185, 129, 0.45);
    outline-offset: -2px;
}

.ev-cal-num {
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 800;
}

.ev-cal-count {
    font-size: 0.55rem;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.ev-calendar-shell {
    max-height: min(720px, 92vh);
}

.ev-calendar-layout {
    height: calc(min(720px, 92vh) - 73px);
    min-height: 0;
}

.ev-calendar-layout>div:last-child {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

#calendar-events-list {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

.ev-calendar-mini-img {
    width: 64px;
    height: 64px;
}

.ev-image-button {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    background: transparent;
    border: 0;
    padding: 0;
}

#image-lightbox img {
    cursor: zoom-out;
}

@media (max-width: 767px) {
    .ev-calendar-shell {
        max-height: 92vh;
    }

    .ev-calendar-layout {
        height: calc(92vh - 65px);
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .ev-calendar-layout>div:first-child {
        overflow: hidden;
    }

    .ev-calendar-layout>div:last-child {
        overflow: hidden;
    }

    #calendar-events-list {
        min-height: 0;
    }
}

@media (max-width: 639px) {
    .ev-cal-day {
        min-height: 32px;
        padding: 3px;
        border-radius: 0.65rem;
    }

    .ev-cal-num {
        font-size: 0.68rem;
    }

    .ev-cal-count {
        font-size: 0.5rem;
        min-width: 14px;
        height: 14px;
    }

    .ev-calendar-mini-img {
        width: 56px;
        height: 56px;
    }
}