/* Fixed Konastone brand palette. */
:root {
    --theme-color: #A66A19;
    --theme-color2: #A66A19;
    --theme-color3: #FFCA28;
    --title-color: #111111;
    --body-color: #555555;
    --smoke-color: #F5F5F5;
    --smoke-color2: #F5F5F5;
    --black-color: #111111;
    --black-color2: #111111;
    --th-border-color: #E5E7EB;
    --yellow-color: #FFCA28;
}

.header-top .social-links .social-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}

/* Keep vehicle card thumbnails uniform without changing the source images. */
.feature-list-1 .box-icon {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.feature-list-1 .box-icon > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.vehicle-card-link:focus-visible {
    outline: 2px solid var(--theme-color);
    outline-offset: 3px;
}

.inventory-owner-bottom .whatsapp-brand-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: middle;
}

.inventory-owner-top .thumb {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    overflow: hidden;
    border-radius: 50%;
}

.inventory-owner-top .thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-card-link .media-body {
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.vehicle-card-link .media-body .box-title {
    margin: 0;
}

.vehicle-card-price-row {
    margin-bottom: 12px;
}

.vehicle-card-price-row .box-title {
    margin: 0;
    color: var(--theme-color);
    font-size: 20px;
}

.vehicle-card-link .car-feature {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.vehicle-card-link .car-feature li {
    min-width: 0;
    align-items: center;
    font-size: 13px;
    line-height: 1.35;
}

.vehicle-card-link .car-feature li.divider {
    display: none;
}

.vehicle-card-link.list {
    align-items: stretch;
    gap: 20px;
    padding: 16px;
}

.vehicle-card-link.list .box-icon {
    width: 24%;
    flex: 0 0 24%;
    aspect-ratio: 16 / 9;
    margin: 0;
}

.vehicle-card-link.list .car-content {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        'title price'
        'specs specs';
    align-content: start;
    align-items: start;
    gap: 10px 20px;
    width: auto;
}

.vehicle-card-link.list .media-body {
    grid-area: title;
    padding: 0;
    margin: 0;
    border: 0;
}

.vehicle-card-link.list .vehicle-card-price-row {
    grid-area: price;
    align-self: start;
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.vehicle-card-link.list .car-feature {
    grid-area: specs;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 0 0;
    margin: 0;
    border-top: 1px solid var(--th-border-color);
    border-bottom: 0;
}

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

@media (max-width: 767px) {
    .vehicle-card-link.list {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .vehicle-card-link.list .box-icon {
        width: 100%;
        flex: 0 0 auto;
    }

    .vehicle-card-link.list .car-content {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .vehicle-card-link.list .car-content {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            'title'
            'price'
            'specs';
        gap: 12px;
    }

    .vehicle-card-link.list .vehicle-card-price-row {
        text-align: left;
    }
}

/* The single vehicle gallery is designed to display a small set of panels. */
.single-inventory-wrapper > .single-inventory-item:nth-child(n + 6) {
    display: none;
}

/* Konastone page loading animation. */
.preloader #load {
    position: relative;
    width: min(600px, calc(100vw - 48px));
    height: 36px;
    margin: 0 auto;
    overflow: visible;
    user-select: none;
    cursor: default;
}

.preloader #load div {
    position: absolute;
    width: 20px;
    height: 36px;
    color: var(--theme-color);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
    opacity: 0;
    transform: rotate(180deg);
    animation: konastone-loader-move 2s linear infinite;
}

.preloader #load div:nth-child(2) {
    animation-delay: 0.2s;
}

.preloader #load div:nth-child(3) {
    animation-delay: 0.4s;
}

.preloader #load div:nth-child(4) {
    animation-delay: 0.6s;
}

.preloader #load div:nth-child(5) {
    animation-delay: 0.8s;
}

.preloader #load div:nth-child(6) {
    animation-delay: 1s;
}

.preloader #load div:nth-child(7) {
    animation-delay: 1.2s;
}

@keyframes konastone-loader-move {
    0% {
        left: 0;
        opacity: 0;
    }

    35% {
        left: 41%;
        transform: rotate(0deg);
        opacity: 1;
    }

    65% {
        left: 59%;
        transform: rotate(0deg);
        opacity: 1;
    }

    100% {
        left: 100%;
        transform: rotate(-180deg);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .preloader #load div {
        display: none;
        animation: none;
    }

    .preloader #load::after {
        content: "Loading…";
        display: block;
        color: var(--theme-color);
        font-family: Helvetica, Arial, sans-serif;
        font-size: 20px;
        line-height: 36px;
        text-align: center;
    }
}
