/* Search / browse-all results — readable hierarchy, theme-aligned */

.search-results-section {
    background: var(--background-light, #f9f9f9);
}

.search-results-section .page-intro {
    color: var(--text-color, #333);
}

.search-results-section .page-intro-muted {
    color: #5c5c5c;
    font-size: 0.95rem;
}

/* Filter block — polished card aligned with result cards */
.search-filters {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e0ec;
    box-shadow:
        0 1px 2px rgba(92, 11, 115, 0.04),
        0 8px 28px rgba(92, 11, 115, 0.07);
}

.search-filters::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color, #a233c2) 0%, var(--accent-color, #ce79e4) 100%);
    border-radius: 4px 0 0 4px;
}

.search-filters__inner {
    padding: 0;
}

.search-filters__head {
    padding: 1.1rem 1.25rem 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(162, 51, 194, 0.06) 0%, rgba(206, 121, 228, 0.04) 50%, #fff 100%);
    border-bottom: 1px solid rgba(232, 224, 236, 0.95);
}

.search-filters__head-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.search-filters__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color, #5c0b73);
    letter-spacing: -0.02em;
}

.search-filters__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: rgba(162, 51, 194, 0.12);
    color: var(--primary-color, #a233c2);
    font-size: 0.95rem;
}

.search-filters__subtitle {
    font-size: 0.875rem;
    color: #6a6a6a;
    line-height: 1.4;
    padding-left: 0.1rem;
}

@media (min-width: 576px) {
    .search-filters__subtitle {
        padding-left: 2.5rem;
    }
}

.search-filters__fields {
    padding: 1.15rem 1.25rem 1.25rem 1.5rem;
}

.search-filters__label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5c5c5c;
    margin-bottom: 0.45rem;
}

.search-filters__label i {
    color: var(--primary-color, #a233c2);
    font-size: 0.85rem;
    opacity: 0.9;
}

.search-filters__control {
    border-radius: 10px;
    border: 1px solid #e0d8e4;
    font-size: 0.9375rem;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-filters__control:focus {
    border-color: var(--accent-color, #ce79e4);
    box-shadow: 0 0 0 3px rgba(162, 51, 194, 0.18);
    outline: none;
}

.search-filters__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.25rem 1.15rem 1.5rem;
    background: #faf8fc;
    border-top: 1px solid #ede8f0;
}

.search-filters__btn-primary {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.45rem 1.15rem;
    box-shadow: 0 2px 8px rgba(162, 51, 194, 0.25);
}

.search-filters__btn-primary i {
    margin-right: 0.35rem;
    opacity: 0.95;
}

.search-filters__btn-clear {
    border-radius: 10px;
    font-weight: 600;
    color: #4a4a4a;
    border: 1px solid #e0d8e4;
    background: #fff;
    padding: 0.45rem 1rem;
}

.search-filters__btn-clear:hover {
    background: #f5f2f8;
    color: var(--dark-color, #5c0b73);
    border-color: #d4c8dc;
}

/* Flatpickr (filter dates) — sit above nav, align with theme */
.search-results-section .flatpickr-calendar {
    z-index: 1100;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(92, 11, 115, 0.15);
    border: 1px solid #e8e0ec;
}

.search-results-section .flatpickr-day.selected,
.search-results-section .flatpickr-day.startRange,
.search-results-section .flatpickr-day.endRange {
    background: var(--primary-color, #a233c2);
    border-color: var(--primary-color, #a233c2);
}

.search-results-section .flatpickr-day.selected:hover,
.search-results-section .flatpickr-day.startRange:hover,
.search-results-section .flatpickr-day.endRange:hover {
    background: var(--dark-color, #5c0b73);
    border-color: var(--dark-color, #5c0b73);
}

.search-results-section .flatpickr-day.today {
    border-color: var(--accent-color, #ce79e4);
}

.search-result-card {
    border: 1px solid #e8e0ec;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

a:hover .search-result-card {
    box-shadow: 0 8px 24px rgba(92, 11, 115, 0.12);
    border-color: var(--accent-color, #ce79e4);
}

.search-result-card__img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    background: linear-gradient(145deg, #f4e1fa 0%, #fff 100%);
}

.search-result-card__body {
    padding: 1.1rem 1.25rem 1.25rem;
}

.search-result-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark-color, #5c0b73);
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.search-result-card__meta {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #4a4a4a;
    margin: 0 0 0.5rem;
    line-height: 1.45;
}

.search-result-card__meta i {
    color: var(--primary-color, #a233c2);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.search-result-card__organiser {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3c3c3c;
    margin: 0 0 0.35rem;
    line-height: 1.4;
}

.search-result-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color, #a233c2);
    background: rgba(162, 51, 194, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin: 0;
}

.search-result-card__placeholder {
    height: 200px;
    background: linear-gradient(145deg, #ede0f2 0%, #f9f9f9 100%);
}
