/*
|--------------------------------------------------------------------------
| BUYSELL GH — MARKETLY HOMEPAGE V4.1
|--------------------------------------------------------------------------
|
| Fidelity / data presentation pass:
|
| - larger desktop canvas
| - stronger photographic hero
| - reference-like proportions
| - larger featured photography
| - premium category tiles
| - corrected drive banner typography
| - larger How It Works
|
*/


/* ========================================================= */
/* DESKTOP WIDTH                                              */
/* ========================================================= */


.am-marketly-home .am-container{

    width:
        min(
            1500px,
            calc(
                100% - 56px
            )
        )
        !important;

}


/* ========================================================= */
/* HEADER                                                     */
/* ========================================================= */


.am-marketly-home .am-header-inner{

    width:
        min(
            1500px,
            calc(
                100% - 56px
            )
        )
        !important;

    min-height:
        78px
        !important;

}


.am-marketly-home .am-main-nav{

    gap:
        28px
        !important;

}


.am-marketly-home .am-main-nav a{

    font-size:
        13px
        !important;

}


/* ========================================================= */
/* HERO                                                       */
/* ========================================================= */


.am4-hero{

    min-height:
        640px
        !important;

    background-position:
        center center
        !important;

}


.am4-hero-inner{

    min-height:
        640px
        !important;

    padding-top:
        135px
        !important;

}


.am4-hero-copy{

    width:
        610px
        !important;

}


.am4-hero h1{

    max-width:
        600px;

    margin-top:
        18px
        !important;

    font-size:
        clamp(
            64px,
            5.25vw,
            82px
        )
        !important;

    line-height:
        .91
        !important;

    letter-spacing:
        -4px
        !important;

}


.am4-hero-text{

    max-width:
        530px
        !important;

    font-size:
        17px
        !important;

    line-height:
        1.52
        !important;

}


.am4-hero-actions{

    margin-top:
        29px
        !important;

}


.am4-button{

    min-height:
        51px
        !important;

    padding:
        0 28px
        !important;

}


/*
|--------------------------------------------------------------------------
| Stronger right-side photographic treatment.
|--------------------------------------------------------------------------
*/


.am4-hero:before{

    background:

        radial-gradient(
            circle at 6% 67%,
            rgba(
                236,
                198,
                128,
                .22
            ),
            transparent 27%
        ),

        linear-gradient(
            90deg,
            rgba(
                255,
                255,
                255,
                .21
            )
            0%,

            rgba(
                255,
                255,
                255,
                .03
            )
            51%,

            rgba(
                239,
                218,
                182,
                .04
            )
            100%
        )
        !important;

}


/*
|--------------------------------------------------------------------------
| Vehicle hero
|--------------------------------------------------------------------------
*/


.am4-hero-vehicle{

    right:
        16%
        !important;

    bottom:
        25px
        !important;

    width:
        490px
        !important;

    height:
        225px
        !important;

    border-radius:
        38px
        !important;

    background:
        #eef1f3;

}


.am4-hero-vehicle img{

    object-fit:
        cover
        !important;

}


/* ========================================================= */
/* FLOATING HERO CARDS                                        */
/* ========================================================= */


.am4-floating-card{

    min-width:
        300px
        !important;

    max-width:
        325px
        !important;

    min-height:
        112px
        !important;

    padding:
        12px
        !important;

    grid-template-columns:
        103px 1fr
        !important;

    border-radius:
        17px
        !important;

}


.am4-floating-media{

    width:
        103px
        !important;

    height:
        86px
        !important;

}


.am4-floating-card strong{

    font-size:
        12px
        !important;

}


.am4-floating-card small{

    font-size:
        9.5px
        !important;

}


.am4-floating-card b{

    font-size:
        17px
        !important;

}


.am4-floating-car{

    right:
        35%
        !important;

    top:
        245px
        !important;

}


.am4-floating-property{

    right:
        0
        !important;

    top:
        95px
        !important;

}


.am4-floating-phone{

    right:
        0
        !important;

    bottom:
        87px
        !important;

}


/* ========================================================= */
/* SEARCH                                                     */
/* ========================================================= */


.am4-discovery{

    margin-top:
        -38px
        !important;

}


.am4-search-dock{

    width:
        min(
            1290px,
            calc(
                100% - 120px
            )
        )
        !important;

    min-height:
        84px
        !important;

    grid-template-columns:
        1.5fr
        .68fr
        220px
        !important;

    padding:
        11px
        !important;

    border-radius:
        25px
        !important;

}


.am4-search-dock label{

    height:
        60px
        !important;

}


.am4-search-dock button{

    height:
        62px
        !important;

}


/* ========================================================= */
/* CATEGORY DOCK                                              */
/* ========================================================= */


.am4-category-dock{

    padding:
        43px 29px 29px
        !important;

    gap:
        15px
        !important;

}


.am4-category-icon,
.am4-more-grid{

    width:
        67px
        !important;

    height:
        67px
        !important;

}


.am4-category-svg{

    width:
        31px
        !important;

    height:
        31px
        !important;

}


.am4-category-orb strong{

    font-size:
        11.5px
        !important;

}


/* ========================================================= */
/* SECTION SCALE                                              */
/* ========================================================= */


.am4-section{

    padding:
        39px 0
        !important;

}


.am4-section-header{

    margin-bottom:
        20px
        !important;

}


.am4-section-header h2{

    font-size:
        43px
        !important;

    letter-spacing:
        -2px
        !important;

}


.am4-section-header p{

    font-size:
        13px
        !important;

}


/* ========================================================= */
/* FEATURED                                                   */
/* ========================================================= */


.am4-featured-grid{

    gap:
        18px
        !important;

}


.am4-listing-card{

    border-radius:
        15px
        !important;

}


.am4-listing-media{

    height:
        220px
        !important;

}


.am4-listing-title{

    min-height:
        39px
        !important;

    font-size:
        13px
        !important;

}


.am4-card-price{

    font-size:
        20px
        !important;

}


.am4-card-location{

    font-size:
        10px
        !important;

}


.am4-card-meta{

    font-size:
        9px
        !important;

}


/* ========================================================= */
/* VEHICLE PROMO                                              */
/* ========================================================= */


.am4-drive-banner{

    min-height:
        245px
        !important;

    border-radius:
        19px
        !important;

}


.am4-drive-copy{

    width:
        545px
        !important;

    padding:
        42px 0 38px 67px
        !important;

}


.am4-drive-copy h2{

    color:
        #ffffff
        !important;

    font-size:
        48px
        !important;

    text-shadow:
        0 4px 25px
        rgba(
            0,
            0,
            0,
            .26
        );

}


.am4-drive-copy p{

    max-width:
        440px;

    color:
        #e4e9ef
        !important;

    font-size:
        13px
        !important;

}


.am4-drive-vehicle{

    right:
        18%
        !important;

    bottom:
        -8px
        !important;

    width:
        470px
        !important;

    height:
        230px
        !important;

    border-radius:
        35px
        !important;

}


.am4-drive-benefits{

    width:
        220px
        !important;

    padding:
        30px
        !important;

}


.am4-drive-benefits span{

    font-size:
        11px
        !important;

}


/* ========================================================= */
/* POPULAR CATEGORIES                                         */
/* ========================================================= */


.am4-popular-grid{

    grid-template-columns:
        repeat(
            5,
            minmax(
                0,
                1fr
            )
        )
        !important;

    gap:
        15px
        !important;

}


.am4-popular-card{

    min-height:
        160px
        !important;

    border-radius:
        14px
        !important;

}


.am4-popular-photo{

    height:
        98px
        !important;

}


.am4-popular-bottom{

    min-height:
        62px
        !important;

    padding:
        11px 13px
        !important;

}


.am4-popular-bottom strong{

    font-size:
        11px
        !important;

}


.am4-popular-bottom small{

    font-size:
        9px
        !important;

}


/* ========================================================= */
/* HOW IT WORKS                                               */
/* ========================================================= */


.am4-process{

    padding-top:
        42px
        !important;

}


.am4-process-grid{

    border-top:
        1px solid
        #f1eee8;

}


.am4-process-grid article{

    min-height:
        124px
        !important;

    padding:
        21px 37px 21px 0
        !important;

    grid-template-columns:
        62px 56px 1fr
        !important;

    gap:
        16px
        !important;

}


.am4-step-number{

    width:
        55px
        !important;

    height:
        55px
        !important;

    font-size:
        18px
        !important;

}


.am4-step-icon{

    font-size:
        39px
        !important;

}


.am4-process-grid strong{

    font-size:
        12px
        !important;

}


.am4-process-grid p{

    max-width:
        190px;

    font-size:
        10px
        !important;

    line-height:
        1.55
        !important;

}


.am4-step-arrow{

    top:
        48px
        !important;

    font-size:
        29px
        !important;

}


/* ========================================================= */
/* APP BANNER                                                 */
/* ========================================================= */


.am4-app-banner{

    min-height:
        285px
        !important;

}


.am4-app-copy{

    width:
        440px
        !important;

    padding:
        42px 0 34px 48px
        !important;

}


.am4-app-copy h2{

    font-size:
        39px
        !important;

}


.am4-app-copy p{

    font-size:
        12px
        !important;

}


.am4-phone-stage{

    left:
        50%
        !important;

    width:
        410px
        !important;

    height:
        345px
        !important;

}


.am4-phone{

    width:
        178px
        !important;

    height:
        345px
        !important;

}


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


@media(max-width:1200px){

    .am-marketly-home .am-container,
    .am-marketly-home .am-header-inner{

        width:
            calc(
                100% - 40px
            )
            !important;

    }


    .am4-search-dock{

        width:
            calc(
                100% - 70px
            )
            !important;

    }


    .am4-hero h1{

        font-size:
            63px
            !important;

    }


    .am4-floating-phone{

        display:none
        !important;

    }


    .am4-featured-grid{

        grid-template-columns:
            repeat(
                4,
                1fr
            )
            !important;

    }


    .am4-featured-grid
    .am4-listing-card:nth-child(5){

        display:none;

    }

}


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


@media(max-width:900px){

    .am4-hero{

        min-height:
            690px
            !important;

    }


    .am4-hero-inner{

        min-height:
            690px
            !important;

        padding-top:
            114px
            !important;

    }


    .am4-search-dock{

        width:
            100%
            !important;

        grid-template-columns:
            1fr
            !important;

    }


    .am4-featured-grid{

        grid-template-columns:
            repeat(
                2,
                1fr
            )
            !important;

    }


    .am4-featured-grid
    .am4-listing-card:nth-child(5){

        display:block;

    }


    .am4-popular-grid{

        grid-template-columns:
            repeat(
                3,
                1fr
            )
            !important;

    }

}


@media(max-width:640px){

    .am-marketly-home .am-container,
    .am-marketly-home .am-header-inner{

        width:
            calc(
                100% - 22px
            )
            !important;

    }


    .am4-hero h1{

        font-size:
            clamp(
                45px,
                13vw,
                58px
            )
            !important;

        letter-spacing:
            -2px
            !important;

    }


    .am4-hero-vehicle{

        width:
            88%
            !important;

        height:
            185px
            !important;

    }


    .am4-listing-media{

        height:
            145px
            !important;

    }


    .am4-section-header h2{

        font-size:
            31px
            !important;

    }


    .am4-popular-grid{

        grid-template-columns:
            1fr 1fr
            !important;

    }


    .am4-process-grid{

        grid-template-columns:
            1fr
            !important;

    }

}
