/* InteractiveHouse property page */
html.ih-lock { overflow: hidden; }
body { margin: 0; background: #0F1720; }
.ih { --ih-accent: #FFB547; --ih-line: #27323E; --ih-panel: #17212C; --ih-text: #F3F5F7; --ih-soft: #A9B4C0; --ih-card-h: 150px;
  background: #0F1720; color: var(--ih-text); font-family: Archivo, system-ui, -apple-system, 'Segoe UI', sans-serif; min-height: 100vh; }
.ih *, .ih *::before, .ih *::after { box-sizing: border-box; }
.ih a { color: var(--ih-accent); }
.ih button { font-family: inherit; }
.ih button:focus-visible, .ih a:focus-visible { outline: 2px solid var(--ih-accent); outline-offset: 2px; }
.ih-mono { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: 11px; color: var(--ih-soft); }

.ih-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 16px 32px; border-bottom: 1px solid var(--ih-line); }
.ih-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ih-title h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.ih-addrunit { white-space: nowrap; }
.ih-facts { margin: 0; font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: 13px; color: var(--ih-soft); }
.ih-by { margin: 0; font-size: 13px; color: #C6CFD8; }
.ih-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ih-tab { min-height: 44px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--ih-line); background: transparent; color: var(--ih-text); font-size: 14px; font-weight: 600; cursor: pointer; }
.ih-tab.on { background: var(--ih-accent); border-color: var(--ih-accent); color: #0F1720; }
.ih-tab.ih-replay { font-weight: 400; }

.ih-stage { position: relative; overflow: hidden; height: 500px; }
.ih-stage canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.ih-overlay { position: absolute; inset: 0; pointer-events: none; }
.ih-hint { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: 12px; color: var(--ih-soft); pointer-events: none; opacity: 0; transition: opacity 420ms ease; }
.ih-hint.in { opacity: 1; }

.ih-stackbtn { position: absolute; width: 190px; min-height: 66px; padding: 10px 12px; border: 1px solid var(--ih-line); border-radius: 4px; background: var(--ih-panel); color: var(--ih-text); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 3px; opacity: 0; transition: opacity 420ms ease, border-color 150ms; pointer-events: auto; }
.ih-stackbtn:hover, .ih-stackbtn:focus-visible { border-color: var(--ih-accent); }
.ih-overlay.in .ih-stackbtn { opacity: 1; }
.ih-sname { font-size: 15px; font-weight: 600; }

.ih-card { padding: 0; border: 1px solid var(--ih-line); border-radius: 4px; background: var(--ih-panel); color: var(--ih-text); text-align: left; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; pointer-events: auto; }
.ih-card img { display: block; width: 100%; flex: 1 1 auto; min-height: 0; object-fit: cover; background: #223040; }
.ih-cardtext { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; flex: 0 0 auto; }
.ih-cname { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ih-card.on, .ih-card:hover { border-color: var(--ih-accent); }
.ih-card.l, .ih-card.r { position: absolute; width: 190px; height: var(--ih-card-h); opacity: 0; transition: opacity 420ms ease, transform 420ms ease, border-color 150ms; }
.ih-card.l { transform: translateX(-18px); }
.ih-card.r { transform: translateX(18px); }
.ih-overlay.in .ih-card.l, .ih-overlay.in .ih-card.r { opacity: 1; transform: none; }
.ih-overlay:not(.in) .ih-card { transition-delay: 0ms !important; }
/* many photos on one floor: the name sits on the photo */
.ih-overlay.compact .ih-card { position: absolute; }
.ih-overlay.compact .ih-card img { position: absolute; inset: 0; height: 100%; }
.ih-overlay.compact .ih-cardtext { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; background: linear-gradient(transparent, rgba(15,23,32,.86)); }
.ih-overlay.compact .ih-cardtext .ih-mono { display: none; }
.ih-overlay.compact .ih-cname { font-size: 13px; }

.ih-strip { display: flex; gap: 10px; overflow-x: auto; padding: 12px 16px; border-bottom: 1px solid var(--ih-line); -webkit-overflow-scrolling: touch; }
.ih-strip[hidden] { display: none; }
.ih-card.strip { flex: 0 0 150px; height: 138px; }

.ih-gallery { max-width: 1120px; margin: 0 auto; padding: 36px 32px 0; }
.ih-gallery h2 { margin: 0 0 14px; font-size: 20px; font-weight: 600; }
.ih-gallery-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.ih-gphoto { flex: 0 0 260px; padding: 0; border: 1px solid var(--ih-line); border-radius: 4px; background: var(--ih-panel); color: var(--ih-text); overflow: hidden; cursor: pointer; text-align: left; display: flex; flex-direction: column; }
.ih-gphoto:hover { border-color: var(--ih-accent); }
.ih-gphoto img { display: block; width: 100%; height: 168px; object-fit: cover; background: #223040; }
.ih-gphoto span { padding: 8px 10px; font-size: 13px; }

.ih-details { max-width: 1120px; margin: 0 auto; padding: 48px 32px; display: flex; flex-wrap: wrap; gap: 48px; }
.ih-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ih-h2row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ih-details h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.ih-unit { min-height: 36px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--ih-line); background: transparent; color: var(--ih-text); font-size: 13px; cursor: pointer; }
.ih-desc { margin: 0; font-size: 16px; line-height: 1.55; color: #C6CFD8; white-space: pre-line; }
.ih-rooms { display: flex; flex-direction: column; gap: 20px; }
.ih-floorlist h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ih-soft); }
.ih-roomgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 32px; }
.ih-room { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ih-line); font-size: 14px; }
.ih-room .ih-mono { font-size: 12px; white-space: nowrap; }
.ih-small { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ih-soft); }
.ih-foot { max-width: 1120px; margin: 0 auto; padding: 0 32px 32px; font-size: 12px; }
.ih-foot a { color: var(--ih-soft); }
.ih-nb { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.ih-nbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ih a.ih-nbtile { display: flex; flex-direction: column; gap: 4px; min-height: 96px; padding: 14px 16px; background: var(--ih-panel); border: 1px solid var(--ih-line); border-radius: 4px; color: var(--ih-text); text-decoration: none; transition: border-color 150ms; }
.ih a.ih-nbtile:hover, .ih a.ih-nbtile:focus-visible { border-color: var(--ih-accent); background: color-mix(in srgb, var(--ih-accent) 7%, var(--ih-panel)); }
.ih a.ih-nbtile:active { transform: translateY(1px); }
.ih a.ih-nbtile { transition: border-color .15s, background .15s; }
.ih-nblead { margin: -6px 0 0; font-size: 15px; line-height: 1.5; color: #C6CFD8; max-width: 62ch; }
.ih-nbgo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--ih-accent); }
.ih-nbarrow { font-size: 17px; line-height: 1; transition: transform .15s; }
.ih a.ih-nbtile:hover .ih-nbarrow, .ih a.ih-nbtile:focus-visible .ih-nbarrow { transform: translateX(3px); }
.ih a.ih-nbopen { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 4px; background: var(--ih-accent); color: #0F1720; font-size: 15px; font-weight: 600; text-decoration: none; align-self: flex-start; }
.ih a.ih-nbopen:hover, .ih a.ih-nbopen:focus-visible { filter: brightness(1.06); }
@media (max-width: 640px) { .ih a.ih-nbopen { align-self: stretch; } }
@media (prefers-reduced-motion: reduce) { .ih a.ih-nbtile, .ih-nbarrow { transition: none; } }
.ih-nbt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ih-soft); }
.ih-nbtile strong { font-size: 17px; font-weight: 600; line-height: 1.3; }
.ih-nbd { font-size: 13px; line-height: 1.4; color: #C6CFD8; }
.ih-agent { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-self: flex-start; padding: 24px; background: var(--ih-panel); border: 1px solid var(--ih-line); border-radius: 4px; }
.ih-agent h2 { font-size: 20px; }
.ih-agent-who { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; }
.ih-agent-who div { display: flex; flex-direction: column; min-width: 0; }
.ih-agent-who span { color: #C6CFD8; }
.ih-headshot { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #223040; }
.ih-contact { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ih-contact a { overflow-wrap: anywhere; }
.ih-showwrap { display: flex; flex-direction: column; }
.ih button.ih-book { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.ih button.ih-book:disabled { opacity: .6; cursor: default; }
.ih-showing { display: flex; flex-direction: column; gap: 12px; }
.ih-showing[hidden], .ih button.ih-book[hidden] { display: none; }
.ih-showing h3 { margin: 0; font-size: 16px; font-weight: 600; }
.ih-sf { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: #C6CFD8; }
.ih-sf em { font-style: normal; color: var(--ih-soft); }
.ih-sf input, .ih-sf textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border-radius: 4px; border: 1px solid var(--ih-line); background: #0E1114; color: var(--ih-text); font: inherit; font-size: 16px; }
.ih-sf textarea { resize: vertical; }
.ih-sf input:focus-visible, .ih-sf textarea:focus-visible { outline: 2px solid var(--ih-accent); outline-offset: 1px; }
.ih-scheck { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.ih-scheck input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ih-accent); }
.ih-shp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ih-smsg { margin: 0; min-height: 1.2em; font-size: 14px; color: #C6CFD8; }
.ih-smsg.bad { color: #FFB4A8; }
.ih-sdone { margin: 0; font-size: 15px; line-height: 1.5; }
.ih-book { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 4px; background: var(--ih-accent); color: #0F1720 !important; font-size: 15px; font-weight: 600; text-decoration: none; }
.ih-logo { max-width: 160px; max-height: 56px; object-fit: contain; align-self: flex-start; }

.ih-viewer { position: fixed; inset: 0; z-index: 50; background: rgba(15,23,32,.9); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ih-viewer[hidden] { display: none; }
.ih-vbox { width: 100%; max-width: 1100px; max-height: 100%; display: flex; flex-direction: column; background: var(--ih-panel); border: 1px solid var(--ih-line); border-radius: 4px; overflow: hidden; }
.ih-vphoto { flex: 1 1 auto; min-height: 0; aspect-ratio: 3 / 2; max-height: calc(100vh - 140px); background: #0B1118; display: flex; align-items: center; justify-content: center; }
.ih-vphoto img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ih-vbar { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.ih-vtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ih-vname { font-size: 18px; font-weight: 600; }
.ih-vsub { display: flex; gap: 14px; }
.ih-vsub .ih-mono { font-size: 12px; }
.ih-vbtns { display: flex; gap: 8px; }
.ih-btn { min-height: 44px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--ih-line); background: transparent; color: var(--ih-text); font-size: 14px; cursor: pointer; }
.ih-btn.ih-primary { border: 0; background: var(--ih-accent); color: #0F1720; font-weight: 600; }
.ih-btn[hidden] { display: none; }

@media (max-width: 959px) {
  .ih-header { padding: 14px 16px; }
  .ih-title h1 { font-size: 19px; }
  .ih-tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ih-tab { flex: 0 0 auto; padding: 0 13px; }
  .ih-gallery { padding: 28px 16px 0; }
  .ih-gphoto { flex-basis: 210px; }
  .ih-gphoto img { height: 136px; }
  .ih-details { padding: 32px 16px 40px; gap: 32px; }
  .ih-foot { padding: 0 16px 28px; }
  .ih-details h2 { font-size: 23px; }
  .ih-vbar { padding: 10px 12px; }
  .ih-vname { font-size: 16px; }
  .ih-viewer { padding: 0; }
  .ih-vbox { border: 0; border-radius: 0; height: 100%; }
  .ih-vphoto { aspect-ratio: auto; max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ih-card.l, .ih-card.r, .ih-stackbtn, .ih-hint { transition: none; }
}

/* photo and plan swap: the photo takes the stage, the plan tucks into its bottom-left corner */
.ih-stage canvas { transform-origin: 0 100%; transition: transform 700ms cubic-bezier(.22,.8,.2,1), background-color 700ms, opacity 380ms ease; z-index: 1; }
.ih-overlay { z-index: 2; }
.ih-photo { position: absolute; inset: 0; z-index: 0; background: #0B1118; display: flex; align-items: center; justify-content: center; transition: transform 620ms cubic-bezier(.22,.8,.2,1), opacity 420ms ease; will-change: transform; }
.ih-photo[hidden] { display: none; }
.ih-photo img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 320ms ease; }
.ih-photo img.in { opacity: 1; }
.ih-stage.photo .ih-photo { z-index: 3; }
.ih-stage.photo canvas { z-index: 4; pointer-events: none; transform: translate(16px, -16px) scale(var(--ih-mini, .3)); background-color: transparent; }
.ih-stage.photo .ih-card.l, .ih-stage.photo .ih-card.r, .ih-stage.photo .ih-stackbtn { opacity: 0 !important; pointer-events: none; transition-delay: 0ms !important; }
.ih-stage.photo .ih-hint { opacity: 0; }
.ih-minitag { position: absolute; left: var(--ih-mini-x, 16px); bottom: calc(var(--ih-mini-y, 16px) + var(--ih-mini-h, 240px) + 8px); z-index: 5; padding: 3px 9px; border-radius: 99px; background: rgba(15,23,32,.85); color: #F3F5F7; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity 300ms ease 500ms; }
.ih-stage.photo .ih-minitag { opacity: 1; }
.ih-pnav { position: absolute; top: 50%; width: 52px; height: 72px; margin-top: -36px; border: 0; border-radius: 4px; background: rgba(15,23,32,.55); color: #F3F5F7; font-size: 40px; line-height: 1; cursor: pointer; z-index: 5; }
.ih-pnav:hover { background: rgba(15,23,32,.85); }
.ih-pnav.prev { left: 12px; } .ih-pnav.next { right: 12px; }
.ih-pnav[hidden] { display: none; }
.ih-pclose { position: absolute; top: 14px; right: 14px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 4px; background: var(--ih-accent); color: #0F1720; font-size: 14px; font-weight: 600; cursor: pointer; z-index: 5; }
.ih-pcap { position: absolute; right: 14px; bottom: 14px; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 10px 14px; border-radius: 4px; background: rgba(15,23,32,.82); max-width: 60%; }
.ih-pcap .ih-vname { font-size: 17px; }
.ih-gcount { margin: -8px 0 12px; font-size: 12px; }
@media (max-width: 959px) {
  .ih-photo { align-items: flex-start; }
  .ih-photo img { height: auto; max-height: 100%; }
  .ih-stage.photo canvas { transform: translate(10px, -10px) scale(var(--ih-mini, .38)); }
  .ih-pnav { top: 28%; width: 40px; height: 56px; font-size: 32px; }
  .ih-pclose { top: auto; bottom: 12px; right: 12px; }
  .ih-pcap { top: auto; bottom: 64px; right: 12px; padding: 8px 10px; max-width: 54%; }
  .ih-pcap .ih-vname { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .ih-stage canvas, .ih-photo, .ih-photo img, .ih-minitag { transition: none; } }

/* stepping to another photo: the plan comes back to full size for a moment to show the next spot */
.ih-stage.photo.peek canvas { transform: none; background-color: #0F1720; pointer-events: auto; cursor: pointer; }
.ih-stage.photo.peek .ih-minitag { opacity: 0; transition-delay: 0ms; }
.ih-stage.photo.peek .ih-pnav, .ih-stage.photo.peek .ih-pclose { z-index: 6; }

/* the corner plan is a snug see-through panel; this invisible button sits exactly over it */
.ih-miniback { position: absolute; left: var(--ih-mini-x, 16px); bottom: var(--ih-mini-y, 16px); width: var(--ih-mini-w, 200px); height: var(--ih-mini-h, 200px); z-index: 5; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; display: none; }
.ih-stage.photo .ih-miniback { display: block; }
.ih-stage.photo.peek .ih-miniback { display: none; }

/* flying to a photo's viewpoint: the plan stays full size and turns, then the photo fades in over it */
.ih-stage.photo.fly canvas { transform: none; background-color: transparent; pointer-events: none; }
.ih-stage.photo.fly .ih-miniback, .ih-stage.photo.fly .ih-minitag { display: none; }
.ih-stage canvas.ih-snap { transition: none !important; }

/* fly-in has no corner plan, so on phones the photo sits in the middle of the stage */
@media (max-width: 959px) { .ih-stage.photo.fly .ih-photo { align-items: center; } .ih-stage.photo.fly .ih-pnav { top: 50%; margin-top: -28px; } }

/* fly-in: the photo opens out of the pin and floats over the dimmed plan */
.ih-stage.photo.fly .ih-photo { background: transparent; z-index: 5; pointer-events: none; }
.ih-stage.photo.fly .ih-photo > * { pointer-events: auto; }
.ih-stage.photo.fly .ih-photo img { width: auto; height: auto; max-width: 94%; max-height: 92%; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 26px 90px rgba(0,0,0,.7); }
@media (max-width: 959px) { .ih-stage.photo.fly .ih-photo img { max-width: 100%; max-height: 78%; border-radius: 0; } }

/* room list follows the photo order; a room with no photo sits under the room it belongs with */
.ih-room.sub { padding-left: 16px; color: #C6CFD8; }

/* the floor's hero photo: top-left, larger, marked as the place to start */
.ih-card.hero { border-color: var(--ih-accent); box-shadow: 0 10px 34px rgba(0,0,0,.45); }
.ih-card.hero .ih-cname { font-size: 16px; }
.ih-start { position: absolute; left: 8px; top: 8px; padding: 3px 10px; border-radius: 99px; background: var(--ih-accent); color: #0F1720; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.ih-card { position: relative; }
.ih-card.l, .ih-card.r { position: absolute; }
.ih-card.strip.hero { flex-basis: 190px; }

/* the opening instruction */
.ih-prompt { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); z-index: 2; display: flex; flex-direction: column; pointer-events: none; opacity: 0; transition: opacity 420ms ease; }
.ih-prompt.in { opacity: 1; transition-delay: 250ms; }
.ih-prompt i, .ih-promptline i { display: block; width: 28px; height: 3px; background: var(--ih-accent); }
.ih-prompt i { margin-bottom: 16px; }
.ih-prompt strong { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--ih-text); }
.ih-prompt span { margin-top: 10px; font-size: 15px; line-height: 1.5; color: #C6CFD8; }
.ih-promptline { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 0 16px; max-height: 0; opacity: 0; overflow: hidden; font-size: 15px; font-weight: 600; color: var(--ih-text); transition: max-height 320ms ease, opacity 320ms ease, padding 320ms ease; }
.ih-promptline.in { max-height: 60px; opacity: 1; padding: 14px 16px 2px; }
.ih-promptline i { width: 18px; flex: 0 0 auto; }
.ih-stage.photo .ih-prompt { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ih-prompt, .ih-promptline { transition: none; } }
