:root {
    --ak-primary: #bc000a;
    --ak-primary-hover: #e61919;
    --ak-bg: #fbf9f9;
    --ak-surface: #ffffff;
    --ak-surface-low: #f5f3f3;
    --ak-surface-high: #efeded;
    --ak-border: #e3e2e2;
    --ak-text: #1b1c1c;
    --ak-muted: #696767;
    --ak-on-primary: #ffffff;
    --ak-shadow: 0 16px 42px rgba(27, 28, 28, .09);
}

html[data-theme="dark"] {
    --ak-primary: #ffb4aa;
    --ak-primary-hover: #ffdad5;
    --ak-bg: #131313;
    --ak-surface: #1c1b1b;
    --ak-surface-low: #0e0e0e;
    --ak-surface-high: #2a2a2a;
    --ak-border: #353534;
    --ak-text: #e5e2e1;
    --ak-muted: #c9c5c4;
    --ak-on-primary: #680004;
    --ak-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}

html {
    background: var(--ak-bg);
    scroll-behavior: smooth;
}

body {
    background: var(--ak-bg);
    color: var(--ak-text);
    font-family: "Inter", sans-serif;
    transition: background-color .2s ease, color .2s ease;
}

h1, h2, h3, h4, h5, h6,
.main-nav nav .navbar-nav .nav-item a {
    color: var(--ak-text);
    font-family: "Hanken Grotesk", sans-serif;
}

a { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
p { color: var(--ak-muted); }

.top {
    min-height: 42px;
    background: var(--ak-surface-low) !important;
    border-bottom: 1px solid var(--ak-border);
}

.top .container,
.top .row { min-height: 42px; }

.top ul.top-right {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 42px;
}

.top ul.top-right li { border: 0; }

.top ul.top-right li,
.top ul.top-right li a,
.top ul.top-right select {
    color: var(--ak-muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.top ul.top-right select,
.theme-toggle {
    height: 30px;
    padding: 0 10px;
    color: var(--ak-muted);
    background: var(--ak-surface);
    border: 1px solid var(--ak-border);
    border-radius: 4px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.theme-toggle:hover {
    color: var(--ak-primary);
    border-color: var(--ak-primary);
}

.main-nav {
    background: color-mix(in srgb, var(--ak-surface) 94%, transparent);
    border-bottom: 1px solid var(--ak-border);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .04);
    backdrop-filter: blur(16px);
}

.main-nav nav .navbar-nav .nav-item a {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.main-nav .navbar-brand {
    display: flex;
    align-items: center;
    align-self: stretch;
    margin: 6px 0;
    padding: 3px 8px;
    background: #fff;
   /* border: 1px solid var(--ak-border);*/
    border-radius: 4px;
}

.main-nav .navbar-brand img {
    width: 104px;
    height: 68px;
    object-fit: contain;
}

.mobile-nav .logo {
    display: flex;
    align-items: center;
    width: 74px;
    height: 50px;
    padding: 2px 5px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ak-border);
    border-radius: 4px;
}

.mobile-nav .logo img,
.mean-container .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-nav nav .navbar-nav .nav-item .dropdown-menu {
    background: var(--ak-surface);
    border: 1px solid var(--ak-border);
    border-radius: 4px;
    box-shadow: var(--ak-shadow);
}

.main-nav nav .navbar-nav .nav-item .dropdown-menu li a {
    color: var(--ak-text);
}

.search-section {
    position: relative;
    min-height: 580px;
    padding: 132px 0 105px;
    background-position: center;
}

.search-section .bg {
    background: linear-gradient(90deg, rgba(8, 8, 8, .9) 0%, rgba(8, 8, 8, .58) 56%, rgba(8, 8, 8, .2) 100%);
}

.search-section h1 {
    max-width: 820px;
    color: #fff;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .98;
    text-wrap: balance;
}

.search-section p {
    max-width: 650px;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
}

.search-section .box {
    max-width: 1040px;
    margin-top: 38px;
    padding: 10px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    backdrop-filter: blur(12px);
}

.search-section .input-box input,
.search-section .select2-container .select2-selection {
    color: #1b1c1c;
    background: #f5f3f3;
    border: 1px solid #e3e2e2;
    border-radius: 4px;
}

.search-section .input-group-append button,
.filter-button,
.contact-form .btn,
.reg-login-form button,
.pricing .btn {
    color: var(--ak-on-primary) !important;
    background: var(--ak-primary) !important;
    border: 1px solid var(--ak-primary) !important;
    border-radius: 4px !important;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.search-section .input-group-append button:hover,
.filter-button:hover,
.contact-form .btn:hover,
.reg-login-form button:hover {
    color: #fff !important;
    background: #e61919 !important;
    border-color: #e61919 !important;
}

.listing,
.popular-city,
.pricing,
.faq,
.blog,
.contact-area,
.reg-login-form {
    background: var(--ak-bg);
}

.listing .heading h2,
.popular-city .heading h2,
.testimonial .heading h2 {
    color: var(--ak-text);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -.035em;
}

.listing .heading h3,
.popular-city .heading h3 {
    color: var(--ak-muted);
    font-family: "Inter", sans-serif;
}

.listing .listing-item {
    overflow: hidden;
    background: var(--ak-surface);
    border: 1px solid var(--ak-border);
    border-radius: 8px;
    box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.listing .listing-item:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--ak-primary) 55%, var(--ak-border));
    box-shadow: var(--ak-shadow);
}

.listing .listing-item .photo { background: var(--ak-surface-low); }
.listing .listing-item .photo img { height: 230px; object-fit: cover; }

.listing .listing-item .photo .brand a,
.listing .listing-item .photo .featured-text {
    color: #fff;
    background: #bc000a !important;
    border-radius: 2px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.listing .listing-item .photo .wishlist {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    background: rgba(14, 14, 14, .76);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 4px;
    backdrop-filter: blur(8px);
}

.listing .listing-item .text {
    background: var(--ak-surface);
    color: var(--ak-text);
}

.listing .listing-item .text h3 a,
.listing .listing-item .text .type-price .price {
    color: var(--ak-text);
    font-family: "Hanken Grotesk", sans-serif;
    font-weight: 800;
}

.listing .listing-item .text .type-price .price { color: var(--ak-primary); }
.listing .listing-item .bed-bath-size { background: var(--ak-surface-low); border-top: 1px solid var(--ak-border); }
.listing .listing-item .bed-bath-size .item { border-color: var(--ak-border); }

.car-card-summary {
    margin-top: 14px;
    color: var(--ak-muted);
    font-family: "Inter", sans-serif;
    font-size: 12px;
}

.car-card-overview,
.car-card-specs {
    display: flex;
    align-items: center;
    gap: 14px;
}

.car-card-overview {
    min-height: 28px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ak-border);
}

.car-card-overview span:first-child,
.car-card-specs span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.car-card-summary i {
    color: #6f7890;
    font-size: 12px;
}

.car-sale-status {
    margin-inline-start: auto;
    padding: 4px 8px;
    border-radius: 2px;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.car-sale-status--available {
    color: #11613f;
    background: #dff4e9;
}

.car-sale-status--reserved {
    color: #7a4d00;
    background: #fff0c7;
}

.car-sale-status--sold {
    color: #fff;
    background: #bc000a;
}

.car-card-specs {
    justify-content: space-between;
    padding-top: 12px;
}

html[data-theme="dark"] .car-sale-status--available {
    color: #8ee0b8;
    background: #123d2b;
}

html[data-theme="dark"] .car-sale-status--reserved {
    color: #ffd889;
    background: #49330c;
}

@media (max-width: 380px) {
    .car-card-specs {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

.popular-city .popular-city-item {
    overflow: hidden;
    background: var(--ak-surface);
    border: 1px solid var(--ak-border);
    border-radius: 8px;
    box-shadow: none;
}

.popular-city .popular-city-item .photo img {
    height: 230px;
    object-fit: cover;
}

.popular-city .popular-city-item .text {
    padding: 18px;
    background: var(--ak-surface);
}

.popular-city .popular-city-item .text h4 { color: var(--ak-text); font-weight: 800; }
.popular-city .popular-city-item .text p { color: var(--ak-muted); }

.testimonial .testimonial-bg {
    background: linear-gradient(180deg, rgba(10, 10, 10, .72), rgba(10, 10, 10, .82));
}

.testimonial--showroom {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.testimonial .heading h2,
.testimonial .heading h3,
.testimonial-item .text h3 { color: #fff; }

.testimonial-item {
    padding: 28px;
    background: rgba(28, 27, 27, .9);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
}

.testimonial-item .text p,
.testimonial-item .text h4 { color: #c9c5c4; }

.page-banner {
    background: #1c1b1b !important;
}

.page-banner h1 { color: #fff; font-weight: 800; letter-spacing: -.035em; }

.listing-filter,
.listing-sidebar .ls-widget,
.sidebar .widget,
.reg-login-form .inner,
.contact-form,
.faq .panel {
    background: var(--ak-surface);
    color: var(--ak-text);
    border: 1px solid var(--ak-border);
    border-radius: 8px;
    box-shadow: none;
}

html[data-theme="dark"] .listing-filter {
    background: #1c1b1b;
    border-color: #353534;
}

html[data-theme="dark"] .listing-filter .lf-heading {
    color: #ffb4aa;
    border-bottom-color: #bc000a;
}

html[data-theme="dark"] .listing-filter .lf-widget {
    background: #201f1f;
    border: 1px solid #353534;
}

html[data-theme="dark"] .listing-filter .lf-widget h2 {
    color: #e5e2e1;
    border-bottom-color: #4a4948;
}

html[data-theme="dark"] .listing-filter .form-check-label {
    color: #c9c5c4;
}

html[data-theme="dark"] .listing-filter .form-check-input {
    color-scheme: dark;
    accent-color: #e61919;
    background-color: #131313;
    border-color: #777372;
}

html[data-theme="dark"] .listing-filter input.form-control,
html[data-theme="dark"] .listing-filter select.form-control,
html[data-theme="dark"] .listing-filter .select2-selection {
    color: #e5e2e1;
    background: #131313;
    border-color: #4a4948;
}

html[data-theme="dark"] .listing-filter input.form-control::placeholder {
    color: #918d8c;
    opacity: 1;
}

html[data-theme="dark"] .listing-filter select.form-control option {
    color: #e5e2e1;
    background: #1c1b1b;
}

html[data-theme="dark"] .listing-page .table,
html[data-theme="dark"] .listing-sidebar .openning-hour .table {
    color: #e5e2e1;
    background: #1c1b1b;
}

html[data-theme="dark"] .listing-page .table tr,
html[data-theme="dark"] .listing-page .table td,
html[data-theme="dark"] .listing-page .table th,
html[data-theme="dark"] .listing-sidebar .openning-hour .table tr,
html[data-theme="dark"] .listing-sidebar .openning-hour .table td,
html[data-theme="dark"] .listing-sidebar .openning-hour .table th {
    color: #e5e2e1 !important;
    background: #1c1b1b !important;
    border-color: #4a4948 !important;
}

html[data-theme="dark"] .listing-page .table td:first-child,
html[data-theme="dark"] .listing-sidebar .openning-hour .table td:first-child {
    color: #c9c5c4 !important;
    background: #201f1f !important;
}

html[data-theme="dark"] .listing-sidebar .ls-widget h2,
html[data-theme="dark"] .listing-page h2,
html[data-theme="dark"] .listing-page .amenities li {
    color: #e5e2e1;
}

input, textarea, select,
.form-control,
.select2-container--default .select2-selection--single,
.select2-dropdown {
    color: var(--ak-text);
    background: var(--ak-surface);
    border-color: var(--ak-border);
}

.footer-area {
    position: relative;
    padding: 76px 0 0;
    overflow: hidden;
    color: #c9c5c4;
    background: #0e0e0e;
    border-top: 4px solid #bc000a;
}

.footer-area::before {
    position: absolute;
    top: -170px;
    right: -120px;
    width: 430px;
    height: 430px;
    opacity: .32;
    background: radial-gradient(circle, rgba(188, 0, 10, .3), transparent 67%);
    content: "";
    pointer-events: none;
}

.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(250px, 1.35fr) minmax(150px, .7fr) minmax(190px, .9fr) minmax(250px, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
}

.footer-brand {
    max-width: 330px;
}

.footer-logo {
    display: inline-flex;
    width: 132px;
    height: 94px;
    margin-bottom: 22px;
    padding: 4px 8px;
    overflow: hidden;
    background: #fff;
    border-radius: 4px;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-brand p {
    margin: 0 0 22px;
    color: #a9a5a4;
    font-size: 14px;
    line-height: 1.75;
}

.footer-inventory-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.footer-inventory-link i {
    color: #ff4c4c;
    transition: transform .18s ease;
}

.footer-inventory-link:hover { color: #ffb4aa; }
.footer-inventory-link:hover i { transform: translateX(4px); }

.footer-item { margin: 0; }
.footer-item h2 {
    position: relative;
    margin: 6px 0 26px;
    padding-bottom: 13px;
    color: #fff !important;
    font-size: 17px;
    font-weight: 800;
}

.footer-item h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #e61919;
    content: "";
}

[dir="rtl"] .footer-item h2::after {
    right: 0;
    left: auto;
}

.footer-item ul li,
.footer-item ul li a,
.copyright p { color: #a9a5a4; }

.footer-item ul.fmain li {
    margin-bottom: 11px;
    padding-left: 0;
}

.footer-item ul.fmain li::before { display: none; }

.footer-item ul li a {
    font-size: 13px;
}

.footer-item ul li a:hover {
    color: #ffb4aa;
    padding-left: 4px;
}

[dir="rtl"] .footer-item ul li a:hover {
    padding-right: 4px;
    padding-left: 0;
}

.footer-contact-list li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 11px;
    margin-bottom: 14px;
    padding: 0 !important;
    color: #c9c5c4 !important;
    font-size: 13px;
    line-height: 1.7;
}

.footer-contact .footer-contact-list li::before {
    display: none !important;
    content: none !important;
}

.footer-contact-list li > i {
    margin-top: 5px;
    color: #ff6f68;
}

.footer-social-link { margin-top: 23px; }
.footer-social-link ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-contact .footer-social-link ul li {
    position: static;
    margin: 0;
    padding: 0 !important;
}

.footer-contact .footer-social-link ul li::before {
    display: none !important;
    content: none !important;
}

.footer-social-link ul li a,
.scroll-top {
    color: var(--ak-on-primary);
    background: var(--ak-primary) !important;
    border-color: var(--ak-primary) !important;
    border-radius: 4px;
}

.footer-social-link ul li a {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    color: #fff;
    background: #201f1f !important;
    border: 1px solid #353534 !important;
}

.footer-social-link ul li a:hover {
    color: #fff !important;
    background: #bc000a !important;
    border-color: #bc000a !important;
}

.footer-area .copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 58px;
    padding: 23px 0;
    border-top: 1px solid #2a2a2a;
}

.footer-area .copyright p {
    margin: 0;
    font-size: 12px;
}

.footer-location-mark {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: "JetBrains Mono", monospace;
    text-transform: uppercase;
}

.footer-location-mark i { color: #e61919; }

.legal-content {
    max-width: 980px;
    margin: 0 auto;
    color: var(--ak-muted);
    font-size: 15px;
    line-height: 1.85;
}

.legal-content .legal-intro {
    margin-bottom: 34px;
    padding: 22px 24px;
    color: var(--ak-text);
    background: var(--ak-surface-low);
    border-inline-start: 3px solid var(--ak-primary);
}

.legal-content h2 {
    margin: 34px 0 12px;
    color: var(--ak-text);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.legal-content p { margin-bottom: 14px; }
.legal-content ul {
    margin: 0 0 18px;
    padding-inline-start: 22px;
}

.legal-content li {
    margin-bottom: 7px;
    color: var(--ak-muted);
}

.legal-content li::marker { color: var(--ak-primary); }

.legal-content .legal-updated {
    margin-top: 34px;
    color: var(--ak-muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    text-transform: uppercase;
}

.contact-item .contact-text a {
    color: var(--ak-text);
    font-weight: 600;
}

.contact-item .contact-text a:hover { color: var(--ak-primary); }

@media (max-width: 991px) {
    .search-section {
        min-height: auto;
        padding: 90px 0 70px;
    }

    .search-section h1 { font-size: clamp(38px, 10vw, 58px); }
    .mobile-nav.mean-container .mean-bar { background: var(--ak-surface); border-bottom: 1px solid var(--ak-border); }
    .mean-container .mean-nav { background: var(--ak-surface-low); }
    .mean-container .mean-nav ul li a { color: var(--ak-text); border-color: var(--ak-border); }

    .testimonial--showroom {
        background-attachment: scroll;
        background-position: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .theme-toggle-label { display: none; }
    .top ul.top-right { flex-wrap: wrap; padding: 6px 0; }
    .search-section { padding: 72px 0 52px; }
    .search-section .box { padding: 8px; }
    .listing .listing-item .photo img,
    .popular-city .popular-city-item .photo img { height: 220px; }

    .footer-area { padding-top: 52px; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }
    .footer-brand { max-width: none; }
    .footer-area .copyright {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-top: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
