/* ============================================================
   AUTOMART V44.0
   GLOBAL NEW CARS + USED CARS NAVIGATION

   Existing AutoMart typography and 1280px architecture preserved.
   ============================================================ */


/* ============================================================
   DESKTOP NEW CARS TRIGGER
   ============================================================ */

.am-v44-new-trigger {

    position:relative !important;

    cursor:pointer !important;
}


.am-v44-new-trigger::after {

    content:"";

    position:absolute;

    left:18px;
    right:18px;
    bottom:-1px;

    height:2px;

    border-radius:999px;

    background:#0ba25d;

    opacity:0;

    transform:
        scaleX(.45);

    transition:
        opacity .18s ease,
        transform .18s ease;
}


.am-v44-new-trigger:hover::after,
.am-v44-new-trigger.am-v44-active::after,
.am-v44-new-trigger[aria-expanded="true"]::after {

    opacity:1;

    transform:
        scaleX(1);
}


/* ============================================================
   NEW CARS MEGA MENU
   ============================================================ */

.am-v44-new-mega {

    position:fixed;

    z-index:2450;

    display:none;

    width:min(
        1060px,
        calc(100vw - 64px)
    );

    border:
        1px solid
        #dfe8e3;

    border-radius:0 0 20px 20px;

    background:#fff;

    box-shadow:
        0 26px 58px
        rgba(12,31,23,.16);

    overflow:hidden;

    opacity:0;

    transform:
        translateY(-8px)
        scale(.992);

    transform-origin:
        top center;

    transition:
        opacity .18s ease,
        transform .18s ease;

    font-family:inherit;
}


.am-v44-new-mega.am-v44-open {

    display:block;

    opacity:1;

    transform:
        translateY(0)
        scale(1);
}


.am-v44-new-mega__grid {

    display:grid;

    grid-template-columns:
        250px
        minmax(0,1fr)
        380px;

    min-height:430px;
}


/* LEFT */

.am-v44-new-mega__side {

    padding:
        22px 18px;

    background:#f7f9f8;

    border-right:
        1px solid
        #e6ece9;
}


.am-v44-new-mega__guide {

    display:flex;

    align-items:center;

    gap:11px;

    margin-bottom:11px;

    padding:
        13px;

    border:
        1px solid
        #d9e9e0;

    border-radius:18px;

    background:
        linear-gradient(
            145deg,
            #edf8f2,
            #f7fbf9
        );

    color:#132237;

    text-decoration:none;
}


.am-v44-new-mega__guide-icon {

    flex:0 0 38px;

    width:38px;
    height:38px;

    display:grid;

    place-items:center;

    border-radius:11px;

    background:#fff;

    color:#087c4b;

    border:
        1px solid
        #e0e9e4;
}


.am-v44-new-mega__guide span {

    min-width:0;

    display:flex;

    flex-direction:column;

    gap:3px;
}


.am-v44-new-mega__guide strong {

    font-size:12px;

    font-weight:800;

    color:#172538;
}


.am-v44-new-mega__guide small {

    font-size:10px;

    color:#718092;
}


.am-v44-new-mega__links {

    display:grid;

    gap:5px;
}


.am-v44-new-mega__links a {

    display:grid;

    grid-template-columns:
        28px
        minmax(0,1fr)
        14px;

    align-items:center;

    gap:9px;

    min-height:52px;

    padding:
        6px 8px;

    border-radius:12px;

    color:#263548;

    text-decoration:none;

    transition:
        background .15s ease,
        transform .15s ease;
}


.am-v44-new-mega__links a:hover {

    background:#fff;

    transform:
        translateX(2px);
}


.am-v44-new-mega__links i {

    color:#0a7d4c;

    font-size:17px;

    font-style:normal;

    text-align:center;
}


.am-v44-new-mega__links span {

    display:flex;

    flex-direction:column;

    gap:2px;
}


.am-v44-new-mega__links strong {

    font-size:12px;

    font-weight:800;
}


.am-v44-new-mega__links small {

    color:#82909d;

    font-size:9px;
}


.am-v44-new-mega__links b {

    font-size:14px;

    color:#5e6b79;
}


/* BODY STYLE */

.am-v44-new-mega__body {

    padding:
        23px 20px;

    border-right:
        1px solid
        #e7ece9;
}


.am-v44-new-mega__section-head {

    display:flex;

    align-items:flex-start;
    justify-content:space-between;

    gap:15px;

    margin-bottom:15px;
}


.am-v44-new-mega__section-head strong {

    display:block;

    margin-bottom:3px;

    color:#1a293b;

    font-size:13px;

    font-weight:850;
}


.am-v44-new-mega__section-head small {

    display:block;

    color:#82909f;

    font-size:10px;
}


.am-v44-new-mega__section-head a {

    color:#087c4b;

    text-decoration:none;

    font-size:10px;

    font-weight:800;

    white-space:nowrap;
}


.am-v44-new-mega__bodies {

    display:grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap:10px;
}


.am-v44-new-mega__body-card {

    position:relative;

    min-height:102px;

    display:flex;

    flex-direction:column;

    align-items:center;
    justify-content:flex-end;

    gap:6px;

    padding:
        10px 8px;

    border:
        1px solid
        #dfe7e3;

    border-radius:12px;

    background:
        linear-gradient(
            180deg,
            #fbfdfc,
            #f6faf8
        );

    color:#142235;

    text-decoration:none;

    overflow:hidden;

    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}


.am-v44-new-mega__body-card:hover {

    transform:
        translateY(-2px);

    border-color:
        #bddfce;

    box-shadow:
        0 9px 20px
        rgba(12,48,31,.07);
}


.am-v44-new-mega__car-shape {

    width:62px;
    height:37px;

    display:grid;

    place-items:center;

    color:#0a7e4b;

    font-size:28px;

    opacity:.9;
}


.am-v44-new-mega__body-card strong {

    font-size:11px;

    font-weight:800;
}


/* BRAND GRID */

.am-v44-new-mega__brands {

    padding:
        23px 20px 82px;

    position:relative;
}


.am-v44-new-mega__brand-grid {

    display:grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap:9px;
}


.am-v44-new-mega__brand {

    min-height:88px;

    display:flex;

    flex-direction:column;

    align-items:center;
    justify-content:center;

    gap:8px;

    padding:8px;

    border:
        1px solid
        #dfe7e3;

    border-radius:11px;

    background:#fff;

    color:#182639;

    text-decoration:none;

    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}


.am-v44-new-mega__brand:hover {

    transform:
        translateY(-2px);

    border-color:
        #bfdccc;

    box-shadow:
        0 8px 18px
        rgba(13,44,29,.07);
}


.am-v44-new-mega__brand-logo {

    height:25px;

    display:grid;

    place-items:center;

    color:#687784;

    font-size:11px;

    font-weight:900;

    letter-spacing:.03em;
}


.am-v44-new-mega__brand strong {

    font-size:10px;

    text-align:center;
}


/* BOTTOM CTA */

.am-v44-new-mega__cta {

    position:absolute;

    left:20px;
    right:20px;
    bottom:14px;

    min-height:54px;

    display:flex;

    align-items:center;
    justify-content:space-between;

    gap:16px;

    padding:
        9px 12px;

    border:
        1px solid
        #d9e9e0;

    border-radius:12px;

    background:
        linear-gradient(
            90deg,
            #eef8f2,
            #f8fcfa
        );
}


.am-v44-new-mega__cta-copy {

    display:flex;

    align-items:center;

    gap:10px;
}


.am-v44-new-mega__cta-icon {

    width:35px;
    height:35px;

    display:grid;

    place-items:center;

    border-radius:10px;

    background:#dff3e7;

    color:#087f4c;

    font-size:17px;
}


.am-v44-new-mega__cta-copy span {

    display:flex;

    flex-direction:column;

    gap:2px;
}


.am-v44-new-mega__cta-copy strong {

    color:#26374a;

    font-size:11px;

    font-weight:800;
}


.am-v44-new-mega__cta-copy small {

    color:#83909d;

    font-size:9px;
}


.am-v44-new-mega__cta > a {

    min-height:36px;

    display:inline-flex;

    align-items:center;
    justify-content:center;

    padding:
        0 14px;

    border-radius:9px;

    background:#079754;

    color:#fff;

    text-decoration:none;

    font-size:10px;

    font-weight:850;

    box-shadow:
        0 7px 16px
        rgba(7,151,84,.16);
}


/* ============================================================
   ACTIVE NEW / USED DESKTOP STATES
   ============================================================ */

@media screen and (min-width:1024px) {

    .am-v44-new-trigger.am-v44-active {

        color:#087b4b !important;

        background:#eef8f3 !important;

        border-radius:999px !important;
    }


    /*
     * Adding one item to the global header:
     * keep desktop spacing compact without changing global width.
     */

    .am-v44-new-trigger {

        white-space:nowrap !important;
    }

}


/* ============================================================
   MOBILE MARKET NAV ITEMS
   ============================================================ */

.am-v44-mobile-market-item {

    cursor:pointer !important;
}


.am-v44-mobile-market-item
.am-v44-mobile-market-badge {

    min-width:30px;

    display:inline-flex;

    align-items:center;
    justify-content:center;

    padding:
        3px 6px;

    margin-left:auto;

    border-radius:999px;

    background:#eaf7f0;

    color:#08794a;

    font-size:8px;

    font-weight:850;
}


/* ============================================================
   MOBILE NEW / USED SHEET
   ============================================================ */

.am-v44-mobile-sheet {

    position:fixed;

    inset:0;

    z-index:5000;

    display:none;

    font-family:inherit;
}


.am-v44-mobile-sheet.am-v44-open {

    display:block;
}


.am-v44-mobile-sheet__backdrop {

    position:absolute;

    inset:0;

    background:
        rgba(7,19,14,.42);

    backdrop-filter:
        blur(4px);

    -webkit-backdrop-filter:
        blur(4px);
}


.am-v44-mobile-sheet__panel {

    position:absolute;

    left:0;
    right:0;
    bottom:0;

    max-height:
        min(
            86vh,
            760px
        );

    overflow-y:auto;

    padding:
        8px 16px
        calc(
            24px
            +
            env(safe-area-inset-bottom)
        );

    border-radius:
        24px 24px 0 0;

    background:#fff;

    box-shadow:
        0 -20px 50px
        rgba(10,30,20,.20);

    animation:
        amV44MobileUp
        .22s ease-out;
}


@keyframes amV44MobileUp {

    from {
        transform:
            translateY(24px);

        opacity:.4;
    }

    to {
        transform:
            translateY(0);

        opacity:1;
    }
}


.am-v44-mobile-sheet__handle {

    width:42px;
    height:4px;

    margin:
        2px auto 11px;

    border-radius:999px;

    background:#d4ddd8;
}


.am-v44-mobile-sheet__head {

    display:flex;

    align-items:center;
    justify-content:space-between;

    gap:12px;

    padding:
        4px 0 13px;

    border-bottom:
        1px solid
        #e8eeeb;
}


.am-v44-mobile-sheet__head strong {

    color:#121f30;

    font-size:17px;

    font-weight:850;
}


.am-v44-mobile-sheet__close {

    width:38px;
    height:38px;

    display:grid;

    place-items:center;

    border:
        1px solid
        #dde6e1;

    border-radius:50%;

    background:#fff;

    color:#172538;

    font-size:18px;
}


.am-v44-mobile-sheet__intro {

    margin:
        13px 0;

    color:#718094;

    font-size:11px;
    line-height:1.5;
}


.am-v44-mobile-sheet__quick {

    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:8px;

    margin-bottom:19px;
}


.am-v44-mobile-sheet__quick a {

    min-height:50px;

    display:flex;

    align-items:center;

    gap:8px;

    padding:
        8px 10px;

    border:
        1px solid
        #e0e8e4;

    border-radius:12px;

    background:#fafcfb;

    color:#1a293b;

    text-decoration:none;

    font-size:10px;

    font-weight:750;
}


.am-v44-mobile-sheet__section {

    margin-top:18px;
}


.am-v44-mobile-sheet__section-head {

    display:flex;

    align-items:center;
    justify-content:space-between;

    gap:10px;

    margin-bottom:10px;
}


.am-v44-mobile-sheet__section-head strong {

    color:#162436;

    font-size:12px;

    font-weight:850;
}


.am-v44-mobile-sheet__section-head a {

    color:#087d4a;

    text-decoration:none;

    font-size:9px;

    font-weight:800;
}


.am-v44-mobile-sheet__body-grid,
.am-v44-mobile-sheet__brand-grid {

    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:8px;
}


.am-v44-mobile-sheet__body-grid a,
.am-v44-mobile-sheet__brand-grid a {

    min-height:48px;

    display:flex;

    align-items:center;

    gap:9px;

    padding:
        8px 10px;

    border:
        1px solid
        #e0e8e4;

    border-radius:11px;

    background:#fff;

    color:#1a293b;

    text-decoration:none;

    font-size:10px;

    font-weight:750;
}


.am-v44-mobile-sheet__body-grid i {

    color:#087d4a;

    font-style:normal;

    font-size:16px;
}


.am-v44-mobile-sheet__cta {

    width:100%;

    min-height:48px;

    display:flex;

    align-items:center;
    justify-content:center;

    margin-top:20px;

    border-radius:12px;

    background:#079754;

    color:#fff;

    text-decoration:none;

    font-size:12px;

    font-weight:850;
}


/* Desktop only mega. */

@media screen and (max-width:1023px) {

    .am-v44-new-mega {

        display:none !important;
    }

}


/* Mobile sheet never on desktop. */

@media screen and (min-width:1024px) {

    .am-v44-mobile-sheet {

        display:none !important;
    }

}
