/*	
	Theme Name: Motors - Child Theme
	Theme URI: http://motors.stylemixthemes.com/
	Author: StylemixThemes
	Author URI: http://stylemixthemes.com/
	Description: Motors Child theme
	Version: 4.0
	License: GNU General Public License v2 or later
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Tags: blue, red, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, fluid-layout, responsive-layout, flexible-header, custom-background, custom-colors, custom-header, custom-menu, editor-style, sticky-post, theme-options
	Text Domain: motors-child
    Template: motors

    This theme, like WordPress, is licensed under the GPL.
    Use it to make something cool, have fun, and share what you've learned with others.
*/


/*
    Footer 
*/
#footer-main {
    padding-left: 15px;
    padding-right: 15px;
}

#footer {
    margin-top: 40px;
}

#footer #footer-main .logo-img {
    margin-bottom : 28px;
}

#footer #footer-main h4,
#footer #footer-main p {
    color : white !important;
}

#footer #footer-main .footer_widgets_wrapper{
    display:flex;
    flex-direction:column;
    gap: 28px;
}

#footer #footer-main .menu {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    padding-left: 0;
}

#footer #footer-main .menu a {
    color : white;
}

#footer #footer-main .btn {
    padding: 8px 18px;
    border-radius: 15px;
    background-color: #2980B9;
    border-color: #2980B9;
}

#footer #footer-copyright .menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#footer #footer-copyright .menu a {
    color : white;
}

#footer #footer-copyright .menu li {
    margin: 0 12px;
}

#footer #footer-copyright .menu li:first-child {
    margin-left: 0;
}

#footer #footer-copyright .menu li:first-child a {
    padding-left: 0;
}

#footer #footer-copyright .menu li:last-child {
    margin-right: 0;
}

#footer #footer-copyright .menu li:last-child a {
    padding-right: 0;
}

#footer #footer-copyright .menu li:last-child a:after {
    display: none;
}

#footer #footer-copyright .menu li a {
    display: block;
    color: #fff;
    opacity: 0.8;
    padding: 0 12px;
    white-space: nowrap;
    font-size: 13px;
    position: relative;
    line-height: 20px;
}

#footer #footer-copyright .menu li a:after {
    content: "";
    display: block;
    width: 1px;
    height: 13px;
    position: absolute;
    top: 4px;
    right: -12px;
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 450px) {
    #footer #footer-copyright .menu {
        flex-direction: column;
        align-items: flex-start;
    }

    #footer #footer-copyright .menu li {
        margin: 0;
        border: none;
    }

    #footer #footer-copyright .menu li a {
        padding: 5px 0;
    }

    #footer #footer-copyright .menu li a:after {
        display: none;
    }
}


/*
    Header
*/
#header .add_cart_btn {
    color: #0E2247;
    padding: 8px 18px;
    border-radius: 15px;
    background-color: white;
    border-color: #0E2247;
}

#header .account_btn {
    color: white;
    padding: 8px 18px;
    border-radius: 15px;
    background-color: #0E2247;
    border-color: #0E2247;
}

#header .magazine-right-actions {
    gap: 15px;
}

.stm-layout-header-car_magazine #header .is-listing .listing_add_cart > div {
    display: block;
    position: relative;
    padding: 6px 20px;
    background: #2980B9;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 15px;
}

.header-magazine {
    box-shadow: 0px 2.5px 10px 0px rgba(0,0,0,0.1);
}


/*
*/
body .motors-alignwide,
body .container {
    margin-left: auto;
    margin-right: auto;
    
    padding-left : 70px;
    padding-right : 70px;
    
    @media screen and (max-width: 768px) {
        padding-left : 30px;
        padding-right : 30px;
    }
    
    @media screen and (min-width: 1025px) {
        max-width: 1200px;
    }
    @media screen and (min-width: 1440px) {
        max-width: 1600px;
    }
    @media screen and (min-width: 1600px) {
        max-width: 1800px;
    }
}

@media (min-width: 768px) {
    .stm-isotope-sorting-grid .image img, .car-listing-modern-grid .image img {
        min-height: 250px!important;
        height: 250px!important;
    }
}

/* .stm-opened-menu-magazine {
    display:none;
} */

/* .hide-owl-controls .owl-controls {
    display:none;
} */

.entry-header.small_title_box .container .entry-title h2 {
    color: #fff !important;
}

.owl-controls .owl-dots {
    display: none;
}

.owl-controls {
    display: flex;
    justify-content: space-between;
}

.stm-owl-prev,
.stm-owl-next {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 300px;
    background: linear-gradient(90deg,rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0) 100%);
    border: none !important;

    display: flex !important;
    align-items: center;
}

.stm-owl-next {
    background: linear-gradient(270deg,rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0) 100%);
    background-size: cover;
}

.stm-owl-prev i,
.stm-owl-next i {
    display: inline-block;
    color: white;
}

.stm-owl-prev {
    left: 0;
}

.stm-owl-next {
    right: 0;
}

.hide-nav-search-form .nav-tabs {
    display:none!important;
}

.stm-template-listing_five .stm_listing_car_form  {
    display: block;
    background: white!important;
    padding: 0 !important;
}



.stm-template-listing_five .stm_listing_car_form .wpcf7-form-control-wrap>.wpcf7-not-valid{
     border: solid 1px red !important;
}

.stm-template-listing_five .stm_listing_car_form textarea, 
.stm-template-listing_five .stm_listing_car_form input {
    background: transparent!important;
    border: solid 1px #323944 !important;
    border-radius : 5px;
}

.stm-template-listing_five .stm_listing_car_form input[type=submit] {
    background: #E67E22 !important;
    width: 100%;
    border-radius: 5px;
    border: none !important;
}

.stm-template-listing_five .stm-single-car-page .stm_listing_car_form input[type=text].wpcf7-text:focus,
.stm-template-listing_five .stm-single-car-page .stm_listing_car_form input[type=tel].wpcf7-text:focus,
.stm-template-listing_five .stm-single-car-page .stm_listing_car_form input[type=email].wpcf7-email:focus,
.stm-template-listing_five .stm-single-car-page .stm_listing_car_form input[type=password].wpcf7-text:focus,
.stm-template-listing_five .stm-single-car-page .stm_listing_car_form textarea.wpcf7-textarea:focus
{ 
    color : black!important;
    background: transparent !important;
}

.stm-single-listing-car-sidebar{
    padding: 20px 10px;
    box-shadow: 0px 2.5px 5px rgba(0, 0, 0, 0.3);
}

.stm-login-form-unregistered input[type=submit] {
    color: black!important;
}

.car-meta-bottom {
    display: none;
}

.step_number {
    display:none;
}

.truncated-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Adjust the number of lines as needed */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
}

.listing-type-list .stm-row .stm-col-3.m-b-15:first-of-type {
    display: none;
}

label[for=whatsapp-checker]
{
    display : none;
}

#stm_sell_a_car_form > div:not(:first-of-type) {
    border-top : 2px solid #2980B9;
}

.stm_add_car_form  {
    padding: 20px 50px;
    margin-bottom: 40px!important;
    @media screen and (max-width: 768px) {
        padding: 20px 20px;
    }
    box-shadow: 0px 2.5px 5px rgba(0, 0, 0, 0.3);
}

.homepage-search-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.homepage-search-container > div {
    flex : 1;
}

.stm-template-listing_five .stm_add_car_form .stm-form-4-videos .stm-add-videos-unit .heading-font {
    color : black!important;
}

.stm-template-listing_five .stm_add_car_form .stm-form-4-videos .stm-add-videos-unit {
    padding : 0!important;
    background-color: transparent!important;
}

.stm-template-listing_five .stm_add_car_form .stm-form-4-videos .stm-video-link-unit .stm-after-video {
    top : 3px!important;
    background: black!important;
}

.stm-template-listing_five .stm_add_car_form .stm-form-4-videos .stm-simple-notice {
    color : black!important;
}

.stm-template-listing_five .stm_add_car_form .stm-form-price-edit .stm_price_input {
    padding : 0!important;
    background-color: transparent!important;
}

.stm-template-listing_five .stm_add_car_form .stm-form-price-edit .stm_price_input .stm_label {
    color: black!important;
}

.card .card-body .btn-primary::after, .btn-success::after {
    display: none!important;
}

.multilisting-buttons-wrap {
    margin-top: 100px;
}

.stm_motors_listing_types_multilisting_active .listing-type-list .card .card-body a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%!important;
    height: 100%!important;
    text-decoration: none;
    z-index: 1; 
    background: transparent; 
    border: 0!important;
}

.stm_motors_listing_types_multilisting_active .listing-type-list .card .card-body a>i {
    display:none!important;
}

.stm_motors_listing_types_multilisting_active .listing-type-list .card .card-body {
    padding: 80px 60px 80px 65px!important;
}

.stm_motors_listing_types_multilisting_active .listing-type-list .card .card-body:hover .card-title {
    color: #fff !important;
}

body#tinymce.mce-content-body {
    font-family: Open Sans, Arial !important;
}

.stm-gallery-actions {
    display:none;
}

.stm_motors_listing_types_multilisting_active .stm-c-f-search-form-wrap .tab-content button[type=submit] {
    margin-top: 1px;
    min-width: 160px!important;
}

.stm-template-listing_five .stm_add_car_form .stm-form-checking-user button[type=submit] {
    padding:17px 20px 14px 62px!important;
}

.wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    display: block !important;
    position: static;
}


.stm_motors_listing_types_multilisting_active .wrap_multilisting_carousel.visible_items_3 img {
    height:300px!important;
}

/*

Woocommerce

*/

body#tinymce.wp-editor {
    font-family: Arial, Helvetica, sans-serif !important;
}

.woocommerce-notices-wrapper {
    display: none;
}

.woocommerce-form-coupon-toggle {
   display: none; 
}


/*

Ads

*/
@media (max-width: 991px) {
    .ad-placement.ad-placement__wide {
        display: none;
    }
}

@media (min-width: 992px) {
    .ad-placement.ad-placement__wide__small {
        display: none;
    }
}


.stm-template-listing_five .stm-listing-car-dealer-info .dealer-contacts .dealer-contact-unit {
    border-top:0!important;
}

.stm-listing-car-dealer-info .dealer-contacts .dealer-contact-unit i {
    position:static!important;
}
.stm-login-form {
    color: white;
}
.stm-template-listing_five .stm_listing_car_form .wpcf7-response-output{
   background: #46b45e !important;
}

.stm-contact-us-form-wrapper h2.heading-font {
	text-align: center;
}

.main-listing-search {
    margin-bottom: 100px !important;
    padding: 50px;
    background-color: #0e2247 !important;
    border-radius: 20px !important;
    width: 800px;
}

.main-listing-search .main-listing-search__heading {
    text-align:center;
    color:white !important;
    margin-bottom:18px;  
}

.motors-icons-add_check::before {
    content: "\e92d";
}

.stm-template-listing_five .stm_add_car_form .stm-form-checking-user button[type="submit"] {
    padding: 15px 20px 14px 62px !important;
}

.stm-directory-grid-loop .listing-car-item-meta .car-meta-top .price {
    padding: 4px 10px 4px 4px !important;
}

.listing-sold .stm_listing_car_form,
.listing-sold .stm-listing-car-dealer-info {
    display: none !important;
}

.listing-sold .single-listing-car-sidebar-unit .wp-block-separator {
    display: none !important;
}

.listing-sold .stm-border-bottom-unit .title {
    margin-top: 0;
}

.stm-layout-header-car_magazine #header .header-magazine .container .magazine-logo-main {
    margin-top: 0 !important;
}

.stm-template-listing_five .classic-filter-row .sidebar-entry-header .h4 {
    color: #fff !important;
}

.mobile-filter .mobile-search-btn .h4 {
    color: #fff !important;
}

.mobile-filter .mobile-search-btn {
    margin-top: 0 !important;
}

.entry-header .entry-title {
    left: 70px !important;
    right: 70px !important;
}

.stm-template-listing_five .stm_listing_car_form {
    margin-top: 0;
}

.stm-template-listing_five .stm_listing_car_form .stm-single-car-contact {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.stm-single-listing-car-sidebar .stm-listing-car-dealer-info {
    margin-bottom: 20px !important;
}

.stm-template-listing_five .stm-login-register-form .stm-login-form form h4 {
    color: #fff !important;
}

.stm-user-private .stm-user-private-sidebar .show-my-profile a {
    background-color: #2980B9 !important;
}

.stm-my-profile-settings .stm-image-unit .stm-upload-new-avatar .stm-new-upload-area .button {
    padding-bottom: 17px !important
}

.stm-view-by {
    display: none !important;
}

.stm-template-listing_five .classic-filter-row .sidebar-entry-header {
    padding-top: 14px !important;
}

.stm-template-listing_five .classic-filter-row .sidebar-entry-header svg {
    top: 50% !important;
    left: 30px !important;
    transform: translateY(-50%);
}

@media (min-width: 451px) and (max-width: 768px) {
    .stm_motors_listing_types_multilisting_active .listing-type-list > .stm-row > .stm-col-3 {
        width: 100% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }
}

@media (max-width: 991px) {
    .stm-hero-banner-wrap {
        min-height: 400px !important;
    }

    .stm-hero-banner-wrap .container {
        position: relative !important;
        top: 50px !important;
    }

    .main-listing-search {
        padding: 30px;
        width: 100%;
    }

    .homepage-search-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 1em;
    }

    .homepage-search-container > div,
    .homepage-search-container input,
    .homepage-search-container button {
        width: 100%;
    }

    .stm-layout-header-car_magazine .magazine-menu-mobile-wrapper {
        position: static !important;
    }

    .stm-layout-header-car_magazine .magazine-menu-mobile-wrapper .stm-menu-trigger span {
        background: black !important;
        width: 24px !important;
    }

    .stm-layout-header-car_magazine .magazine-menu-mobile-wrapper .stm-menu-trigger:not(.opened) span {
        margin-bottom: 4px !important;
        height: 3px !important;
    }

    .stm-layout-header-car_magazine .magazine-menu-mobile-wrapper .stm-opened-menu-magazine {
        right: calc(100vw * -1) !important;
        top: 80px !important;
        width: 100vw !important;
        background: #fff !important;
    }

    .stm-layout-header-car_magazine .magazine-menu-mobile-wrapper .stm-opened-menu-magazine.opened {
        right: 0 !important;
    }

    .stm-layout-header-car_magazine #header .header-magazine .container .magazine-menu-mobile .menu-item-has-children .arrow {
        right: 10px !important;
        top: 8px !important;
    }

    .stm-layout-header-car_magazine #header .header-magazine .container .magazine-menu-mobile .menu-item-has-children .arrow i {
        color: inherit !important;
        transform: scale(0.8);
    }

    .stm-layout-header-car_magazine .magazine-menu-mobile-wrapper .stm-opened-menu-magazine .magazine-menu-mobile > li > a {
        line-height: 30px !important;
    }

    .stm-layout-header-car_magazine .magazine-menu-mobile-wrapper .stm-opened-menu-magazine .magazine-menu-mobile > li > ul > li > a {
        background-color: #f3f3f3 !important;
    }

    .multilisting-buttons-wrap {
        margin-top: 20px !important;
    }

    .stm_motors_listing_types_multilisting_active .listing-type-list .card .card-body {
        padding: 40px !important;
    }

    .stm-template-listing_five .archive-listing-page {
        margin-top: 0 !important;
    }

    .stm-sort-by-options {
        margin-top: 0 !important;
    }

    .stm-car-listing-sort-units .stm-sort-by-options {
        margin-right: 10px !important;
    }

    .stm-single-listing-car-sidebar {
        margin-top: 30px;
        border-top: 1px solid #e5e8ec;
        padding-left: 0;
        padding-right: 0;
        padding-top: 29px;
        box-shadow: none;
    }

    .footer-menu-section {
        margin-top: 30px;
    }

    .stm-template-listing_five .stm-login-register-form {
        margin-top: 10px !important;
    }

    form .form-group > [class^="col-"] + [class^="col-"] {
        margin-top: 30px;
    }

    .stm-user-private .stm-user-private-main:before {
        display: none !important;
    }

    .stm-template-listing_five .classic-filter-row .sidebar-entry-header {
        margin: 0 !important;
    }

    body #wrapper #main .search-filter-form .filter-sidebar {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .filter-sidebar .sidebar-action-units a.button {
        background-color: #2980B9 !important;
    }
}

@media (max-width: 768px) {
    .entry-header .entry-title {
        left: 30px !important;
        right: 30px !important;
    }

    #footer #footer-main .footer_widgets_wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }

    ul.page-numbers {
        padding-left: 45px !important;
        padding-right: 45px !important;
    }

    ul.page-numbers li > span,
    ul.page-numbers li a {
        width: 28px !important;
        height: 28px !important;
        line-height: 28px !important;
        margin: 0 4px !important;
    }

    ul.page-numbers li a.next,
    ul.page-numbers li a.prev {
        top: 10px !important;
        font-size: 18px;
    }
}

/* New listing stuff */
.listing-expiry-info {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin: 20px 0;
}

.listing-expiry-info.active {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.listing-expiry-info.expires-soon {
    background-color: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffcc02;
}

.listing-expiry-info.expires-today {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.listing-expiry-info.expired {
    background-color: #fafafa;
    color: #757575;
    border: 1px solid #e0e0e0;
}

.listing-expiry-info.awaiting-payment {
    background-color: #fff9e6;
    color: #f57c00;
    border: 1px solid #ffe082;
    font-weight: 600;
}

.listing-expiry-info.awaiting-payment i {
    color: #ff9800;
}

.listing-expiry-info i {
    font-size: 11px;
}

.listing-expiry-info span {
    line-height: 1;
}

/* Expired Listing Overlay - Full Listing Coverage */
.stm-isotope-listing-item {
    position: relative;
}

.full-expired-listing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 8px;
    border: 3px solid #dc3545;
    backdrop-filter: blur(2px);
}

.full-expired-listing-overlay + .image .listing_stats_wrap {
    display: none !important;
}

.expired-message {
    text-align: center;
    padding: 20px;
    max-width: 380px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.expired-message i {
    font-size: 44px;
    color: #dc3545;
    margin-bottom: 20px;
    display: block;
    animation: pulse 2s infinite;
}

.expired-message h3 {
    color: #dc3545;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.expired-message p {
    color: #666;
    font-size: 14px;
    margin: 0 0 25px 0;
    line-height: 1.4;
}

.expired-message .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.expired-message .action-btn-primary {
    background-color: #dc3545;
    color: white;
}

.expired-message .action-btn-primary:hover {
    background-color: #c82333;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.stm-big-car-gallery .stm-single-image { background: #f0f0f0; }
.stm-big-car-gallery .stm-single-image a img {
    object-fit: contain !important;
}

/* No additional CSS needed - actions are not rendered for expired listings */