 /* ==============================
   GALLERY WRAPPER
============================== */
.gallery-wrapper {
    display: flex;
    margin-bottom: 40px;
}

/* ==============================
   LEFT : MAIN IMAGE (75%)
============================== */
.gallery-main {
    flex: 0 0 75%;
    max-width: 75%;
    padding-right: 12px;
    height: 520px;
    position: relative;          /* REQUIRED for arrows */
    overflow: hidden;
}

.gallery-main .swiper {
    height: 100%;
}

.gallery-main .swiper-slide {
    height: 100%;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ==============================
   SWIPER ARROWS (ONLY ON IMAGE)
============================== */
.gallery-main .swiper-button-next,
.gallery-main .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    color: #fff;
    z-index: 20;
}

.gallery-main .swiper-button-prev {
    left: 15px;
}

.gallery-main .swiper-button-next {
    right: 15px;
}

.gallery-main .swiper-button-next::after,
.gallery-main .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}

/* ==============================
   REMOVE THEME / EXTRA ARROWS
============================== */
.listing-detail .swiper-button-next,
.listing-detail .swiper-button-prev {
    display: none !important;
}

/* allow gallery arrows only */
.gallery-main .swiper-button-next,
.gallery-main .swiper-button-prev {
    display: flex !important;
}

/* ==============================
   RIGHT : THUMBNAILS (25%)
============================== */
.gallery-thumbs {
    flex: 0 0 25%;
    max-width: 100%;
    height: 520px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-thumbs .thumb-item {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

.gallery-thumbs img:hover {
    opacity: 0.9;
}

/* ==============================
   +MORE OVERLAY
============================== */
.more-count {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    z-index: 5;
}

.more-count:hover {
    background: rgba(0, 0, 0, 0.85);
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 991px) {
    .gallery-wrapper {
        flex-direction: column;
    }

    .gallery-main,
    .gallery-thumbs {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }

    .gallery-main {
        height: 400px;
    }

    .gallery-thumbs {
        height: auto;
        flex-direction: row;
        margin-top: 12px;
    }

    .gallery-thumbs .thumb-item {
        height: 120px;
    }
}

@media (max-width: 575px) {
    .gallery-main {
        height: 300px;
    }

    .gallery-thumbs .thumb-item {
        height: 80px;
    }
}

.mt-40 { margin-top: 20px; }


/* CAR INFO SECTION */
.car-info-wrapper {
    max-width: 900px;
}

.stock-status {
    color: #e00000;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.car-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.car-category {
    font-size: 16px;
    color: #777;
    margin-bottom: 10px;
}

.car-location {
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 25px;
}

.car-location i {
    font-size: 16px;
}
 .sale-price-box {
    display: flex;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    max-width: 360px;
}

/* LEFT SIDE */
.sale-label {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

/* RIGHT SIDE */
.sale-values {
    flex: 1;
    color: #f41e1e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

/* Old price */
.sale-values .old-price {
    font-size: 18px;
    font-weight: 600;
    text-decoration: line-through;
    opacity: 0.48;
    color: #111;
}

/* New price */
.sale-values .new-price {
    font-size: 28px;
    font-weight: 800;
}
/* ===============================
   MOBILE SALE PRICE FIX
================================ */
@media (max-width: 768px) {

    .sale-price-box {
        max-width: 100%;
        border-radius: 8px;
    }

    /* Stack better spacing */
    .sale-label {
        font-size: 14px;
        padding: 10px 8px;
        text-align: center;
    }

    .sale-values {
        padding: 10px 8px;
    }

    /* Old price smaller */
    .sale-values .old-price {
        font-size: 13px;
        margin-bottom: 2px;
    }

    /* New price prominent but not oversized */
    .sale-values .new-price {
        font-size: 20px;
        line-height: 1.1;
    }

}

.car-overview h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.car-overview p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    max-width: 850px;
}



.vehicle-specs {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
    max-width: 100%;
}

.spec-title {
    font-size: 20px;
    font-weight: 800;
    padding: 20px 24px;
    margin: 0;
    border-bottom: 1px solid #e5e5e5;
    letter-spacing: 0.5px;
}

.spec-row {
    display: grid;
    grid-template-columns: 60px 200px 1fr;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-icon {
    font-size: 22px;
    color: #111;
}

.spec-label {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.spec-value {
    font-size: 16px;
    font-weight: 500;
    color: #111;
}
@media (max-width: 576px) {
    .spec-row {
        grid-template-columns: 40px 120px 1fr;
        padding: 16px;
    }

    .spec-title {
        font-size: 18px;
        padding: 16px;
    }
}




.business-location-wrap {
    border: 1px solid #e5e5e5;
    background: #fff;
}

/* HEADINGS */
.business-hours h3,
.location-box h3 {
    font-size: 22px;
    font-weight: 800;
    padding: 20px 24px;
    margin: 0;
    border-bottom: 1px solid #e5e5e5;
}

/* BUSINESS HOURS */
.business-hours {
    height: 100%;
}

.hours-row {
    display: grid;
    grid-template-columns: 1fr 100px 100px;
    padding: 22px 24px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 16px;
    font-weight: 500;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row span:nth-child(2),
.hours-row span:nth-child(3) {
    text-align: center;
}

/* MAP */
.location-box {
    height: 100%;
}

.map-wrap {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .map-wrap {
        min-height: 300px;
    }
}



/* =========================
   SIMILAR VEHICLES
========================= */
.similar-vehicles {
    padding: 70px 0;
    background: #fff;
}

/* HEADER */
.similar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.similar-header h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* EXPLORE BUTTON */
.explore-btn {
    background: #000;
    color: #fff;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.explore-btn:hover {
    background: #111;
}

/* CARD */
.vehicle-card {
    background: #fff;
}

/* IMAGE */
.vehicle-img {
    background: #000;
    padding: 40px;
}

.vehicle-img img {
    width: 100%;
    display: block;
}

/* CONTENT */
.vehicle-info {
    padding: 25px 0;
}

.vehicle-type {
    font-size: 13px;
    color: #777;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.vehicle-info h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.vehicle-price {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

/* VIEW BUTTON */
.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #eee;
    color: #000;
    padding: 14px 24px;
    text-decoration: none;
    font-weight: 600;
}

.view-btn:hover {
    background: #ddd;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .similar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}


.flat-title .title-inner {
    display: flex;
    justify-content: flex-end;
}

.vehicle-specs > div {
    padding: 9px 0px 5px 16px !important;
}

.space-4-icon .icons {
    display: flex;
    align-items: center;
    gap: 4.5px;
}


/* ===============================
   MOBILE FIX – SHOW SIDEBAR
================================ */
@media (max-width: 991px) {

    /* Force sidebar visible */
    .listing-sidebar {
        display: block !important;
        position: static !important;
        width: 100% !important;
        margin-top: 20px;
    }

    

    /* Ensure title always shows */
    .heading-widget .title {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 1.7rem !important;
    }
.desktop_hide{
    display: none !important;
}
.mobile_hide{
    display: none !important;
}
}
/* ===============================
   DESKTOP FIX – STICKY SIDEBAR
================================ */
@media (min-width: 992px) {

    .listing-sidebar {
        position: sticky;
        top: 100px; /* adjust if header height changes */
        align-self: flex-start;
    }
.mobile-car-overlays{
    display: none !important;
}
}




.mainslider {
    position: relative;
}

.mainslider .swiper-button-next,
.mainslider .swiper-button-prev {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;

    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;

    align-items: center;
    justify-content: center;

    color: #fff !important;
}

/* Arrow icon size */
.mainslider .swiper-button-next::after,
.mainslider .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}


.swiper-button-next.style-3:hover, .swiper-button-prev.style-3:hover{
    background: #EB1B27 !important;
}


.btn-full-red {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ED1C24;
    color: #ffffff !important;
    margin-bottom: 12px;
    padding: 15px;
    border-radius: 5px;
}

.btn-full-red i,
.btn-full-red span {
    color: #ffffff !important;
}
.profile-contact .btn-contact .btn-pf {
    padding: 15px 19.5px !important;
}

.profile-contact .btn-contact .btn-pf.bg-orange
{
    background: #868181 !important;
}
.profile-contact .btn-contact .btn-pf.bg-green
{
    background: #25D366 !important;
}
.profile-contact .btn-contact .btn-pf.bg-orange:hover
{
    background: #d36a6e;
}
.profile-contact .btn-contact .btn-pf.bg-green:hover{
    background: #d36a6e;
}


