/**
 * Dealership Manager
 * Featured Vehicles Carousel
 */


/* ---------------------------------------------------------
 * Featured vehicles
 * --------------------------------------------------------- */

.dm-featured-vehicles {
    position: relative;
    width: 100%;
}


/* ---------------------------------------------------------
 * Header
 * --------------------------------------------------------- */

.dm-featured-vehicles-header {
    margin-bottom: 24px;
}

.dm-featured-vehicles-title {
    margin: 0;
}


/* ---------------------------------------------------------
 * Carousel
 * --------------------------------------------------------- */

.dm-featured-vehicles-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.dm-featured-vehicles-carousel .swiper-wrapper {
    align-items: stretch;
}


/* ---------------------------------------------------------
 * Slide
 * --------------------------------------------------------- */

.dm-featured-vehicle-slide {
    height: auto;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
 * Card
 * --------------------------------------------------------- */

.dm-featured-vehicle-card {
    height: 100%;
    box-sizing: border-box;
}

.dm-featured-vehicle-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}


/* ---------------------------------------------------------
 * Title
 * --------------------------------------------------------- */

.dm-featured-vehicle-card-title {
    margin: 0 0 12px;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1.3;
	text-align: center !important;
	text-transform: uppercase !important;
}


/* ---------------------------------------------------------
 * Image
 * --------------------------------------------------------- */

.dm-featured-vehicle-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.dm-featured-vehicle-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------------------------------------------------
 * Featured badge
 * --------------------------------------------------------- */

.dm-featured-vehicle-card-image {
    position: relative;
}

.dm-featured-vehicle-card-image .dm-vehicle-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
	
	display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    height: 28px !important;
    min-height: 28px !important;

    margin: 0 !important;
    padding: 0 10px !important;

    background: #c5a35a !important;
    color: #fff !important;

    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 28px !important;

    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;

    opacity: 1 !important;
    visibility: visible !important;
    box-sizing: border-box !important;
}


/* ---------------------------------------------------------
 * Placeholder
 * --------------------------------------------------------- */

.dm-featured-vehicle-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #eee;
    color: #777;
    text-align: center;
}


/* ---------------------------------------------------------
 * Content
 * --------------------------------------------------------- */

.dm-featured-vehicle-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
	text-align: center;
}



/* ---------------------------------------------------------
 * Meta
 * --------------------------------------------------------- */

.dm-featured-vehicle-card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
}

.dm-featured-vehicle-card-meta span {
    display: inline-block;
    margin: 0;
}

.dm-featured-vehicle-card-meta span + span::before {
    content: "•";
    display: inline-block;
    margin: 0 8px;
}

/* ---------------------------------------------------------
 * Details
 * --------------------------------------------------------- */

.dm-featured-vehicle-card-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 0;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
}

.dm-featured-vehicle-card-details span {
    display: inline-block;
}

.dm-featured-vehicle-card-details span + span::before {
    content: "•";
    display: inline-block;
    margin: 0 8px;
}

/* ---------------------------------------------------------
 * Price
 * --------------------------------------------------------- */

.dm-featured-vehicle-card-price {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}


/* ---------------------------------------------------------
 * Navigation
 * --------------------------------------------------------- */

.dm-featured-vehicles-carousel
.swiper-button-prev,
.dm-featured-vehicles-carousel
.swiper-button-next {
    width: 42px;
    height: 42px;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
}

.dm-featured-vehicles-carousel
.swiper-button-prev {
    left: 12px;
}

.dm-featured-vehicles-carousel
.swiper-button-next {
    right: 12px;
}

.dm-featured-vehicles-carousel
.swiper-button-prev::after,
.dm-featured-vehicles-carousel
.swiper-button-next::after {
    font-size: 18px;
}


/* ---------------------------------------------------------
 * Pagination
 * --------------------------------------------------------- */

.dm-featured-vehicles-pagination {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 20px;
}


/* ---------------------------------------------------------
 * Tablet
 * --------------------------------------------------------- */

@media (max-width: 980px) {

    .dm-featured-vehicles-carousel
    .swiper-button-prev {
        left: 8px;
    }

    .dm-featured-vehicles-carousel
    .swiper-button-next {
        right: 8px;
    }

}


/* ---------------------------------------------------------
 * Mobile
 * --------------------------------------------------------- */

@media (max-width: 767px) {

    .dm-featured-vehicles-header {
        margin-bottom: 18px;
    }

    .dm-featured-vehicle-card-title {
        font-size: 1rem;
    }

    .dm-featured-vehicles-carousel
    .swiper-button-prev,
    .dm-featured-vehicles-carousel
    .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .dm-featured-vehicles-carousel
    .swiper-button-prev::after,
    .dm-featured-vehicles-carousel
    .swiper-button-next::after {
        font-size: 15px;
    }

}