/* HamjaIU Studio – shared popup styles for interactive maps */
@font-face{font-family:"HSP Poppins";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/poppins-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"HSP Poppins";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/poppins-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"HSP Poppins";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/poppins-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"HSP Poppins";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/poppins-latin-700-normal.woff2) format("woff2")}

.hsp{--hsp-accent:#2f7d32;--hsp-accent2:#66bb6a;--hsp-dark:#1d5a26;--hsp-ink:#14261c;--hsp-muted:#5b6b62;--hsp-line:#e4ebe6;
  position:absolute;z-index:10000;top:0;left:0;width:304px;max-width:calc(100% - 16px);background:#fff;border-radius:18px;overflow:hidden;
  box-shadow:0 22px 46px rgba(12,30,20,.30),0 3px 10px rgba(12,30,20,.14);
  font-family:"HSP Poppins",Poppins,"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;color:var(--hsp-ink);text-align:left;line-height:1.4;
  opacity:0;visibility:hidden;pointer-events:none;transform:translateY(10px) scale(.97);
  transition:opacity .18s ease,transform .24s cubic-bezier(.2,.8,.2,1),visibility 0s linear .24s}
.hsp *{box-sizing:border-box}
.hsp.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:none;transition-delay:0s}
.hsp__media{position:relative;aspect-ratio:16/8.6;background:linear-gradient(135deg,var(--hsp-accent),var(--hsp-accent2));overflow:hidden}
.hsp__media img,.hsp__media .hsp-hero{display:block;width:100%;height:100%;object-fit:cover}
.hsp__media::after{content:"";position:absolute;left:0;right:0;bottom:0;height:48%;background:linear-gradient(to top,rgba(8,22,14,.58),rgba(8,22,14,0));pointer-events:none}
.hsp__badge{position:absolute;left:12px;bottom:11px;z-index:2;display:inline-flex;align-items:center;gap:7px;padding:5px 11px 5px 9px;border-radius:999px;background:rgba(255,255,255,.96);color:var(--hsp-ink);font-size:11.5px;font-weight:600;letter-spacing:.01em;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.hsp__badge i{width:8px;height:8px;border-radius:50%;background:var(--hsp-dot,var(--hsp-accent));flex:0 0 8px}
.hsp__close{position:absolute;top:10px;right:10px;z-index:3;width:32px;height:32px;padding:0;border-radius:50%;border:0;background:rgba(255,255,255,.96);color:var(--hsp-ink);cursor:pointer;display:grid;place-items:center;box-shadow:0 2px 8px rgba(0,0,0,.22);transition:transform .15s}
.hsp__close:hover{transform:scale(1.08)}
.hsp__close svg{width:16px;height:16px}
.hsp__body{padding:14px 16px 16px}
.hsp__title{margin:0;font-size:18px;line-height:1.25;font-weight:700;color:var(--hsp-ink);letter-spacing:-.005em}
.hsp__sub{margin:3px 0 0;font-size:12.5px;color:var(--hsp-muted)}
.hsp__chips{display:flex;flex-wrap:wrap;gap:6px;margin:11px 0 0}
.hsp__chip{display:inline-flex;align-items:center;gap:5px;padding:4px 10px 4px 8px;border-radius:999px;background:#eef5ef;background:color-mix(in srgb,var(--hsp-accent) 11%,#fff);color:var(--hsp-dark);font-size:11.5px;font-weight:600;white-space:nowrap}
.hsp__chip svg{width:13px;height:13px;flex:0 0 13px}
.hsp__text{margin:11px 0 0;font-size:13px;line-height:1.55;color:#33433a}
.hsp__list{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px}
.hsp__list li{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;line-height:1.4;color:#33433a}
.hsp__list svg{flex:0 0 16px;width:16px;height:16px;margin-top:1px;color:var(--hsp-accent)}
.hsp__stats{display:grid;grid-template-columns:repeat(var(--hsp-cols,2),1fr);gap:8px;margin:12px 0 0}
.hsp__stat{padding:8px 10px;border-radius:12px;background:#f4f8f5;border:1px solid var(--hsp-line)}
.hsp__stat b{display:block;font-size:14px;font-weight:700;color:var(--hsp-ink);line-height:1.2}
.hsp__stat span{display:block;margin-top:2px;font-size:10.5px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--hsp-muted)}
.hsp__note{margin:12px 0 0;padding:9px 11px;border-radius:12px;background:#fff7e6;color:#7a5200;font-size:12px;line-height:1.45;display:flex;gap:8px}
.hsp__note svg{flex:0 0 15px;width:15px;height:15px;margin-top:1px}
.hsp__foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid var(--hsp-line)}
.hsp__price{font-size:21px;font-weight:700;line-height:1;color:var(--hsp-ink)}
.hsp__price small{display:block;margin-top:4px;font-size:11px;font-weight:500;color:var(--hsp-muted)}
.hsp__btn{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:999px;background:var(--hsp-accent);color:#fff!important;text-decoration:none!important;font-family:inherit;font-weight:600;font-size:13px;border:0;cursor:pointer;white-space:nowrap;transition:filter .15s,transform .15s}
.hsp__btn:hover{filter:brightness(.92);transform:translateY(-1px)}
.hsp__btn svg{width:15px;height:15px}
.hsp-ic{display:inline-block;vertical-align:middle}
.hsp:focus{outline:none}
.hsp :is(button,a):focus-visible{outline:3px solid var(--hsp-accent);outline-offset:2px}

/* selected shape on the map */
.hsp-selected,.hsp-selected *{stroke:#fff!important;stroke-width:3px!important;paint-order:stroke;filter:drop-shadow(0 2px 5px rgba(0,0,0,.5))}

/* hover labels (old maps) */
.ikr_map_tooltip,#ikr_toltipMove{font-family:"HSP Poppins",Poppins,"Segoe UI",system-ui,Roboto,Arial,sans-serif!important;background:rgba(20,38,28,.94)!important;color:#fff!important;border-radius:10px!important;padding:7px 12px!important;font-size:12.5px!important;font-weight:600!important;line-height:1.3!important;box-shadow:0 6px 18px rgba(0,0,0,.28)!important;border:0!important;pointer-events:none}
/* the old plain popup is replaced */
#ikr_rv_detail{display:none!important}

/* a card that sits in the page flow instead of floating (side panel / bottom sheet) */
.hsp.hsp--static{position:relative;top:auto;left:auto;width:auto;max-width:none;opacity:1;visibility:visible;pointer-events:auto;transform:none;display:flex;flex-direction:column;overflow:hidden}
.hsp--static .hsp__media{flex:0 0 auto}
.hsp--static .hsp__body{flex:1 1 auto;min-height:0;overflow:auto}
@media (max-width:560px){
  .hsp:not(.hsp--static){position:fixed;left:8px;right:8px;bottom:8px;top:auto!important;width:auto;max-width:none;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);overflow:auto;transform:translateY(18px)}
  .hsp:not(.hsp--static) .hsp__media{aspect-ratio:16/6.4}
  .hsp__title{font-size:17px}
}
/* inside an iframe on a phone: the card opens under the map instead of floating over it */
@media (max-width:560px){
  html.hsp-embed .hsp:not(.hsp--static){position:relative;left:auto;right:auto;bottom:auto;top:auto!important;width:auto;max-width:none;max-height:none;margin:12px 0 6px;transform:none;display:none;overflow:hidden}
  html.hsp-embed .hsp:not(.hsp--static).is-open{display:block}
}
@media (prefers-reduced-motion:reduce){.hsp{transition:none}}
