﻿html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #b57527;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.top-header-bg {
    background: #fff;
    border-bottom: 1.5px solid #eee;
    position: relative;
    z-index: 10;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
}

@media (max-width: 991px) {
    .top-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding-left: 11px !important;
        padding-right: 11px !important;
    }
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    max-width: 100%;
}

.brand-label {
    font-weight: 800;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    color: #111;
    margin-left: 3px;
}

.header-contact,
.top-header-contact {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 1rem;
}

    .header-contact .contact-item,
    .top-header-contact .address,
    .top-header-contact .phone {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #222;
        font-weight: 600;
    }

        .header-contact .contact-item .fa,
        .top-header-contact .fa {
            font-size: 1.05rem;
            color: #111;
            margin-right: 5px;
        }

    .top-header-contact .phone {
        color: #e74c3c;
        font-weight: bold;
    }

        .top-header-contact .phone strong {
            color: #e74c3c;
        }

    .top-header-contact .address a,
    .header-contact .address a {
        font-size: 0.93rem;
        color: #333;
        text-decoration: underline dotted;
        margin-left: 5px;
        transition: color 0.16s;
        white-space: nowrap;
    }

        .top-header-contact .address a:hover {
            color: #e74c3c;
            text-decoration: underline solid;
        }

    .top-header-contact .fb-link {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #191919;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        margin-left: 7px;
        color: #fff !important;
        font-size: 1.12rem;
        transition: background 0.18s;
    }

        .top-header-contact .fb-link:hover {
            background: #4267B2;
        }
        .top-header-contact .fb-link i {
            font-size: 1.12rem !important;
            line-height: 1;
        }

@media (max-width: 991px) {
    .header-contact,
    .top-header-contact {
        justify-content: flex-start;
        gap: 22px;
        flex-wrap: wrap;
    }

        .top-header-contact .fb-link {
            margin-left: 0;
        }
}


.main-navbar-bg {
    background: #191919 !important;
    box-shadow: 0 2px 12px #0001;
    border: none;
    position: relative;
    z-index: 10;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    box-shadow: none;
}

.main-navbar,
footer.footer {
    background: #191919 !important;
    min-height: 68px;
    box-shadow: 0 2px 12px #0001;
    position: relative;
    z-index: 2;
}

.main-menu-new .nav-link {
    color: #fff !important;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 1px;
    font-size: 1.16rem;
    padding: 16px 28px 14px 28px;
    background: none;
    border-radius: 0;
    transition: background 0.13s, color 0.13s;
    border: none;
    position: relative;
    margin: 0 1px;
}

    .main-menu-new .nav-link.active,
    .main-menu-new .nav-link:focus,
    .main-menu-new .nav-link.selected {
        background: #fff;
        color: #191919 !important;
        border-radius: 5px !important;
        box-shadow: 0 2px 8px #0001;
    }

    .main-menu-new .nav-link:hover,
    .main-menu-new .dropdown:hover > .nav-link,
    .main-menu-new .dropdown.show > .nav-link {
        background: #383838;
        color: #fff !important;
    }

.main-menu-new .dropdown-menu {
    top: 100%;
    left: 0;
    min-width: 210px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px #0001;
    margin-top: 0;
    background: #222;
}

.main-menu-new .dropdown-item {
    font-size: 1.03rem;
    font-weight: 600;
    color: #fff;
}

    .main-menu-new .dropdown-item:hover {
        background: #444 !important;
        color: #fff !important;
    }

@media (max-width: 991px) {
    .main-menu-new .nav-link {
        font-size: 1.03rem;
        padding: 13px 22px 12px 22px;
        border-radius: 0;
        width: 100%;
        border-bottom: 1px solid #222;
    }
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn-primary, .btn-primary:focus {
    background: #1a1a1a;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 12px #b5752740;
}

    .btn-primary:hover {
        background: #555555;
        color: #fff;
        box-shadow: 0 6px 18px #1a1a1a33;
        border: none;
    }


.form-control, .form-select {
    border-radius: 22px;
    border: 1px solid #eee;
}

.card {
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}

.card-img-top {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.card:hover {
    transform: translateY(-3px) scale(1.025);
    box-shadow: 0 8px 32px #b5752720, 0 4px 24px #19191930;
}


.car-card-link,
.car-card-link:visited {
    color: #212529 !important;
    text-decoration: none !important;
    cursor: pointer;
}

    .car-card-link .card-title,
    .car-card-link .card-text,
    .car-card-link .car-price,
    .car-card-link .text-secondary {
        color: #222 !important;
        transition: color 0.15s;
    }

.car-price {
    color: #222 !important;
    font-weight: 700;
    font-size: 1.15rem;
    transition: color 0.15s;
}

.car-card-link:hover .card-title,
.car-card-link:hover .card-text,
.car-card-link:hover .car-price,
.car-card-link:hover .text-secondary {
    color: #333333 !important;
}

.car-archived-banner {
    position: absolute;
    top: 24px;
    right: -34px;
    background: #e74c3c;
    color: #fff;
    padding: 6px 44px;
    font-weight: bold;
    font-size: 1.2rem;
    transform: rotate(25deg);
    box-shadow: 0 2px 8px #0002;
    z-index: 3;
    pointer-events: none;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 8px #0005;
}


.main-banner {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0 0 1px 0;
    animation: banner-zoom 10s infinite alternate linear;
}

@keyframes banner-zoom {
    from {
        transform: scale(1) translateY(0px);
    }

    to {
        transform: scale(1.05) translateY(-10px);
    }
}

.main-banner img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center 74%;
    display: block;
    will-change: transform;
    transition: transform 0.2s;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .main-banner img {
        height: 260px;
    }
}

@media (min-width: 1200px) {
    .main-banner img {
        height: 320px;
    }
}

.main-banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #eee 100%);
    pointer-events: none;
    z-index: 2;
}


.dropdown-menu {
    transition: opacity 0.2s ease, visibility 0.2s;
    opacity: 0;
    visibility: hidden;
}

.dropdown-hover:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.thumbnails-swiper {
    position: relative;
    padding: 0 36px;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 12px;
}

    .thumbnails-swiper .swiper-button-next,
    .thumbnails-swiper .swiper-button-prev {
        color: #191919;
        top: 50%;
        width: 34px;
        height: 34px;
        margin-top: -17px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 8px #0001;
        z-index: 10;
    }

    .thumbnails-swiper .swiper-button-next {
        right: 0;
    }

    .thumbnails-swiper .swiper-button-prev {
        left: 0;
    }

    .thumbnails-swiper .swiper-wrapper {
        padding-bottom: 6px;
    }

    .thumbnails-swiper .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .thumbnails-swiper img.img-thumbnail {
        margin: 0;
        border-radius: 7px;
    }


.home-special {
    background: #232429 !important;
}

    .home-special section.py-2 {
        background: #232429 !important;
        border-radius: 18px;
        padding: 28px 0 24px 0;
        margin-bottom: 30px;
        box-shadow: 0 5px 32px #0004;
        transition: background 0.19s;
    }

    .home-special .car-card-light,
    .home-special .car-card-special {
        background: #fff !important;
        color: #232429 !important;
        border-radius: 12px;
        box-shadow: 0 5px 18px #2323290e;
        border: 1.5px solid #f2f2f6;
        transition: transform 0.14s, box-shadow 0.17s, border-color 0.18s, background 0.13s;
        position: relative;
    }

        .home-special .car-card-light:hover,
        .home-special .car-card-special:hover {
            transform: translateY(-4px) scale(1.035);
            box-shadow: 0 14px 38px #1866bb25;
            border-color: #1866bb;
            background: #f6f8fa !important;
        }

    .home-special .car-title,
    .home-special .car-meta-light,
    .home-special .car-description {
        color: #232429 !important;
    }

    .home-special .car-price-light {
        color: #232429 !important; 
        font-weight: 800;
        font-size: 1.09rem;
    }


.filter-panel {
    background: #fff !important;
    border-radius: 16px;
    box-shadow: 0 3px 18px #0003;
}


.hero-image {
    position: relative;
    width: 100vw;
    min-width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 320px;
    overflow: hidden;
    background: #202124;
    box-shadow: 0 8px 30px #0001;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

.hero-img-full {
    width: 100vw;
    min-width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
    opacity: 0.95;
    filter: brightness(0.88) contrast(1.09);
    display: block;
}

@media (max-width: 991px) {
    .hero-image, .hero-img-full {
        height: 160px;
    }
}

@media (max-width: 575px) {
    .hero-image, .hero-img-full {
        height: 110px;
    }
}

.hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(36, 36, 40, 0.42);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 7vw;
    z-index: 2;
}

.hero-main-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-shadow: 0 4px 26px #000c;
}

.hero-desc {
    color: #f1f1f1;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 2px 10px #2227;
}

@media (max-width: 991px) {
    .hero-overlay {
        padding: 0 2vw;
    }

    .hero-main-title {
        font-size: 1.5rem;
    }

    .hero-image,
    .hero-image img {
        height: 150px;
    }
}

@media (max-width: 767px) {
    .hero-overlay {
        padding: 0 1vw;
    }

    .hero-image,
    .hero-image img {
        height: 110px;
    }
}


.filter-hero-row {
    margin-top: -48px;
    z-index: 3;
    position: relative;
}

.filter-panel-hero {
    background: #232429;
    border-radius: 13px;
    box-shadow: 0 3px 18px #0005;
    border: 1px solid #34343b;
}

    .filter-panel-hero label {
        color: #fff;
        font-weight: 700;
    }

    .filter-panel-hero .form-control,
    .filter-panel-hero .form-select {
        border-radius: 22px;
        border: 1px solid #bbb;
        background: #ececf0;
        font-size: 1rem;
    }

        .filter-panel-hero .form-control:focus,
        .filter-panel-hero .form-select:focus {
            border: 1.2px solid #1866bb;
            box-shadow: 0 0 0 0.18rem #1866bb33;
        }

    .filter-panel-hero .btn-dark {
        background: #1866bb;
        color: #fff;
        font-weight: 700;
        border-radius: 22px;
        border: none;
    }

        .filter-panel-hero .btn-dark:hover {
            background: #2d2e33;
        }

.section-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1.3px;
}


@media (max-width: 991px) {
    .filter-hero-row {
        margin-top: 8px !important;
    }

    .hero-image,
    .hero-image img {
        height: 130px !important;
        min-height: 100px;
    }
}


.filter-panel-hero label,
.filter-panel-hero .form-label {
    color: #232429 !important;
    font-weight: 700;
    opacity: 1;
}

.filter-panel-hero .form-control,
.filter-panel-hero .form-select {
    background: #fff !important;
    color: #232429 !important;
    border: 1px solid #ccc !important;
    font-weight: 600;
}

    .filter-panel-hero .form-control::placeholder {
        color: #999 !important;
        opacity: 1 !important;
    }


.car-card-link:focus,
.car-card-link:active,
.card:focus,
.card:active {
    outline: none !important;
    box-shadow: 0 8px 32px #b5752720, 0 4px 24px #19191930 !important;
    border-color: #eee !important;
}

.car-card-light:focus-within {
    outline: none !important;
    border-color: #eee !important;
    box-shadow: 0 8px 32px #b5752720, 0 4px 24px #19191930 !important;
}


@media (max-width: 575px) {
    .filter-panel-hero .form-control,
    .filter-panel-hero .form-select {
        font-size: 1.08rem;
        padding: 10px 15px;
    }
}
.btn-black {
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    font-weight: bold;
    font-size: 1.3rem;
    letter-spacing: 1px;
    box-shadow: 0 3px 12px #0002;
    transition: background 0.16s, color 0.14s;
}

    .btn-black:hover,
    .btn-black:focus {
        background: #383838 !important;
        color: #fff !important;
    }

.archive-main-container {
    padding-top: 12px !important;
}


.carousel .carousel-inner {
    border-radius: 14px;
    box-shadow: 0 4px 18px #0002;
}

.thumb-img {
    margin: 4px 4px 0 0;
    border: 2px solid #eee;
    transition: border .15s, box-shadow .13s;
}

    .thumb-img.selected,
    .thumb-img:hover {
        border: 2.5px solid #1866bb !important;
        box-shadow: 0 2px 10px #1866bb22;
    }

@media (max-width: 991px) {
    .top-header {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.7rem 0;
    }

    .top-header-contact {
        gap: 7px !important;
        flex-wrap: nowrap !important;
        font-size: 0.99em !important;
    }

        .top-header-contact .address-link {
            font-size: 0.98em !important;
            max-width: 94px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            display: inline-block;
            vertical-align: middle;
        }

        .top-header-contact .phone span,
        .top-header-contact .phone a {
            font-size: 1em !important;
        }

    .fb-link {
        margin-left: 0 !important;
        font-size: 1.6em !important;
        align-self: center;
        min-width: 38px;
        min-height: 38px;
        padding: 0;
    }

    .top-header-contact > * {
        margin-bottom: 0 !important;
    }

    .top-header-contact .address, .top-header-contact .phone {
        gap: 4px !important;
    }
    
    @media (max-width: 420px) {
        .top-header-contact .fa-location-dot {
            display: none !important;
        }

        .top-header-contact .address-link {
            max-width: 68px;
        }
    }
}
.address-link .address-mobile {
    display: none;
}

.address-link .address-desktop {
    display: inline;
}

@media (max-width: 600px) {
    .address-link .address-desktop {
        display: none !important;
    }

    .address-link .address-mobile {
        display: inline !important;
        font-weight: bold;
        letter-spacing: 0.5px;
    }
}

.address-link {
    text-decoration: none !important;
    color: #222;
    font-weight: bold;
    transition: color 0.14s;
}

    .address-link:hover,
    .address-link:focus {
        text-decoration: underline !important;
        color: #e74c3c !important;
    }

@media (max-width: 600px) {
    .address-link {
        text-decoration: none !important;
        color: #222 !important;
    }

        .address-link:hover,
        .address-link:focus {
            text-decoration: underline !important;
            color: #e74c3c !important;
        }
}
.top-header-contact .address,
.top-header-contact .phone {
    display: flex;
    align-items: center;
    gap: 7px; 
}

.top-header-contact .fa-location-dot,
.top-header-contact .fa-phone {
    margin-right: 0 !important; 
    margin-left: 0 !important;
    font-size: 1.09em;
}
.top-header-contact .fa-location-dot {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

@media (max-width: 575px) {
    .top-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.35rem !important;
        padding-bottom: 0.4rem !important;
    }

    .top-header-contact {
        flex-wrap: wrap !important;
        width: 100%;
        justify-content: flex-start !important;
        gap: 16px !important;
    }

    .brand-label {
        font-size: 1.12rem !important;
        letter-spacing: 1px !important;
    }

    .logo-img {
        height: 44px !important;
    }
}
@media (max-width: 420px) {
    .top-header-contact .address {
        display: none !important;
    }
}
.car-details-list .list-group-item {
    display: flex;
    align-items: center;
    font-size: 1.13rem;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    margin-bottom: 8px;
}

.car-details-list .material-symbols-outlined {
    font-size: 2.1rem;
    margin-right: 14px;
    color: #191919;
    flex-shrink: 0;
    vertical-align: middle;
    position: relative;
    top: 0;
}

.car-details-list .details-label {
    font-weight: 700;
    margin-right: 7px;
    vertical-align: middle;
    font-size: 1.18rem;
    color: #222;
    display: inline-block;
    line-height: 1.13;
}

.car-details-list .details-value {
    font-size: 1.13rem;
    color: #222;
    vertical-align: middle;
    display: inline-block;
    line-height: 1.13;
    margin-left: 2px;
    font-weight: 400;
    position: relative;
    top: 0;
}

@media (max-width: 767px) {
    .top-header-main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .brand-label {
        font-size: 1.17rem;
        font-weight: 800;
        letter-spacing: 1.2px;
    }

    .mobile-header-actions {
        gap: 18px !important;
        margin-bottom: 2px;
    }

    .mobile-header-action {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none !important;
        color: #191919 !important;
        font-weight: 700;
        font-size: 1rem;
        letter-spacing: 0.4px;
        gap: 1px;
        transition: color 0.15s;
    }

        .mobile-header-action i {
            font-size: 1.45em;
            margin-bottom: 1px;
            color: #191919 !important;
            transition: color 0.16s;
        }

        .mobile-header-action:hover,
        .mobile-header-action:focus {
            color: #e74c3c !important;
        }

            .mobile-header-action:hover i,
            .mobile-header-action:focus i {
                color: #e74c3c !important;
            }

    .logo-img {
        height: 46px !important;
    }
}
.drag-ghost {
    opacity: 0.8;
    background: #ffe58f !important;
    border: 2px dashed #ffc107 !important;
}

.drag-active {
    opacity: 0.6;
}
.arrow-btn,
.arrow-btn-existing {
    font-size: 18px;
    border: none;
    background: #eee;
    color: #333;
    padding: 4px 10px;
    border-radius: 4px;
    margin: 0 1px;
    transition: background 0.15s;
}

    .arrow-btn:active, .arrow-btn:focus,
    .arrow-btn-existing:active, .arrow-btn-existing:focus {
        background: #ffd700;
        color: #111;
    }

    .arrow-btn[disabled], .arrow-btn-existing[disabled] {
        opacity: 0.3;
    }
body {
    overflow-x: hidden;
}

    body.allow-x-scroll {
        overflow-x: auto !important;
    }