.detail-slider-wrapper {
    width: 100%;
    /*max-width: 800px;*/
    height: 500px;
    margin: auto;
   /* border: 2px solid #aaa;*/
    border-radius: 10px;
    overflow: hidden;
}
.detail-slider-wrapper .slider {
    width: 100%;
    height: 100%;
    position: relative;
}
.detail-slider-wrapper .slide {

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;

   /* background-color: #ccc;*/
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 10px;

}
.detail-slider-wrapper .slide.active {
    opacity: 1;
    z-index: 1;
}
.detail-slider-wrapper .slide img {
    width: 100%;
    height:100%;
    display: block;
    object-fit: contain;
    border-radius: 10px;
}
.detail-slider-wrapper .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 10px;
    cursor: pointer;
    
    user-select: none;
    z-index: 2;
}
.detail-slider-wrapper .arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}
.detail-slider-wrapper .arrow.left {
    left: 10px;
}
.detail-slider-wrapper .arrow.right {
    right: 10px;
}
.detail-explore-main{
    margin: 0px;
    padding-top: 100px;
    background-color: #f9f9f9;
    padding-bottom:300px
}
.detail-main-content h5{
    /*font-family: "Nissan Bold", "Nissan Regular", Verdana, Arial, sans-serif;*/
    text-transform: uppercase;
   /* font-size: 12px;*/

 }
@media only screen and (max-width: 900px) {
    .detail-main-content{
        padding: 0px 15px;
    }
}
@media only screen and (min-width: 900px) {
    .detail-main-content{
       padding: 0px 50px;
    }
}

.detail-main-content .jumbotron{
    text-transform: uppercase;
    font-weight: bold;
}
.detail-button-group {
    display: flex;
    gap: 20px; /* Space between buttons */
    width: 100%;
    margin-top: 20px;
}

.detail-button-group  .btn {
    flex: 1;
    padding: 8px 15px;
    border-radius: 999px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
}

.detail-button-group .btn.active {
    background-color: #181818;
    color: white;
    border: none;
}

.detail-button-group  .btn.inactive {
    background-color: white;
    color: black;
    border: 2px solid black;
}

@media (max-width: 500px) {
    .detail-button-group  .btn {
        font-size: 12px;
        padding: 12px 10px;
    }
}

.finance_tools {
    width: 100%;
    border: 2px solid #ccc;
    padding: 30px 10px;

}
@media (min-width: 768px) {
    .finance_tools {
        padding: 30px;
    }
}

.finance_tools_page{
    font-size: 16px;
    border-bottom: 1px solid #ccc;
 }
.detail .vehicle-detail  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.vehicle-detail {
    margin-top: 20px;
}


@media (max-width: 768px) {
    .detail .image-box-boder-bottom {
        border-bottom: 1px solid #ccc;
    }
}
.detail .car-details {
    max-width: 500px;
    margin: auto;
}

.detail .car-details h3 {
    margin-bottom: 20px;
    font-size: 16px;
}

.detail .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
    column-gap: 40px;
}

.detail .detail-item {
    display: flex;
    flex-direction: column;
}

.detail .detail-item label {
    font-size: 14px;
    color: #333;
}

.detail .detail-item span {
    font-weight: bold;
    font-size: 14px;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .detail  .details-grid {
        grid-template-columns: 1fr;
    }
}
.finance_tools_page table{
    width: 100%;

}
.finance_tools_page table td {

    padding: 10px 0px !important;
    font-size: 14px !important;
    text-transform: uppercase;
    box-sizing: border-box;
    margin: 0;
    padding: 0;

    color: #000;

}

.finance_tools_end_page table{
    width: 100%;
}
.finance_tools_end_page table td {
    padding: 10px 0px !important;
}
.aed_amount{
    color: #a7a7a7 !important;
}


/* Switch container */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 20px;
    margin-left:5px;
    margin-right:5px;
}

/* Hide the default checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider style */
.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
    border: 1px solid black;

}

/* Circle inside the slider */
.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

/* When checkbox is checked */
input:checked + .slider {
    background-color: #333;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.detail .finance-tools{

    font-size: 19px;
    text-align: center;
    text-transform: uppercase;
    /*margin-bottom: 1.2em;*/
    line-height: 1.2;
}
.detail .contact_form_heading{

    font-size: 19px;
    text-align: center;
    text-transform: uppercase;
    /*margin-bottom: 1.2em;*/
    line-height: 1.2;
}
@media (max-width: 600px) {
    .detail-button-group {
        flex-direction: column;
        gap: 10px; /* Smaller gap for stacked buttons */
    }

    .detail-button-group .btn {
        width: 100%; /* Full width button */
    }
}
