/* DarkPress STEC UX 2.2
 * Jen veci, ktere STEC sam nenastavuje: vlastni filtry + jemne upravy Gridu.
 */

.dp-stec-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: center;
    margin: 0 0 14px;
    padding: 0;
}

.dp-stec-filter-control {
    min-width: 0;
}

.dp-stec-filter-control select {
    width: 100%;
    height: 52px;
    min-height: 52px;
    margin: 0;
    padding: 0 44px 0 16px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    background-color: #fff;
    color: #222;
    font: inherit;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
}

.dp-stec-filter-control select:focus-visible {
    outline: 2px solid #222;
    outline-offset: 2px;
}

.dp-stec-reset {
    color: #666 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.dp-stec-reset:hover,
.dp-stec-reset:focus-visible {
    color: #111 !important;
    text-decoration: underline !important;
}

/* STEC Grid vykresluje short_description i kdyz je ep_short_desc vypnute.
 * Body class se pridava serverove jen kdyz je tato volba v administraci vypnuta.
 */
.dp-stec-grid-short-desc-hidden .stec-instance .stec-grid-event .stec-grid-event-description {
    display: none !important;
}

/* Organizator se v Gridu nezobrazuje. STEC detail zustava nedotceny. */
.stec-instance .stec-grid-event .dp-stec-grid-organizer-row {
    display: none !important;
}

/* Reminder zustava funkcni v detailu, ale na overview karte neni. */
.stec-instance .stec-grid-event .stec-grid-event-reminder {
    display: none !important;
}

/* Pokud lokaci chybi vyplnene mesto, nezobrazujeme jako fallback klub/venue. */
.stec-instance .stec-grid-event .dp-stec-grid-empty-location-row {
    display: none !important;
}

/* Metadata pod nazvem: datum + cas a mesto. */
.stec-instance .stec-grid-event .dp-stec-grid-date-row,
.stec-instance .stec-grid-event .dp-stec-grid-city-row {
    font-size: 14px !important;
    line-height: 1.35 !important;
}

/* Horni toolbar STEC: vsechny prvky maji stejnou vysku a optickou osu. */
.stec-instance .stec-top .stec-top-flex {
    align-items: center !important;
    min-height: 46px;
}

.stec-instance .stec-top-main-menu,
.stec-instance .stec-top-main-menu .stec-top-main-menu-section,
.stec-instance .stec-top-layout-menu {
    align-items: center !important;
}

.stec-instance .stec-top-menu-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    line-height: 1 !important;
    font-size: 15px !important;
}

.stec-instance .stec-top-menu-button > i,
.stec-instance .stec-top-menu-button stec-i,
.stec-instance .stec-top-menu-button i {
    line-height: 1 !important;
    font-size: 16px !important;
}

.stec-instance .stec-top-main-menu .stec-top-menu-datepicker-label,
.stec-instance .stec-top-main-menu .stec-top-menu-filter-label,
.stec-instance .stec-top-main-menu .stec-top-menu-print-label,
.stec-instance .stec-top-main-menu .stec-top-menu-search-label,
.stec-instance .stec-top-main-menu .stec-top-menu-today-label {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 7px !important;
    line-height: 1 !important;
}

/* Mesic a rok maji v navigaci o neco vetsi typografii. */
.stec-instance .stec-top-scroll-menu .stec-top-menu-button {
    font-size: 16px !important;
    font-weight: 500;
}

.stec-instance .stec-top-scroll-menu-month {
    min-width: 94px !important;
}

.stec-instance .stec-top-scroll-menu-year {
    min-width: 72px !important;
}

/* Tlacitko Dalsi neni pres celou sirku jako tmavy pruh. */
.stec-instance .stec-grid-next-button,
.stec-instance .stec-grid-load-more,
.stec-instance .stec-layout-grid-more {
    width: auto !important;
    min-width: 220px;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

@media (max-width: 780px) {
    .dp-stec-filters {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }

    .dp-stec-filter-control select {
        height: 52px;
        min-height: 52px;
        font-size: 16px;
    }

    .dp-stec-reset {
        justify-self: start;
    }

    .stec-instance .stec-top-menu-button {
        height: 44px !important;
        min-height: 44px !important;
        line-height: 1 !important;
        font-size: 15px !important;
    }

    .stec-instance .stec-top-menu-datepicker-mobile {
        margin-top: 7px !important;
    }

    .stec-instance .stec-top-menu-datepicker-mobile .stec-top-menu-button,
    .stec-instance .stec-top-menu-datepicker-mobile .stec-top-scroll-menu .stec-top-menu-button {
        font-size: 16px !important;
    }
}
