/* HomeConnect: features of the home page and its two sister addresses
   (Explore Homes filter and cards, photo viewer, earnings estimator, swipe rows on phones).
   Loaded after the inline styles in index.html. */

/* ---------- Explore Homes: filter by place ---------- */
.hc-filter{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0 0 14px;}
.hc-fchip{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0 18px;border-radius:999px;border:1.5px solid #dfe3e8;background:#fff;color:#1A2B4A;font:600 14px/1 Inter,sans-serif;cursor:pointer;transition:background .25s ease,color .25s ease,border-color .25s ease;}
.hc-fchip span{font:600 12px/1 Inter,sans-serif;color:#5f6b7c;background:#f1f3f5;border-radius:999px;padding:4px 8px;font-variant-numeric:tabular-nums;transition:background .25s ease,color .25s ease;}
.hc-fchip:hover{border-color:#2E8B7A;}
.hc-fchip[aria-pressed="true"]{background:#1A2B4A;border-color:#1A2B4A;color:#fff;}
.hc-fchip[aria-pressed="true"] span{background:rgba(255,255,255,.18);color:#fff;}
.hc-filter-status{text-align:center;font:400 14px/1.5 Inter,sans-serif;color:#5f6b7c;margin:0 0 30px;min-height:21px;}

/* ---------- Explore Homes: cards ---------- */
.hc-pcard{background:#fff;border-radius:22px;overflow:hidden;border:1px solid #eef0f2;box-shadow:0 4px 18px rgba(26,43,74,.05);display:flex;flex-direction:column;transition:opacity .8s cubic-bezier(.2,.7,.3,1),transform .6s var(--hc-ease),box-shadow .45s var(--hc-ease);}
@media (hover:hover){.hc-pcard.hc-in:hover,.hc-pcard:not(.hc-rv):hover{transform:translateY(-8px);box-shadow:0 24px 50px rgba(26,43,74,.14);}}
.hc-pcard[hidden]{display:none;}
.hc-pcard.is-hold .hc-card-media img{filter:saturate(.7) brightness(.97);}
.hc-pcard-body{padding:22px;display:flex;flex-direction:column;flex:1;}
.hc-book-row{display:flex;gap:10px;margin-top:auto;padding-top:18px;}
.hc-book{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:0 14px;border-radius:12px;font:600 14px/1 Inter,sans-serif;color:#fff;text-decoration:none;white-space:nowrap;transition:transform .3s var(--hc-ease),background .25s ease,border-color .25s ease;}
.hc-book--airbnb,.hc-book--website{background:#247066;box-shadow:0 8px 20px rgba(36,112,102,.24);}
.hc-book--airbnb:hover,.hc-book--website:hover{background:#1f5c54;}
.hc-book--booking{background:#fff;color:#1A2B4A;border:1.5px solid #d9dee4;}
.hc-book--booking:hover{border-color:#1A2B4A;}
.hc-book:hover{transform:translateY(-2px);}
.hc-book svg{flex:none;transition:transform .35s var(--hc-ease);}
.hc-book:hover svg{transform:translate(2px,-2px);}
.hc-hold-note{margin-top:auto;padding-top:18px;font:500 13.5px/1.45 Inter,sans-serif;color:#5f6b7c;}
/* cards glide to their new places when the filter changes */
::view-transition-group(*.hc-vtcard){animation-duration:.55s;animation-timing-function:cubic-bezier(.16,1,.3,1);}
::view-transition-old(*.hc-vtcard),::view-transition-new(*.hc-vtcard){animation-duration:.32s;}

/* ---------- Photo viewer ---------- */
#hc-lightbox .hc-lb-stage img{touch-action:pan-y pinch-zoom;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;cursor:grab;}
#hc-lightbox .hc-lb-stage img:active{cursor:grabbing;}
#hc-lightbox .hc-lb-dots{display:flex;gap:7px;justify-content:center;}
#hc-lightbox .hc-lb-dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.3);transition:background .3s ease,transform .3s var(--hc-ease);}
#hc-lightbox .hc-lb-dots i.on{background:#7fd3c5;transform:scale(1.35);}
::view-transition-group(hc-shot){animation-duration:.5s;animation-timing-function:cubic-bezier(.16,1,.3,1);}
::view-transition-old(hc-shot),::view-transition-new(hc-shot){width:100%;height:100%;object-fit:cover;}

/* ---------- Earnings estimator ---------- */
.hc-est{background:#fff;border-radius:22px;padding:clamp(20px,3vw,28px);border:1px solid #ece8e0;box-shadow:0 14px 36px rgba(26,43,74,.08);margin:0 0 22px;}
.hc-est-h{font-family:'Playfair Display',serif;font-weight:700;font-size:clamp(20px,2.4vw,24px);line-height:1.2;color:#1A2B4A;margin:0 0 6px;text-wrap:balance;}
.hc-est-sub{font:400 14.5px/1.55 Inter,sans-serif;color:#5a6678;margin:0 0 18px;}
.hc-est-presets{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px;}
.hc-est-presets button{min-height:40px;padding:0 14px;border-radius:999px;border:1.5px solid #dfe3e8;background:#fff;color:#1A2B4A;font:600 13px/1 Inter,sans-serif;cursor:pointer;transition:background .25s ease,color .25s ease,border-color .25s ease;}
.hc-est-presets button:hover{border-color:#2E8B7A;}
.hc-est-presets button[aria-pressed="true"]{background:#e3f4f0;border-color:#2E8B7A;color:#1f5c54;}
.hc-est-field{margin:0 0 14px;}
.hc-est-field label{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font:600 13.5px/1.3 Inter,sans-serif;color:#3f4a5a;}
.hc-est-field output{font:700 15px/1 Inter,sans-serif;color:#1A2B4A;font-variant-numeric:lining-nums tabular-nums;}
.hc-range{-webkit-appearance:none;appearance:none;display:block;width:100%;height:44px;margin:0;background:transparent;cursor:pointer;}
.hc-range::-webkit-slider-runnable-track{height:6px;border-radius:6px;background:linear-gradient(90deg,#2E8B7A var(--p,50%),#e3e7ec var(--p,50%));}
.hc-range::-moz-range-track{height:6px;border-radius:6px;background:#e3e7ec;}
.hc-range::-moz-range-progress{height:6px;border-radius:6px;background:#2E8B7A;}
.hc-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:26px;height:26px;margin-top:-10px;border-radius:50%;background:#fff;border:2px solid #247066;box-shadow:0 3px 10px rgba(26,43,74,.25);transition:transform .2s var(--hc-ease),box-shadow .2s ease;}
.hc-range::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:#fff;border:2px solid #247066;box-shadow:0 3px 10px rgba(26,43,74,.25);}
.hc-range:active::-webkit-slider-thumb{transform:scale(1.12);box-shadow:0 0 0 9px rgba(46,139,122,.16);}
.hc-range:focus-visible{outline:none;box-shadow:none;}
.hc-range:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px #fff,0 0 0 6px #1f5c54;}
.hc-range:focus-visible::-moz-range-thumb{box-shadow:0 0 0 3px #fff,0 0 0 6px #1f5c54;}
.hc-est-pk{border:0;padding:0;margin:4px 0 20px;min-width:0;}
.hc-est-pk legend{padding:0;margin:0 0 8px;font:600 13.5px/1.3 Inter,sans-serif;color:#3f4a5a;}
.hc-est-pk-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.hc-est-pk label{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:54px;padding:8px 6px;border-radius:13px;border:1.5px solid #dfe3e8;background:#fff;text-align:center;font:600 13px/1.2 Inter,sans-serif;color:#1A2B4A;cursor:pointer;transition:background .25s ease,border-color .25s ease,color .25s ease;}
.hc-est-pk label small{font:500 12px/1 Inter,sans-serif;color:#5f6b7c;font-variant-numeric:tabular-nums;}
.hc-est-pk input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer;}
.hc-est-pk label:has(input:checked){background:#1A2B4A;border-color:#1A2B4A;color:#fff;}
.hc-est-pk label:has(input:checked) small{color:#c9d4e2;}
.hc-est-pk label:has(input:focus-visible){outline:3px solid #1f5c54;outline-offset:2px;}
.hc-est-result{background:#F5F2ED;border-radius:18px;padding:20px;}
.hc-est-k{font:600 13.5px/1 Inter,sans-serif;color:#3f4a5a;margin:0 0 8px;}
.hc-est-v{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font:700 clamp(27px,3.6vw,36px)/1.05 Inter,sans-serif;letter-spacing:-.01em;color:#1A2B4A;font-variant-numeric:lining-nums tabular-nums;}
.hc-est-v small{font:500 14px/1 Inter,sans-serif;color:#5a6678;letter-spacing:0;white-space:nowrap;}
.hc-est-usd{font:500 14px/1.4 Inter,sans-serif;color:#5a6678;margin:6px 0 16px;font-variant-numeric:lining-nums tabular-nums;}
/* One bar, three shares, 2px gaps. The two split points are registered properties, so the
   bar repaints smoothly when they change and nothing on the page has to move. */
@property --hc-a{syntax:'<percentage>';inherits:false;initial-value:74.8%;}
@property --hc-b{syntax:'<percentage>';inherits:false;initial-value:84.5%;}
.hc-est-split{--hc-a:74.8%;--hc-b:84.5%;height:14px;margin:0 0 14px;border-radius:7px;transition:--hc-a .6s var(--hc-ease),--hc-b .6s var(--hc-ease);
  background:linear-gradient(90deg,#2E8B7A 0 var(--hc-a),#F5F2ED var(--hc-a) calc(var(--hc-a) + 2px),#1A2B4A calc(var(--hc-a) + 2px) var(--hc-b),#F5F2ED var(--hc-b) calc(var(--hc-b) + 2px),#9aa7b8 calc(var(--hc-b) + 2px) 100%);}
.hc-est .s-you{background:#2E8B7A;}
.hc-est .s-hc{background:#1A2B4A;}
.hc-est .s-pf{background:#9aa7b8;}
.hc-est-lines{margin:0;display:grid;gap:8px;}
.hc-est-lines div{display:flex;justify-content:space-between;align-items:baseline;gap:14px;}
.hc-est-lines dt{display:flex;align-items:center;gap:8px;font:400 13.5px/1.35 Inter,sans-serif;color:#3f4a5a;}
.hc-est-lines dt i{flex:none;width:10px;height:10px;border-radius:3px;}
.hc-est-lines dd{margin:0;font:600 13.5px/1.35 Inter,sans-serif;color:#1A2B4A;white-space:nowrap;font-variant-numeric:lining-nums tabular-nums;}
.hc-est-lines .tot{border-top:1px solid #e3ddd2;padding-top:9px;margin-top:2px;}
.hc-est-allin{font:500 13px/1.5 Inter,sans-serif;color:#1f5c54;margin:12px 0 0;}
.hc-est .hc-illus-note{margin:16px 0 4px;}
.hc-est-fx{font:400 12px/1.5 Inter,sans-serif;color:#5f6b7c;margin:0;}
.hc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}

/* ---------- Swipe rows on phones: testimonials and the team ---------- */
.hc-dots{display:none;}
@media(max-width:700px){
  .hc-swipe{display:flex !important;gap:14px !important;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin-left:calc(-1 * clamp(20px,5vw,40px)) !important;margin-right:calc(-1 * clamp(20px,5vw,40px)) !important;padding:4px clamp(20px,5vw,40px) 6px;scroll-padding-left:clamp(20px,5vw,40px);}
  .hc-swipe::-webkit-scrollbar{display:none;}
  .hc-swipe{margin-bottom:0 !important;}
  .hc-swipe > *{flex:0 0 84%;scroll-snap-align:start;opacity:1 !important;transform:none !important;}
  .hc-swipe--team > *{flex-basis:72%;}
  .hc-dots{display:flex;justify-content:center;gap:4px;margin:8px 0 34px;}
  .hc-dots button{width:24px;height:24px;padding:0;border:0;background:none;display:flex;align-items:center;justify-content:center;cursor:pointer;}
  .hc-dots button::before{content:"";width:7px;height:7px;border-radius:50%;background:#c9d0d8;transition:background .3s ease,transform .3s var(--hc-ease);}
  .hc-dots button[aria-current="true"]::before{background:#2E8B7A;transform:scale(1.4);}
  .hc-dots--dark button::before{background:rgba(255,255,255,.28);}
  .hc-dots--dark button[aria-current="true"]::before{background:#7fd3c5;}
  .hc-dots:last-child{margin-bottom:0;}
}

@media (prefers-reduced-motion: reduce){
  .hc-pcard,.hc-book,.hc-book svg,.hc-est-split,.hc-fchip,.hc-fchip span{transition:none;}
  .hc-swipe{scroll-behavior:auto;}
}
