
/* ==========================================================
   ANYTHING MARKETPLACE — AUSTRALIA STATS
   FINAL CLEAN DESKTOP LAYOUT

   LEFT CARD:
   Intro + Total Listings / Daily Visits

   CENTRE:
   Australia map

   RIGHT CARD:
   Sold / Funding + Dealers / Coverage
========================================================== */

@media (min-width: 1024px) {

    /* ======================================================
       OUTER SECTION — NO CARD / NO BACKGROUND
    ====================================================== */

    .am-home-stats {
        display: block !important;

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

        margin: 28px auto 34px !important;
        padding: 0 !important;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;

        font-family: Inter, Arial, sans-serif !important;
    }


    /* ======================================================
       FIVE REAL HTML COLUMNS
    ====================================================== */

    .am-home-stats__inner {
        position: relative !important;

        display: grid !important;

        /*
         * LEFT CARD = first 39%
         * MAP       = middle 22%
         * RIGHT CARD= last 39%
         */
        grid-template-columns:
            22% 17%
            22%
            19.5% 19.5% !important;

        align-items: center !important;

        width: 100% !important;
        min-height: 210px !important;

        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;

        overflow: visible !important;
    }


    /* ======================================================
       LEFT SHADOW CARD
    ====================================================== */

    .am-home-stats__inner::before {
        content: "" !important;

        position: absolute !important;
        z-index: 0 !important;

        left: 0 !important;
        top: 12px !important;
        bottom: 12px !important;

        width: 39% !important;

        background: #fff !important;

        border: 0 !important;
        border-radius: 20px !important;

        box-shadow:
            0 12px 34px rgba(20,40,30,.075),
            0 3px 10px rgba(20,40,30,.035) !important;
    }


    /* ======================================================
       RIGHT SHADOW CARD
    ====================================================== */

    .am-home-stats__inner::after {
        content: "" !important;

        position: absolute !important;
        z-index: 0 !important;

        right: 0 !important;
        top: 12px !important;
        bottom: 12px !important;

        width: 39% !important;

        background: #fff !important;

        border: 0 !important;
        border-radius: 20px !important;

        box-shadow:
            0 12px 34px rgba(20,40,30,.075),
            0 3px 10px rgba(20,40,30,.035) !important;
    }


    /* Keep actual content ABOVE the cards */
    .am-home-stats__inner > * {
        position: relative !important;
        z-index: 2 !important;
        box-sizing: border-box !important;
    }


    /* ======================================================
       FORCE EACH REAL CHILD INTO CORRECT COLUMN
    ====================================================== */

    /* Intro */
    .am-home-stats__inner > .am-home-stats__intro {
        grid-column: 1 !important;
    }

    /* Total + Daily */
    .am-home-stats__inner > .am-home-stats__metrics:nth-child(2) {
        grid-column: 2 !important;
    }

    /* Map */
    .am-home-stats__inner > .am-home-stats__map {
        grid-column: 3 !important;
    }

    /* Sold + Funding */
    .am-home-stats__inner > .am-home-stats__metrics:nth-child(4) {
        grid-column: 4 !important;
    }

    /* Dealers + Coverage */
    .am-home-stats__inner > .am-home-stats__metrics:nth-child(5) {
        grid-column: 5 !important;
    }


    /* ======================================================
       LEFT INTRO
    ====================================================== */

    .am-home-stats__intro {
        align-self: center !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;

        width: 100% !important;
        min-height: 175px !important;

        margin: 0 !important;

        padding:
            0
            18px
            0
            32px !important;
    }


    .am-home-stats__intro h2 {
        margin: 0 0 13px !important;

        font-size: 28px !important;
        line-height: .95 !important;
        letter-spacing: -.8px !important;

        font-weight: 900 !important;
    }


    .am-home-stats__intro h2 span {
        color: #00bd63 !important;
    }


    .am-home-stats__intro p {
        margin: 0 !important;

        font-size: 13px !important;
        line-height: 1.48 !important;
    }


    /* NO EXPLORE BUTTON */
    .am-home-stats__cta {
        display: none !important;
    }


    /* ======================================================
       ALL FOUR METRIC COLUMNS
    ====================================================== */

    .am-home-stats__metrics {
        align-self: center !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;

        width: 100% !important;
        min-width: 0 !important;

        min-height: 175px !important;

        margin: 0 !important;
        padding: 0 14px !important;

        gap: 30px !important;
    }


    /* Right-side columns get a touch more internal room */
    .am-home-stats__inner > .am-home-stats__metrics:nth-child(4) {
        padding-left: 28px !important;
        padding-right: 10px !important;
    }

    .am-home-stats__inner > .am-home-stats__metrics:nth-child(5) {
        padding-left: 18px !important;
        padding-right: 28px !important;
    }


    /* ======================================================
       INDIVIDUAL STAT
    ====================================================== */

    .am-home-stat {
        display: flex !important;
        align-items: center !important;

        width: 100% !important;
        min-width: 0 !important;

        gap: 11px !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    .am-home-stat__icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 36px !important;
        height: 36px !important;

        flex: 0 0 36px !important;

        border-radius: 9px !important;
    }


    .am-home-stat strong {
        display: block !important;

        margin: 0 0 3px !important;

        color: #08bc63 !important;

        font-size: 25px !important;
        line-height: 1 !important;
        font-weight: 800 !important;

        white-space: nowrap !important;
    }


    .am-home-stat span {
        display: block !important;

        margin: 0 !important;

        color: #111 !important;

        font-size: 10px !important;
        line-height: 1.25 !important;
        font-weight: 600 !important;

        white-space: nowrap !important;
    }


    /* ======================================================
       AUSTRALIA MAP — TRUE CENTRE
    ====================================================== */

    .am-home-stats__map {
        align-self: center !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        min-height: 210px !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;

        overflow: visible !important;
    }


    .am-home-stats__map img {
        display: block !important;

        width: 145% !important;
        max-width: 395px !important;

        height: auto !important;
        max-height: 220px !important;

        margin: 0 auto !important;

        object-fit: contain !important;

        transform: none !important;
    }

}


/* ==========================================================
   LAPTOP
========================================================== */

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

    .am-home-stats {
        width: calc(100% - 50px) !important;
    }


    .am-home-stats__inner {
        grid-template-columns:
            22% 17%
            22%
            19.5% 19.5% !important;

        min-height: 185px !important;
    }


    .am-home-stats__inner::before,
    .am-home-stats__inner::after {
        top: 10px !important;
        bottom: 10px !important;
    }


    .am-home-stats__intro,
    .am-home-stats__metrics {
        min-height: 160px !important;
    }


    .am-home-stats__intro {
        padding-left: 24px !important;
        padding-right: 12px !important;
    }


    .am-home-stats__intro h2 {
        font-size: 23px !important;
    }


    .am-home-stats__intro p {
        font-size: 11px !important;
    }


    .am-home-stats__metrics {
        padding-left: 10px !important;
        padding-right: 10px !important;

        gap: 25px !important;
    }


    .am-home-stats__inner > .am-home-stats__metrics:nth-child(4) {
        padding-left: 20px !important;
    }


    .am-home-stats__inner > .am-home-stats__metrics:nth-child(5) {
        padding-left: 12px !important;
        padding-right: 20px !important;
    }


    .am-home-stat__icon {
        width: 32px !important;
        height: 32px !important;

        flex-basis: 32px !important;
    }


    .am-home-stat strong {
        font-size: 21px !important;
    }


    .am-home-stat span {
        font-size: 9px !important;
    }


    .am-home-stats__map {
        min-height: 185px !important;
    }


    .am-home-stats__map img {
        width: 145% !important;
        max-width: 330px !important;
        max-height: 195px !important;
    }

}

