
:root {
    --rg-bg: #f7f8fb;
    --rg-surface: #ffffff;
    --rg-border: #e5e7eb;
    --rg-text: #111827;
    --rg-muted: #6b7280;
    --rg-accent: #fb4601;
}

body {
    background-color: var(--rg-bg);
    color: var(--rg-text);
}

body.dark-theme {
    --rg-bg: #0c1324;
    --rg-surface: #0f172a;
    --rg-border: #1f2937;
    --rg-text: #e5e7eb;
    --rg-muted: #9ca3af;
}

body.dark-theme,
body.dark-theme .main-wrapper,body.dark-theme .section,body.dark-theme .work-card,body.dark-theme .brand-section {
    background-color: var(--rg-bg);
    color: var(--rg-text);
}

body.dark-theme .header,
body.dark-theme .navbar,
body.dark-theme .main-menu-wrapper,
body.dark-theme .header-two,
body.dark-theme .header-three,
body.dark-theme .header-four,
body.dark-theme .footer,
body.dark-theme .footer .footer-top,
body.dark-theme .footer .footer-bottom {
    background-color: var(--rg-surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* body.dark-theme .header .navbar-brand img,
body.dark-theme .logo img,
body.dark-theme .logo-small img,
body.dark-theme .menu-logo img,
body.dark-theme .log-header img {
    filter: brightness(0) invert(1);
} */

body.dark-theme .main-nav > li > a,
body.dark-theme .nav-link,
body.dark-theme .dropdown-menu a,
body.dark-theme .footer-menu li a,
body.dark-theme .header-login,
body.dark-theme .header-reg {
    color: var(--rg-text);
}

body.dark-theme .nav-link:hover,
body.dark-theme .main-nav > li > a:hover,
body.dark-theme .dropdown-menu a:hover,
body.dark-theme .footer-menu li a:hover {
    color: var(--rg-accent);
}

body.dark-theme .dropdown-menu,
body.dark-theme .card,
body.dark-theme .blog-widget,
body.dark-theme .chat-window,
body.dark-theme .modal-content,
body.dark-theme .form-control,
body.dark-theme .input-group-text,
body.dark-theme .list-group-item,
body.dark-theme .accordion-item,
body.dark-theme .table,
body.dark-theme .table thead th,
body.dark-theme .table tbody tr,
body.dark-theme .pricing-card,
body.dark-theme .feature-card,
body.dark-theme .filter-card,
body.dark-theme .contact-card,
body.dark-theme .booking-card,
body.dark-theme .profile-sidebar,
body.dark-theme .dashboard-card {
    background-color: var(--rg-surface);
    color: var(--rg-text);
    border-color: var(--rg-border);
}

body.dark-theme .table tbody tr:nth-child(even) {
    background-color: #111827;
}

body.dark-theme .form-control::placeholder {
    color: var(--rg-muted);
}

body.dark-theme .breadcrumb-bar,
body.dark-theme .section-heading,
body.dark-theme .section-header,
body.dark-theme .page-header,
body.dark-theme .page-title {
    background: linear-gradient(90deg, #0f172a 0%, #0c1324 100%);
    color: var(--rg-text);
}

body.dark-theme .section-heading h2,
body.dark-theme .section-header h2,
body.dark-theme .section-heading p,
body.dark-theme .section-header p {
    color: var(--rg-text);
}

body.dark-theme a,
body.dark-theme p,
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6,
body.dark-theme label {
    color: var(--rg-text);
}

body.dark-theme .text-muted,
body.dark-theme .text-secondary {
    color: var(--rg-muted) !important;
}

body.dark-theme .border,
body.dark-theme .border-top,
body.dark-theme .border-bottom {
    border-color: var(--rg-border) !important;
}

body.dark-theme .btn-outline-dark,
body.dark-theme .btn-light {
    color: var(--rg-text);
    background-color: var(--rg-surface);
    border-color: var(--rg-border);
}

body.dark-theme .btn-outline-dark:hover,
body.dark-theme .btn-light:hover {
    color: #fff;
    background-color: var(--rg-accent);
    border-color: var(--rg-accent);
}

body.dark-theme .bg-white,
body.dark-theme .bg-light {
    background-color: var(--rg-surface) !important;
}

body.dark-theme .popular-services {
    background-color: var(--rg-bg);
}

body.dark-theme .popular-services .listing-tabs-group ul li a {
    background: var(--rg-surface);
    border-color: var(--rg-border);
    color: var(--rg-text);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

body.dark-theme .popular-services .listing-tabs-group ul li a span {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--rg-border);
}

body.dark-theme .popular-services .listing-tabs-group ul li a:hover,
body.dark-theme .popular-services .listing-tabs-group ul li a.active {
    background: var(--rg-accent);
    color: #ffffff;
}
body.dark-theme .popular-services .listing-tabs-group ul li a span img{
    filter: brightness(0) invert(1);
}

body.dark-theme .popular-slider-group .listing-owl-item .listing-owl-group {
    background: var(--rg-surface);
    color: var(--rg-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--rg-border);
}

body.dark-theme .popular-slider-group .listing-owl-item .listing-owl-group p {
    color: var(--rg-muted);
}

body.dark-theme .popular-slider-group .listing-owl-item .listing-owl-group:hover {
    background-color: var(--rg-accent);
    border-color: var(--rg-accent);
}

body.dark-theme .btn-view {
    color: var(--rg-text);
    border-color: var(--rg-border);
    background-color: var(--rg-surface);
}

body.dark-theme .btn-view:hover {
    background-color: var(--rg-accent);
    border-color: var(--rg-accent);
    color: #ffffff;
    box-shadow: inset 0 50px 0 0 var(--rg-accent);
}

body.dark-theme #page-loader {
    background: var(--rg-bg);
}

body.dark-theme .listing-item {
    background: var(--rg-surface);
    border: 1px solid var(--rg-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.dark-theme .listing-item .listing-img .featured-text,
body.dark-theme .listing-item .listing-img .fav-item .featured-text {
    background: rgba(0, 0, 0, 0.35);
    border-color: var(--rg-border);
}

body.dark-theme .listing-location-details {
    background: var(--rg-surface);
    border: 1px solid var(--rg-border);
    color: var(--rg-text);
}

body.dark-theme .listing-item .listing-content .listing-location-details {
    background: var(--rg-surface);
    border: 1px solid var(--rg-border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

body.dark-theme .listing-location-details .listing-price h6,
body.dark-theme .listing-location-details .listing-price span,
body.dark-theme .listing-item .listing-content .listing-features .listing-title a {
    color: var(--rg-text);
}

body.dark-theme .listing-location-details .listing-location .listing-location-item {
    color: var(--rg-muted);
}

.theme-switcher {
    background-color: transparent;
    padding: 10px;
    border-radius: 50%;
    color: var(--rg-accent);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--rg-border);
}

.theme-switcher .theme-icon {
    font-size: 18px;
    line-height: 1;
}

.theme-switcher .fa-sun {
    display: none;
}

body.dark-theme .theme-switcher {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--rg-border);
    color: var(--rg-accent);
}

body.dark-theme .theme-switcher .fa-sun {
    display: inline-block;
}

body.dark-theme .theme-switcher .fa-moon {
    display: none;
}

.theme-switcher:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 70, 1, 0.25);
}
body.dark-theme .header .header-nav .main-nav > li > a,
body.dark-theme .listing-item .listing-img .featured-text,
body.dark-theme .work-card .work-content h5,
body.dark-theme .work-card .work-content p{
    color: var(--rg-text);
}
body.dark-theme .header .header-nav .main-nav >  li.active > a,
body.dark-theme .header .header-nav .main-nav > li >  a:hover,
body.dark-theme .listing-item .listing-content .listing-features .listing-title a:hover,
body.dark-theme .section-heading.heading-three h2 span {
    color: var(--rg-accent);
}
body.dark-theme .popular-slider-group .owl-carousel .owl-prev,
body.dark-theme .details-car.owl-carousel .owl-nav .owl-prev,
body.dark-theme .details-car.owl-carousel .owl-nav .owl-next,
body.dark-theme .popular-slider-group .owl-carousel .owl-next{
    background: var(--rg-border) !important;
}
body.dark-theme .popular-slider-group .owl-carousel .owl-prev:hover,
body.dark-theme .details-car.owl-carousel .owl-nav .owl-prev:hover,
body.dark-theme .details-car.owl-carousel .owl-nav .owl-next:hover,
body.dark-theme .popular-slider-group .owl-carousel .owl-next:hover{
    background: var(--rg-accent) !important;
}
body.dark-theme .contact-section .contact-info-area .single-contact-info,body.dark-theme .contact-section .form-info-area{
    background: var(--rg-bg);
    border-color: var(--rg-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body.dark-theme .contact-section .contact-info-area .single-contact-info:hover{
    background: var(--rg-accent);
}
body.dark-theme .contact-section .form-info-area h1{
    color: var(--rg-text);
}
body.dark-theme .input-block .form-control:focus{
    background-color: var(--rg-surface);
    color: var(--rg-text);
    border-color: var(--rg-accent);
    box-shadow: 0 0 0 0.2rem rgba(251, 70, 1, 0.25);
}
body.dark-theme .contact-btn{
    background-color: var(--rg-accent);
    border-color: var(--rg-accent);
    color: #ffffff;
}
body.dark-theme .contact-btn:hover{
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--rg-accent);
    box-shadow: inset 0 50px 0 0 #ffffff;
}
body.dark-theme .search-box-banner{
    background-color: var(--rg-surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body.dark-theme .search-box-banner .input-block label{
    color: var(--rg-text);
}
body.dark-theme .sortby-sec,body.dark-theme .car-listing .sidebar-form{
    background-color: var(--rg-surface);
    border-color: var(--rg-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body.dark-theme .sorting-div .count-search p,body.dark-theme .sorting-div .product-filter-group .sortbyset .sortbytitle{
    color: var(--rg-text);
}
body.dark-theme .product-availability .status-toggle .checktoggle{
    background-color: var(--rg-border);
    box-shadow: 0 0 0 1px var(--rg-border);
}
body.dark-theme .product-availability .status-toggle .check:checked + .checktoggle{
    background-color: var(--rg-accent);
    box-shadow: 0 0 0 1px var(--rg-accent);
    border-color: var(--rg-accent);
    border: 1px solid var(--rg-accent);
}
body.dark-theme .product-availability .status-toggle .check:checked + .checktoggle::after {
    background-color: #ffffff;
}
body.dark-theme .accordion .filter-title a,body.dark-theme .accordion .collapsed i,body.dark-theme .accordion .float-end{
    color: var(--rg-text);
}
body.dark-theme .custom_check input:checked ~ .checkmark {
    background-color: var(--rg-accent);
    border-color: var(--rg-accent);
}
body.dark-theme .fuel-list ul li .input-selection label{
    color: var(--rg-text);
    border: 1px solid var(--rg-border);
}
body.dark-theme .product-detail-head,body.dark-theme .booking_custom_check .booking_checkmark{
    background: var(--rg-surface);
}
body.dark-theme .car-brand span img{
    filter: brightness(0) invert(1);
}
body.dark-theme  .detail-product,body.dark-theme  .review-sec{
    background: var(--rg-surface);
    box-shadow: 0 10px 30px var(--rg-border);
}
body.dark-theme .review-sec .review-header h4,body.dark-theme .specification-card .featues-info span,body.dark-theme .servicelist .service-info p{
    color: var(--rg-text);
}
body.dark-theme  .specification-card .featues-info h6{
    color: var(--rg-muted);
}
body.dark-theme  .specification-card .featues-info h6:hover{
    color: var(--rg-accent);
}
body.dark-theme .servicelist .service-img{
    border: 1px solid var(--rg-accent);
    filter: brightness(0) invert(1);
}
body.dark-theme .booking_custom_check.booking-check-2 .booking_checkmark .price-rate,body.dark-theme .policy-item a:hover{
    color: var(--rg-accent);
}
body.dark-theme div:where(.swal2-container) div:where(.swal2-popup),body.dark-theme .policy-item {
    background: var(--rg-border);
    color: var(--rg-text);
}
body.dark-theme .login-body .log-header{
    background: var(--rg-surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body.dark-theme .login-wrapper{
    background: var(--rg-bg);
}
body.dark-theme .log-footer{
    background: var(--rg-surface);
}
body.dark-theme .log-footer .copyright .copyright-text p{
    color: var(--rg-text);
}
body.dark-theme .log-footer .copyright .copyright-text .text-black{
    color: var(--rg-accent) !important;
}
body.dark-theme .login-wrapper .loginbox .login-auth{
    background: var(--rg-surface);
}
body.dark-theme .login-wrapper .loginbox .span-or-log{
    color: var(--rg-text);
    background: var(--rg-bg);
    border-color: var(--rg-border);
}
body.dark-theme .btn-secondary{
    background-color: var(--rg-accent);
    border-color: var(--rg-accent);
    color: #ffffff;
}
body.dark-theme  .btn-secondary:hover{
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--rg-accent);
    box-shadow: inset 0 50px 0 0 #ffffff;
}
body.dark-theme  .login-wrapper .loginbox .login-auth .social-login a{
    border-color: var(--rg-border);
    color: var(--rg-text);
    background: var(--rg-surface);
}
body.dark-theme  .login-wrapper .loginbox .login-auth .social-login a:hover{
    background: var(--rg-accent);
    border-color: var(--rg-accent);
    color: var(--rg-text);
    box-shadow: inset 0 50px 0 0 var(--rg-accent);
}
body.dark-theme .specification-card .feature-img{
    background: var(--rg-border);
}
body.dark-theme .specification-card .feature-img img{
     filter: brightness(0) invert(1);
}
/* Light theme (default) */
.logo-dark {
    display: none;
}

.logo-light {
    display: inline-block;
}

/* Dark theme */
body.dark-theme .logo-light {
    display: none;
}

body.dark-theme .logo-dark {
    display: inline-block;
    max-width: 150px;
    max-height: 40px;
}
body.dark-theme .mobile-cta{
    background: var(--rg-surface);
}
@media (max-width: 991.96px) {
    body.dark-theme .header .main-menu-wrapper .main-nav{
        background: var(--rg-surface);
    }
    body.dark-theme .header .main-menu-wrapper{
        background: var(--rg-bg);
    }
    body.dark-theme .header .main-menu-wrapper .menu-header{
        background: var(--rg-surface);
    }
}
