/* ============================================================
   AUTOMART V46.1
   VEHICLE DETAIL — PREMIUM DEALER PROFILE CARD
   ============================================================ */

.am-v461-dealer-card {

    position:relative;

    width:100%;

    overflow:hidden;

    border:
        1px solid
        #dde7e2;

    border-radius:
        20px;

    background:
        #ffffff;

    box-shadow:
        0 14px 38px
        rgba(15,39,27,.075);

    isolation:isolate;
}


/* ============================================================
   COVER
   ============================================================ */

.am-v461-dealer-cover {

    position:relative;

    display:block;

    width:100%;
    height:128px;

    overflow:hidden;

    background:#eef4f1;

    text-decoration:none;
}


.am-v461-dealer-cover img {

    display:block;

    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center;

    transition:
        transform .35s ease;
}


.am-v461-dealer-card:hover
.am-v461-dealer-cover img {

    transform:
        scale(1.025);
}


.am-v461-cover-shade {

    position:absolute;

    inset:0;

    pointer-events:none;

    background:
        linear-gradient(
            180deg,
            rgba(3,18,11,.02) 20%,
            rgba(3,18,11,.38) 100%
        );
}


.am-v461-cover-label {

    position:absolute;

    left:14px;
    bottom:11px;

    display:inline-flex;

    align-items:center;

    min-height:26px;

    padding:
        5px 9px;

    border:
        1px solid
        rgba(255,255,255,.32);

    border-radius:
        999px;

    background:
        rgba(4,18,12,.52);

    color:#fff;

    font-size:10px;
    line-height:1;

    font-weight:750;

    backdrop-filter:
        blur(8px);

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


/* ============================================================
   MAIN DEALER IDENTITY
   ============================================================ */

.am-v461-dealer-main {

    position:relative;

    display:grid;

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

    gap:13px;

    padding:
        0 16px 15px;
}


.am-v461-avatar-wrap {

    position:relative;

    width:72px;
    height:72px;

    margin-top:-31px;

    z-index:2;

    text-decoration:none;
}


.am-v461-avatar {

    width:72px;
    height:72px;

    display:grid;

    place-items:center;

    overflow:hidden;

    border:
        4px solid
        #fff;

    border-radius:
        50%;

    background:
        linear-gradient(
            145deg,
            #e8f8f0,
            #dff3e9
        );

    box-shadow:
        0 8px 22px
        rgba(13,49,31,.14);
}


.am-v461-avatar img {

    width:100%;
    height:100%;

    display:block;

    object-fit:cover;
    object-position:center;
}


.am-v461-avatar-fallback {

    width:100%;
    height:100%;

    place-items:center;

    color:
        #07834f;

    font-size:26px;
    line-height:1;

    font-weight:850;
}


.am-v461-avatar-check {

    position:absolute;

    right:-1px;
    bottom:2px;

    width:25px;
    height:25px;

    display:grid;

    place-items:center;

    border:
        3px solid
        #fff;

    border-radius:50%;

    background:
        #0aa663;

    color:#fff;

    box-shadow:
        0 4px 12px
        rgba(0,137,79,.22);
}


.am-v461-avatar-check svg {

    width:13px;
    height:13px;
}


/* ============================================================
   DEALER COPY
   ============================================================ */

.am-v461-dealer-copy {

    min-width:0;

    padding-top:
        12px;
}


.am-v461-dealer-name-row {

    display:flex;

    align-items:center;

    justify-content:
        space-between;

    gap:8px;

    min-width:0;
}


.am-v461-dealer-name {

    min-width:0;

    overflow:hidden;

    color:
        #162132;

    text-decoration:none;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;

    font-size:
        17px;

    line-height:
        1.18;

    font-weight:
        850;

    letter-spacing:
        -.02em;
}


.am-v461-profile-arrow {

    width:32px;
    height:32px;

    flex:0 0 32px;

    display:grid;

    place-items:center;

    border:
        1px solid
        #e2e9e5;

    border-radius:
        50%;

    background:
        #f7f9f8;

    color:
        #59677a;

    transition:
        .2s ease;
}


.am-v461-profile-arrow:hover {

    border-color:
        #bee0cf;

    background:
        #ecf8f2;

    color:
        #07834f;

    transform:
        translateX(2px);
}


.am-v461-profile-arrow svg {

    width:16px;
    height:16px;
}


.am-v461-verified-line {

    display:flex;

    align-items:center;

    gap:6px;

    width:max-content;

    max-width:100%;

    margin-top:
        7px;

    padding:
        4px 8px;

    border-radius:
        999px;

    background:
        #eaf8f1;

    color:
        #087b4b;

    font-size:
        11px;

    line-height:
        1;

    font-weight:
        800;
}


.am-v461-shield {

    width:15px;
    height:15px;

    display:grid;

    place-items:center;
}


.am-v461-shield svg {

    width:15px;
    height:15px;
}


.am-v461-dealer-meta {

    display:grid;

    gap:5px;

    margin-top:
        8px;

    color:
        #718096;

    font-size:
        11px;

    line-height:
        1.28;
}


.am-v461-rating,
.am-v461-location {

    min-width:0;

    display:flex;

    align-items:center;

    gap:5px;
}


.am-v461-rating svg {

    width:14px;
    height:14px;

    flex:0 0 14px;

    fill:
        #f4ab19;
}


.am-v461-rating strong {

    color:
        #273347;

    font-weight:
        800;
}


.am-v461-location svg {

    width:14px;
    height:14px;

    flex:0 0 14px;

    color:
        #7b8799;
}


.am-v461-location span {

    min-width:0;

    overflow:hidden;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


/* ============================================================
   CONTACT ACTIONS
   ============================================================ */

.am-v461-dealer-actions {

    display:grid;

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

    gap:8px;

    padding:
        0 16px 12px;
}


.am-v461-action {

    min-width:0;
    min-height:43px;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:7px;

    padding:
        8px 10px;

    border:
        1px solid
        #07965a;

    border-radius:
        11px;

    background:#fff;

    color:
        #087d4b;

    text-decoration:none;

    font-size:
        11px;

    line-height:1;

    font-weight:
        800;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}


.am-v461-action svg {

    width:16px;
    height:16px;

    flex:0 0 16px;
}


.am-v461-action:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 6px 14px
        rgba(0,133,77,.10);
}


.am-v461-action--call {

    grid-column:
        1 / -1;

    min-height:
        47px;

    border-color:
        #07995b;

    background:
        linear-gradient(
            135deg,
            #0bad68,
            #078f54
        );

    color:#fff;

    font-size:
        12px;

    box-shadow:
        0 7px 18px
        rgba(0,150,88,.16);
}


.am-v461-action--call:hover {

    background:
        linear-gradient(
            135deg,
            #09a261,
            #07854e
        );
}


.am-v461-action--whatsapp {

    background:
        #f9fffb;
}


/* ============================================================
   VIEW PROFILE FOOTER
   ============================================================ */

.am-v461-view-profile {

    min-height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:7px;

    padding:
        10px 14px;

    border-top:
        1px solid
        #e9efec;

    background:
        linear-gradient(
            90deg,
            #f8fbf9,
            #f2f8f5
        );

    color:
        #344256;

    text-decoration:none;

    font-size:
        10px;

    line-height:1;

    font-weight:
        800;

    transition:
        background .18s ease,
        color .18s ease;
}


.am-v461-view-profile:hover {

    background:
        #edf8f2;

    color:
        #077a49;
}


.am-v461-view-profile svg {

    width:15px;
    height:15px;
}


/* ============================================================
   DESKTOP DETAIL SUMMARY
   ============================================================ */

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

    .vehicle-detail-page
    .vehicle-summary
    .am-v461-dealer-card {

        margin-top:
            12px;
    }

}


/* ============================================================
   TABLET
   ============================================================ */

@media screen
and (min-width:768px)
and (max-width:1050px) {

    .am-v461-dealer-cover {

        height:
            140px;
    }


    .am-v461-dealer-main {

        grid-template-columns:
            76px minmax(0,1fr);
    }


    .am-v461-avatar,
    .am-v461-avatar-wrap {

        width:
            76px;

        height:
            76px;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

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

    .am-v461-dealer-card {

        border-radius:
            17px;

        box-shadow:
            0 9px 26px
            rgba(15,39,27,.065);
    }


    .am-v461-dealer-cover {

        height:
            138px;
    }


    .am-v461-dealer-main {

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

        gap:
            12px;

        padding:
            0 13px 14px;
    }


    .am-v461-avatar-wrap,
    .am-v461-avatar {

        width:
            68px;

        height:
            68px;
    }


    .am-v461-avatar-wrap {

        margin-top:
            -29px;
    }


    .am-v461-dealer-copy {

        padding-top:
            10px;
    }


    .am-v461-dealer-name {

        font-size:
            16px;
    }


    .am-v461-dealer-actions {

        gap:
            8px;

        padding:
            0 13px 11px;
    }


    .am-v461-action {

        min-height:
            43px;

        font-size:
            11px;
    }


    .am-v461-action--call {

        min-height:
            47px;

        font-size:
            12px;
    }


    .am-v461-view-profile {

        min-height:
            40px;
    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

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

    .am-v461-dealer-cover {

        height:
            126px;
    }


    .am-v461-dealer-main {

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

        gap:
            10px;
    }


    .am-v461-avatar-wrap,
    .am-v461-avatar {

        width:
            62px;

        height:
            62px;
    }


    .am-v461-avatar-fallback {

        font-size:
            22px;
    }


    .am-v461-dealer-name {

        font-size:
            15px;
    }


    .am-v461-dealer-meta {

        font-size:
            10px;
    }

}
