body{
    background-color: #edeef0;
}

.search-form-card {
    background: var(--color-white);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
}

.search-form-card .text-success {
    color: var(--theme-color) !important;
}

.search-form-card .table>:not(caption)>*>* {
    vertical-align: middle;
    padding: 0.8rem 0.8rem;
}

.search-form-card .form-check label {
    color: var(--color-dark);
}

@media all and (max-width: 992px) {
    .header-top {
        display: block;
        padding-top: 50px;
    }

    .header-top-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-top-contact ul {
        flex-direction: column;
        gap: 8px;
    }

}

@media (min-width: 768px){
    .header-top-wrapper{
        flex-direction: row;
    }
}

/*---------------- Navbar ------------------------------------*/
.header-top {
    padding: 8px 0 10px 0;
    position: relative;
    background:  var(--color-dark);
    z-index: 9999;
}

.header-top::before{
    content: "";
    position: absolute;
    background: var(--color-dark);
    clip-path: polygon(0 0, 80% 0, 100% 100%, 0% 100%);
    width: 10%;
    top: 0;
    left: 0;
    bottom: -1px;

}

.header-top::after{
    content: "";
    position: absolute;
    background: var(--color-dark);
    clip-path: polygon(20% 1%, 100% 0, 100% 100%, 0% 100%);
    width: 10%;
    top: 0;
    right: 0;
    bottom: -1px;

}

.navbar-collapse {
    max-height: 100px;
    /*overflow: hidden;*/
    padding: 0 20px;
    background-color: var(--color-white);
}

.navbar-collapse::-webkit-scrollbar{
    height: 4px;
    width: 4px;
    background: gray;
}
.navbar-collapse::-webkit-scrollbar-thumb:vertical{
    background: red !important;
    border-radius: 10px;
}

.navbar #main_nav {
    justify-content: flex-start;
    margin-left: 10%;
}

.nav-right {
    margin-left: 50%;
}


.navbar .nav-item .nav-link {
    font-size: 20px;
}

.dropdown-menu{
    /*background-color: var(--color-dark);*/
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .dropdown-menu-end[data-bs-popper]{
        right: auto;
        left: auto;
    }
}

/*---------------- Find vehicle ----------------------------*/
/*.tabs {*/
/*    display: flex;*/
/*    justify-content: space-around;*/
/*    background-color: #222;*/
/*    padding: 10px 0;*/
/*}*/

.tabs-wrapper {
    position: relative;
    margin-top: -5.5%;
    margin-bottom: 3%;
    z-index: 1;
}

.tabs-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.tab-item {
    width: 350px;
    text-align: center;
    background-color: rgba(83, 79, 79, 0.79);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 25px;
    border: none;
    transition: all .2s ease-in-out;
}

.tab-item.active {
    background-color: var(--theme-color);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.tab-item:hover {
    background-color: white;
    color: var(--theme-color);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transform: scale(1.1);
}

.tab-item-modal {
    /*max-width: 220px;*/
    text-align: center;
    background-color: white;
    border: 2px solid var(--theme-color);
    border-radius: 10px;
    color: var(--theme-color);
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-item-modal.active {
    background-color: var(--theme-color);
    border-radius: 10px;
    border: 2px solid var(--theme-color);
    color: white;
}

.tab-item-modal:hover {
    background-color: var(--theme-color);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: white;
}

.tab-item-modal.active:hover {
    background-color: var(--theme-color-light);
}

#select-listing-type-modal .modal-dialog{
    top: 25% !important;
}

.reset-btn, .filter-btn {
    background-color: transparent;
    color: #6c757d;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid transparent;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn span{
    display: flex;
    align-items: center;
    font-size: 16px;
}

:is(.reset-btn, .filter-btn):hover {
    color: var(--theme-color);
}

.find-car-title {
    font-size: 25px;
    margin-bottom: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-info-color);
}

.find-car-form .form-group{
    margin-top: 20px;
}

.search-form-wrapper{
    background-color: white;
    padding: 20px;
}

.form-group label, .form-group option{
    color: #0b0b0b;
}

.more-btn{
    width: 100%;
    display: flex;
    justify-content: flex-end;
}


@media (min-width: 300px) and (max-width: 499px){
    .tab-item{
        /*margin-top: -6%;*/
        width: 100px;
        font-size: 15px;
    }
    .search-form-wrapper .row .col-lg-4{
        margin-bottom: 10px;
    }


}

@media(max-width: 550px){
    .tabs-list{
        overflow-x: scroll;
        scrollbar-width: thin;
        scrollbar-color: red darkred;
    }
}

@media (min-width: 300px) and (max-width: 768px){
    .more-btn{
        justify-content: flex-start;
    }

    .tab-item-modal{
        width: auto;
    }
}


@media (min-width: 500px) and (max-width: 750px){
    .tab-item{
        /*margin-top: -3%;*/
        width: 100px;
        font-size: 15px;
    }
    .search-form-wrapper .row .col-lg-4{
        margin-bottom: 10px;
    }
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.theme-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}


@media (min-width: 760px) and (max-width: 999px){
    .tab-item{
        margin-top: -2%;
        font-size: 20px;
    }
    .search-form-wrapper .row .col-lg-4{
        margin-bottom: 10px;
    }
}

@media (min-width: 1000px) and (max-width: 1200px) {
    .tab-item {
        margin-top: -1%;
    }
}


/*-------------------- Vehicle Listing ---------------------------*/
.ads-banner{
    position: relative;
}

/* Vehicle Listing */

.vehicle-listing {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10%;
}

.vehicle-listing-container {
    width: 100%;
    max-width: 1200px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.vehicle-listing-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.vehicle-listing-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    padding: 10px 0;
}

.vehicle-listing-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-right: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

/* Remove right border for the last column */
.vehicle-listing-name:nth-child(6n) {
    border-right: none;
}



.vehicle-listing-name:hover {
    background-color: #f0f0f0;
    transform: scale(1.03);
}

.vehicle-listing-a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.vehicle-listing-img {
    max-width: 100px;
    max-height: 100px;
    margin-bottom: 5px;
    width: 100%;
    height: auto;
}

.vehicle-list-name-span {
    font-size: 20px;
    text-align: center;
    color: #333;
    word-break: break-word;
}

.vehicle-listing-span{
    font-size: 14px;
    color: #777;
}


@media (max-width: 768px) {
    .vehicle-listing-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }

    /* Remove right border for the last item in each row */
    .vehicle-listing-name:nth-child(2n) {
        border-right: none;
    }

    /* Ensure the last row's items don't have bottom border */
    .vehicle-listing-name {
        border-bottom: 1px solid #e0e0e0;
    }

}

@media (max-width: 480px) {
    .vehicle-listing-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    }

    /* Remove right border for the last item in each row */
    .vehicle-listing-name:nth-child(2n) {
        border-right: none;
    }

    /* Remove bottom border for the last row */
    .vehicle-listing-name {
        border-bottom: 1px solid #e0e0e0;
    }

}



/*-------------------Makinat me te kerkuara section ------------------------------*/
.car-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10%;
}

.car-brand-container {
    width: 100%;
    max-width: 1200px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.car-brand-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.car-brand-hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 15px 0;
}

.wYPOf, .car-brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    padding: 10px 0;
}

.car-brand-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

/* Remove right border for the last column */
.car-brand-name:nth-child(6n) {
    border-right: none;
}

/* Remove bottom border for the last row */
/* .car-brand-name:nth-last-child(-n+6) {
  border-bottom: none;
} */

.car-brand-name:hover {
    background-color: #f0f0f0;
    transform: scale(1.03);
}

.car-brand-a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.car-brand-img {
    max-width: 55px;
    max-height: 35px;
    margin-bottom: 5px;
    width: 100%;
    height: auto;
}

.car-brand-name-span {
    font-size: 0.9rem;
    text-align: center;
    color: #333;
    word-break: break-word;
}

.car-brand-svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
    margin-bottom: 5px;
}

@media (max-width: 1200px){
    .car-brand-container{
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .car-brand-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }

    /* Remove right border for the last item in each row */
    .car-brand-name:nth-child(2n) {
        border-right: none;
    }

    /* Ensure the last row's items don't have bottom border */
    .car-brand-name {
        border-bottom: 1px solid #e0e0e0;
    }

    /* .car-brand-name:nth-last-child(1),
    .car-brand-name:nth-last-child(2) {
        border-bottom: none;
    } */
}

@media (max-width: 480px) {
    .car-brand-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    }

    /* Remove right border for the last item in each row */
    .car-brand-name:nth-child(2n) {
        border-right: none;
    }

    /* Remove bottom border for the last row */
    .car-brand-name {
        border-bottom: 1px solid #e0e0e0;
    }

    /* .car-brand-name:nth-last-child(1),
    .car-brand-name:nth-last-child(2) {
        border-bottom: none;
    } */
}


/*-----------------Newsletter ------------------------------*/
.footer-newsletter{
    width: 100%;
}


/*------------------- Copyright ----------------------------*/
.copyright::before{
    background: var(--footer-bg2);
}

.footer-social a{
    color: white !important;
}

/*--------------------404 Error Page --------------------------*/
.error-area{
    background: #141414;
}

.error-img img {
    margin-bottom: -10%;
}

.error-h2{
    color: #757f95;
}


/* SELECT2 CUSTOM */
.select2 .selection .select2-selection{
    width: 100%;
    height: 55px;
    line-height: 54px;
    border-radius: 10px;
    font-size: 16px;
    color: var(--body-text-color);
}

.select2::after{
    width: 9px;
    height: 9px;
    right: 20px;
    margin-top: -7px
}

.select2:focus{
    border-color: var(--theme-color);
}

.select2-results__options{
    width: 100% !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px !important;
    box-shadow: 0 0 40px 5px rgb(0 0 0 / 5%) !important;
}

.select2 .option.focus,
.select2 .option.selected.focus,
.select2 .option:hover {
    border-radius: 8px;
    background: rgba(239, 23, 33, .05);
    color: var(--theme-color);
}

.select2-container--default .select2-selection--single {
    border-color: #E8E8E8 !important;
}

.select2-dropdown.select2-dropdown--below {
    border: none !important;
}
.select2.select2-container.select2-container--default.select2-container--below.select2-container--focus.select2-container--open {
    border: red !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: unset !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50% !important;
    height: unset !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus,
.select2-container--default .select2-selection--single:focus-visible,
.select2-container--default .select2-selection--multiple:focus-visible {
    border-color: #dc3545 !important;
    border-radius: 10px !important;
}

.select2-container--default .select2-results__option--selected {
    font-weight: 500 !important;
    color: #cd2027 !important; /* White text for better contrast */
}

.select2-container--default .select2-results__option--highlighted {
    color: #cd2027 !important; /* Darker red for hover */
    background: rgba(239, 23, 33, .05) !important;
    border-radius: 8px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border: 2px solid #cd2027 !important;
    outline: none;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    color: #cd2027 !important; /* Darker red for hover */
    background: rgba(239, 23, 33, .05) !important;
    border-radius: 8px !important;
}

.input-group .select2.select2-container.select2-container--default {
    width: 75px !important;
}

.input-group .select2 .selection .select2-selection {
    border-radius: 0 10px 10px 0 !important;
    height: 56px !important;
}

.input-group .select2-selection.select2-selection--single .select2-selection__rendered {
    padding-left: 10px !important;
}

.truncate-custom {
    width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


:is(.add-listing-form, .search-form-card) .form-control {
    color: #c30a0a !important;
}

.search-form-card .form-control {
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: none;
    color: #757F95;
    border-color: #E8E8E8;
}

.search-form-card .form-check {
    margin-bottom: 15px;
}

.accordion-header.border {
    border-radius: 10px !important;
}

.accordion-button:not(.collapsed) {
    border: none !important;
    color: #000000 !important;
    background-color: #e9ecef !important;
}

.hover-underline-animation {
    display: inline-block;
    position: relative;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--theme-color);
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
}

.hover-underline-animation.center::after {
    transform-origin: bottom center;
}

.hover-underline-animation.center:hover::after {
    transform-origin: bottom center;
}

.dropdown-item.active {
    background-color: var(--theme-color) !important;
    color: white !important;
}
.dropdown-item:active {
    background-color: var(--theme-color) !important;
    color: white !important;
}

/* Table responsive*/
@media (max-width: 1199px){
    .user-profile-card .table>:not(caption)>*>*{
        padding-right: 4.8rem;
    }
}
