/* Page hero (smaller than homepage hero) */
.page-hero-sm {
    background: linear-gradient(135deg, #050b2e 0%, #1e40af 100%);
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.page-hero-sm::after {
    content: '✈';
    position: absolute; right: 5%; top: 50%;
    transform: translateY(-50%);
    font-size: 8rem; opacity: .04; pointer-events: none;
}

/* Filters */
.filters-section {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    padding: 1.5rem 0 1rem;
    border-bottom: 1px solid rgba(13,27,110,.07);
    box-shadow: 0 2px 12px rgba(13,27,110,.07);
}
.t-search-bar {
    display: flex; align-items: center;
    background: #fff; border: 1.5px solid #e4e7f5;
    border-radius: 50px; padding: .4rem .4rem .4rem 1.2rem;
    box-shadow: 0 4px 20px rgba(13,27,110,.07);
    max-width: 680px; margin: 0 auto 1rem; gap: .6rem;
}
.t-search-icon { color: #aab0cc; font-size: 1rem; flex-shrink: 0; }
.t-search-input {
    flex: 1; border: none; outline: none; background: transparent;
    font-size: .92rem; color: #333;
    font-family: 'Inter', sans-serif;
}
.t-search-input::placeholder { color: #bbb; }
.t-search-btn {
    background: linear-gradient(135deg,#0f1f6e,#2563eb);
    color: #fff; border: none; border-radius: 40px;
    padding: .55rem 1.5rem; font-weight: 700; font-size: .88rem;
    cursor: pointer; transition: opacity .2s; white-space: nowrap;
}
.t-search-btn:hover { opacity: .9; }
.t-filters-row {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .6rem;
    max-width: 680px; margin: 0 auto;
}
.t-sort-select {
    border: 1.5px solid #e4e7f5; border-radius: 30px;
    padding: .4rem 1rem; font-size: .84rem; color: #374151;
    background: #fff; font-family: 'Inter', sans-serif;
    cursor: pointer;
}
.t-results-count { font-size: .82rem; color: #888; margin: 0; }

/* Grid */
.t-section { padding: 2.5rem 0 4rem; background: #f5f7ff; min-height: 400px; }
.t-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (max-width: 767px) { .t-grid { grid-template-columns: 1fr; } }

/* Single ticket: span full width and centre */
.t-grid > article:only-child {
    grid-column: 1 / -1;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .page-hero-sm { padding: 2.5rem 0 2rem; }
    .filters-section { padding: 1rem 0 .75rem; }
    .t-search-bar { border-radius: 14px; padding: .5rem .5rem .5rem 1rem; }
    .t-search-btn { padding: .5rem 1.1rem; }
    .t-filters-row { flex-direction: column; align-items: stretch; }
    .t-sort-select { width: 100%; }
    .t-results-count { text-align: center; }
    .t-section { padding: 1.5rem 0 3rem; }
}

@media (max-width: 480px) {
    .t-search-bar { flex-wrap: wrap; border-radius: 12px; }
    .t-search-btn { width: 100%; border-radius: 8px; }
}

/* Hide filtered cards */
.ticket-card.hidden { display: none; }

/* Loading spinner */
.t-spinner {
    width: 36px; height: 36px; margin: 0 auto;
    border: 3px solid #e4e7f5;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: t-spin .7s linear infinite;
}
@keyframes t-spin { to { transform: rotate(360deg); } }
