/* ============================================================
   Kars single-inventory — Car Details page (Daqeeqa adaptation)
   ============================================================ */
:root {
    --kars-theme: #0f6887;
    --kars-title: #1b1a28;
    --kars-body: #6b6b6b;
    --kars-white: #ffffff;
    --kars-smoke: #f5f6fa;
    --kars-border: #e4e4e4;
}

.kars-details,
.kars-details p,
.kars-details li {
    color: var(--kars-body);
}
.kars-details h1, .kars-details h2, .kars-details h3,
.kars-details h4, .kars-details h5, .kars-details h6 {
    color: var(--kars-title);
}
.kars-details .title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* ---------- Accordion gallery (exact Kars) ---------- */
.single-inventory-wrapper {
    display: flex;
    gap: 24px;
    padding: 50px 0;
}
.single-inventory-item {
    flex: 100%;
    transition: all 0.3s linear;
}
.single-inventory-item.active {
    flex: 400%;
}
.single-inventory-item .single-inventory-img {
    height: 520px;
    z-index: 2;
    transition: 0.7s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: block;
}
.single-inventory-item .single-inventory-item-content {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease 0s;
    width: 100%;
    text-align: center;
}
.single-inventory-item.active .single-inventory-item-content {
    opacity: 1;
    visibility: visible;
}
.single-inventory-item .simple-icon-btn {
    background: var(--kars-white);
    border-radius: 15px;
    padding: 8px 19px;
    color: var(--kars-title);
    font-size: 16px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
.single-inventory-item .simple-icon-btn:hover {
    color: var(--kars-theme);
}
.single-inventory-item .simple-icon-btn i {
    margin-inline-end: 4px;
    color: var(--kars-theme);
}
.single-inventory-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    z-index: 1;
}
@media (max-width: 991px) {
    .single-inventory-wrapper {
        flex-direction: column;
        padding: 30px 0;
    }
    .single-inventory-item .single-inventory-img {
        max-height: 160px;
        height: 160px;
    }
    .single-inventory-item.active .single-inventory-img {
        max-height: 370px;
        height: 370px;
    }
}
@media (max-width: 575px) {
    .single-inventory-item .single-inventory-img { height: 130px; }
    .single-inventory-item.active .single-inventory-img { height: 310px; }
}

/* ---------- Top: title + feature pills ---------- */
.inventory-single-top .media-body {
    margin-bottom: 22px;
}
.inventory-single-top .media-body .box-title {
    font-size: 40px;
    margin-bottom: 5px;
}
@media (max-width: 767px) {
    .inventory-single-top .media-body .box-title { font-size: 28px; }
}
.inventory-single-top .media-body .box-text span {
    color: var(--kars-title);
    font-weight: 600;
}
.inventory-single-top .car-feature {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-inline-start: 0;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--kars-border);
    margin-bottom: 40px;
}
.inventory-single-top .car-feature li {
    list-style: none;
    display: flex;
    gap: 8px;
    font-size: 16px;
    align-items: center;
    position: relative;
    border: 1px solid var(--kars-border);
    padding: 6px 17px;
}
.inventory-single-top .car-feature li .icon {
    line-height: 0.5;
}
.inventory-single-top .car-feature li .icon img {
    width: 22px;
    height: 22px;
}
.inventory-single-top .car-feature li p {
    margin: 0;
    color: var(--kars-title);
}

/* ---------- Description ---------- */
.single-inventory-content {
    border-bottom: 1px solid var(--kars-border);
    padding-bottom: 40px;
    margin-bottom: 40px;
}
.single-inventory-content p {
    line-height: 1.9;
}
.th-btn-kars.brochure {
    background: rgba(15, 104, 135, 0.09);
    color: var(--kars-title);
    height: auto;
    padding: 16px 30px;
    border-radius: 0;
}
.th-btn-kars.brochure:hover {
    background: var(--kars-theme);
    color: var(--kars-white);
}

/* ---------- Vehicle Overview ---------- */
.vehicle-overview-wrap {
    border-bottom: 1px solid var(--kars-border);
    padding-bottom: 28px;
    margin-bottom: 40px;
}
.vehicle-overview-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 25px;
}
@media (max-width: 1399px) {
    .vehicle-overview-body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .vehicle-overview-body { grid-template-columns: 1fr; }
}
.vehicle-overview-body .overview-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--kars-border);
    padding-bottom: 12px;
    margin-bottom: 14px;
}
.vehicle-overview-body .overview-item .left {
    display: flex;
    gap: 0 10px;
    align-items: center;
}
.vehicle-overview-body .overview-item .left .icon img {
    width: 20px;
    height: 20px;
}
.vehicle-overview-body .overview-item .left p {
    margin: 0;
}
.vehicle-overview-body .overview-item .right p {
    color: var(--kars-title);
    margin: 0;
    font-weight: 700;
}

/* ---------- Vehicle Features (checklists) ---------- */
.vehicle-features-wrap {
    border-bottom: 1px solid var(--kars-border);
    padding-bottom: 45px;
    margin-bottom: 45px;
}
.sing-invent-features-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 25px 31px;
}
@media (max-width: 1199px) {
    .sing-invent-features-body { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 767px) {
    .sing-invent-features-body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .sing-invent-features-body { grid-template-columns: 1fr; }
}
.sing-invent-features-item .box-title {
    font-size: 19px;
    font-weight: 500;
    position: relative;
    margin-bottom: 22px;
}
.sing-invent-features-item .box-title::before {
    position: absolute;
    inset-inline-start: 0;
    bottom: -6px;
    height: 2px;
    width: 120px;
    background: var(--kars-border);
    content: "";
}
.sing-invent-features-item .box-title::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: -6px;
    height: 2px;
    width: 30px;
    background: var(--kars-theme);
}
.checklist ul {
    padding-inline-start: 0;
    list-style: none;
    margin-bottom: 0;
}
.checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.checklist li:not(:last-child) {
    margin-bottom: 10px;
}
.checklist.vehicle-features ul li:before {
    content: "\f058";
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome;
    font-weight: 900;
    color: var(--kars-theme);
}

/* ---------- Interior grid gallery ---------- */
.interior-grid-wrap {
    border-bottom: 1px solid var(--kars-border);
    padding-bottom: 45px;
    margin-bottom: 45px;
}
.interior-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}
@media (max-width: 767px) {
    .interior-grid { grid-template-columns: 1fr 1fr; }
}
.interior-grid .gallery-item {
    display: block;
    height: 170px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.interior-grid .gallery-item:hover {
    opacity: 0.88;
}
.interior-grid .interior-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
}
.view-360-box {
    background: var(--kars-smoke);
    border: 1px solid var(--kars-border);
    padding: 15px;
    margin-top: 25px;
}

/* ---------- Colors ---------- */
.car-colors-wrap {
    border-bottom: 1px solid var(--kars-border);
    padding-bottom: 45px;
    margin-bottom: 45px;
}
.car-colors-wrap .color-main-img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    background: var(--kars-smoke);
}
.car-colors-dots {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: center;
}
.car-colors-dots .color-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--kars-border);
    cursor: pointer;
    transition: 0.3s;
}
.car-colors-dots .color-dot.active,
.car-colors-dots .color-dot:hover {
    border-color: var(--kars-theme);
    transform: scale(1.12);
}

/* ---------- Video ---------- */
.sing-invent-video-wrap {
    border-bottom: 1px solid var(--kars-border);
    padding-bottom: 45px;
    margin-bottom: 45px;
}
.sing-invent-video {
    position: relative;
}
.sing-invent-video img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}
.sing-invent-video .video-box1 {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sing-invent-video .play-btn {
    height: 74px;
    width: 74px;
    line-height: 70px;
    text-align: center;
    border-radius: 50%;
    background: var(--kars-theme);
    color: var(--kars-white);
    border: 2px solid var(--kars-white);
    font-size: 20px;
    display: inline-block;
}
.sing-invent-video .play-btn:hover {
    background: var(--kars-title);
    color: var(--kars-white);
}

/* ---------- Loan calculator ---------- */
.contact-form.style-3 {
    background: var(--kars-smoke);
    padding: 40px;
    border-bottom: 1px solid var(--kars-border);
    margin-bottom: 45px;
}
@media (max-width: 767px) {
    .contact-form.style-3 { padding: 22px; }
}
.contact-form.style-3 .sec-title {
    font-size: 24px;
    margin-bottom: 5px;
}
.contact-form.style-3 label {
    display: block;
    margin-bottom: 8px;
    color: var(--kars-title);
    font-weight: 600;
    font-size: 14px;
}
.contact-form.style-3 .form-control.pill {
    background: var(--kars-white);
    border: 1px solid var(--kars-border);
    height: 52px;
    border-radius: 50px;
    padding: 0 20px;
    width: 100%;
    margin-bottom: 20px;
}
.contact-form.style-3 .form-control.pill:focus {
    outline: none;
    border-color: var(--kars-theme);
    box-shadow: none;
}
.contact-form__bottom {
    padding-inline-start: 0;
    list-style: none;
    margin: 10px 0 25px;
}
.contact-form__bottom li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--kars-border);
    padding: 10px 0;
}
.contact-form__bottom li p {
    margin: 0;
}
.contact-form__bottom li p:last-child {
    color: var(--kars-title);
    font-weight: 700;
}

/* ---------- Map ---------- */
.sing-invent-map-wrap {
    margin-bottom: 45px;
}
.sing-invent-map iframe {
    height: 420px;
    width: 100%;
    border: 0;
}
.sing-invent-map .checklist {
    margin-bottom: 22px;
}
.sing-invent-map .checklist ul li i {
    font-size: 22px;
    color: var(--kars-theme);
}

/* ---------- Sidebar widgets ---------- */
.kars-details .sidebar-area .widget {
    background: var(--kars-smoke);
    padding: 30px;
    margin-bottom: 30px;
    border: 0;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 5px 9px 0px;
}
.inventory-info-wrap {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.inventory-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.inventory-info-item p {
    margin: 0;
    color: var(--kars-title);
}
.inventory-info-item .icon {
    height: 40px;
    width: 40px;
    line-height: 40px;
    border: 1px solid var(--kars-border);
    text-align: center;
    border-radius: 50%;
    font-size: 15px;
    color: var(--kars-title);
    background: var(--kars-white);
    transition: 0.3s;
}
.inventory-info-item:hover p,
.inventory-info-item:hover .icon,
.inventory-info-item.active .icon {
    color: var(--kars-theme);
}
.inventory-info-item.active .icon {
    border-color: var(--kars-theme);
}

.inventory-price-wrap .box-title {
    font-size: 18px;
    color: var(--kars-body);
    margin-bottom: 20px;
}
.inventory-price-wrap .inventory-price-top {
    margin-bottom: 28px;
}
.inventory-price-wrap .inventory-price-top .box-title {
    font-size: 30px;
    color: var(--kars-title);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.inventory-price-wrap .inventory-price-top .box-title del {
    font-size: 20px;
    color: var(--kars-body);
    font-weight: 400;
}
.inventory-price-wrap .saving {
    color: var(--kars-theme);
    font-weight: 600;
    margin: 0;
}
.inventory-price-wrap .inventory-price-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Sidebar buttons */
.th-btn-kars.w-100 { width: 100%; }
.th-btn-kars.outline {
    background: transparent;
    border: 1px solid var(--kars-title);
    color: var(--kars-title);
}
.th-btn-kars.outline:hover {
    background: var(--kars-title);
    color: var(--kars-white);
}
.th-btn-kars.bg-black {
    background: var(--kars-title);
    color: var(--kars-white);
}
.th-btn-kars.bg-black:hover {
    background: var(--kars-theme);
}
.th-btn-kars.whatsapp {
    background: transparent;
    border: 1px solid #05E03C;
    color: var(--kars-title);
}
.th-btn-kars.whatsapp:hover {
    background: #05E03C;
    color: var(--kars-white);
}
.th-btn-kars.dealer-link {
    background: transparent;
    color: var(--kars-title);
    height: auto;
    padding: 5px 0;
}
.th-btn-kars.dealer-link:hover {
    background: transparent;
    color: var(--kars-theme);
}

.inventory-owner-top {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}
.inventory-owner-top .thumb img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--kars-white);
    border: 1px solid var(--kars-border);
    padding: 6px;
}
.inventory-owner-top .content .box-title {
    font-weight: 500;
    margin-bottom: 0;
    font-size: 20px;
}
.inventory-owner-top .content p {
    font-size: 14px;
    margin: 0;
}
.inventory-owner-body {
    display: flex;
    align-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
.inventory-owner-body .info-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
.inventory-owner-body .info-box .info-box_icon {
    height: 40px;
    width: 40px;
    line-height: 40px;
    border: 1px solid var(--kars-border);
    text-align: center;
    border-radius: 50%;
    font-size: 15px;
    color: var(--kars-theme);
    background: var(--kars-white);
}
.inventory-owner-body .info-box p {
    margin: 0;
}
.inventory-owner-body .info-box a {
    color: var(--kars-title);
    text-decoration: none;
}
.inventory-owner-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ---------- Related slider ---------- */
.related-inventory-sec {
    padding: 60px 0 80px;
    background: var(--kars-smoke);
}
.related-inventory-sec .sec-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}
.related-inventory-sec .swiper-slide {
    height: auto;
}
.related-slider-arrows {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}
.related-slider-arrows button {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    border: 1px solid var(--kars-border);
    background: var(--kars-white);
    color: var(--kars-title);
    cursor: pointer;
    transition: 0.3s;
}
.related-slider-arrows button:hover {
    background: var(--kars-theme);
    border-color: var(--kars-theme);
    color: var(--kars-white);
}

/* Price currency symbol */
.kars-details .riyal-symbol {
    width: 26px;
    height: auto;
}

/* Kars gutter + misc */
.kars-details .gx-40 {
    --bs-gutter-x: 40px;
}
.kars-details .title-area.mb-35 {
    margin-bottom: 30px;
}
.kars-details .cloudimage-360 img {
    max-width: 100%;
}
