﻿/* events page only refinements */
#eventosContainer > [class*="col-"] {
    display: flex;
}

.event-card-modern {
    width: 100%;
}

.event-card-modern .btn {
    font-weight: 700;
}

.event-card-flags .event-flag {
    box-shadow: 0 6px 14px rgba(44, 54, 150, 0.18);
}

.event-meta-grid {
    gap: 0.5rem;
}

.event-state-pill {
    font-weight: 700;
}

/* loading state for filter/search actions */
.btn.is-loading,
input[type="submit"].is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn.is-loading::after,
input[type="submit"].is-loading::after {
    content: "";
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    margin-left: 0.5rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    animation: spinBtn 0.7s linear infinite;
}

@keyframes spinBtn {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .events-filter-panel .btn {
        width: 100%;
    }
}

.quick-filter-chips .btn i {
    margin-right: 0.35rem;
}

.event-smartline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.event-match,
.event-role-chip,
.event-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    font-size: 0.74rem;
    padding: 0.18rem 0.56rem;
    font-weight: 700;
}

.event-match {
    background: #edf2ff;
    color: #3543a8;
}

.event-role-chip {
    background: #fff2d7;
    color: #8b4f05;
}

.event-verified {
    background: #e5fff3;
    color: #0f7c50;
}

.event-tag-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}

.event-tag {
    background: #f2f4ff;
    color: #3f45a1;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    font-size: 0.72rem;
    border: 1px solid #d6dbff;
}

.event-tag.empty {
    opacity: 0.7;
}

.event-mini-gallery {
    display: flex;
    gap: 0.25rem;
    padding: 0.45rem 0.6rem 0.2rem;
}

.event-mini-gallery img {
    width: 32%;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #dce3ff;
}

.event-map-link a {
    color: #3343b7;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.event-map-link a:hover {
    text-decoration: underline;
}

.event-flag-last {
    background: linear-gradient(120deg, #ff7a45, #ff3f84);
}

.events-quick-actions .btn {
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.events-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.events-searchbar {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 0.55rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #d9e4ff;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(21, 48, 137, 0.08);
}

.events-searchbar > i {
    color: #3f53b6;
    font-size: 1rem;
}

.events-searchbar .form-control {
    border: 0;
    box-shadow: none !important;
    background: transparent;
}

.events-searchbar .btn {
    min-height: 44px;
    border-radius: 10px;
}

@media (max-width: 767px) {
    .events-searchbar {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .events-searchbar > i {
        display: none;
    }

    .events-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .events-hero-actions .btn {
        width: 100%;
    }

    .events-quick-actions .d-flex {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 0.15rem;
        -webkit-overflow-scrolling: touch;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .events-searchbar {
        grid-template-columns: 1fr auto auto;
    }

    .events-searchbar > i {
        display: none;
    }
}
