/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Fallback to prevent elements from staying invisible if Elementor animations fail to trigger */
.elementor-invisible {
    visibility: visible !important;
}

/* Align buttons vertically at the bottom of the vehicle card columns */
.elementor-column .elementor-widget-wrap {
    display: flex !important;
    flex-direction: column !important;
}

.elementor-column .elementor-widget-wrap > .elementor-widget-button {
    margin-top: auto !important;
}

/* ==========================================================================
   PREMIUM CAR LISTINGS COMPONENT STYLING
   ========================================================================== */
.n3-listings-container {
    width: 100%;
    margin: 40px auto;
    color: #0d1637; /* Primary navy */
}

/* Tabs Wrapper & Navigation */
.n3-listings-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 12px;
}

.n3-listings-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.n3-tab-btn {
    background: #d01818 !important;
    border: none;
    padding: 18px 24px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    outline: none;
}

.n3-tab-btn:hover {
    color: #d01818; /* Nissan Red */
    background-color: rgba(208, 24, 24, 0.05);
}

.n3-tab-btn.active {
    color: #fff;
    background-color: #0d1637 !important; /* Nissan Red */
    box-shadow: 0 4px 15px rgba(208, 24, 24, 0.2);
}

/* Listings Grid */
.n3-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 30px;
    transition: opacity 0.25s ease-in-out;
}

/* Card Styling */
.n3-car-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13, 22, 55, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.n3-car-card:hover {
    /* transform: translateY(-8px); */
    border-color: #d01818;
    box-shadow: 0 20px 40px rgba(13, 22, 55, 0.08);
}

/* Card Image */
.n3-card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 49px;
    aspect-ratio: 13 / 7;
    background-color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.n3-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.n3-car-card:hover .n3-card-image-wrap img {
    transform: scale(1.08);
}

.n3-card-image-placeholder {
    font-size: 14px;
    color: #86898e;
    font-weight: 500;
}

/* Badges */
.n3-card-badges {
position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    gap: 8px;
    z-index: 2;
}

.n3-badge-year {
    background-color: #d01818;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 15px;
    padding: 6px 14px;
    border-radius: 45px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.n3-badge-cat {
background-color: rgba(13, 22, 55, 0.85);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 31px;
    backdrop-filter: blur(5px);
    flex-shrink: 1;
    min-width: 0;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Content */
.n3-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.n3-card-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0d1637 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Specifications Grid */
.n3-card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.n3-card-spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #595960;
    font-weight: 500;
}

.n3-spec-svg {
    width: 16px;
    height: 16px;
    color: #d01818;
    flex-shrink: 0;
}

/* Pricing Row */
.n3-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 13px;
}

.n3-card-price-box {
    display: flex;
    flex-direction: column;
}

.n3-card-price-lbl {
font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #86898e;
    line-height: 14px;
    font-weight: 600;
    margin-bottom: 1px;
}

.n3-card-price-val {
    font-size: 18px;
    font-weight: 800;
    color: #0d1637;
}

.n3-card-price-monthly {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.n3-card-monthly-val {
    font-size: 18px;
    font-weight: 800;
    color: #d01818;
}

.n3-card-monthly-lbl {
    font-size: 11px;
    color: #86898e;
    font-weight: 500;
    line-height: 14px;
}

/* CTAs Row */
.n3-card-ctas {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 10px;
    margin-top: auto;
}

.n3-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.n3-card-btn-details {
    background-color: #0d1637; /* Navy */
    color: #fff !important;
}

.n3-card-btn-details:hover {
    background-color: #d01818; /* Hover red */
}

.n3-card-btn-whatsapp {
    background-color: #05cd51; /* WhatsApp Green */
    color: #fff !important;
}

.n3-card-btn-whatsapp:hover {
    background-color: #04b346;
}

/* No Cars State */
.n3-no-cars {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #86898e;
    font-weight: 500;
    border: 1px dashed #eaeaea;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .n3-listings-tabs-wrapper {
        margin-bottom: 24px;
    }
    .n3-tab-btn {
        padding: 8px 18px;
        font-size: 14px;
    }
    .n3-listings-grid {
        gap: 20px;
    }
}

