* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

body {
    font-family: "DM Sans", sans-serif;
}

ul,
ul li {
    list-style: none;
    padding: 0;
    margin: 0;
}

button,
a {
    transition: all 0.8s ease-in-out;
}

.car-list-main .row > div[class*="col-"] {
    display: flex;
    flex-direction: column;
}

.car-card {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    width: 100%;
    background: #ffffff;
    box-shadow: 0px 0px 4px 0px #00000040;
    border-radius: 10px;
}

.media-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 262px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.media-card-image-blur {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px 10px 0 0;
    object-fit: cover;
    filter: blur(18px);
    transform: scale(1.15);
    z-index: 0;
    pointer-events: none;
}

.media-card-image-main {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 262px;
    max-height: 262px;
    object-fit: contain;
    border-radius: 10px 10px 0 0;
    background: transparent;
    filter: drop-shadow(0px 0px 4px #00000040);
    touch-action: pan-y;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.car-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 262px;
    max-height: 262px;
}

@keyframes carMediaSkeletonShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes carMediaBgShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.car-media-skeleton {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #eef1f5;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    pointer-events: none;
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.car-media-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: carMediaSkeletonShimmer 1.5s infinite linear;
}

.car-media-skeleton-icon {
    width: 44px;
    height: 44px;
    opacity: 0.25;
    color: #6c757d;
    z-index: 0;
}

.car-media:not(:has(.owl-loaded)):not(.loaded) {
    background: #eef1f5
        linear-gradient(90deg, #eef1f5 0%, #e2e6ea 50%, #eef1f5 100%);
    background-size: 200% 100%;
    animation: carMediaBgShimmer 1.5s infinite linear;
}

.car-media:has(.owl-loaded) .car-media-skeleton,
.car-media.loaded .car-media-skeleton {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

.car-media:has(.owl-loaded),
.car-media.loaded {
    animation: none;
    background: transparent;
}

.media-card-action-btn-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 1;
    left: 0;
    padding: 16px 16px 0;
}

.badge-top {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 10px;
    font:
        500 14px/20px "Urbanist",
        sans-serif;
    color: #ffffff;
    align-items: center;
    gap: 2px;
    text-transform: uppercase;
}

.badge-new {
    background: #04263d99;
    border: 0.5px solid #ffffff;
}

.badge-featured {
    background: #00000066;
    border: 0.5px solid #ffffff;
}

.badge-icon {
    width: 14px !important;
    height: 14px;
}

.heart-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.heart-icon {
    width: 20px;
    height: 20px;
}

.heart-icon.filled,
.heart-btn:hover .heart-icon,
.heart-btn.active .heart-icon {
    display: none;
}

.heart-btn:hover .heart-icon.filled,
.heart-btn.active .heart-icon.filled {
    display: block;
}

.online-pill {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #147e1094;
    color: #ffffff;
    font:
        600 14px/20px "Urbanist",
        sans-serif;
    padding: 6px 21px;
    border-radius: 12px;
    z-index: 1;
    box-shadow: 0px 0px 7px 0px #ffffff;
    border: 1px solid #ffffff;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    animation: online-blink 3.4s ease-in-out infinite;
}

@keyframes online-blink {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    }

    50% {
        opacity: 0.35;
        box-shadow: 0 0 0 4px rgba(143, 143, 143, 0);
    }
}

.car-card .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    z-index: 1;
    bottom: 24px;
}

.car-card .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    display: block;
    border: 0.5px solid #ffffff;
}

.car-card .owl-dots .owl-dot.active span {
    background: #e07900;
}

.car-card-body {
    width: 100%;
    padding: 20px 16px 24px;
    flex: 1 1 auto;
}

.car-card .car-card-body .car-name {
    font:
        700 22px / 28px "DM Sans",
        sans-serif;
    color: #000000;
    padding: 0 0 20px;
}

.car-loc {
    display: flex;
    align-items: center;
    gap: 10px;
    font:
        500 16px/22px "DM Sans",
        sans-serif;
    color: #000000;
    padding: 0 0 23px;
}

.car-loction,
.tag-icon,
.owner-type-icon,
.view-showroom-icon {
    width: 18px;
    height: 18px;
}

.tags-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 20px;
}

.tags-row .tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font:
        500 16px/22px "DM Sans",
        sans-serif;
    white-space: nowrap;
}

.tags-row .tag:nth-child(2) {
    flex: 1 1 auto;
    justify-content: center;
    border-left: 1px solid #757575;
    border-right: 1px solid #757575;
    padding: 0 12px;
}

.owner-type-box {
    background: #fbf2e9;
    padding: 13px;
    min-height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.car-card-body .owner-type {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font:
        500 16px/22px "DM Sans",
        sans-serif;
    color: #000000;
}

.car-card-body .owner-type span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-card-body .view-showroom {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    background: #e4f1dc;
    border-radius: 10px;
    padding: 7px 11px;
    color: #147e10;
    font:
        500 14px/20px "DM Sans",
        sans-serif;
}

.car-card-footer {
    width: 100%;
    margin-top: auto;
}

.car-details-wrapper {
    padding: 0 16px 33px;
    transition: padding-top 0.35s ease;
}

.car-card-footer .price {
    font:
        700 24px /30px "DM Sans",
        sans-serif;
    color: #147e10;
}

.btn-box-collpse {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0 0;
}

.btn-offer {
    box-shadow: 0px 0px 10px 0px #b8b8b8;
    background: #e07900;
    border: 1px solid #e07900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font:
        700 20px/26px "DM Sans",
        sans-serif;
    color: #ffffff;
    padding: 17px 0;
    border-radius: 10px;
}

.btn-offer:hover,
.btn-offer:focus {
    color: #ffffff;
}

.make-offer-icon {
    width: 24px;
    height: 24px;
}

.collpse-button {
    background: transparent;
    border: 1px solid #e07900;
    border-radius: 10px;
    width: 63px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.car-full-details {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition:
        max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
}

.car-full-details.show {
    opacity: 1;
}

.collpse-button.show .collpse-image {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
}

.collpse-image {
    width: 18px;
    height: 11px;
    transition: transform 0.3s ease-in-out;
}

.vehicle-overview {
    padding: 19px 16px;
    border-top: 1.27px solid #0000000d;
}

.card-heading-text {
    font:
        700 18px/24px "DM Sans",
        sans-serif;
    color: #000000;
    padding: 0 0 11px;
}

.overview-text,
.vehicle-info-text {
    font:
        400 16px/22px "DM Sans",
        sans-serif;
    color: #757575;
}

.vehicle-info-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font:
        500 16px/22px "DM Sans",
        sans-serif;
}

.vehicle-info-list:not(:last-child) {
    padding: 0 0 10px;
}

.car-card-footer.open .car-details-wrapper {
    padding: 24px 16px 33px;
    border-top: 1.27px solid #0000000d;
}

@media (max-width: 1399px) {
    .online-pill {
        font:
            600 12px/18px "Urbanist",
            sans-serif;
        padding: 5px 16px;
        border-radius: 6px;
    }

    .car-card .car-card-body .car-name {
        font:
            700 16px / 22px "DM Sans",
            sans-serif;
        padding: 0 0 16px;
    }

    .car-loc {
        font:
            500 14px/20px "DM Sans",
            sans-serif;
        padding: 0 0 18px;
    }

    .car-card-footer .price {
        font:
            700 20px /26px "DM Sans",
            sans-serif;
    }

    .btn-box-collpse {
        padding: 18px 0 0;
    }

    .btn-offer {
        font:
            700 16px/22px "DM Sans",
            sans-serif;
        padding: 13px 0;
    }

    .collpse-button {
        width: 52px;
        height: 50px;
    }

    .collpse-image {
        width: 16px;
        height: 10px;
    }

    .car-card-body .owner-type {
        gap: 5px;
        font:
            500 16px/22px "DM Sans",
            sans-serif;
    }

    .car-card-body .view-showroom {
        gap: 5px;
        border-radius: 6px;
        padding: 5px 10px;
        font:
            500 12px/18px "DM Sans",
            sans-serif;
    }

    .car-loction,
    .tag-icon,
    .owner-type-icon,
    .view-showroom-icon {
        width: 16px;
        height: 16px;
    }

    .tags-row .tag {
        font:
            500 12px/18px "DM Sans",
            sans-serif;
    }

    .tags-row {
        gap: 16px;
        margin: 0 0 16px;
    }

    .owner-type-box {
        padding: 10px;
        border-radius: 6px;
    }

    .make-offer-icon {
        width: 18px;
        height: 18px;
    }

    .badge-top {
        padding: 7px 8px;
        border-radius: 6px;
        font:
            500 10px/16px "Urbanist",
            sans-serif;
    }

    .badge-icon {
        width: 12px !important;
        height: 12px;
    }

    .heart-btn {
        width: 28px;
        height: 28px;
    }

    .heart-icon {
        width: 16px;
        height: 16px;
    }

    .car-card-body,
    .vehicle-overview {
        padding: 16px 12px;
    }

    .card-heading-text {
        padding: 0 0 5px;
    }

    .car-card-footer.open .car-details-wrapper {
        padding: 16px 12px 23px;
    }
}

@media (max-width: 991px) {
    .media-card-image-wrapper,
    .media-card-image-blur,
    .media-card-image-main,
    .car-media {
        height: 210px;
        max-height: 210px;
    }

    .car-card-body {
        width: 100%;
        padding: 16px 12px 18px;
    }

    .car-card-body .owner-type {
        font:
            500 16px/22px "DM Sans",
            sans-serif;
    }

    .car-card-footer {
        width: 100%;
    }

    .car-details-wrapper {
        padding: 0 12px 26px;
    }

    .tags-row .tag {
        justify-content: center;
    }

    .overview-text,
    .vehicle-info-text {
        font:
            400 14px/20px "DM Sans",
            sans-serif;
    }

    .vehicle-info-list {
        font:
            500 14px/20px "DM Sans",
            sans-serif;
    }
}
