.vehicle-selector {
    margin: 20px 0 35px;
}

.vehicle-selector__title {
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

/* Breadcrumb / vybraná cesta */

.vehicle-selector__breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
    font-size: 14px;
}

.vehicle-selector__breadcrumb {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    line-height: 1.3;
}

a.vehicle-selector__breadcrumb {
    cursor: pointer;
}

a.vehicle-selector__breadcrumb:hover {
    border-color: #111;
    background: #f7f7f7;
    color: #111;
    text-decoration: none;
}

.vehicle-selector__breadcrumb--current {
    border-color: #222;
    background: #222;
    color: #fff;
    font-weight: 600;
}

.vehicle-selector__separator {
    color: #aaa;
    font-size: 17px;
}

/* Search */

.vehicle-selector__search {
    position: relative;
    max-width: 560px;
    margin-bottom: 16px;
}

.vehicle-selector__search-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    color: #222;
    font-size: 14px;
    outline: none;
}

.vehicle-selector__search-input:focus {
    border-color: #222;
}

.vehicle-selector__search-input::placeholder {
    color: #888;
}

.vehicle-selector__search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #777;
    font-size: 22px;
    line-height: 1;
    pointer-events: none;
}

/* Výběr podkategorií */

.vehicle-selector__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.vehicle-selector__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    transition: border-color .15s ease, background-color .15s ease;
}

.vehicle-selector__option:hover {
    border-color: #111;
    background: #f7f7f7;
    color: #111;
    text-decoration: none;
}

.vehicle-selector__option[hidden] {
    display: none !important;
}

.vehicle-selector__option-name {
    min-width: 0;
}

.vehicle-selector__option-arrow {
    flex: 0 0 auto;
    margin-left: 12px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.vehicle-selector__empty {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    color: #777;
}

/* Poslední úroveň */

.vehicle-selector__final-info {
    padding: 13px 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f7f7f7;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

/* Tablet */

@media (max-width: 991px) {
    .vehicle-selector__options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobil */

@media (max-width: 600px) {
    .vehicle-selector {
        margin-bottom: 25px;
    }

    .vehicle-selector__title {
        font-size: 20px;
    }

    .vehicle-selector__options {
        grid-template-columns: 1fr;
    }

    .vehicle-selector__option {
        min-height: 48px;
    }

    .vehicle-selector__breadcrumbs {
        gap: 5px;
    }

    .vehicle-selector__breadcrumb {
        padding: 6px 9px;
        font-size: 13px;
    }

    .vehicle-selector__search {
        max-width: none;
    }
}


/* Finální level – výběr typu podvozku */

.vehicle-selector__type-filter {
    max-width: 560px;
}

.vehicle-selector__type-label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.vehicle-selector__select-wrap {
    position: relative;
    width: 100%;
}

.vehicle-selector__type-select {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    line-height: 50px;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
}

.vehicle-selector__type-select:hover {
    border-color: #999;
}

.vehicle-selector__type-select:focus {
    border-color: #222;
}


/* Značky – rozdělení na populární a ostatní */

.vehicle-selector__group {
    margin-top: 20px;
}

.vehicle-selector__group:first-of-type {
    margin-top: 0;
}

.vehicle-selector__group[hidden] {
    display: none !important;
}

.vehicle-selector__group-title {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.vehicle-selector__group--popular {
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.vehicle-selector__group--other {
    margin-top: 20px;
}


/* Pokud je na stránce aktivní Vehicle Selector, původní H1 kategorie schováme */
body:has(.vehicle-selector) h1.category-title[data-testid="titleCategory"] {
    display: none !important;
}


/* Pokud je aktivní Vehicle Selector, původní Shoptet filtry nechceme */
body:has(.vehicle-selector) .filter-sections {
    display: none !important;
}


/* Při aktivním Vehicle Selectoru schováme i horní dkLab filtry */
body:has(.vehicle-selector) #dkLabTopFilters {
    display: none !important;
}
