/* One home, one surface: photograph, facts, then the next step.
   Density target: price + specs on one line, address on the next, one action row.
   Photo controls ride on the image instead of claiming a row of their own. */
.home-card{display:flex;flex-direction:column;background:#fff;border:1px solid #d8e1ee;border-radius:12px;overflow:hidden;isolation:isolate;box-shadow:0 4px 14px #10234208;transition:border-color .2s,box-shadow .2s;min-width:0}
.home-card:hover{border-color:#afc3dd;box-shadow:0 10px 24px #10234210}
.home-card::after{display:none!important}
.home-card .card-media{position:relative;overflow:hidden;background:#edf2f8}
.home-card .card-image{aspect-ratio:1.5!important;border:0;border-radius:0!important;background:none;padding:0;touch-action:pan-y pinch-zoom;width:100%;overflow:hidden;display:block}
.card-listing-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}
.card-listing-photo[hidden],.card-photo-unavailable[hidden]{display:none}
.home-card .card-image:after{pointer-events:none;background:none;box-shadow:none}
.card-photo-unavailable{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:#526680;font-size:.875rem;text-align:center;padding:0 12px}
.card-photo-unavailable small{font-size:.75rem;color:#6b7d95}
.home-card .card-category{top:10px;left:10px;display:flex;align-items:center;gap:6px;background:#fffffff2;color:#142847;border:1px solid #ffffff70;backdrop-filter:blur(12px);padding:5px 9px;border-radius:6px;font-size:.75rem;max-width:calc(100% - 68px)}
.card-category>span{width:6px;height:6px;background:#1b6b55;border-radius:50%;flex-shrink:0}
.home-card .card-save{width:36px;height:36px;right:10px;top:10px;background:#fffffff2;border:1px solid #ffffff70;color:#102443;z-index:2}
.home-card .card-save[aria-pressed=true]{color:#164ff0;background:#fff}
.home-card .card-save[aria-pressed=true] .card-icon{fill:#164ff01a}
.card-icon{width:18px;height:18px;flex-shrink:0;display:inline-block;vertical-align:middle}

/* Controls sit over the photograph, revealed on hover, always reachable by keyboard. */
.home-card .card-photo-controls{position:absolute;left:8px;right:8px;bottom:8px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0;background:none;border:0;pointer-events:none;z-index:2}
.home-card .card-photo-controls button{pointer-events:auto;width:30px;height:30px;min-width:30px;display:flex;align-items:center;justify-content:center;background:#10203099;border:0;color:#fff;border-radius:50%;opacity:0;transition:opacity .15s}
.home-card .card-photo-controls button[hidden]{display:none}
.home-card:hover .card-photo-controls button,.home-card:focus-within .card-photo-controls button{opacity:1}
.home-card .card-photo-controls .card-photo-count{width:auto;min-width:0;border-radius:20px;gap:6px;padding:4px 10px;font-size:.75rem;font-variant-numeric:tabular-nums;margin:auto;opacity:1;background:#102030a6}
.home-card .card-photo-controls .card-photo-count .card-icon{width:14px;height:14px}
.home-card .card-photo-controls .card-photo-count[hidden]{display:none}
.card-photo-progress{display:none}
.card-photo-progress>span{display:block;height:100%;background:#fff;min-width:12px;transition:width .2s}

/* Copy block: two dense lines, then the small print. */
.home-card .card-copy{display:block;padding:12px 14px 10px;flex:1}
.home-card .card-headline{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:0 0 3px}
.home-card .card-price{font-size:1.3rem;line-height:1.15;color:#102342;font-weight:700;letter-spacing:-.5px}
.home-card .card-specs{font-size:.9375rem;color:#2b3d56;line-height:1.3;font-variant-numeric:tabular-nums}
.card-specs b{font-weight:600}
.card-specs i{font-style:normal;color:#b3bfcf;padding:0 1px}
.home-card .card-title{display:block;width:100%;font-size:.9375rem;line-height:1.35;color:#37485f;font-weight:400;letter-spacing:0;overflow-wrap:anywhere;margin:0 0 4px;padding:0;text-align:left;min-height:0;background:none;border:0;box-shadow:none;border-radius:0;font-family:inherit}
.home-card .card-title:hover{text-decoration:underline;text-underline-offset:3px}
.home-card .card-place{color:#37485f}
.home-card .card-extra-facts{font-size:.75rem;color:#62728a;margin:0 0 3px;line-height:1.5}
.home-card .card-attribution{font-size:.6875rem;line-height:1.5;color:#8593a6;overflow-wrap:anywhere;margin:0;text-transform:uppercase;letter-spacing:.2px}
.card-attribution p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-attribution p:nth-child(n+3){display:none}

/* One action row carries the estimate, compare and the planner. */
.home-card .card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:8px 14px;background:#f6f9fd;border-top:1px solid #e6ecf4;min-height:44px}
.home-card .card-actions button{font-size:.8125rem;padding:0;color:#294463;text-align:left;line-height:1.4;min-height:32px;display:flex;align-items:center;gap:5px;background:none;border:0}
.home-card .card-cost{white-space:nowrap;color:#123159}
.home-card .card-cost strong{font-size:.9375rem;font-weight:700}
.home-card .card-cost small{font-size:.6875rem;color:#6b7d95;margin-left:2px}
.home-card .card-actions-end{display:flex;align-items:center;gap:14px;flex-shrink:0}
.home-card .card-actions-end button[aria-pressed=true]{color:#164ff0}
.home-card .card-actions-end .card-icon{width:15px;height:15px}
.home-card .card-plan{color:#1552dc}
.home-card .possible-card-note{margin:0;padding:7px 14px;background:#f6f9fd;border-top:1px solid #e6ecf4;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px}
.home-card .possible-card-note .readiness{background:none;color:#526780;font-size:.6875rem;padding:0}
.home-card .possible-card-note button{font-size:.75rem;min-height:28px;line-height:1.4;text-align:right}
.home-card button:focus-visible{outline:3px solid #1b58f0;outline-offset:2px}.home-card .card-image:focus-visible{outline-offset:-4px}
.home-card button:disabled{opacity:.55;cursor:progress}
.discovery-grid,.with-map .discovery-grid{align-items:stretch}
@media(hover:hover){.home-card .card-image:hover .card-listing-photo{transform:scale(1.025)}}
@media(min-width:751px) and (max-width:1150px){.discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.with-map .discovery-grid{grid-template-columns:1fr}}
@media(max-width:750px){.discovery-grid,.with-map .discovery-grid{gap:18px}.home-card .card-image{aspect-ratio:1.4!important}.home-card .card-copy{padding:12px 13px 10px}.home-card .card-actions,.home-card .possible-card-note{padding-left:13px;padding-right:13px}.home-card .card-price{font-size:1.25rem}.home-card .card-photo-controls button{opacity:1}}
@media(prefers-reduced-motion:reduce){.home-card,.card-listing-photo,.card-photo-progress>span{transition:none}}
