/* ===========================================================================
   ESTATEMAN — homepage theme
   Loaded on the homepage only (HomeController passes pageCss), and every rule
   is scoped to body.is-home, so no other page changes.
   ======================================================================== */

.is-home{--hm-blue:#0B63CE;--hm-blue-deep:#0A4FA6;--hm-soft:#F5F8FC;--hm-radius:18px;
  --hm-shadow:0 18px 50px -24px rgba(10,27,42,.28);--hm-shadow-hover:0 26px 60px -22px rgba(10,27,42,.38)}
.is-home main{background:#fff}

/* ------------------------------------------------------------------ hero -- */
.is-home .hm-hero{background:#fff;padding-bottom:0}
.is-home .hm-hero .slider{aspect-ratio:auto;height:clamp(480px,66vh,660px);padding-bottom:0}
.is-home .hm-hero .slide::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgba(5,16,28,.82) 0%,rgba(5,16,28,.55) 38%,rgba(5,16,28,.12) 72%,rgba(5,16,28,0) 100%),
             linear-gradient(0deg,rgba(5,16,28,.55) 0%,rgba(5,16,28,0) 40%)}
.is-home .hm-hero .slide-copy{z-index:2;max-width:min(60%,760px);padding:0 clamp(24px,7vw,120px) 110px;justify-content:center;
  background:none}
.is-home .hm-hero .slide-copy.right{margin-left:0}
.is-home .hm-hero .slide-copy h2{font-size:clamp(2.1rem,4.3vw,3.7rem);line-height:1.06;letter-spacing:-.025em;margin-bottom:16px;
  text-shadow:0 4px 30px rgba(0,0,0,.35)}
.is-home .hm-hero .slide-copy>p:not(.slide-price){display:-webkit-box;font-size:clamp(.98rem,1.25vw,1.15rem);color:#DCE7F0;
  max-width:52ch;margin-bottom:24px;-webkit-line-clamp:3}
.is-home .hm-hero .slide-cta{gap:12px}
.is-home .hm-hero .slide-cta .btn{padding:14px 26px;font-size:.98rem;border-radius:12px}
.is-home .hm-hero .slide-cta .btn-mint{background:var(--hm-blue);color:#fff;border-color:var(--hm-blue)}
.is-home .hm-hero .slide-cta .btn-mint:hover{background:var(--hm-blue-deep)}
.is-home .hm-hero .slide-cta .btn-ghost{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.55);color:#fff;
  backdrop-filter:blur(4px)}
.is-home .hm-hero .slide-cta .btn-ghost:hover{background:rgba(255,255,255,.22)}
.is-home .hm-hero .slider-dots{bottom:120px;left:clamp(24px,7vw,120px);right:auto;transform:none;justify-content:flex-start}
.is-home .hm-hero .slider-arrow{z-index:3;top:auto;bottom:112px;width:46px;height:46px;background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.35);backdrop-filter:blur(4px)}
.is-home .hm-hero .slider-arrow.prev{left:auto;right:calc(clamp(24px,7vw,120px) + 56px)}
.is-home .hm-hero .slider-arrow.next{right:clamp(24px,7vw,120px)}
.is-home .hm-hero .slider-progress{display:none}

/* search card, overlapping the banner */
.is-home .hm-search{margin-top:-84px;padding:20px 22px 22px;border-radius:20px;box-shadow:0 30px 70px -30px rgba(5,16,28,.45);
  border:1px solid rgba(220,229,236,.7)}
.is-home .hm-search-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 2px 16px;flex-wrap:wrap}
.is-home .hm-search-title{margin:0;font-family:var(--f-display);font-weight:800;font-size:1.2rem;color:var(--navy)}
.is-home .hm-tabs{display:flex;gap:6px;background:var(--hm-soft);padding:5px;border-radius:999px}
.is-home .hm-tab{border:0;background:transparent;padding:8px 18px;border-radius:999px;font:inherit;font-weight:700;font-size:.88rem;
  color:var(--ink-soft);cursor:pointer;transition:background .15s,color .15s}
.is-home .hm-tab:hover{color:var(--navy)}
.is-home .hm-tab.on{background:var(--hm-blue);color:#fff;box-shadow:0 6px 16px -6px rgba(11,99,206,.6)}
.is-home .hm-search .field label{margin-left:4px;text-transform:uppercase;letter-spacing:.04em;font-size:.68rem}
.is-home .hm-search .field input,.is-home .hm-search .field select{height:52px;background:var(--hm-soft);border-color:transparent;border-radius:12px}
.is-home .hm-search .field input:focus,.is-home .hm-search .field select:focus{outline:none;border-color:var(--hm-blue);background:#fff;
  box-shadow:0 0 0 4px rgba(11,99,206,.12)}
.is-home .hm-search-btn{height:52px !important;padding:0 28px;border-radius:12px;background:var(--hm-blue);border-color:var(--hm-blue);
  display:inline-flex;align-items:center;gap:8px;font-size:1rem}
.is-home .hm-search-btn:hover{background:var(--hm-blue-deep)}

/* --------------------------------------------------------------- sections -- */
.is-home .hm-section{padding:clamp(56px,7vw,96px) 0}
.is-home .hm-tint{background:var(--hm-soft)}
.is-home .hm-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:clamp(24px,3vw,38px);flex-wrap:wrap}
.is-home .hm-head.center{justify-content:center;text-align:center}
.is-home .hm-head.center p{margin-inline:auto}
.is-home .hm-eyebrow{display:inline-flex;align-items:center;gap:8px;margin:0 0 10px;color:var(--hm-blue);font-weight:800;
  font-size:.78rem;text-transform:uppercase;letter-spacing:.12em}
.is-home .hm-eyebrow::before{content:"";width:22px;height:2px;background:currentColor;border-radius:2px}
.is-home .hm-head.center .hm-eyebrow::after{content:"";width:22px;height:2px;background:currentColor;border-radius:2px}
.is-home .hm-head h2{margin:0;font-size:clamp(1.7rem,2.9vw,2.5rem);letter-spacing:-.02em;line-height:1.12;color:var(--navy)}
.is-home .hm-head p:not(.hm-eyebrow){margin:10px 0 0;color:var(--ink-soft);max-width:58ch;font-size:1.02rem}
.is-home .hm-link{display:inline-flex;align-items:center;gap:6px;font-weight:800;color:var(--hm-blue);padding:10px 0;white-space:nowrap}
.is-home .hm-link span{transition:transform .2s}
.is-home .hm-link:hover{text-decoration:none;color:var(--hm-blue-deep)}
.is-home .hm-link:hover span{transform:translateX(4px)}

/* ------------------------------------------------------- property types -- */
.is-home .hm-types{padding-top:clamp(56px,6vw,84px)}
.is-home .hm-typegrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.is-home .hm-type{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:26px 14px 22px;background:#fff;
  border:1px solid var(--line);border-radius:var(--hm-radius);color:var(--navy);transition:transform .2s,box-shadow .2s,border-color .2s}
.is-home .hm-type:hover{text-decoration:none;transform:translateY(-4px);box-shadow:var(--hm-shadow);border-color:rgba(11,99,206,.35)}
.is-home .hm-type-ic{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;background:#EAF2FD;color:var(--hm-blue);
  margin-bottom:8px;transition:background .2s,color .2s}
.is-home .hm-type:hover .hm-type-ic{background:var(--hm-blue);color:#fff}
.is-home .hm-type b{font-size:.98rem}
.is-home .hm-type small{color:var(--ink-soft);font-size:.82rem}

/* ------------------------------------------------------------ video row -- */
.is-home .em-home-videos{padding-bottom:clamp(56px,7vw,96px)}
.is-home .em-vthumb{border-radius:var(--hm-radius);border-color:transparent;box-shadow:0 10px 30px -20px rgba(10,27,42,.35)}
.is-home .em-vthumb:hover{box-shadow:var(--hm-shadow-hover);transform:translateY(-4px)}
.is-home .em-vthumb-img{aspect-ratio:4/3}
.is-home .em-vthumb-play{width:56px;height:56px;background:var(--hm-blue);color:#fff;box-shadow:0 0 0 8px rgba(255,255,255,.28)}
.is-home .em-vthumb-text{padding:14px 16px 16px}
.is-home .em-vthumb-text b{font-size:.98rem}

/* ------------------------------------------------------- listing cards -- */
.is-home .grid-listings{gap:24px}
.is-home .pcard,.is-home .estatecard{border-radius:var(--hm-radius);border-color:#E6EDF3;box-shadow:0 10px 30px -22px rgba(10,27,42,.3);
  transition:transform .25s,box-shadow .25s}
.is-home .pcard:hover,.is-home .estatecard:hover{transform:translateY(-5px);box-shadow:var(--hm-shadow-hover)}
.is-home .pcard .media,.is-home .estatecard .media{overflow:hidden}
.is-home .pcard .media img,.is-home .estatecard .media img{transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.is-home .pcard:hover .media img,.is-home .estatecard:hover .media img{transform:scale(1.06)}
.is-home .pcard .body{padding:18px 18px 20px}
.is-home .pcard .price{color:var(--hm-blue);font-size:1.25rem}
.is-home .pcard h3 a{color:var(--navy)}
.is-home .pcard .badge{background:linear-gradient(90deg,#E8B33A,#F6D06B);color:#3A2A02;box-shadow:0 4px 12px -4px rgba(0,0,0,.25)}
.is-home .viewmore{margin-top:40px}
.is-home .viewmore .btn{padding:14px 30px;border-radius:12px;background:var(--hm-blue);border-color:var(--hm-blue)}
.is-home .viewmore .btn:hover{background:var(--hm-blue-deep)}

/* ------------------------------------------------------ popular places -- */
.is-home .hm-locs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.is-home .hm-loc{position:relative;display:block;aspect-ratio:16/10;border-radius:var(--hm-radius);overflow:hidden;background:var(--navy);color:#fff}
.is-home .hm-loc img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.is-home .hm-loc::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,16,28,.82) 0%,rgba(5,16,28,.15) 55%,rgba(5,16,28,0) 100%)}
.is-home .hm-loc:hover{text-decoration:none}
.is-home .hm-loc:hover img{transform:scale(1.07)}
.is-home .hm-loc-txt{position:absolute;left:20px;right:20px;bottom:18px;z-index:1}
.is-home .hm-loc-txt b{display:block;font-family:var(--f-display);font-size:1.3rem;line-height:1.2}
.is-home .hm-loc-txt small{display:inline-block;margin-top:6px;font-size:.82rem;font-weight:700;background:rgba(255,255,255,.18);
  backdrop-filter:blur(4px);padding:4px 10px;border-radius:999px}

/* --------------------------------------------------------- call to action -- */
.is-home .hm-cta-wrap{padding-top:clamp(20px,3vw,40px)}
.is-home .hm-cta{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap;
  padding:clamp(32px,5vw,60px) clamp(26px,5vw,64px);border-radius:24px;color:#fff;
  background:linear-gradient(120deg,var(--hm-blue) 0%,#0A3F86 60%,#0A2747 100%)}
.is-home .hm-cta::before,.is-home .hm-cta::after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.08);pointer-events:none}
.is-home .hm-cta::before{width:340px;height:340px;right:-80px;top:-150px}
.is-home .hm-cta::after{width:220px;height:220px;left:-60px;bottom:-120px}
.is-home .hm-cta>div{position:relative;z-index:1}
.is-home .hm-cta h2{color:#fff;margin:0 0 10px;font-size:clamp(1.6rem,2.8vw,2.3rem);letter-spacing:-.02em}
.is-home .hm-cta p{margin:0;color:#D5E4F7;max-width:56ch;font-size:1.02rem}
.is-home .hm-cta-btns{display:flex;gap:12px;flex-wrap:wrap}
.is-home .hm-cta-main{background:#fff;color:var(--hm-blue);border-color:#fff;padding:14px 26px;border-radius:12px;font-weight:800}
.is-home .hm-cta-main:hover{background:#EAF2FD;color:var(--hm-blue-deep)}
.is-home .hm-cta-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.6);padding:14px 22px;border-radius:12px;font-weight:700}
.is-home .hm-cta-ghost:hover{background:rgba(255,255,255,.12);color:#fff}

/* ------------------------------------------------------------ responsive -- */
@media (max-width:1100px){
  .is-home .hm-typegrid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .is-home .hm-hero .slide-copy{max-width:78%}
}
@media (max-width:900px){
  .is-home .hm-locs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .is-home .hm-search-head{flex-direction:column;align-items:flex-start}
}
@media (max-width:640px){
  .is-home .hm-hero .slider{aspect-ratio:auto;height:440px}
  .is-home .hm-hero .slide::before{background:linear-gradient(0deg,rgba(5,16,28,.9) 0%,rgba(5,16,28,.55) 45%,rgba(5,16,28,.15) 100%)}
  .is-home .hm-hero .slide-copy,.is-home .hm-hero .slide-copy.right{inset:0;max-width:100%;padding:0 18px 92px;justify-content:flex-end;background:none}
  .is-home .hm-hero .slide-copy h2{font-size:1.75rem;-webkit-line-clamp:3}
  .is-home .hm-hero .slide-copy>p:not(.slide-price){display:none}
  .is-home .hm-hero .slide-cta .btn{padding:11px 16px;font-size:.86rem}
  .is-home .hm-hero .slider-dots{bottom:64px;left:18px}
  .is-home .hm-search{margin-top:-46px;padding:16px 14px 16px;border-radius:18px}
  .is-home .hm-search-title{font-size:1.05rem}
  .is-home .hm-tabs{width:100%;overflow-x:auto;scrollbar-width:none}
  .is-home .hm-tabs::-webkit-scrollbar{display:none}
  .is-home .hm-tab{flex:1 0 auto;padding:8px 13px;font-size:.82rem}
  .is-home .hm-search .field input,.is-home .hm-search .field select{height:46px}
  .is-home .hm-search-btn{height:48px !important;justify-content:center}
  .is-home .hm-section{padding:44px 0}
  .is-home .hm-head{margin-bottom:20px;gap:6px}
  .is-home .hm-head h2{font-size:1.55rem}
  .is-home .hm-head p:not(.hm-eyebrow){font-size:.92rem}
  .is-home .hm-typegrid{gap:10px}
  .is-home .hm-type{padding:16px 6px 14px;border-radius:14px}
  .is-home .hm-type-ic{width:44px;height:44px;border-radius:12px;margin-bottom:4px}
  .is-home .hm-type-ic svg{width:22px;height:22px}
  .is-home .hm-type b{font-size:.8rem;line-height:1.25}
  .is-home .hm-type small{font-size:.7rem}
  .is-home .grid-listings{gap:10px}
  .is-home .pcard .body{padding:9px 9px 11px}
  .is-home .pcard .price{font-size:.95rem}
  .is-home .hm-locs{gap:10px}
  .is-home .hm-loc{border-radius:14px;aspect-ratio:1/1}
  .is-home .hm-loc-txt{left:10px;right:10px;bottom:10px}
  .is-home .hm-loc-txt b{font-size:.95rem}
  .is-home .hm-loc-txt small{font-size:.66rem;padding:3px 7px}
  .is-home .em-vthumb-play{width:40px;height:40px;box-shadow:0 0 0 5px rgba(255,255,255,.28)}
  .is-home .hm-cta{border-radius:18px;padding:28px 20px}
  .is-home .hm-cta-btns{width:100%}
  .is-home .hm-cta-btns .btn{flex:1 1 100%;justify-content:center;text-align:center}
}

/* Tighter join between "Explore by property type" and "Property videos" */
.is-home .hm-types{padding-bottom:clamp(24px,3vw,36px)}
.is-home .hm-types + .em-home-videos{padding-top:clamp(28px,3.5vw,44px)}
@media (max-width:640px){
  .is-home .hm-types{padding-bottom:20px}
  .is-home .hm-types + .em-home-videos{padding-top:26px}
}
