/* /homes — listing page. Loaded after terrace.css; uses its tokens only. */

.homes-hero{background:radial-gradient(ellipse 60% 90% at 100% 0%,rgba(47,107,255,.5) 0%,rgba(47,107,255,0) 70%),var(--dark);color:var(--on-dark);border-radius:var(--r-lg);margin:14px auto 0;max-width:calc(var(--max) + 52px);padding:84px 0 92px}
.homes-hero .kicker-pill{display:inline-flex;align-items:center;gap:8px;background:rgba(244,247,251,.12);color:var(--on-dark);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:7px 12px;border-radius:999px}
.dot{width:7px;height:7px;border-radius:50%;background:var(--mint);flex:0 0 auto}
.homes-hero h1{font-size:clamp(40px,5.2vw,68px);line-height:1.04;letter-spacing:-.025em;color:var(--on-dark);max-width:13em;margin-top:22px}
.homes-hero h1 em{font-style:normal;color:var(--mint)}
.homes-hero .lede{font-size:19px;color:var(--on-dark-2);max-width:32em;margin-top:22px}

.hsearch{margin-top:34px;background:var(--white);border-radius:16px;padding:10px;display:flex;align-items:stretch;gap:4px;max-width:900px;box-shadow:0 18px 40px -16px rgba(0,0,0,.45)}
.hsearch .f{flex:1;padding:8px 18px;border-right:1px solid var(--hair);display:flex;flex-direction:column;justify-content:center}
.hsearch .f:last-of-type{border-right:0}
.hsearch label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:3px}
.hsearch select{font:inherit;font-size:16px;color:var(--text);background:transparent;border:0;padding:4px 0;min-height:32px;cursor:pointer}
.hsearch .f select{border:0;box-shadow:none;background:transparent;padding:4px 0;margin:0;height:auto;width:100%;border-radius:0}
.hsearch select:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:4px}
.hsearch .btn{margin-left:6px;white-space:nowrap}

.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{font:inherit;font-size:14px;font-weight:600;min-height:44px;padding:0 18px;border-radius:999px;border:0;background:var(--white);color:var(--text);box-shadow:inset 0 0 0 1.5px rgba(11,27,43,.14);cursor:pointer;transition:background .15s,color .15s}
.chip:hover{box-shadow:inset 0 0 0 1.5px rgba(11,27,43,.32)}
.chip[aria-pressed="true"]{background:var(--dark);color:var(--on-dark);box-shadow:none}
.chip:disabled{opacity:.45;cursor:default}
.chip:focus-visible{outline:3px solid var(--blue);outline-offset:2px}

.homes-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:40px}
.homes-head h2{font-size:32px;letter-spacing:-.02em;max-width:none}
.homes-head .count{font-size:15px;color:var(--muted)}

/* cards: extends terrace.css .home */
.homes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:24px}
.homes-grid .homes{display:contents}
.home{border:0;border-radius:var(--r-lg);box-shadow:0 1px 2px rgba(11,27,43,.05),0 10px 28px -12px rgba(11,27,43,.14);display:flex;flex-direction:column}
.home[hidden]{display:none}
.home .ph-img{flex-direction:column;gap:6px;background:repeating-linear-gradient(135deg,var(--wash) 0 14px,#EDF2FC 14px 28px);font-weight:600}
.home .ph-img b{font-size:17px;color:var(--text)}
.home picture img,.home > img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--r-lg) var(--r-lg) 0 0}
.home .in{padding:22px 24px 24px;display:flex;flex-direction:column;flex:1}
.home .tag{align-self:flex-start;display:inline-flex;align-items:center;gap:7px;background:var(--dark);color:var(--on-dark);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:6px 11px;border-radius:999px;margin-bottom:12px}
.home .tag.soon .dot{background:var(--flag)}
.home .cta{margin-top:auto;padding-top:18px}
/* The whole card is the Zillow link: one <a> per card, its ::after stretched over the card.
   The renter-profile card is an <aside> without .linked, so its form stays clickable. */
.home.linked{position:relative;transition:transform .15s ease,box-shadow .15s ease}
.home.linked .cta a.apply::after{content:"";position:absolute;inset:0;border-radius:inherit}
/* .btn:hover sets a transform and a filter; either makes the button the box its ::after is
   sized against, shrinking the click area back to the button mid-hover. The card carries the
   hover look instead. */
.home.linked .cta a.apply:hover{transform:none;filter:none}
.home.linked:hover .cta a.apply{background:var(--blue)}
.home.linked .cta a.apply{transition:none}
.home.linked:hover{transform:translateY(-2px);box-shadow:0 1px 2px rgba(11,27,43,.06),0 16px 34px -12px rgba(11,27,43,.22)}
.home.linked:focus-within{outline:3px solid var(--blue);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.home.linked{transition:none}.home.linked:hover{transform:none}}
.home .price{font-size:22px;font-weight:700;color:var(--text);margin-top:10px}
.home .price b{font-weight:800}
.home .desc{font-size:15px;line-height:1.55;color:var(--muted);margin-top:10px}

.homes-empty{margin-top:24px;padding:28px;border-radius:var(--r-md);background:var(--ground);color:var(--muted)}

/* renter profile card */
.home.renter-card{background:radial-gradient(ellipse 90% 70% at 100% 0%,rgba(47,107,255,.45) 0%,rgba(47,107,255,0) 70%),var(--dark);color:var(--on-dark);padding:30px 28px;gap:16px}
.renter-card .tag{background:rgba(63,217,160,.16);color:var(--mint);margin-bottom:0}
.renter-card h2{font-size:25px;line-height:1.12;letter-spacing:-.02em;color:var(--on-dark);max-width:none}
.renter-card p{font-size:15px;line-height:1.55;color:var(--on-dark-2)}
.renter-card form{display:flex;flex-direction:column;gap:10px;margin-top:auto}
.renter-card label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;color:var(--on-dark-2)}
.renter-card input,.renter-card select{font:inherit;font-size:16px;color:var(--text);background:var(--white);border:0;border-radius:var(--r-sm);padding:11px 13px;min-height:44px;box-sizing:border-box;width:100%}
.renter-card input:focus-visible,.renter-card select:focus-visible{outline:3px solid var(--mint);outline-offset:2px}
.renter-card .btn{background:var(--mint);color:var(--dark);box-shadow:none;width:100%}
.renter-card .formnotice{font-size:12.5px;color:var(--on-dark-3)}
.renter-card .formnotice a{color:var(--on-dark-2)}
.renter-card .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

@media(max-width:1000px){
  .homes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .homes-hero{border-radius:0 0 var(--r-lg) var(--r-lg);margin-top:0;padding:56px 0 64px}
  .hsearch{flex-direction:column;padding:8px}
  .hsearch .f{border-right:0;border-bottom:1px solid var(--hair);padding:10px 12px}
  .hsearch .btn{margin:6px 0 0}
  .homes-grid{grid-template-columns:1fr}
}
