.events-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.event-type {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e8f0ff;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.event-type.wedding {
    background: #fee2e2;
    color: #b91c1c;
}

.event-card .event-type.wedding {
    background: rgba(254, 226, 226, 0.4);
}

html.dark-mode .event-type {
    background: rgba(59, 130, 246, 0.15);
}

/* Search Form Styles */
.search-form {
    margin-bottom: 32px;
}

.search-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    flex: 1;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    transition: 0.2s ease;
}

.search-input::placeholder {
    color: var(--muted);
}

.search-input:focus {
    outline: 2px solid rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.45);
}

.filter-select {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s ease;
    min-width: 180px;
}

.filter-select:hover {
    border-color: var(--primary);
    background: var(--surface-soft);
}

.filter-select:focus {
    outline: 2px solid rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.45);
}

html.dark-mode .filter-select {
    background: #334155;
    border-color: #475569;
}

html.dark-mode .filter-select:hover {
    background: #475569;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s ease;
}

.search-btn:hover {
    background: var(--surface-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--muted);
    text-decoration: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s ease;
}

.search-clear:hover {
    background: #fef2f2;
    border-color: var(--danger);
    color: var(--danger);
}

html.dark-mode .search-clear:hover {
    background: rgba(239, 68, 68, 0.1);
}

.search-results-info {
    margin-bottom: 28px;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.search-results-info p {
    margin: 0;
    color: var(--text);
    font-weight: 500;
}

/* Passed Events Styling */
.event-card--passed {
    opacity: 0.7;
    border-color: var(--border);
}

html.dark-mode .event-card--passed {
    border-color: rgba(156, 163, 175, 0.2);
}

.event-card--passed h3 {
    text-decoration: line-through;
    color: var(--muted);
}

.event-card--passed p {
    color: var(--muted);
}

.event-card--passed .event-type {
    opacity: 0.6;
}

.event-card--passed .btn {
    opacity: 0.6;
    cursor: not-allowed;
}

.event-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

html.dark-mode .event-status {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
}
