.bg-primary {
    background: #2e4b78 !important;
}
.day-price{
    text-align:left;
    margin-bottom:6px;
}
.day-price-r{
    text-align:right;
}

.CarsSlider .carbox figure {
    width: 62px;
    height: 100% !important;
}


.dreamcars{
    position: relative;
    z-index: -1;}
    
.right-sidbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 10000;
    overflow-y: auto;
}

.right-sidbar.active {
    right: 0;
}

.side-nav-logo {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

#mobile-menu-content {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobile-menu-content > li {
    border-bottom: 1px solid #eee;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.mobile-menu-item i:first-child {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.mobile-menu-item .dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    padding: 0;
    background: #f9f9f9;
}

.mobile-dropdown.active .mobile-submenu {
    display: block;
}

.mobile-submenu li {
    padding: 0;
}

.mobile-submenu a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mobile-submenu a:hover {
    background: #f0f0f0;
}

.mobile-dropdown-header {
    padding: 15px 20px 10px;
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    background: #f5f5f5;
}

.mobile-search {
    padding: 15px 20px;
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search i {
    position: absolute;
    left: 30px;
    color: #999;
}

.mobile-search input {
    padding-left: 35px;
    padding-right: 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 40px;
}

.mobile-search button {
    position: absolute;
    right: 25px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.mobile-brands-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.mobile-brand-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
}

.mobile-brand-item img {
    margin-right: 10px;
}

.mobile-location-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
}

.mobile-location-item img {
    margin-right: 10px;
}

.mobile-flag {
    margin-right: 10px;
}

.slid-drop.brand-menu .no-results {
    display: block;
    padding: 10px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.slid-drop.brand-menu .input_wrap {
    position: relative;
}

.slid-drop.brand-menu .input_wrap button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    display: none;
}

.slid-drop.brand-menu .input_wrap button:hover {
    color: #333;
}
/* Check if these CSS rules exist and are correctly defined */

/* Option A: Hide by moving off-screen */
.right-sidbar.closed {
    left: -100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Option B: Fade out with opacity */
.right-sidbar.closed {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(100%) !important; /* or left: -100% */
}

/* Option C: Display none */
.right-sidbar.closed {
    display: none !important;
}

/* Make sure default state is set */
.right-sidbar {
    transition: all 0.3s ease;
    position: fixed;
    z-index: 1000;
}

/* Add these styles to your CSS */
    .location {
        position: relative;
        display: inline-block;
    }
    
    .location-list {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-top: 5px;
        min-width: 150px;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 0;
        list-style: none;
    }
    
    .location-list li {
        padding: 8px 12px;
        cursor: pointer;
        transition: background-color 0.2s;
    }
    
    .location-list li:hover {
        background-color: #f5f5f5;
    }
    
    .location-list li.selected {
        background-color: #007bff;
        color: white;
    }
    
    .location-btn {
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 8px 12px;
        background: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: 120px;
    }
    
    .location-btn:hover {
        border-color: #007bff;
    }
    
    .location-btn .arrow {
        transition: transform 0.2s;
    }
    
    .location-btn.active .arrow {
        transform: rotate(180deg);
    }
    
    .location-list.show {
        display: block !important;
    }
  /*  ul#ui-id-1 {
    width: 39% !important;
     }*/
     
     ul#ui-id-1 {
    width: 100% !important;
    max-width: 524px !important; /* Adjust based on your input width */
}
    
    
    /* ========== AUTOCOMPLETE DROPDOWN CONTAINER ========== */
.ui-autocomplete.ui-menu.ui-widget.ui-widget-content.ui-front {
    max-height: 350px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 8px 0 !important;
    margin-top: 5px !important;
    z-index: 9999 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========== SCROLLBAR STYLING ========== */
.ui-autocomplete::-webkit-scrollbar {
    width: 6px !important;
}

.ui-autocomplete::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 3px !important;
}

.ui-autocomplete::-webkit-scrollbar-thumb {
    background: #1d0d59 !important;
    border-radius: 3px !important;
}

.ui-autocomplete::-webkit-scrollbar-thumb:hover {
    background: #150a45 !important;
}

/* ========== INDIVIDUAL MENU ITEMS ========== */
.ui-menu-item {
    margin: 2px 8px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    list-style: none !important;
}

/* Menu item wrapper (the clickable area) */
.ui-menu-item-wrapper {
    display: flex !important;
    align-items: center !important;
    padding: 12px 12px !important;
    color: #333 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
    background: transparent !important;
}

/* ========== HOVER STATE ========== */
/*.ui-menu-item .ui-menu-item-wrapper.ui-state-active,
.ui-menu-item .ui-menu-item-wrapper.ui-state-focus {
    background: linear-gradient(135deg, #1d0d59 0%, #2a1a7c 100%) !important;
    color: white !important;
    border-color: #1d0d59 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(29, 13, 89, 0.2) !important;
}*/

/* ========== ICON FOR CAR SUGGESTIONS ========== */
.car-suggestion::before {
    content: "🚗";
    margin-right: 12px;
    font-size: 18px;
}

/* ========== BRAND HEADER STYLING (for items like "Audi" only) ========== */
.ui-menu-item:has(.car-suggestion:only-of-type:contains("Audi")),
.ui-menu-item:has(.car-suggestion:only-of-type:contains("BMW")),
.ui-menu-item:has(.car-suggestion:only-of-type:contains("Mercedes")),
.ui-menu-item:has(.car-suggestion:only-of-type:contains("Toyota")),
.ui-menu-item:has(.car-suggestion:only-of-type:contains("Ferrari")) {
    border-left: 4px solid #1d0d59 !important;
    background-color: #f8f9ff !important;
}

.ui-menu-item:has(.car-suggestion:only-of-type:contains("Audi")) .car-suggestion::before,
.ui-menu-item:has(.car-suggestion:only-of-type:contains("BMW")) .car-suggestion::before,
.ui-menu-item:has(.car-suggestion:only-of-type:contains("Mercedes")) .car-suggestion::before {
    content: "🏢";
}

/* ========== MODEL STYLING (for items with model names) ========== */
.ui-menu-item .car-suggestion:contains("A3"),
.ui-menu-item .car-suggestion:contains("A4"),
.ui-menu-item .car-suggestion:contains("A5"),
.ui-menu-item .car-suggestion:contains("Q3"),
.ui-menu-item .car-suggestion:contains("Q7") {
    padding-left: 40px !important; /* Indent models */
    position: relative;
}

.ui-menu-item .car-suggestion:contains("A3")::before,
.ui-menu-item .car-suggestion:contains("A4")::before,
.ui-menu-item .car-suggestion:contains("A5")::before,
.ui-menu-item .car-suggestion:contains("Q3")::before,
.ui-menu-item .car-suggestion:contains("Q7")::before {
    content: "⬤";
    font-size: 8px;
    margin-right: 15px;
    color: #1d0d59;
}

/* ========== SPECIAL/CONVERTIBLE MODELS ========== */
.ui-menu-item .car-suggestion:contains("Convertible")::before,
.ui-menu-item .car-suggestion:contains("Cabrio")::before,
.ui-menu-item .car-suggestion:contains("Spyder")::before {
    content: "🌤️";
}

.ui-menu-item .car-suggestion:contains("Convertible"),
.ui-menu-item .car-suggestion:contains("Cabrio"),
.ui-menu-item .car-suggestion:contains("Spyder") {
    color: #e67e22 !important;
}

/* ========== HIGH-PERFORMANCE/SPORTS MODELS ========== */
.ui-menu-item .car-suggestion:contains("RS")::before,
.ui-menu-item .car-suggestion:contains("M")::before,
.ui-menu-item .car-suggestion:contains("AMG")::before {
    content: "⚡";
}

.ui-menu-item .car-suggestion:contains("RS"),
.ui-menu-item .car-suggestion:contains("M"),
.ui-menu-item .car-suggestion:contains("AMG") {
    color: #e74c3c !important;
    font-weight: 700 !important;
}

/* ========== SUV MODELS ========== */
.ui-menu-item .car-suggestion:contains("Q")::before,
.ui-menu-item .car-suggestion:contains("X")::before {
    content: "🚙";
}

/* ========== NO RESULTS STYLING ========== */
.ui-menu-item.no-results .ui-menu-item-wrapper {
    color: #95a5a6 !important;
    font-style: italic !important;
    justify-content: center !important;
    cursor: default !important;
}

.ui-menu-item.no-results .ui-menu-item-wrapper:hover {
    background: transparent !important;
    color: #95a5a6 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ========== SEPARATOR LINE BETWEEN BRAND GROUPS ========== */
.ui-menu-item:has(.car-suggestion:only-of-type:contains("Audi")) + 
.ui-menu-item:not(:has(.car-suggestion:only-of-type:contains("Audi"))) {
    border-top: 2px solid #e0e0e0 !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
}

/* ========== ANIMATION FOR DROPDOWN APPEARANCE ========== */
.ui-autocomplete.ui-menu.ui-widget.ui-widget-content.ui-front {
    animation: slideDownFade 0.3s ease !important;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .ui-autocomplete.ui-menu.ui-widget.ui-widget-content.ui-front {
        width: 100% !important;
        max-height: 300px !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 8px !important;
    }
    
    .ui-menu-item-wrapper {
        padding: 10px 12px !important;
        font-size: 15px !important;
    }
}

/************new slider **********/

aside.col-lg-7.pl-0.pr-0
 {
    padding-left: 0px;
    padding-right: 0px;
}

* {
    box-sizing: border-box;
}

.product-slider-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.AddSlider .slider-container {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.AddSlider .main-image {
    flex: 1;
    min-height: 400px;
    max-height: 500px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.AddSlider .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.AddSlider .main-image:hover img {
    transform: scale(1.02);
}

.AddSlider .thumbnails {
    display: flex;
    flex-direction: column;
    align-items:center;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
    padding: 5px;
    min-width: 120px;
}

.AddSlider .thumbnails::-webkit-scrollbar {
    width: 5px;
}

.AddSlider .thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.AddSlider .thumbnails::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.AddSlider .thumbnails img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.AddSlider .thumbnails img:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.AddSlider .thumbnails img.active {
    border: 3px solid #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* Product Info Container - Now below the slider */
.product-info-container {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.caption-container {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.caption-container .h4 {
    color: #333;
    margin: 0;
}

.caption-container strong {
    color: #fff;
}

/* Fullscreen overlay */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
    padding: 20px;
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox .controls {
    position: absolute;
    width: 100%;
    top: 50%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
    z-index: 10000;
}

.lightbox button {
    background: rgba(0, 123, 255, 0.8);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lightbox button:hover {
    background: rgba(0, 123, 255, 1);
    transform: scale(1.05);
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 36px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox .close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@media (max-width: 767px) {
  /*a.nav-logo.logo.lp img {
    display: none;
  }*/
}
@media (max-width: 992px) {
/*a.nav-logo.logo.lp img {
    display: none;
  }*/
}

/* Table Styles */
.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table thead th {
    background-color: #2e4b78;
    color: white;
    border: none;
    font-weight: 600;
    padding: 15px;
    text-align: center;
}

.table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody td {
    padding: 15px;
    border: none;
    text-align: center;
    vertical-align: middle;
}

.table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table tbody tr:last-child td {
    background-color: #fff9e6;
    color: #856404;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .AddSlider .slider-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
      .AddSlider .slider-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
        max-width: min(591px, 90%);
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
}
    
    .AddSlider .thumbnails {
        flex-direction: row;
        max-height: 100px;
        overflow-x: auto;
        overflow-y: hidden;
        min-width: auto;
        padding-bottom: 10px;
    }
    
    .AddSlider .thumbnails img {
        width: 70px;
        height: 50px;
        min-width: 70px;
    }
    
    .AddSlider .main-image {
        min-height: 250px;
        max-height: 300px;
    }
    
    .product-info-container {
        padding: 15px;
    }
    
    .lightbox .controls {
        padding: 0 15px;
    }
    
    .lightbox button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .lightbox .close {
        top: 15px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 10px 5px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .caption-container .h4 {
        font-size: 1.2rem;
    }
    
    .AddSlider .main-image {
        min-height: 200px;
        max-height: 250px;
    }
    
    .AddSlider .thumbnails img {
        width: 60px;
        height: 45px;
        min-width: 60px;
    }
    
    .border.rounded-4.mb-3.d-flex.justify-content-center
    {
    border: none !important;
    }
    
    .product-info-container {
        max-width: 90%; 
        width: auto; 
        margin: 0 auto; 
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .AddSlider .slider-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
        max-width: min(390px, 90%);
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;

}
    
}
li.nav-item.pt-0.active
{
  background-color: #fff !important;
}

section.Hero.abu-dhabi:before{
        width: 100%;
    height: auto;
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, #0B1D4A 0.96%, rgba(26, 44, 109, 0.66) 50.44%, rgba(5, 22, 63, 0) 100%), url(../images/bg/abudhabi.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 1;
}

section.Hero.sharjah:before{
    width: 100%;
    height: auto;
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, #0B1D4A 0.96%, rgba(26, 44, 109, 0.66) 50.44%, rgba(5, 22, 63, 0) 100%), url(../images/bg/sharjah.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 1;
}
section.Hero.ras-al-khaimah:before{
    width: 100%;
    height: auto;
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, #0B1D4A 0.96%, rgba(26, 44, 109, 0.66) 50.44%, rgba(5, 22, 63, 0) 100%), url(../images/bg/ras-al-khaimah.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 1;
}

ul.pagination.mx-auto {
    padding-top: 20px;
}

/* Tablet: 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .AddSlider .slider-container {
        grid-template-columns: 1fr; 
        max-width: min(720px,  100%);
        gap: 20px;
        padding: 20px;
        margin: 0 auto;
    }
}

/* Small Desktop: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .AddSlider .slider-container {
        grid-template-columns: 1fr;
        max-width: min(900px, 94%);
        gap: 25px;
        padding: 25px;
        margin: 0 auto;
    }
      .product-info-container {
        max-width: 94%; 
        width: auto; 
        margin: 0 auto; 
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}

/* Large Desktop: 1025px+ */
@media (min-width: 1025px) {
    .AddSlider .slider-container {
        grid-template-columns: 1fr;
        max-width: min(1200px, 100%);
        gap: 30px;
        padding: 30px;
        
    }
}

/* Add this to your existing CSS */

.lightbox button:disabled {
    background: rgba(0, 0, 0, 0.5) !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.lightbox button:disabled:hover {
    background: rgba(0, 0, 0, 0.5) !important;
    transform: none !important;
}
.pagination {
    flex-wrap: wrap;
    justify-content: center;
}
h2.h3
 {
    margin-top: 10px;
}

/* Dropdown alignment for RTL pages */
body[dir="rtl"] .navbar .dropdown-menu {
    right: 0;       /* Align dropdown to the right edge of parent */
    left: auto;
    text-align: right;
}

/* Optional: adjust arrows/icons */
body[dir="rtl"] .dropdown-toggle::after {
    margin-left: 0;
    margin-right: .5rem;
    transform: rotate(180deg); /* Flip arrow */
}

@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }
}


