/*
Theme Name: Unicar
Theme URI: https://sideradigital.com
Description: Child theme for Hello Elementor
Author: Michal
Author URI: https://sideradigital.com
Template: hello-elementor
Version: 1.1
Text Domain: unicar
*/

/* =========================================================
   D Vozidla Ajax Filter – Theme Styles
   ========================================================= */

/* Base */
.d-vf { font-family: inherit; }
.d-vf * { box-sizing: border-box; }
.d-none { display: none !important; }


/* -------------------------------------------------------
   Brand Bar
------------------------------------------------------- */
.d-vf-brandbar {
    padding: 20px 40px;
    background: #fff;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-50%);
    border-radius: 6px;
    border: 1px solid #ECECEC;
    box-shadow: 0 6px 6px 0 rgba(0, 0, 0, 0.02);
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.d-vf-brandbar__label {
    color: #000;
    margin: 0 !important;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -0.44px;
}

.d-vf-brandbar__list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.d-vf-brand {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: .15s;
}

.d-vf-brand.is-active { border-color: #9dbd00; }


/* -------------------------------------------------------
   Topline (Tabs + Filter Button)
------------------------------------------------------- */
.d-vf-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 100px 0 50px 0;
}

.d-vf-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 1 1 0 !important;
}

.d-vf-tab {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    border-radius: 0 !important;
    padding: 18px 20px !important;
    font-weight: 600;
    letter-spacing: .02em;
    border-bottom: 2px solid #DADADA !important;
    color: #000 !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 12px !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    flex: 1 1 0 !important;
    text-align: center;
}

.d-vf-tab:hover {
    border-bottom: 2px solid #84990F !important;
    color: #84990F !important;
}

.d-vf-tab.is-active {
    border-bottom: 2px solid #84990F !important;
    color: #84990F !important;
}

.d-vf-filterbtn {
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 700;
}

.d-vf-filterbtn__icon { opacity: .6; }


/* -------------------------------------------------------
   Results / Grid
------------------------------------------------------- */
.d-vf-status {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 14px 0;
    font-size: 14px;
    opacity: .85;
}

.d-vf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

@media (max-width: 1024px) {
    .d-vf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .d-vf-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}


/* -------------------------------------------------------
   Card
------------------------------------------------------- */
.d-vf-card {
    border-radius: 6px;
    border: 1px solid #ECECEC;
    background: #FFF;
    box-shadow: 0 6px 6px 0 rgba(0, 0, 0, 0.02);
}

.d-vf-card__media { display: block; }
.d-vf-card__media img { display: block; width: 100%; height: auto; }
.d-vf-card__noimg { height: 180px; background: #f4f4f4; }

.d-vf-card__body { padding: 20px; }
.d-vf-card__year { font-size: 12px; opacity: .7; margin-bottom: 6px; }
.d-vf-card__title { display: block; font-weight: 800; text-decoration: none; color: inherit; margin-bottom: 8px; }
.d-vf-card__price { font-weight: 800; }
.d-vf-card__icons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.d-vf-chip {
    font-size: 12px;
    padding: 6px 10px;
    border: 1px solid #eee;
    border-radius: 999px;
    opacity: .9;
}

.d-vf-card__cta {
    display: inline-block;
    margin-top: 10px;
    font-weight: 800;
    text-decoration: none;
    color: #9dbd00;
}

.d-vf-empty {
    padding: 20px;
    border: 1px dashed #ddd;
    border-radius: 12px;
    text-align: center;
    opacity: .8;
}

.d-vf-actions { text-align: center; margin-top: 22px; }

.d-vf-loadmore {
    background: #9dbd00;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 900;
    cursor: pointer;
}


/* -------------------------------------------------------
   Drawer
------------------------------------------------------- */
.d-vf-drawer { position: fixed; inset: 0; display: none; z-index: 99999; }
.d-vf-drawer.is-open { display: block; }
.d-vf-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }

.d-vf-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(460px, 92vw);
    background: #fff;
    border-left: 1px solid #eee;
    padding: 18px;
    overflow: auto;
}

.d-vf-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.d-vf-drawer__title { font-size: 22px; font-weight: 900; }
.d-vf-close { border: none; background: #fff; font-size: 26px; cursor: pointer; }


/* -------------------------------------------------------
   Drawer Fields
------------------------------------------------------- */
.d-vf-field { display: block; margin: 12px 0; }

.d-vf-field span {
    display: block;
    font-size: 12px;
    opacity: .65;
    margin-bottom: 8px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.d-vf-field select {
    width: 100%;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    font-weight: 700;
}


/* -------------------------------------------------------
   Range Sliders
------------------------------------------------------- */
.d-vf-range { margin: 18px 0; }

.d-vf-range__label {
    font-size: 12px;
    opacity: .7;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.d-vf-range__nums { display: flex; gap: 12px; margin-bottom: 10px; }

.d-vf-num {
    width: 100%;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 12px;
    font-weight: 700;
}

.d-vf-range__sliders { display: flex; gap: 12px; }
.d-vf-slider { width: 100%; }


/* -------------------------------------------------------
   Apply Button
------------------------------------------------------- */
.d-vf-apply {
    width: 100%;
    margin-top: 10px;
    background: #9dbd00;
    border: none;
    border-radius: 12px;
    padding: 16px 18px;
    font-weight: 1000;
    cursor: pointer;
    letter-spacing: .04em;
}


/* -------------------------------------------------------
   Loading State
------------------------------------------------------- */
.d-vf.is-loading .d-vf-loading { display: inline-block !important; }