.event-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 502px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.event-item__media {
    height: 357px;
    flex: 0 0 357px;
    overflow: hidden;
    position: relative;
}

.event-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease, filter 0.28s ease;
    will-change: transform, filter;
}

.event-item__age {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.event-item__price {
    position: absolute;
    left: 15px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 13px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.6);
    color: #000;
    font-size: 14px;
    font-weight: 400;
}

.event-item__price-icon {
    width: 21px;
    height: 21px;
}

/* Hover overlay */
.event-item__hover {
    position: absolute;
    inset: 0;
    background: #ae181d;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    bottom: 0;
    top: auto;
    transform: translateY(8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    will-change: opacity, transform;
    pointer-events: none;
    min-height: 154px;
    height: calc(100% - 350px);
}

.event-item__btn {
    width: 224px;
    height: 63px;
    padding: 16px 41px 17px;
    border-radius: 45px;
    background: #fff;
    color: #000;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
}

.event-item:hover .event-item__img {
    filter: brightness(0.82);
    transform: scale(1.025);
}

.event-item:hover .event-item__hover {
    opacity: 1;
    transform: translateY(0);
    z-index: 9;
}

.event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

/* Body */
.event-item__body {
    padding: 12px 17px 21px;
    background: #fff;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.event-item:hover .event-item__body {
    opacity: 1;
    position: relative;
    inset: 0;
}

.event-item__row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 0px;
    color: #666;
}

.event-item__title {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #1a1a1a;
    padding-top: 7px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.event-item__venue {
    font-size: 13px;
    color: #000000;
    margin-top: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


@media (max-width: 767px) {
    .event-item__media {
        height: 171px;
        flex-basis: 171px;
        overflow: hidden;
        /* position: relative; */
    }

    .event-item__price-icon {
        width: 14px;
        height: 14px;
    }

    .event-item__row {
        display: flex;
        justify-content: space-between;
        font-size: 10px;
        margin-bottom: 0px;
        color: #666;
    }

    .event-item__title {
        font-size: 12px;
        font-weight: 900;
        line-height: 1.3;
    }

    .event-item {

        border-radius: 20px;
        overflow: hidden;

        height: 306px;
    }

    .event-item__body {
        padding: 12px 10px 10px;
        background: #fff;
        position: relative;
        z-index: 1;
        transition: opacity 0.3s;
        min-height: 0;
    }

    .event-item__venue {
        font-size: 10px;
        color: #000000;
    }

    .event-item__btn {
        width: 84%;
        height: 33px;
        padding: 10px 17px 10px;
        border-radius: 45px;
        background: #fff;
        color: #000;
        font-size: 11px;
        font-weight: 500;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
        pointer-events: auto;
    }


    .event-item__price {
        position: absolute;
        left: 10px;
        bottom: 14px;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 3px 9px;
        border-radius: 32px;
        background: rgba(255, 255, 255, 0.6);
        color: #000;
        font-size: 11px;
        font-weight: 400;
    }

    .event-item:hover .event-item__hover {
        opacity: 1;
        z-index: 9;
    }

    .event-item__hover {
        position: absolute;
        inset: 0;
        background: #ae181d;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        bottom: 0;
        top: auto;
        transition: opacity 0.3s;
        pointer-events: none;
        height: 142px;
    }

}
