/* Shared property cards for the home pages and catalogues. */

:is(.home-page .properties,.catalogue-page) .cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;align-items:stretch}
:is(.home-page .properties,.catalogue-page) .home-property-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--border);border-radius:22px;overflow:hidden;box-shadow:0 8px 25px #0c283206;transition:box-shadow .2s,border-color .2s,transform .2s}
:is(.home-page .properties,.catalogue-page) .home-property-card:hover{border-color:#cc583c66;box-shadow:0 16px 35px #0c283213;transform:translateY(-3px)}
:is(.home-page .properties,.catalogue-page) .home-property-card .card-image{height:auto;aspect-ratio:4/3;border-radius:0}
.home-property-card .tag{top:16px;left:16px;max-width:calc(100% - 86px);border-radius:30px;background:var(--navy);color:#fff;font-size:10px;letter-spacing:.4px;padding:9px 13px;line-height:1.4}
.home-property-card .tag-medium{background:var(--orange-action)}
.home-property-card .favorite{width:42px;height:42px;top:13px;right:13px;display:grid;place-items:center;background:#fff;color:var(--navy);box-shadow:0 3px 12px #0002}
.home-property-card .favorite[aria-pressed=true]{background:var(--orange-action);color:#fff}
:is(.home-page .properties,.catalogue-page) .home-property-card .card-info{display:flex;flex-direction:column;flex:1;padding:24px}
.home-property-card .card-location{display:flex;align-items:center;gap:6px;color:var(--orange-action);font-size:12px;letter-spacing:0;min-height:0;margin-bottom:10px}
.home-property-card .card-location .lna-icon{width:15px;height:15px}
:is(.home-page .properties,.catalogue-page) .home-property-card h3{font-size:20px;line-height:1.4;max-width:100%;margin:0 0 9px;min-height:0}
.home-property-card .card-info p.home-card-type{font-size:11px;line-height:1.7;margin:0 0 17px;max-width:100%;overflow-wrap:anywhere}
.home-card-features{display:flex;flex-wrap:wrap;gap:10px 16px;padding-bottom:18px;color:var(--navy)}
.home-card-features>span{display:inline-flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap}
.home-card-features .lna-icon{width:18px;height:18px;color:var(--muted)}
.home-property-card .card-info .home-card-period{background:var(--surface);border-radius:10px;padding:12px;margin:0 0 18px;max-width:100%;line-height:1.7;font-size:11px}
.home-property-card .home-card-period strong{font-size:12px;padding:0;display:block}
.home-card-period>span{display:block;color:var(--muted)}
.home-card-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:7px}
.home-property-card .home-card-price strong{font-size:25px;font-weight:600;letter-spacing:-.7px;padding:0;line-height:1.3}
.home-card-price>span{font-size:11px;color:var(--muted)}
.home-card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--border);padding-top:16px;margin-top:20px}
.home-property-card .compare-toggle{margin:0;padding:11px 14px;font-size:11px;min-height:42px}
.home-card-discover{display:inline-flex;align-items:center;gap:10px;font-size:12px;color:var(--navy);min-height:42px}
.home-card-discover .lna-icon{width:19px;height:19px;color:var(--orange-action)}
.home-card-discover:hover{text-decoration:underline;text-decoration-color:var(--orange-action);text-underline-offset:5px}
@media(max-width:1100px){:is(.home-page .properties,.catalogue-page) .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}}
@media(max-width:600px){:is(.home-page .properties,.catalogue-page) .cards{grid-template-columns:1fr;gap:22px}:is(.home-page .properties,.catalogue-page) .home-property-card .card-info{padding:21px}:is(.home-page .properties,.catalogue-page) .home-property-card .card-image{aspect-ratio:1.45}:is(.home-page .properties,.catalogue-page) .home-property-card h3{font-size:20px}.home-property-card .favorite{width:44px;height:44px}.home-card-features>span{font-size:12px}.home-property-card .compare-toggle,.home-card-discover{min-height:44px}}
@media(prefers-reduced-motion:reduce){:is(.home-page .properties,.catalogue-page) .home-property-card{transition:none}:is(.home-page .properties,.catalogue-page) .home-property-card:hover{transform:none}}

/* Keep split map results readable alongside the map. */
.catalogue-page .with-map .catalogue-cards{grid-template-columns:1fr}
@media(min-width:1600px){.catalogue-page .with-map .catalogue-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.catalogue-page .with-map .card-info{padding:20px}.catalogue-page .with-map .home-property-card h3{font-size:18px}}
@media(max-width:760px) and (min-width:601px){.catalogue-page .with-map .catalogue-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.catalogue-page .with-map .card-info{padding:18px}}
