/* Czech There – Explore Page
   ================================================================ */

/* ── Active nav link ── */
.ct-land-nav-link--active {
    background: rgba(0,146,255,0.08) !important;
    color: var(--ct-blue) !important;
}

/* ── Full-height page layout ── */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#section-upcoming { flex: 1; }

/* ── Hero ── */
.ct-explore-hero {
    position: relative;
    padding: 90px 24px 36px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #EBF5FF 0%, #DBEAFE 50%, #E0EFFE 100%);
    border-bottom: 1px solid rgba(0,146,255,0.08);
}
.ct-explore-hero-blob {
    position: absolute; border-radius: 50%;
    filter: blur(100px); opacity: 0.12; pointer-events: none;
}
.ct-explore-blob-1 { width: 500px; height: 500px; background: var(--ct-blue); top: -200px; right: -100px; }
.ct-explore-blob-2 { width: 350px; height: 350px; background: var(--ct-red); bottom: -150px; left: -100px; }
.ct-explore-hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.ct-explore-hero-title {
    font-size: 34px; font-weight: 800; color: var(--ct-black);
    line-height: 1.2; margin: 0 0 20px; letter-spacing: -0.02em;
}
.ct-explore-accent {
    background: linear-gradient(135deg, var(--ct-blue) 0%, #0070D0 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Search bar (just input, no selects) ── */
.ct-explore-searchbar {
    display: flex; align-items: center; gap: 12px;
    background: var(--ct-white);
    border: 2px solid rgba(0,146,255,0.15);
    border-radius: var(--ct-radius-full);
    padding: 10px 24px;
    box-shadow: 0 4px 20px rgba(0,146,255,0.08), 0 1px 4px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    max-width: 600px; margin: 0 auto;
}
.ct-explore-searchbar:focus-within {
    border-color: var(--ct-blue);
    box-shadow: 0 4px 24px rgba(0,146,255,0.14), 0 0 0 4px rgba(0,146,255,0.06);
}
.ct-explore-searchbar-icon { flex-shrink: 0; color: var(--ct-blue); opacity: 0.5; }
.ct-explore-searchbar:focus-within .ct-explore-searchbar-icon { opacity: 0.8; }
.ct-explore-searchbar-input {
    flex: 1; border: none; outline: none;
    font-family: var(--ct-font); font-size: 15px;
    color: var(--ct-800); background: transparent; min-width: 0;
}
.ct-explore-searchbar-input::placeholder { color: var(--ct-400); }

/* ── Sticky toolbar: pills + selects + count ── */
.ct-explore-toolbar {
    position: sticky; top: 60px; z-index: 50;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ct-150);
    padding: 0 24px;
    overflow: visible;
}
.ct-explore-toolbar-inner {
    max-width: 1120px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; min-height: 52px; padding: 8px 0;
    overflow: visible;
}
.ct-explore-toolbar-left {
    display: flex; align-items: center; gap: 12px;
    flex: 1; min-width: 0;
    flex-wrap: wrap;
}
.ct-explore-pills {
    display: flex; gap: 6px;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 1;
    min-width: 0;
}
.ct-explore-pills::-webkit-scrollbar { display: none; }
.ct-explore-pill {
    padding: 6px 14px;
    border: 1.5px solid var(--ct-200);
    border-radius: var(--ct-radius-full);
    background: var(--ct-white);
    font-family: var(--ct-font); font-size: 13px; font-weight: 500;
    color: var(--ct-700); cursor: pointer;
    white-space: nowrap; transition: all 0.15s ease; outline: none;
}
.ct-explore-pill:hover {
    border-color: var(--ct-blue); color: var(--ct-blue);
    background: rgba(0,146,255,0.03);
}
.ct-explore-pill.active {
    background: var(--ct-blue); border-color: var(--ct-blue);
    color: #fff; font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,146,255,0.25);
}

/* Selects sit inline with pills */
.ct-explore-selects {
    display: flex; gap: 6px;
    flex-shrink: 0;
    overflow: visible;
}
.ct-explore-selects .ct-filter-compact { min-width: 155px; max-width: 220px; }
.ct-explore-selects .cts-trigger {
    background: rgba(0,146,255,0.04) !important;
    border-color: rgba(0,146,255,0.15) !important;
}
.ct-explore-selects .cts-trigger:hover {
    background: rgba(0,146,255,0.07) !important;
    border-color: rgba(0,146,255,0.25) !important;
}

.ct-explore-toolbar-right {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.ct-explore-count {
    font-size: 13px; color: var(--ct-500); font-weight: 500; white-space: nowrap;
}
.ct-explore-clear {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px; border: 1.5px solid var(--ct-200);
    border-radius: var(--ct-radius-full); background: var(--ct-white);
    font-family: var(--ct-font); font-size: 12px; font-weight: 600;
    color: var(--ct-600); cursor: pointer;
    transition: all 0.15s ease; outline: none;
}
.ct-explore-clear:hover {
    border-color: var(--ct-danger); color: var(--ct-danger);
    background: var(--ct-danger-light);
}

/* Sekce, mřížka a karty akcí → shared/css/ct-event-list.css */

/* ── Empty & loading ── */
.ct-explore-empty {
    text-align: center; padding: 60px 24px; color: var(--ct-400);
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ct-explore-empty svg { opacity: 0.3; }
.ct-explore-empty-logo {
    height: 56px; opacity: 0.1;
    filter: grayscale(1);
}
.ct-explore-empty p { margin: 0; font-size: 15px; font-weight: 500; }
.ct-explore-empty-hint {
    font-size: 13px; color: var(--ct-350); margin-top: 4px;
}
.ct-explore-loading {
    grid-column: 1 / -1; text-align: center; padding: 48px 24px;
    color: var(--ct-500); font-size: 15px;
}
.ct-explore-load-more { display: block; margin: 24px auto 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .ct-explore-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .ct-explore-hero-title { font-size: 28px; }
}
@media (max-width: 700px) {
    .ct-explore-toolbar-inner { flex-wrap: wrap; padding: 8px 0; overflow: visible; }
    .ct-explore-toolbar-left { flex-wrap: wrap; gap: 8px; overflow: visible; }
    .ct-explore-pills { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-shrink: 1; min-width: 0; max-width: 100%; }
    .ct-explore-pills::-webkit-scrollbar { display: none; }
    .ct-explore-toolbar-left { min-width: 0; }
    .ct-explore-selects { width: 100%; overflow: visible; }
    .ct-explore-selects .ct-filter-compact { flex: 1; max-width: none; }
    /* Ensure dropdowns escape sticky toolbar on mobile */
    .ct-explore-toolbar .cts-wrap {
        position: static;
    }
    .ct-explore-toolbar .cts-dropdown {
        position: fixed;
        left: 16px;
        right: 16px;
        width: auto;
        max-height: 50vh;
        z-index: 9999;
    }
    .ct-explore-toolbar .cts-dropdown.cts-above {
        bottom: auto;
    }
}
@media (max-width: 600px) {
    .ct-explore-grid { grid-template-columns: 1fr; gap: 14px; }
    .ct-explore-hero { padding: 76px 16px 24px; }
    .ct-explore-hero-title { font-size: 24px; }
    .ct-explore-toolbar { padding: 0 16px; top: 56px; }
    .ct-explore-pill { padding: 5px 12px; font-size: 12px; }
    .ct-explore-section { padding: 20px 16px 32px; }
    .ct-explore-count { font-size: 12px; }
    .ct-explore-nav-inner { height: 56px; }
}
/* ── Mobil: 3 filtry vedle sebe se musí vejít na šířku displeje (fix 31. 10. 2026) ── */
@media (max-width: 700px) {
    .ct-explore-selects {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .ct-explore-toolbar-left { flex: 1 1 100%; }
    .ct-explore-toolbar-right { width: 100%; justify-content: flex-end; margin-top: -2px; }
    .ct-explore-selects .ct-filter-compact { min-width: 0; max-width: none; }
    .ct-explore-selects .ct-filter-compact .cts-trigger {
        padding: 6px 8px 6px 10px !important;
        font-size: 12px !important;
    }
    .ct-explore-selects .cts-value,
    .ct-explore-selects .cts-placeholder { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
}

/* ── Barevná lišta filtrů (shared/css/ct-pillbar.css) – 31. 10. 2026 ── */
.ct-explore-toolbar { background: transparent; border-bottom: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: 10px; padding-bottom: 4px; }
.ct-explore-toolbar-inner.ctpb-bar { max-width: 1120px; }
.ct-explore-cats-inner { max-width: 1120px; margin: 0 auto; }
@media (max-width: 600px) { .ct-explore-toolbar { padding-top: 8px; } }
@media (max-width: 700px) { .ct-explore-toolbar { position: relative; top: auto; } } /* na mobilu nelepit – lišta je vysoká */

/* počet akcí – rezervované místo, ať se pole vedle neposouvají */
.ct-explore-count { min-width: 4.5em; text-align: right; }
/* do příchodu dat drží sekce výšku, aby tmavý pás pod ní neposkakoval */
#section-upcoming.is-booting { min-height: 75vh; }
/* před načtením skriptů drží rozbalovací pole i počet své místo (mobil neposkočí) */
.ctpb-selects .ct-filter-compact:empty { min-height: 40px; min-width: 130px; border-radius: 999px; background: rgba(15,23,42,0.055); }
.ct-explore-count:empty::before { content: '\00a0'; }
