/* hx-sides-v3: majority 3 green sides, a few 4/5/6. Remaining sides muted gray.
   Same thumbnail hexagon used on cards, neighbourhood lists and profile overlays. */
.hx-stack .hx-inner-on{display:none!important}
.hx-stack .hx-six{display:inline}
.hx-stack .hx-six line{stroke:#c9c4b8;stroke-width:1.5;stroke-linecap:round;stroke-opacity:.9}
.hx-stack.hx-g3 .hx-six line:nth-child(-n+3),
.hx-stack.hx-g4 .hx-six line:nth-child(-n+4),
.hx-stack.hx-g5 .hx-six line:nth-child(-n+5),
.hx-stack.hx-g6 .hx-six line{stroke:#1f9d55}

html body .ivl.ivl--score,
html body .tile-photo .ivl,
html body .card-photo .ivl,
html body .photo-overlay .ivl,
html body .agent-page .profile .ivl,
html body .profile-photo .ivl,
html body .profile .photo-overlay .ivl,
html body.home .grid .card-photo .ivl,
html body.page-list .grid .card-photo .ivl,
html body .city-tile .ivl,
html body .city-tile .ivl.ivl--score{
  --hxw:66px;
  box-sizing:border-box !important;
  width:var(--hxw) !important;
  height:calc(var(--hxw)*70/64) !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:0 !important;
  text-align:center !important;
  border:0 !important;
  border-radius:0 !important;
  background-color:transparent !important;
  background-image:url("/ivl-hex-3.svg") !important;
  background-position:center !important;
  background-size:100% 100% !important;
  background-repeat:no-repeat !important;
  box-shadow:none !important;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.42));
  pointer-events:none;
  color:#0e1a2b !important;
  z-index:7;
}
html body .ivl.hx-g4,html body .ivl.ivl--score.hx-g4{background-image:url("/ivl-hex-4.svg") !important}
html body .ivl.hx-g5,html body .ivl.ivl--score.hx-g5{background-image:url("/ivl-hex-5.svg") !important}
html body .ivl.hx-g6,html body .ivl.ivl--score.hx-g6{background-image:url("/ivl-hex-6.svg") !important}

html body .photo-overlay .ivl,
html body .profile-photo .ivl,
html body .agent-page .profile .ivl{
  --hxw:80px;
  position:absolute !important;
  top:auto !important;
  left:auto !important;
  right:.5rem !important;
  bottom:.55rem !important;
}
html body .ivl.ivl--score,
html body .tile-photo .ivl,
html body .card-photo .ivl,
html body .city-tile .ivl{
  position:absolute !important;
  top:auto !important;
  left:auto !important;
  right:.32rem !important;
  bottom:.4rem !important;
}

html body .ivl .ivl-score{
  font-family:Inter,system-ui,sans-serif !important;
  font-size:calc(var(--hxw)*.25) !important;
  font-weight:700 !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  color:#0e1a2b !important;
  margin:calc(var(--hxw)*.04) 0 0 !important;
}
html body .ivl .ivl-outof,
html body .ivl .ivl-stars,
html body .ivl .ivl-meaning{display:none !important}
html body .ivl .ivl-kicker{
  display:block !important;
  font-family:Inter,system-ui,sans-serif !important;
  font-size:calc(var(--hxw)*.11) !important;
  font-weight:700 !important;
  letter-spacing:.08em !important;
  line-height:1 !important;
  margin:calc(var(--hxw)*.03) 0 0 !important;
  color:#7a5a1e !important;
  text-transform:uppercase !important;
  max-width:5.6em;
  overflow:hidden;
}
html body .city-tile .tile-body,
html body .photo-overlay{padding-right:4.6rem}

/* Overlay city tiles / neighbourhood cards: hex sits on the photo, at the gradient (inside overflow:hidden). */
html body .city-tile .hx-stack,
html body .home-minis .city-tile .hx-stack,
html body .city-tiles .city-tile .hx-stack,
html body .tre-agents-grid .tre-agent-card .hx-stack{
  position:absolute;
  top:auto;
  right:.32rem;
  bottom:3.35rem;
  z-index:7;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1px;
  pointer-events:none;
  margin:0;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.45));
  transform:none;
  min-width:66.13px;
}
html body .city-tile .hx-stack .hxs,
html body .home-minis .city-tile .hx-stack .hxs,
html body .city-tiles .city-tile .hx-stack .hxs,
html body .tre-agents-grid .tre-agent-card .hx-stack .hxs{
  width:66.17px;
  height:72.47px;
  display:block;
}
@media (min-width:761px){
  html body .city-tile .hx-stack,
  html body .home-minis .city-tile .hx-stack,
  html body .city-tiles .city-tile .hx-stack,
  html body .tre-agents-grid .tre-agent-card .hx-stack{
    right:.48rem;
    bottom:4.1rem;
    min-width:85.1px;
  }
  html body .city-tile .hx-stack .hxs,
  html body .home-minis .city-tile .hx-stack .hxs,
  html body .city-tiles .city-tile .hx-stack .hxs,
  html body .tre-agents-grid .tre-agent-card .hx-stack .hxs{
    width:85.08px;
    height:92.95px;
  }
}

/* Profile portraits: same hanging hex as listing cards (overflow visible). */
html body .photo-overlay .hx-stack,
html body .profile-photo .hx-stack,
html body .agent-page .profile .hx-stack{
  position:absolute;
  top:auto;
  right:.5rem;
  bottom:-1.66rem;
  z-index:7;
  display:flex;
  flex-direction:column;
  align-items:center;
  pointer-events:none;
  margin:0;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.45));
  min-width:66.13px;
}
html body .photo-overlay .hx-stack .hxs,
html body .profile-photo .hx-stack .hxs,
html body .agent-page .profile .hx-stack .hxs{
  width:66.17px;height:72.47px;display:block;
}
@media (min-width:761px){
  html body .photo-overlay .hx-stack,
  html body .profile-photo .hx-stack,
  html body .agent-page .profile .hx-stack{
    right:.6rem;bottom:-2.06rem;min-width:85.1px;
  }
  html body .photo-overlay .hx-stack .hxs,
  html body .profile-photo .hx-stack .hxs,
  html body .agent-page .profile .hx-stack .hxs{
    width:85.08px;height:92.95px;
  }
}

html body .profile-photo{position:relative !important;overflow:visible !important;}
html body .profile-photo > .hx-stack,
html body .agent-page .profile-photo > .hx-stack{
  position:absolute !important;
  top:auto !important;
  left:auto !important;
  right:.5rem !important;
  bottom:-1.66rem !important;
  z-index:7;
  display:flex;
  flex-direction:column;
  align-items:center;
  pointer-events:none;
  margin:0;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.45));
  min-width:66.13px;
}
html body .profile-photo > .hx-stack .hxs{
  width:66.17px;height:72.47px;display:block;
}
@media (min-width:761px){
  html body .profile-photo > .hx-stack,
  html body .agent-page .profile-photo > .hx-stack{
    right:.6rem !important;bottom:-2.06rem !important;min-width:85.1px;
  }
  html body .profile-photo > .hx-stack .hxs{width:85.08px;height:92.95px;}
}
