/* Mobile responsiveness fixes for Estatik property listings */
/* Added by webtiv-sync plugin */

@media (max-width: 767px) {

    /* Kill horizontal overflow from Estatik's -15px row margin */
    .es-properties {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 2 cards per row on mobile */
    .es-properties .es-listings.es-listings--grid,
    .es-properties .js-es-listings,
    .es-properties__list > .js-es-listings__wrap-inner > .es-listings {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .es-properties .properties.es-post-entity,
    .es-properties .type-properties {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
    }

    /* Card itself */
    .es-properties .es-listing {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Reduce image height on mobile so cards aren't huge */
    .es-properties .es-listing__image,
    .es-properties .es-listing__image__background {
        height: 120px !important;
        min-height: 120px !important;
    }

    /* Tighten card content */
    .es-properties .es-listing__content {
        padding: 8px !important;
    }

    .es-properties .es-listing__content__inner {
        gap: 4px !important;
    }

    /* Smaller typography inside the cards */
    .es-properties .es-listing,
    .es-properties .es-listing__price,
    .es-properties .es-listing__title {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    .es-properties .es-listing__title {
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    /* Filter bar above listings — wrap nicely */
    .es-properties .es-listings-filter,
    .es-properties__filter {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
}

/* Smaller phones */
@media (max-width: 380px) {
    .es-properties .es-listing__image,
    .es-properties .es-listing__image__background {
        height: 100px !important;
        min-height: 100px !important;
    }
}
