/* =======================================================
   TicketsFest — Frontend Tour Grid (Unified with Events)
   ======================================================= */

:root { 
    --tfe-primary: #1d4ed8; 
    --tfe-radius: 24px; 
    --tfe-font-main: 'Inter', sans-serif; 
}

.tfe-wrap { width:100%; max-width:1320px; margin:0 auto; padding:0 20px; font-family:var(--tfe-font-main); box-sizing:border-box; }
.tfe-grid { display:grid; gap:16px; grid-template-columns:repeat(2,1fr); }
@media (min-width:768px){ .tfe-grid{ grid-template-columns:repeat(3,1fr); gap:20px; } }
@media (min-width:1200px){ .tfe-grid{ grid-template-columns:repeat(5,1fr); gap:24px; } }

/* Картка */
.tfe-card-item { position:relative; aspect-ratio:4/5; border-radius:var(--tfe-radius); overflow:hidden; box-shadow:0 8px 20px rgba(0,0,0,.06); transition:transform .3s ease; background:#fff; }
.tfe-card-item:hover { transform:translateY(-5px); }

/* 🔥 Посилання на всю картку */
.tfe-card-link { position: absolute; inset: 0; z-index: 20; display: block; }
.tfe-card-inner { position: relative; width: 100%; height: 100%; z-index: 1; }

.tfe-poster { width:100%!important; height:100%!important; object-fit:cover; display:block; }

/* Оверлей (Оригінальний Градієнт) */
.tfe-overlay {
    position:absolute; inset:0;
    background:linear-gradient(165deg,#3b82f6 0%, #1d4ed8 100%);
    padding:18px;
    display:flex; flex-direction:column;
    opacity:0; visibility:hidden;
    transition:opacity .3s ease, visibility .3s ease;
    color:#fff; z-index:5;
}
.tfe-card-item:hover .tfe-overlay,
.tfe-card-item.active .tfe-overlay { opacity:1; visibility:visible; }

/* Елементи картки */
.tfe-ov-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.tfe-date-badge { background:#fff; color:#1d4ed8; font-size:11px; font-weight:800; padding:4px 10px; border-radius:99px; display:inline-block; }

.tfe-ov-center { flex-grow:1; display:flex; flex-direction:column; justify-content:center; }
.tfe-title { color:#fff; font-size:16px; font-weight:800; text-transform:uppercase; margin:0 0 6px; line-height:1.2; }
.tfe-meta { font-size:12px; opacity:.95; line-height:1.3; }
.tfe-loc { color:rgba(255,255,255,.95); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.tfe-price { font-weight:800; font-size:14px; margin-top:6px; }

.tfe-ov-bottom { margin-top:auto; z-index:10; }
.tfe-btn-details {
    background:#fff; color:#1d4ed8!important; text-align:center; padding:10px;
    border-radius:14px; font-weight:800; text-decoration:none; display:block; font-size:13px;
}

/* Фільтр */
.tfe-toolbar-compact { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; padding: 16px; background: #f8fafc; border-radius: 16px; border: 1px solid #e2e8f0; }
.tfe-select-chip { flex-grow: 1; min-width: 150px; padding: 10px 16px; border: 1px solid #cbd5e1; border-radius: 12px; background-color: #fff; color: #0f172a; font-size: 14px; font-weight: 500; font-family: var(--tfe-font-main); cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.tfe-select-chip:focus { border-color: var(--tfe-primary); outline: none; }
.tfe-select-chip:disabled { background-color: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.tfe-btn-reset { padding: 10px 20px; background: transparent; border: 1px solid #cbd5e1; border-radius: 12px; color: #64748b; font-weight: 600; font-size: 14px; cursor: pointer; transition: 0.2s; }
.tfe-btn-reset:hover { background: #e2e8f0; color: #0f172a; }
.tfe-card-item.tfe-hidden { display: none !important; }