.search-page {
    background: #f8f8f8;
}

.search-container {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
}

.search-header {
    margin-bottom: 28px;
}

.search-modern {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin-bottom: 42px;
    padding: 1rem 10px;
    border: 1px solid #ececec;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

.search-modern input {
    width: 100%;
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.search-modern input::placeholder {
    color: var(--muted);
}

.search-modern button {
    min-height: 54px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: var(--gradient);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.search-modern button:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}

.search-section {
    margin-bottom: 48px;
}

.search-section-title {
    margin: 0 0 22px;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.search-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.search-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.event-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: 0 20px 38px rgba(17, 24, 39, 0.1);
}

.event-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.event-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.event-card:hover .event-card-image {
    transform: scale(1.04);
}

.event-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.42));
    pointer-events: none;
}

.event-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
}

.event-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
}

.event-card-title {
    margin: 0;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.25;
}

.event-card-description {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-card-price-label {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.event-card-price {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 900;
}

.event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.05);
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 700;
}

.event-card-btn {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--gradient);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: filter 0.2s ease;
}

.event-card-btn:hover {
    filter: brightness(0.9);
}

.search-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.search-page-btn {
    min-width: 116px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-page-btn-primary {
    background: var(--text);
    color: #fff;
}

.search-page-btn-secondary {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
}

.search-page-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.92);
}

.search-empty {
    padding: 36px 22px;
    border: 1px dashed rgba(17, 24, 39, 0.16);
    border-radius: 22px;
    background: #fff;
    text-align: center;
    color: var(--muted);
}

.search-empty h3 {
    margin: 0 0 10px;
    color: var(--text);
}

.search-empty p {
    margin: 0;
}

.category-hero-image-wrap {
    margin-bottom: 28px;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid var(--border);
    background: #f3f4f6;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

.category-hero-image {
    width: 100%;
    max-height: 420px;
    display: block;
    object-fit: cover;
}

.category-description-card,
.category-info-card {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #ececec;
    border-radius: 22px;
    background: #fff;
    color: #374151;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.04);
}

.category-description-card p,
.category-info-card p {
    margin: 0;
    line-height: 1.7;
}

.category-info-card h4 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 900;
}

.category-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 34px 0 22px;
}

.category-products-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 900;
}

.category-products-header span {
    color: var(--muted);
    font-weight: 800;
}

@media (max-width: 992px) {
    .search-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .search-container {
        width: min(100% - 24px, 1180px);
    }

    .search-modern {
        grid-template-columns: 1fr;
        border-radius: 24px;
        padding: 14px;
    }

    .search-modern input {
        min-height: 50px;
        padding: 0 14px;
    }

    .search-modern button {
        width: 100%;
    }

    .search-card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .category-products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-pagination {
        flex-direction: column;
    }

    .search-page-btn {
        width: 100%;
    }
}