/**
 * Baijia Vehicle Category Template Styles
 */

.baijia-vehicle-category-template {
    width: 100%;
}

.baijia-vct-title {
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #222;
    margin: 0 0 40px;
}

.baijia-vct-title strong {
    font-weight: 700;
}

/* Filters */
.baijia-vct-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    justify-content: center;
}

.baijia-vct-select-wrap {
    flex: 1 1 0;
    max-width: 480px;
    position: relative;
}

.baijia-vct-select {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1px solid #ddd;
    font-size: 13px;
    color: #222;
    background: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

.baijia-vct-select:focus {
    outline: none;
    border-color: #222;
}

/* Grid */
.baijia-vct-grid {
    display: grid;
    gap: 30px;
}

/* grid-template-columns is set by Elementor responsive selector */

/* Item Wrapper - BRABUS style */
.baijia-vct-item-wrap {
    position: relative;
}

/* Inner container: becomes absolute on hover to avoid layout shift */
.baijia-vct-item-wrap.has-hover .baijia-vct-item-inner {
    background-color: #fff;
    display: block;
    margin-left: -10px;
    margin-right: -10px;
    padding: 10px;
}

.baijia-vct-item {
    display: block;
    text-decoration: none;
    color: #000;
}

.baijia-vct-item:hover {
    color: #000;
}

/* Hover details - hidden by default, show on hover */
.baijia-vct-hover-list {
    display: none;
    margin-top: 35px;
    list-style: none;
    padding: 0;
}

/* Hover: inner becomes absolute to float over content below */
@media (hover: hover) {
    .baijia-vct-item-wrap.has-hover .baijia-vct-item-inner:hover,
    .baijia-vct-item-wrap.has-hover .baijia-vct-item-inner:focus-within {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.75);
    }

    .baijia-vct-item-wrap.has-hover .baijia-vct-item-inner:hover .baijia-vct-hover-list,
    .baijia-vct-item-wrap.has-hover .baijia-vct-item-inner:focus-within .baijia-vct-hover-list {
        display: block;
    }
}

@media (hover: hover) and (min-width: 768px) {
    .baijia-vct-item-wrap.has-hover .baijia-vct-item-inner:hover,
    .baijia-vct-item-wrap.has-hover .baijia-vct-item-inner:focus-within {
        box-shadow: 0 20px 20px -10px rgba(0, 0, 0, 0.75);
    }
}

@media (hover: none) {
    .baijia-vct-item-wrap.has-hover .baijia-vct-item-inner:focus,
    .baijia-vct-item-wrap.has-hover .baijia-vct-item-inner:active {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.75);
    }

    .baijia-vct-item-wrap.has-hover .baijia-vct-item-inner:focus .baijia-vct-hover-list,
    .baijia-vct-item-wrap.has-hover .baijia-vct-item-inner:active .baijia-vct-hover-list {
        display: block;
    }
}

/* Hover list items - BRABUS structured list style */
.baijia-vct-hover-item {
    display: block;
    border-bottom: 1px solid #ccc;
    line-height: 1.1em;
    min-height: 30px;
    padding: 4px 0 7px;
    font-size: 16px;
    font-weight: 300;
    color: #000;
    text-decoration: none;
}

.baijia-vct-hover-item:first-child {
    border-top: 1px solid #ccc;
}

.baijia-vct-hover-item:hover {
    color: #6e0517;
}

.baijia-vct-hover-item strong {
    font-weight: 500;
    margin-right: 4px;
}

.baijia-vct-hover-item span {
    font-weight: 300;
}

.baijia-vct-item-image {
    position: relative;
    width: 100%;
    padding-bottom: 66%;
    overflow: hidden;
    background: #f5f5f5;
}

.baijia-vct-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.baijia-vct-item-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #eee;
}

.baijia-vct-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin: 12px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.baijia-vct-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 40px 0;
}

/* Responsive */
@media (max-width: 767px) {
    .baijia-vct-filters {
        flex-direction: column;
        gap: 10px;
    }

    .baijia-vct-select-wrap {
        flex: 1 1 auto;
    }

    .baijia-vct-grid {
        gap: 15px;
    }

    .baijia-vct-title {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .baijia-vct-item-name {
        font-size: 11px;
    }
}
