/* Event Card Styles */
.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.event-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    flex-shrink: 0; /* Prevent image from shrinking */
    border-radius: 12px;
    position: relative;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .event-card-image {
        height: 150px;
    }
}

/* Tooltip Styles */
.tooltip-custom {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
    position: absolute;
    bottom: 120%;
    left: 15%;
    transform: translateX(-50%);
    background-color: #1e293b; /* slate-800 */
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 1.4rem;
    min-width: 250px; /* limit width */
    max-width: 300px; /* limit width */
    white-space: normal; /* allow wrapping */
    word-wrap: break-word;
    line-height: 1.4;
    text-align: center;
    z-index: 10;
}

/* Desktop: show on hover and active */
@media (min-width: 769px) {
    .tooltip-custom:hover .tooltip-content,
    .tooltip-custom.active .tooltip-content {
        visibility: visible;
        opacity: 1;
    }
}

/* Mobile: show only on active (no hover) */
@media (max-width: 768px) {
    .tooltip-custom.active .tooltip-content {
        visibility: visible;
        opacity: 1;
    }
}
