/* ══════════════════════════════════════════════════════════════════════════
   Property Cards — Zillow-style
   Reference: https://www.zillow.com/siloam-springs-ar/apartments/
   Target markup (from item-grid.blade.php restructure):
     .property-item.homeya-box.property-card-compact
       > a.images-group (image + .top badges + heart + .bottom category)
       > .content.property-card-content
         > .property-card-price
         > ul.meta-list.property-card-features
         > .property-card-address
         > .property-card-title   (hidden)
         > .property-card-agent   (hidden)
   ══════════════════════════════════════════════════════════════════════════ */

/* Grid gutter — a touch tighter than default */
.property-cards-row {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 20px;
}
.property-cards-row > .col {
    display: flex;
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    margin-bottom: var(--bs-gutter-y);
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.property-item.homeya-box.property-card-compact {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
    padding: 0 !important;
    margin: 0 !important;
}
.property-item.homeya-box.property-card-compact:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: none;
}

/* ── Image ──────────────────────────────────────────────────────────────── */
.property-item.homeya-box .images-group {
    position: relative;
    display: block !important;
    width: 100%;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    flex-shrink: 0;
}
.property-item.homeya-box .images-style {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
}
.property-item.homeya-box .images-style img,
.property-item.homeya-box .images-style .property-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.property-item.homeya-box:hover .images-style img {
    transform: scale(1.03);
}

/* ── Top overlay: badges (left) + wishlist (right) ─────────────────────── */
.property-item.homeya-box .images-group .top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 5;
    pointer-events: none;
}
.property-item.homeya-box .images-group .top > div {
    pointer-events: auto;
}
.property-item.homeya-box .images-group .top > div:first-child {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Badge 1: dark semi-transparent chip ("16 days ago" style) */
.property-item.homeya-box .flag-tag.success {
    display: inline-block;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.72) !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    border: none !important;
}

/* Badge 2: blue pill ("Apply instantly" style) */
.property-item.homeya-box .flag-tag.style-2 {
    display: inline-block;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap;
    background: #0d66d0 !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    border: none !important;
}

/* Hide category-tag overlay on the image */
.property-item.homeya-box .flag-tag.style-1,
.property-item.homeya-box .images-group .bottom {
    display: none !important;
}

/* ── Heart — 34x34 white circle with soft shadow ──────────────────────── */
.property-item.homeya-box .box-icon {
    position: relative !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.15s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18) !important;
    z-index: 5 !important;
    padding: 0 !important;
}
.property-item.homeya-box .box-icon:hover {
    transform: scale(1.08);
    background: #fff !important;
}
.property-item.homeya-box .box-icon svg,
.property-item.homeya-box .box-icon i {
    width: 20px !important;
    height: 20px !important;
    font-size: 17px !important;
    color: #2a2a33 !important;
    filter: none !important;
    stroke-width: 2 !important;
}
.property-item.homeya-box .box-icon[data-bb-toggle="add-to-wishlist"].added svg,
.property-item.homeya-box .box-icon[data-bb-toggle="add-to-wishlist"].added i {
    color: #e74c3c !important;
    fill: #e74c3c !important;
}

/* ── Content block — compact Zillow spacing ────────────────────────────── */
.property-item.homeya-box .content.property-card-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 10px 14px 12px 14px !important;
    margin: 0 !important;
    flex-shrink: 0;
    flex-grow: 0;
    background: #fff;
    border: none !important;
}

/* Price: line 1, bold, large */
.property-item.homeya-box .property-card-price {
    display: flex !important;
    align-items: baseline;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.property-item.homeya-box .property-card-price-value,
.property-item.homeya-box h6.property-card-price-value {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.3px !important;
    text-align: left !important;
}

/* Specs: line 2, pipe separated — `2 bds | 1.5 ba | 1,100 sqft | Apartment` */
.property-item.homeya-box .meta-list.property-card-features {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 !important;
    margin: 3px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    font-size: 14px;
    font-weight: 400;
    color: #2a2a33;
    line-height: 1.35;
    border: none !important;
    background: transparent !important;
}
.property-item.homeya-box .meta-list.property-card-features .item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0 8px;
    margin: 0;
    border-right: 1px solid #d0d0d0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}
.property-item.homeya-box .meta-list.property-card-features .item:first-child {
    padding-left: 0;
}
.property-item.homeya-box .meta-list.property-card-features .item:last-child {
    border-right: none;
    padding-right: 0;
}
.property-item.homeya-box .meta-list.property-card-features .item i,
.property-item.homeya-box .meta-list.property-card-features .item .icon {
    display: none !important;
}
.property-item.homeya-box .meta-list.property-card-features .item span {
    font-weight: 700;
    color: #000;
}
.property-item.homeya-box .meta-list.property-card-features .item small {
    font-size: 14px;
    color: #2a2a33;
    font-weight: 400;
    line-height: inherit;
}
.property-item.homeya-box .meta-list.property-card-features .item.item-type {
    color: #54575b;
    font-weight: 400;
}

/* Address: line 3, gray, truncated to one line */
.property-item.homeya-box .property-card-address,
.property-item.homeya-box .desc.property-card-address {
    display: flex !important;
    align-items: center;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #54575b !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    background: transparent !important;
    border: none !important;
}
.property-item.homeya-box .property-card-address i,
.property-item.homeya-box .property-card-address .icon {
    display: none !important;
}
.property-item.homeya-box .property-card-address p {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Hide title + agent — Zillow card doesn't show either */
.property-item.homeya-box .property-card-title,
.property-item.homeya-box .h7.property-card-title,
.property-item.homeya-box .property-card-agent {
    display: none !important;
}

/* h6 default margin reset */
.property-item.homeya-box h6 {
    margin: 0;
}

/* Disable any leftover archive-bottom styling if theme CSS re-adds one */
.property-item.homeya-box .archive-bottom,
.property-item.homeya-box .property-card-footer {
    display: none !important;
}

/* ── Filter vs. listings split on desktop (top-map layout uses col-xl-3/9) ─ */
/* No custom overrides needed — default bootstrap cols work fine with our cards. */

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .property-item.homeya-box .content.property-card-content {
        padding: 10px 12px 10px 12px !important;
    }
    .property-item.homeya-box .property-card-price-value {
        font-size: 20px !important;
    }
    .property-item.homeya-box .meta-list.property-card-features,
    .property-item.homeya-box .meta-list.property-card-features .item small {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .property-cards-row {
        --bs-gutter-x: 12px;
    }
}

@media (max-width: 767px) {
    .property-item.homeya-box .content.property-card-content {
        padding: 10px !important;
    }
    .property-item.homeya-box .property-card-price-value {
        font-size: 18px !important;
    }
    .property-item.homeya-box .property-card-address {
        font-size: 12px !important;
    }
    .property-item.homeya-box .meta-list.property-card-features,
    .property-item.homeya-box .meta-list.property-card-features .item small {
        font-size: 12px;
    }
    .property-item.homeya-box .images-group .top {
        top: 8px;
        left: 8px;
        right: 8px;
    }
    .property-item.homeya-box .box-icon {
        width: 30px !important;
        height: 30px !important;
    }
    .property-item.homeya-box .box-icon svg,
    .property-item.homeya-box .box-icon i {
        width: 18px !important;
        height: 18px !important;
        font-size: 15px !important;
    }
    .property-item.homeya-box .flag-tag.success,
    .property-item.homeya-box .flag-tag.style-2 {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 575px) {
    .property-item.homeya-box.property-card-compact {
        border-radius: 10px;
    }
}
