/**
 * Zameen-style horizontal property cards — mobile only.
 * Scoped with .re-pwa-property-listing-root (wrapper in properties.blade.php).
 */

@media (max-width: 767.98px) {
    .re-pwa-property-listing-root .re-mz-card .archive-top {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch;
        gap: 0;
        border-bottom: 0;
    }

    .re-pwa-property-listing-root .re-mz-card:not(.list-style-1) .images-group {
        width: 34%;
        max-width: 132px;
        min-width: 112px;
        flex-shrink: 0;
        align-self: stretch;
        border-radius: 8px 0 0 8px;
        overflow: hidden;
    }

    .re-pwa-property-listing-root .re-mz-card:not(.list-style-1) .images-style img {
        aspect-ratio: 1 / 1;
        width: 100%;
        height: 100% !important;
        min-height: 112px;
        object-fit: cover;
    }

    .re-pwa-property-listing-root .re-mz-card.list-style-1 {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .re-pwa-property-listing-root .re-mz-card.list-style-1 .images-group {
        width: 34%;
        max-width: 132px;
        min-width: 112px;
        flex-shrink: 0;
        border-radius: 8px 0 0 8px;
        overflow: hidden;
    }

    .re-pwa-property-listing-root .re-mz-card.list-style-1 .images-style,
    .re-pwa-property-listing-root .re-mz-card.list-style-1 .images-style img {
        height: 100%;
        min-height: 120px;
    }

    .re-pwa-property-listing-root .re-mz-card.list-style-1 .content {
        flex: 1;
        min-width: 0;
        padding: 10px 12px 12px !important;
        border: 0;
        display: flex;
        flex-direction: column;
    }

    .re-pwa-property-listing-root .re-mz-card.list-style-1 .content .archive-top {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: 0;
    }

    .re-pwa-property-listing-root .re-mz-card.list-style-1 .content .archive-bottom {
        display: none !important;
    }

    .re-pwa-property-listing-root .re-mz-card .content {
        flex: 1;
        min-width: 0;
        padding: 10px 12px 12px !important;
        border-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    .re-pwa-property-listing-root .re-mz-card .images-group {
        position: relative;
    }

    .re-pwa-property-listing-root .re-mz-card .images-group .top {
        left: 6px;
        right: 6px;
        top: 6px;
        flex-wrap: nowrap;
        align-items: flex-start;
        z-index: 4;
    }

    .re-pwa-property-listing-root .re-mz-card .images-group .top .d-flex.gap-4 {
        margin-left: auto;
    }

    .re-pwa-property-listing-root .re-mz-image-overlays {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 2;
    }

    .re-pwa-property-listing-root .re-mz-image-overlays .re-mz-top-badge {
        position: absolute;
        top: 6px;
        left: 6px;
        max-width: calc(100% - 44px);
    }

    .re-pwa-property-listing-root .re-mz-pill {
        display: inline-block;
        padding: 3px 7px;
        border-radius: 3px;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.02em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .re-pwa-property-listing-root .re-mz-pill--hot {
        background: #e53935;
        color: #fff;
    }

    .re-pwa-property-listing-root .re-mz-pill--muted {
        background: rgba(15, 23, 42, 0.75);
        color: #fff;
    }

    .re-pwa-property-listing-root .re-mz-media {
        position: absolute;
        left: 6px;
        bottom: 6px;
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
    }

    .re-pwa-property-listing-root .re-mz-media-pill {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        padding: 2px 6px;
        border-radius: 4px;
        background: rgba(15, 23, 42, 0.82);
        color: #fff;
        font-size: 10px;
        font-weight: 600;
    }

    .re-pwa-property-listing-root .re-mz-media-pill .icon {
        width: 12px;
        height: 12px;
    }

    .re-pwa-property-listing-root .re-mz-price {
        font-size: 15px;
        font-weight: 800;
        line-height: 1.25;
        color: #111827;
        margin-bottom: 4px;
    }

    .re-pwa-property-listing-root .re-mz-card .content .h7,
    .re-pwa-property-listing-root .re-mz-card .content h5 {
        font-size: 13px !important;
        line-height: 1.35 !important;
        font-weight: 700 !important;
        margin-bottom: 2px;
    }

    .re-pwa-property-listing-root .re-mz-card .content .desc {
        margin-top: 2px;
    }

    .re-pwa-property-listing-root .re-mz-card .content .desc p {
        font-size: 12px !important;
        line-height: 1.35 !important;
        color: #6b7280;
    }

    .re-pwa-property-listing-root .re-mz-card .meta-list {
        margin-top: 6px !important;
        column-gap: 12px !important;
        row-gap: 4px !important;
    }

    .re-pwa-property-listing-root .re-mz-card .meta-list .item {
        gap: 4px;
    }

    .re-pwa-property-listing-root .re-mz-card .meta-list .item .icon {
        font-size: 16px !important;
    }

    .re-pwa-property-listing-root .re-mz-card .meta-list .item span {
        font-size: 12px !important;
        font-weight: 600 !important;
    }

    .re-pwa-property-listing-root .re-mz-added {
        margin-top: 6px;
        font-size: 11px;
        color: #9ca3af;
    }

    .re-pwa-property-listing-root .re-mz-actions {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
        margin-top: 8px;
    }

    .re-pwa-property-listing-root .re-mz-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 0 6px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 700;
        text-decoration: none;
        border: 1px solid #22c55e;
        background: #fff;
        color: #16a34a;
        text-align: center;
    }

    .re-pwa-property-listing-root .re-mz-btn--solid {
        background: #22c55e;
        color: #fff;
        border-color: #22c55e;
    }

    .re-pwa-property-listing-root .re-mz-btn--outline {
        background: #fff;
        color: #16a34a;
    }

    .re-pwa-property-listing-root .re-mz-btn--wa {
        padding: 0;
        font-size: 18px;
    }

    .re-pwa-property-listing-root .re-mz-btn--disabled {
        opacity: 0.45;
        pointer-events: none;
    }

    .re-pwa-property-listing-root .re-mz-card .archive-bottom.re-mz-desktop-only {
        display: none !important;
    }

    .re-pwa-property-listing-root .flat-recommended-v2 .row {
        --bs-gutter-y: 0.65rem;
    }

    .re-pwa-property-listing-root .box-title-listing {
        margin-bottom: 12px;
    }

    .re-pwa-property-listing-root .flat-map #map {
        display: none !important;
    }

    .re-pwa-property-listing-root .flat-map {
        padding-top: 12px;
        padding-bottom: 8px;
    }

    .re-pwa-property-listing-root .wrapper-layout.layout-2 .wrap-right {
        display: none !important;
    }

    .re-pwa-property-listing-root .wrapper-layout.layout-2 .wrap-left {
        width: 100% !important;
        max-width: 100% !important;
    }

    .re-pwa-property-listing-root .flat-sidebar .flat-recommended .row > .col-xl-4,
    .re-pwa-property-listing-root .flat-sidebar .flat-recommended .row > .col-lg-5 {
        display: none !important;
    }

    .re-pwa-property-listing-root .flat-sidebar .flat-recommended .row > .col-xl-8,
    .re-pwa-property-listing-root .flat-sidebar .flat-recommended .row > .col-lg-7 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 768px) {
    .re-pwa-property-listing-root .re-mz-image-overlays,
    .re-pwa-property-listing-root .re-mz-price.re-mz-price,
    .re-pwa-property-listing-root .re-mz-added.re-mz-added,
    .re-pwa-property-listing-root .re-mz-actions.re-mz-actions {
        display: none !important;
    }
}
