/* Events directory filters
 * Loaded on the Events directory and its category and age archives.
 */

body.zdt-events-directory {
    --zdt-events-blue: #6e8dc4;
    --zdt-events-ink: #34394d;
    --zdt-events-line: #dfe5ef;
    --zdt-events-soft: #eef4ff;
}

body.zdt-events-directory .zdt-events-filter-shell {
    box-sizing: border-box;
    min-height: 0;
    margin-bottom: 2.5rem;
    padding: 3rem;
    border: 1px solid #dce5f2;
    border-radius: 34px;
    background-color: #eaf2ff;
    box-shadow: 0 24px 60px rgb(78 101 151 / 12%);
    overflow: hidden;
    position: relative;
    transition:
        margin-bottom 240ms cubic-bezier(0.22, 1, 0.36, 1),
        padding 240ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 180ms ease,
        border-radius 240ms cubic-bezier(0.22, 1, 0.36, 1),
        background-color 200ms ease,
        box-shadow 200ms ease;
}

body.zdt-events-directory .zdt-events-filter-shell::before {
    content: none;
}

body.zdt-events-directory .zdt-events-filter-shell:not(.zdt-events-filter-shell--open) {
    margin-bottom: 1.5rem !important;
    padding: 0;
    border-color: transparent;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    overflow: visible;
}

body.zdt-events-directory .zdt-events-filter-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("https://zadeteto.bg/wp-content/uploads/2026/10/events/zadeteto-events-filters.png");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
    opacity: 1;
    pointer-events: none;
    transition: opacity 160ms ease;
}

body.zdt-events-directory .zdt-events-filter-shell:not(.zdt-events-filter-shell--open)::after {
    opacity: 0;
}

body.zdt-events-directory .drts-view-entities-header.zdt-events-header-empty {
    display: none;
}

body.zdt-events-directory .page-header.zdt-events-page-header-empty {
    display: none;
}

body.zdt-events-directory .zdt-events-filter-shell > .zdt-events-filter-title {
    width: min(100%, 90%);
    color: var(--zdt-events-blue);
    position: relative;
    z-index: 3;
}

body.zdt-events-directory .zdt-events-filter-shell:not(.zdt-events-filter-shell--open) > .zdt-events-filter-title,
body.zdt-events-directory .zdt-events-filter-shell:not(.zdt-events-filter-shell--open) > .zdt-events-filter-toolbar {
    width: 100%;
}

body.zdt-events-directory .zdt-events-filter-shell:not(.zdt-events-filter-shell--open) > .zdt-events-filter-toolbar {
    margin-bottom: 0;
}

body.zdt-events-directory .zdt-events-filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    width: min(100%, 90%);
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
    width: 100%;
}

body.zdt-events-directory .zdt-events-filter-toolbar__left,
body.zdt-events-directory .zdt-events-filter-toolbar__right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

body.zdt-events-directory .zdt-events-filter-toolbar__left {
    flex-wrap: wrap;
}

body.zdt-events-directory .zdt-events-filter-toolbar__right {
    justify-content: flex-end;
    margin-left: auto;
}

body.zdt-events-directory .zdt-events-filter-toolbar [data-column] {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    margin: 0 !important;
}

body.zdt-events-directory .zdt-events-filter-toolbar .drts-view-entities-filters-applied > span:first-child {
    display: none;
}

body.zdt-events-directory .zdt-events-filter-toolbar .drts-view-remove-filter,
body.zdt-events-directory .zdt-events-filter-toolbar .drts-view-nav-item {
    margin-bottom: 0 !important;
}

body.zdt-events-directory .zdt-events-filter-panel > form.drts-view-filter-form {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 3rem;
    border: 1px solid rgb(215 222 236 / 90%);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 44px rgb(47 56 89 / 16%);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 2;
}

body.zdt-events-directory .zdt-events-term-nav {
    min-width: 0;
    margin: 0 0 2rem;
    padding: 0 0 1.5rem;
    border-bottom: 1px solid var(--zdt-events-line);
}

body.zdt-events-directory .zdt-events-term-nav__label {
    margin-bottom: 0.8rem;
    color: var(--zdt-events-ink);
    font-size: 0.95rem;
    font-weight: 800;
}

body.zdt-events-directory .zdt-events-term-nav__scroller {
    display: flex;
    gap: 0.65rem;
    max-width: 100%;
    padding: 0.15rem 0.1rem 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

body.zdt-events-directory .zdt-events-term-nav__scroller::-webkit-scrollbar {
    display: none;
}

body.zdt-events-directory .zdt-events-term-nav__scroller:focus-visible {
    outline: 3px solid rgb(110 141 196 / 20%);
    outline-offset: 4px;
    border-radius: 12px;
}

body.zdt-events-directory .zdt-events-term-nav__pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.55rem 1rem;
    border: 1px solid #d6deeb;
    border-radius: 999px;
    background: #f7f9fd;
    color: #4f586b;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    scroll-snap-align: start;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

body.zdt-events-directory .zdt-events-term-nav__pill:hover,
body.zdt-events-directory .zdt-events-term-nav__pill:focus-visible {
    border-color: var(--zdt-events-blue);
    background: #edf3fd;
    color: #445f96;
    transform: translateY(-1px);
}

body.zdt-events-directory .zdt-events-term-nav__pill.is-current {
    border-color: var(--zdt-events-blue);
    background: var(--zdt-events-blue);
    color: #fff;
    box-shadow: 0 7px 16px rgb(110 141 196 / 24%);
}

body.zdt-events-directory .zdt-events-term-nav__count {
    display: inline-grid;
    min-width: 1.55rem;
    min-height: 1.55rem;
    padding: 0 0.35rem;
    place-items: center;
    border-radius: 999px;
    background: #e8edf5;
    color: #596174;
    font-size: 0.78rem;
    line-height: 1;
}

body.zdt-events-directory .zdt-events-term-nav__pill.is-current .zdt-events-term-nav__count {
    background: rgb(255 255 255 / 22%);
    color: #fff;
}

body.zdt-events-directory .zdt-events-filter-panel {
    display: grid !important;
    grid-template-rows: 0fr;
    margin: 0 !important;
    opacity: 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
    transition:
        grid-template-rows 280ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 160ms ease;
}

body.zdt-events-directory .zdt-events-filter-panel > form.drts-view-filter-form {
    min-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.zdt-events-directory .zdt-events-filter-panel.zdt-events-filter-panel--open {
    grid-template-rows: 1fr;
    opacity: 1;
}

body.zdt-events-directory .zdt-events-filter-panel.zdt-events-filter-panel--open > form.drts-view-filter-form {
    transform: translateY(0);
}

body.zdt-events-directory form.drts-view-filter-form > .drts-display > .drts-row {
    display: block !important;
    margin: 0 !important;
}

body.zdt-events-directory form.drts-view-filter-form > .drts-display > .drts-row > [class*="drts-col-"] {
    flex: 0 0 100% !important;
    width: 100%;
    max-width: 100% !important;
    padding: 0 !important;
}

body.zdt-events-directory form.drts-view-filter-form .drts-display-element-group-3 {
    display: block !important;
    width: 100%;
}

/* Directories Pro currently renders the location and age filters as direct
 * children of the same group, without the older row/flex wrappers below. */
@media (min-width: 768px) {
    body.zdt-events-directory form.drts-view-filter-form .drts-display-element-group-3 {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 0;
        align-items: start;
    }

    body.zdt-events-directory form.drts-view-filter-form .drts-display-element-group-3 > [data-name="group"] {
        min-width: 0;
        margin: 0 !important;
        padding: 0 1.35rem !important;
        border-right: 1px solid var(--zdt-events-line);
    }

    body.zdt-events-directory form.drts-view-filter-form .drts-display-element-group-3 > [data-name="group"]:first-child {
        padding-left: 0 !important;
    }

    body.zdt-events-directory form.drts-view-filter-form .drts-display-element-group-3 > [data-name="group"]:last-child {
        padding-right: 0 !important;
        border-right: 0;
    }

    body.zdt-events-directory form.drts-view-filter-form .drts-display-element-group-3 > .drts-display-group-element-separator {
        display: none !important;
    }
}

body.zdt-events-directory form.drts-view-filter-form .drts-display-element-group-3 > .drts-display-element-row-1 {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

body.zdt-events-directory form.drts-view-filter-form .drts-display-element-group-3 > .drts-display-element-row-1 > .drts-bs-d-flex > .drts-display-element {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
    padding: 0 1.35rem !important;
    border-right: 1px solid var(--zdt-events-line);
}

.drts .drts-display[data-display-type=filters]{
    border: 0;
}

body.zdt-events-directory form.drts-view-filter-form .drts-display-element-group-3 > .drts-display-element-row-1 > .drts-bs-d-flex > .drts-display-element:first-child {
    padding-left: 0 !important;
}

body.zdt-events-directory form.drts-view-filter-form .drts-display-element-group-3 > .drts-display-element-row-1 > .drts-bs-d-flex > .drts-display-element:last-child {
    padding-right: 0 !important;
    border-right: 0;
}

body.zdt-events-directory form.drts-view-filter-form .drts-display-element-row-2 > .drts-bs-d-flex,
body.zdt-events-directory form.drts-view-filter-form .drts-display-element-row-3 > .drts-bs-d-flex,
body.zdt-events-directory form.drts-view-filter-form .drts-display-element-row-2 > .drts-bs-d-flex > .drts-display-element,
body.zdt-events-directory form.drts-view-filter-form .drts-display-element-row-3 > .drts-bs-d-flex > .drts-display-element {
    display: block !important;
    width: 100% !important;
    min-width: 0;
}

body.zdt-events-directory form.drts-view-filter-form .drts-view-filter-form-card,
body.zdt-events-directory form.drts-view-filter-form .drts-view-filter-form-card > .drts-bs-card-body {
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

body.zdt-events-directory form.drts-view-filter-form .drts-view-filter-field-label {
    margin: 0 0 0.7rem;
    color: var(--zdt-events-ink);
    font-weight: 800;
    line-height: 1.25;
}

body.zdt-events-directory form.drts-view-filter-form .drts-view-filter-field-label i {
    margin-right: 0.4rem;
    color: var(--zdt-events-blue);
}

body.zdt-events-directory form.drts-view-filter-form select.drts-bs-form-select,
body.zdt-events-directory form.drts-view-filter-form .drts-bs-form-control {
    min-height: 46px;
    border: 1px solid #d8deea;
    border-radius: 12px;
    background-color: #fff;
    color: #3f4658;
    box-shadow: 0 2px 7px rgb(44 55 91 / 5%);
}

body.zdt-events-directory form.drts-view-filter-form select.drts-bs-form-select:focus,
body.zdt-events-directory form.drts-view-filter-form .drts-bs-form-control:focus {
    border-color: var(--zdt-events-blue);
    box-shadow: 0 0 0 3px rgb(110 141 196 / 16%);
}

body.zdt-events-directory form.drts-view-filter-form .drts-form-field-radio-option {
    margin: 0 !important;
}

body.zdt-events-directory form.drts-view-filter-form .drts-bs-form-check {
    align-items: center;
    display: flex;
    min-height: 34px;
    padding: 0.25rem 0.4rem 0.25rem 1.75rem;
    border-radius: 9px;
    transition: background-color 140ms ease;
}

body.zdt-events-directory form.drts-view-filter-form .drts-bs-form-check:hover {
    background: #f2f6fc;
}

body.zdt-events-directory form.drts-view-filter-form .drts-bs-form-check-input {
    width: 18px;
    height: 18px;
    margin-left: -1.4rem;
    border-color: #c8d0df;
    box-shadow: none;
}

body.zdt-events-directory form.drts-view-filter-form .drts-bs-form-check-input:checked {
    border-color: var(--zdt-events-blue);
    background-color: var(--zdt-events-blue);
}

body.zdt-events-directory form.drts-view-filter-form .drts-bs-form-check-label {
    width: 100%;
    margin: 0 0 0 0.35rem;
    color: #565e70;
    line-height: 1.25;
}

body.zdt-events-directory form.drts-view-filter-form .drts-bs-badge {
    margin-left: 0.25rem;
    background: #edf1f7 !important;
    color: #586073 !important;
}

body.zdt-events-directory form.drts-view-filter-form .drts-form-buttons {
    justify-content: center;
    margin-top: 1rem !important;
}

body.zdt-events-directory form.drts-view-filter-form .drts-view-filter-form-submit {
    min-width: 190px;
    min-height: 48px;
    margin: 0 !important;
    padding: 0.7rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: #5964e8;
    box-shadow: 0 10px 22px rgb(89 100 232 / 24%);
    font-weight: 800;
    transition: box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

body.zdt-events-directory form.drts-view-filter-form .drts-view-filter-form-submit:hover,
body.zdt-events-directory form.drts-view-filter-form .drts-view-filter-form-submit:focus-visible {
    background: #41469f;
    box-shadow: 0 13px 27px rgb(65 70 159 / 29%);
    transform: translateY(-2px);
}

button.drts-bs-btn.drts-bs-btn-sm.drts-bs-btn-outline-secondary.drts-bs-rounded-pill.drts-bs-mb-1.drts-bs-me-1.drts-view-remove-filter,
button.drts-bs-btn.drts-bs-dropdown-toggle.drts-bs-btn-outline-secondary.drts-view-entities-sort.drts-view-entities-sort-selected,
button.drts-bs-btn.drts-bs-btn-outline-secondary{
    background: white;
}

button.drts-bs-btn.drts-bs-btn-sm.drts-bs-btn-outline-secondary.drts-bs-rounded-pill.drts-bs-mb-1.drts-bs-me-1.drts-view-remove-filter:hover,
button.drts-bs-btn.drts-bs-dropdown-toggle.drts-bs-btn-outline-secondary.drts-view-entities-sort.drts-view-entities-sort-selected:hover,
button.drts-bs-btn.drts-bs-btn-outline-secondary:hover{
    color: inherit;
}

body.zdt-events-directory .drts-view-post-entities .drts-display-default-summary, .drts-view-user-entities .drts-display-default-summary{
    border: none !important;
}

body.zdt-events-directory .zdt-photo-slider-fallback.drts-no-image {
	border-top-left-radius: 30px;
	border-top-right-radius: 30px;
	border-bottom-left-radius: 30px;
	border-bottom-right-radius: 0;
	overflow: hidden;
	position: relative;
	z-index: 1;
}

@media (max-width: 991px) {
    body.zdt-events-directory .zdt-events-filter-shell {
        min-height: 0;
        padding: 2rem;
    }

    body.zdt-events-directory .zdt-events-filter-shell::after {
        background-size: auto 210px;
    }

    body.zdt-events-directory .zdt-events-filter-toolbar {
        width: 100%;
        flex-wrap: wrap;
    }

    body.zdt-events-directory form.drts-view-filter-form .drts-display-element-group-3 > .drts-display-element-row-1 > .drts-bs-d-flex {
        grid-template-columns: 1fr;
    }

    body.zdt-events-directory form.drts-view-filter-form .drts-display-element-group-3 > .drts-display-element-row-1 > .drts-bs-d-flex > .drts-display-element {
        padding: 1rem 0 !important;
        border-right: 0;
        border-bottom: 1px solid var(--zdt-events-line);
    }

    body.zdt-events-directory form.drts-view-filter-form .drts-display-element-group-3 > .drts-display-element-row-1 > .drts-bs-d-flex > .drts-display-element:first-child {
        padding-top: 0 !important;
    }

    body.zdt-events-directory form.drts-view-filter-form .drts-display-element-group-3 > .drts-display-element-row-1 > .drts-bs-d-flex > .drts-display-element:last-child {
        padding-bottom: 0 !important;
        border-bottom: 0;
    }
}

@media (max-width: 575px) {
    body.zdt-events-directory .zdt-events-filter-shell {
        margin-right: -0.35rem;
        margin-left: -0.35rem;
        padding: 1rem;
        border-radius: 24px;
    }

    body.zdt-events-directory .zdt-events-filter-shell::after {
        background-size: auto 155px;
    }

    body.zdt-events-directory .zdt-events-filter-panel > form.drts-view-filter-form {
        padding: 1rem;
        border-radius: 18px;
    }

    body.zdt-events-directory .zdt-events-filter-toolbar {
        align-items: stretch;
        margin-bottom: 0.8rem;
    }

    body.zdt-events-directory .zdt-events-filter-toolbar__left,
    body.zdt-events-directory .zdt-events-filter-toolbar__right {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    body.zdt-events-directory .zdt-events-filter-toolbar__right {
        overflow-x: auto;
    }

    body.zdt-events-directory form.drts-view-filter-form .drts-view-filter-form-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.zdt-events-directory .zdt-events-filter-shell,
    body.zdt-events-directory .zdt-events-filter-shell::after,
    body.zdt-events-directory .zdt-events-filter-panel,
    body.zdt-events-directory .zdt-events-filter-panel > form.drts-view-filter-form,
    body.zdt-events-directory form.drts-view-filter-form .drts-view-filter-form-submit {
        transition: none;
    }
}
