/*
|--------------------------------------------------------------------------
| BUYSELL GH — MARKETLY V4.5
|--------------------------------------------------------------------------
|
| REFERENCE FIDELITY
|
| Frozen:
| - 1360px desktop master width
| - floating sticky header
| - minimum readable type = 12px
|
*/


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

.am4-hero{
    min-height:575px !important;
    background-position:center 52% !important;
}

.am4-hero-inner{
    min-height:575px !important;
    padding-top:54px !important;
}

.am4-hero:before{
    background:
        linear-gradient(
            90deg,
            rgba(255,253,248,1) 0%,
            rgba(255,252,245,.96) 24%,
            rgba(255,249,237,.58) 45%,
            rgba(246,227,190,.11) 68%,
            rgba(219,184,119,.04) 100%
        )
        !important;
}

.am4-hero-city-glow{
    width:620px !important;
    height:360px !important;
    right:9% !important;
    bottom:-80px !important;
    background:rgba(238,205,145,.30) !important;
}


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

.am4-hero-vehicle{
    right:14% !important;
    bottom:18px !important;
    width:465px !important;
    height:225px !important;
    overflow:visible !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;

    filter:
        drop-shadow(
            0 22px 24px
            rgba(25,27,28,.18)
        );
}

.am4-hero-vehicle img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:34px;

    -webkit-mask-image:
        radial-gradient(
            ellipse 78% 76%
            at 50% 52%,
            #000 49%,
            rgba(0,0,0,.96) 59%,
            transparent 88%
        );

    mask-image:
        radial-gradient(
            ellipse 78% 76%
            at 50% 52%,
            #000 49%,
            rgba(0,0,0,.96) 59%,
            transparent 88%
        );
}


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

.am4-floating-card{
    min-width:276px !important;
    max-width:292px !important;
    min-height:99px !important;
    padding:10px !important;

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

    border-radius:15px !important;
}

.am4-floating-media{
    width:88px !important;
    height:77px !important;
}

.am4-floating-card strong{
    font-size:12.5px !important;
}

.am4-floating-card small{
    font-size:12px !important;
}

.am4-floating-car{
    right:35% !important;
    top:174px !important;
}

.am4-floating-property{
    right:6px !important;
    top:65px !important;
}

.am4-floating-phone{
    right:7px !important;
    bottom:59px !important;
}


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

.am4-search-dock{
    width:
        min(
            1140px,
            calc(100% - 150px)
        )
        !important;

    min-height:80px !important;
    border-radius:24px !important;
}

.am45-search-svg,
.am45-location-svg,
.am45-search-button-svg{
    width:22px;
    height:22px;
    flex:0 0 auto;
    display:inline-grid;
    place-items:center;
}

.am45-search-svg svg,
.am45-location-svg svg,
.am45-search-button-svg svg{
    width:100%;
    height:100%;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.am45-location-svg{
    width:18px;
    height:18px;
    color:#b17a27;
}


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

.am4-category-dock{
    grid-template-columns:
        repeat(
            10,
            minmax(0,1fr)
        )
        !important;

    padding:
        41px 24px 27px
        !important;
}

.am4-category-icon{
    width:62px !important;
    height:62px !important;
}

.am45-dock-svg{
    width:29px;
    height:29px;

    fill:none;
    stroke:currentColor;

    stroke-width:1.75;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.am4-category-orb strong{
    font-size:12px !important;
}


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

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

    gap:14px !important;
}

.am4-listing-card{
    border-radius:14px !important;
}

.am4-listing-media{
    height:205px !important;
}

.am4-card-location{
    align-items:center;
}

.am45-pin-small{
    width:15px;
    height:15px;

    display:inline-grid;
    place-items:center;

    color:#b17a27;
}

.am45-pin-small svg{
    width:100%;
    height:100%;

    fill:none;
    stroke:currentColor;

    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.am4-card-meta{
    justify-content:flex-start !important;
    gap:8px !important;
}

.am4-card-meta span{
    position:relative;
}

.am4-card-meta span + span:before{
    content:"•";
    margin-right:8px;
    color:#b4b8bf;
}


/* ========================================================= */
/* DRIVE BANNER                                               */
/* ========================================================= */

.am4-drive-banner{
    min-height:230px !important;
    background-position:center 52% !important;
}

.am4-drive-banner:before{
    background:
        linear-gradient(
            90deg,
            rgba(4,18,34,.98) 0%,
            rgba(5,24,44,.91) 37%,
            rgba(5,24,44,.50) 63%,
            rgba(4,18,34,.81) 100%
        )
        !important;
}

.am45-drive-atmosphere{
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;

    background:
        radial-gradient(
            circle at 65% 86%,
            rgba(224,179,91,.23),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            rgba(7,29,51,.06),
            rgba(4,17,30,.24)
        );
}

.am4-drive-copy{
    z-index:5 !important;
}

.am4-drive-vehicle{
    z-index:4 !important;

    right:19% !important;
    bottom:-3px !important;

    width:410px !important;
    height:212px !important;

    overflow:visible !important;
    box-shadow:none !important;
}

.am4-drive-vehicle img{
    width:100%;
    height:100%;
    object-fit:cover;

    border-radius:28px;

    -webkit-mask-image:
        radial-gradient(
            ellipse 82% 76%
            at 50% 53%,
            #000 50%,
            rgba(0,0,0,.92) 62%,
            transparent 91%
        );

    mask-image:
        radial-gradient(
            ellipse 82% 76%
            at 50% 53%,
            #000 50%,
            rgba(0,0,0,.92) 62%,
            transparent 91%
        );
}

.am4-drive-benefits b{
    padding:6px;
}

.am4-drive-benefits b svg{
    width:17px;
    height:17px;

    fill:none;
    stroke:currentColor;

    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}


/* ========================================================= */
/* POPULAR CATEGORIES — 6 × 2                                */
/* ========================================================= */

.am45-popular-grid{
    grid-template-columns:
        repeat(
            6,
            minmax(0,1fr)
        )
        !important;

    gap:12px !important;
}

.am45-popular-grid
.am4-popular-card{
    min-height:147px !important;
}

.am45-popular-grid
.am4-popular-photo{
    height:88px !important;
}

.am45-popular-grid
.am4-popular-bottom{
    min-height:59px !important;
    padding:9px 10px !important;
}

.am45-popular-grid
.am4-popular-bottom strong{
    font-size:12px !important;
}

.am45-popular-grid
.am4-popular-bottom small{
    font-size:12px !important;
}

.am45-popular-more{
    min-height:147px !important;
}


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

.am4-process-grid article{
    min-height:125px !important;

    grid-template-columns:
        52px 58px 1fr
        !important;
}

.am4-step-number{
    width:48px !important;
    height:48px !important;
}

.am4-step-icon{
    width:52px;
    height:52px;

    display:grid;
    place-items:center;

    color:#10203a;

    font-size:initial !important;
}

.am4-step-icon svg{
    width:34px;
    height:34px;

    fill:none;
    stroke:currentColor;

    stroke-width:1.65;
    stroke-linecap:round;
    stroke-linejoin:round;
}


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

.am4-app-banner{
    min-height:315px !important;
}

.am4-phone-stage{
    width:430px !important;
    height:375px !important;
}

.am4-phone{
    width:188px !important;
    height:365px !important;
}


/* ========================================================= */
/* 12PX MINIMUM READABLE TEXT                                 */
/* ========================================================= */

.am-marketly-home
.am4-floating-card small,

.am-marketly-home
.am4-floating-card strong,

.am-marketly-home
.am4-category-orb strong,

.am-marketly-home
.am4-card-badge,

.am-marketly-home
.am4-card-location,

.am-marketly-home
.am4-card-meta,

.am-marketly-home
.am4-popular-bottom strong,

.am-marketly-home
.am4-popular-bottom small,

.am-marketly-home
.am4-process-grid strong,

.am-marketly-home
.am4-process-grid p,

.am-marketly-home
.am4-app-copy p,

.am-marketly-home
.am4-app-benefits span{

    font-size:12px !important;
}


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

@media(max-width:1180px){

    .am4-category-dock{
        overflow-x:auto;

        grid-template-columns:
            repeat(
                10,
                100px
            )
            !important;
    }

    .am45-popular-grid{
        grid-template-columns:
            repeat(
                4,
                1fr
            )
            !important;
    }

}


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

@media(max-width:900px){

    .am45-popular-grid{
        grid-template-columns:
            repeat(
                3,
                1fr
            )
            !important;
    }

}


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

@media(max-width:640px){

    .am45-popular-grid{
        grid-template-columns:
            repeat(
                2,
                1fr
            )
            !important;
    }

    .am4-floating-card{
        display:none !important;
    }

    .am4-listing-media{
        height:150px !important;
    }

    .am4-card-meta{
        font-size:12px !important;
    }

}
