/* 
   ========================================
   VELOCE LUXURY DARK THEME OVERRIDES 
   ========================================
*/

/* 1. Global Backgrounds and Text */
body,
html {
    background-color: #0e0e0e !important;
    color: #e0e0e0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffffff !important;
}

/* 2. Golden Accents */
.text-gold {
    color: #dec00e !important;
    /* Using base color or standard gold */
}

/* Metallic Gold Gradient & Button Alignment */
.btn-gold-gradient,
.header-action .cmn--btn {
    background: linear-gradient(135deg, #fceabb 0%, #f8b500 100%) !important;
    color: #000000 !important;
    border: none !important;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 28px !important;
    line-height: 1 !important;
    height: auto !important;
}

.btn-gold-gradient:hover {
    background: linear-gradient(135deg, #f8b500 0%, #fceabb 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 181, 0, 0.4);
}

/* 3. Header Structure */
.header-veloce {
    background-color: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    position: absolute;
    width: 100%;
    z-index: 999;
}

.header-veloce .menu li a {
    color: #fff !important;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.header-veloce .menu li a:hover,
.header-veloce .menu li.active a {
    color: #dec00e !important;
}

/* 4. Hero Banner */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    max-width: 600px;
}

/* 5. Booking Widget (Overlapping Hero) */
.book-section-veloce {
    position: relative;
    margin-top: -100px;
    /* Pull it up over the banner */
    z-index: 10;
    padding-bottom: 80px;
}

.book__wrapper-veloce {
    background-color: #111111;
    border: 2px solid #b38728;
    /* Solid gold border */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.form-group-veloce .form--label-veloce {
    color: #999;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.form-group-veloce .input-with-icon {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 15px;
}

.form-group-veloce .input-with-icon i {
    font-size: 20px;
    margin-right: 10px;
}

.form-control-veloce {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    width: 100%;
    outline: none !important;
    box-shadow: none !important;
}

.form-control-veloce:focus {
    outline: none !important;
}

.form-control-veloce::placeholder {
    color: #666;
}

/* 6. Vehicle Grid */
.rental-section-veloce {
    background-color: #0a0a0a !important;
}

.car-card-veloce {
    transition: all 0.3s ease;
}

.car-card-veloce:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: #333 !important;
}

.car-card-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 7. Why Choose Us Image Styling */
.choose-thumb {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid #b38728;
    /* Subtle golden border */
}

.choose-thumb img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 450px;
    /* Ensures a good height on desktop */
}

/* 8. How it Works Layout Fixes */
.how-area-veloce .tab-menu li {
    padding: 0 !important;
    position: relative !important;
    border: none !important;
    margin-bottom: 2rem !important;
}

.how-area-veloce .tab-menu li::before,
.how-area-veloce .tab-menu li::after {
    display: none !important;
}

.how-area-veloce .tab-menu-icon {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
}

.how-area-veloce .tab-menu-icon::before,
.how-area-veloce .tab-menu-icon::after {
    display: none !important;
}

.how-area-veloce .tab-menu-content {
    padding-left: 0 !important;
    margin-top: 0 !important;
    padding-top: 5px !important;
}

.how-area-veloce .tab-menu-content .title {
    color: #fff !important;
}

.how-area-veloce .tab-menu li.active .tab-menu-content .title {
    color: #dec00e !important;
}

/* 9. Pricing Plan Veloce */
.plan__item-veloce:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9) !important;
    border: 1px solid #b38728 !important;
}

/* 10. FAQ Section Veloce */
.faq-accordion-veloce .accordion-button::after {
    filter: invert(1);
    /* Makes the arrow white in dark mode */
    transition: all 0.3s ease;
}

.faq-accordion-veloce .accordion-button:not(.collapsed)::after {
    filter: invert(70%) sepia(85%) saturate(700%) hue-rotate(3deg) brightness(95%) contrast(90%);
    /* Gold tint for active arrow */
}

.faq-accordion-veloce .accordion-button:focus {
    box-shadow: none !important;
}

.faq-accordion-veloce .accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: #dec00e !important;
    border-color: #b38728 !important;
    box-shadow: none !important;
}

.faq-accordion-veloce .accordion-button:not(.collapsed) span {
    color: #dec00e !important;
}

.faq-accordion-veloce .accordion-button:hover {
    border-color: #b38728 !important;
}

/* 11. Testimonials Section Veloce */
.client__item-veloce:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.9) !important;
    border: 1px solid #b38728 !important;
}

/* 12. Blog Section Veloce */
.post__item-veloce:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.9) !important;
    border: 1px solid #b38728 !important;
}

.post__item-veloce:hover img {
    transform: scale(1.05);
}

.hover-gold:hover {
    color: #dec00e !important;
}

/* 13. Footer Section Ultra-Premium */
.social-icons-minimal a:hover {
    color: #dec00e !important;
    transform: translateY(-2px);
}

.footer-links-minimal a:hover {
    color: #dec00e !important;
}

.footer-contact-minimal a:hover {
    color: #dec00e !important;
}

/* 14. Section Dividers */
.section-divider-top {
    border-top: 1px solid rgba(179, 135, 40, 0.3) !important;
}

/* 15. Grand Footer */
.social-icons-grand a:hover {
    background-color: #dec00e !important;
    color: #000 !important;
    transform: translateY(-3px);
}

.footer-links-grand a:hover .link-text {
    color: #dec00e !important;
    padding-left: 5px;
    transition: all 0.3s ease;
}

.footer-links-grand a .link-text {
    transition: all 0.3s ease;
}

.footer-contact-grand a:hover {
    color: #dec00e !important;
}

/* 16. Custom Form Elements */
select.custom-select-veloce {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

select.custom-select-veloce option {
    background-color: #111;
    color: #fff;
    padding: 12px;
}

/* 17. Datepicker Dark Theme Override */
.daterangepicker {
    background-color: #111 !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.daterangepicker::before,
.daterangepicker::after {
    border-bottom-color: #111 !important;
}

.daterangepicker::before {
    border-bottom-color: #333 !important;
}

.daterangepicker .calendar-table {
    background-color: #111 !important;
    border: none !important;
}

.daterangepicker td.available:hover,
.daterangepicker th.available:hover {
    background-color: #222 !important;
    color: #fff !important;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: #dec00e !important;
    color: #000 !important;
    font-weight: bold;
}

.daterangepicker td.off,
.daterangepicker td.off.in-range,
.daterangepicker td.off.start-date,
.daterangepicker td.off.end-date {
    background-color: transparent !important;
    color: #555 !important;
}

.daterangepicker .drp-buttons {
    border-top: 1px solid #333 !important;
    background-color: #0a0a0a !important;
}

.daterangepicker .btn-primary.applyBtn {
    background: linear-gradient(135deg, #fceabb 0%, #f8b500 100%) !important;
    color: #000 !important;
    border: none !important;
    font-weight: bold;
}

.daterangepicker .btn-default.cancelBtn {
    background-color: #333 !important;
    color: #fff !important;
    border: none !important;
}

.daterangepicker select.monthselect,
.daterangepicker select.yearselect {
    background-color: #222 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
    padding: 2px 5px !important;
    border-radius: 4px;
}

.daterangepicker .calendar-table .next span,
.daterangepicker .calendar-table .prev span {
    border-color: #fff !important;
}

/* 18. Select2 Dark Theme Override */
.select2-container--default .select2-selection--single {
    background-color: transparent !important;
    border: none !important;
    height: auto !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    padding-left: 0 !important;
    line-height: normal !important;
    font-size: 16px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

.veloce-dropdown {
    background-color: #111 !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.veloce-dropdown .select2-results__option {
    color: #fff !important;
    padding: 12px 15px !important;
    background-color: transparent !important;
    transition: all 0.3s ease;
}

body .select2-container .select2-dropdown.veloce-dropdown .select2-results__option--highlighted,
body .select2-container .select2-dropdown.veloce-dropdown .select2-results__option--highlighted[aria-selected],
body .select2-container--default .select2-dropdown.veloce-dropdown .select2-results__option--highlighted[aria-selected="true"],
body .select2-container--default .select2-dropdown.veloce-dropdown .select2-results__option--highlighted[aria-selected="false"],
body .select2-container .select2-dropdown.veloce-dropdown .select2-results__option:hover {
    background: linear-gradient(135deg, #dec00e 0%, #f8b500 100%) !important;
    color: #000000 !important;
    font-weight: bold !important;
}

.veloce-dropdown .select2-results__option[aria-selected="true"] {
    background-color: #222 !important;
    color: #dec00e !important;
}

/* 19. Sidebar Category Link Hover */
.category-link-veloce:hover {
    color: #dec00e !important;
    border-color: #dec00e !important;
}

.category-link-veloce:hover .badge {
    background-color: #dec00e !important;
    color: #000 !important;
    border-color: #dec00e !important;
}

/* 20. Inner Hero (Breadcrumbs) */
.inner-hero-section {
    padding-top: 120px;
    padding-bottom: 40px;
    background-color: #050505;
}

@media (max-width: 991px) {
    .inner-hero-section {
        padding-top: 90px;
        padding-bottom: 25px;
    }
}

.inner-hero-section .breadcrumb a:hover {
    color: #fff !important;
}

/* 21. Sticky Header */
.header-veloce {
    position: sticky !important;
    top: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8) !important;
}

/* 22. Dashboard Overrides */
.dashboard-section {
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%) !important;
}

.bg--body .dashboard__item,
.bg--section .dashboard__item,
.dashboard__item {
    background: #111 !important;
    border: 1px solid #222 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 0 !important;
}

.dashboard__item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}

.dashboard__item .dashboard__thumb {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.dashboard__item .dashboard__thumb i {
    font-size: 28px !important;
    color: #111 !important;
}

.dashboard__item .dashboard__content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: left !important;
    margin-left: 0 !important;
}

.dashboard__item .dashboard__content .dashboard__title {
    color: #d4af37 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
}

.dashboard__item .dashboard__content .subtitle {
    color: #888 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Dashboard Table Overrides */
.table.cmn--table {
    border: 1px solid #222 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.table.cmn--table thead tr th {
    background: #1a1a1a !important;
    color: #d4af37 !important;
    border-bottom: 2px solid #333 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 15px 20px !important;
}

.table.cmn--table tbody tr {
    background: #111 !important;
    transition: background 0.3s ease !important;
}

.table.cmn--table tbody tr:hover {
    background: #1a1a1a !important;
}

.table.cmn--table tbody tr td {
    color: #ccc !important;
    border-bottom: 1px solid #222 !important;
    vertical-align: middle !important;
    padding: 15px 20px !important;
}

.table.cmn--table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.empty-thumb img {
    filter: invert(0.8) sepia(1) hue-rotate(180deg) saturate(0) brightness(1.5) !important;
    opacity: 0.5 !important;
}

.empty-title {
    color: #888 !important;
}

/* 23. Header Dropdown Redesign */
.menu .submenu {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9) !important;
    padding: 10px 0 !important;
}

.menu .submenu li a {
    color: #ccc !important;
    padding: 12px 25px !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease !important;
}

.menu .submenu li:last-child a {
    border-bottom: none !important;
}

.menu .submenu li a:hover {
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%) !important;
    color: #111 !important;
    padding-left: 35px !important;
    border-bottom-color: transparent !important;
}

/* 24. Banner Animations */
@keyframes kenBurnsZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-slider-active .owl-item.active .hero-bg {
    animation: kenBurnsZoom 15s ease-out forwards;
}

/* 25. Rental Terms Override */
.terms-content-override h1,
.terms-content-override h2,
.terms-content-override h3,
.terms-content-override h4,
.terms-content-override h5,
.terms-content-override h6,
.terms-content-override strong {
    color: #d4af37 !important;
    margin-bottom: 10px;
}

.terms-content-override p {
    color: #ccc !important;
}

/* 26. WYSIWYG Content Overrides */
.content *,
.single__details-content * {
    background-color: transparent !important;
    color: #ccc !important;
}

.content p,
.single__details-content p {
    color: #ccc !important;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6,
.single__details-content h1,
.single__details-content h2,
.single__details-content h3,
.single__details-content h4,
.single__details-content h5,
.single__details-content h6 {
    color: #fff !important;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations ONLY when the slide is active */
.owl-item.active .hero-bg {
    animation: kenBurnsZoom 8s linear forwards;
}

.owl-item .hero-title,
.owl-item .hero-subtitle,
.owl-item .hero-btn {
    opacity: 0;
}

.owl-item.active .hero-title {
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.owl-item.active .hero-subtitle {
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.6s;
}

.owl-item.active .hero-btn {
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.9s;
}

/* 38. Header Action Button Mobile Override */
@media (max-width: 991px) {
    .header-action .cmn--btn {
        padding: 10px 18px !important;
        font-size: 13px !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* 39. Vehicle Filter Sidebar Z-Index, Visibility & Golden Scrollbar Fix */
.category-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #dec00e #111111;
}

.category-sidebar::-webkit-scrollbar {
    width: 6px;
}

.category-sidebar::-webkit-scrollbar-track {
    background: #111111;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.category-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fceabb 0%, #f8b500 100%);
    border-radius: 10px;
}

.category-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f8b500 0%, #dec00e 100%);
}

@media (max-width: 991px) {
    .category-sidebar {
        z-index: 99999 !important;
        top: 0 !important;
        height: 100vh !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.9);
        background: #0e0e0e !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        scrollbar-width: thin;
        scrollbar-color: #dec00e #111111;
    }

    body:has(.category-sidebar.active) .overlay.active {
        z-index: 99998 !important;
    }

    .category-sidebar .close-sidebar {
        cursor: pointer;
        font-size: 22px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
    }

    .category-sidebar .close-sidebar:hover {
        background: rgba(222, 192, 14, 0.2);
        transform: rotate(90deg);
    }
}

/* 40. Sidebar & Filter Input Box Luxury Border Styling */
.category-sidebar .form-control-veloce,
.widget-body input[type="text"].form-control-veloce,
.widget-body input[type="number"].form-control-veloce {
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    background: #1a1a1a !important;
    transition: all 0.3s ease;
    color: #fff !important;
}

.category-sidebar .form-control-veloce:focus,
.widget-body input[type="text"].form-control-veloce:focus,
.widget-body input[type="number"].form-control-veloce:focus {
    border-color: #dec00e !important;
    box-shadow: 0 0 10px rgba(222, 192, 14, 0.25) !important;
    background: #202020 !important;
}

.category-sidebar .input-group .form-control-veloce {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.category-sidebar .input-group .input-group-text {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.category-sidebar .form--label-veloce,
.widget-body .form--label-veloce {
    margin-bottom: 8px !important;
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #bbb !important;
}