/* 3D model overlays (numbered drawing balloons + tip), shared by every page that mounts the hotel or room model */
.h3d-hotspots { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
/* 44px hit area centred on the equipment point; the visible part is a 22px balloon on a 45-degree leader */
.h3d-dot { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; pointer-events: auto; background: none; border: 0; padding: 0; transition: opacity .2s; --ch: var(--c); }
.h3d-dot.off { opacity: 0; pointer-events: none; visibility: hidden; }
.h3d-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1px; background: rgba(255, 255, 255, .5); transform-origin: 0 50%; transform: rotate(-45deg); }
.h3d-dot::after { content: ""; position: absolute; left: calc(50% - 2px); top: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--c); }
.h3d-dot i { position: relative; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #11151c; border: 1.5px solid var(--c); color: #fff; font: 500 11px/1 var(--f-mono, ui-monospace, monospace); font-style: normal; letter-spacing: 0; transform: translate(13px, -13px); transition: background-color .15s, color .15s; }
.h3d-dot:hover i, .h3d-dot:focus-visible i, .h3d-dot[aria-current="true"] i { background: var(--ch); color: #11151c; }
.h3d-dot:focus-visible { outline: none; }
.h3d-dot:focus-visible i { outline: 2px solid var(--copper-lite, #c99256); outline-offset: 2px; }
.h3d-dot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[dir="rtl"] .h3d-dot::before { transform: rotate(-135deg); }
html[dir="rtl"] .h3d-dot i { transform: translate(-13px, -13px); }
/* a balloon that would sit on top of a neighbour fans downwards (layoutLabels in tokens.js) */
.h3d-dot.dn::before { transform: rotate(45deg); }
.h3d-dot.dn i { transform: translate(13px, 13px); }
html[dir="rtl"] .h3d-dot.dn::before { transform: rotate(135deg); }
html[dir="rtl"] .h3d-dot.dn i { transform: translate(-13px, 13px); }
/* short name beside the balloon; placed in screen space by layoutLabels, hidden where there is no room for it */
.h3d-name { position: absolute; left: 50%; top: 50%; z-index: 1; display: block; white-space: nowrap; font: 500 12px/1.2 var(--f-body, system-ui, sans-serif); font-style: normal; color: #fff; background: rgba(17, 21, 28, .84); border: 1px solid rgba(255, 255, 255, .14); padding: 3px 7px; border-radius: 2px; pointer-events: none; transform: translate(29px, calc(-13px - 50%)); }
html[lang="ar"] .h3d-name { font-family: var(--f-ar, var(--f-body)); font-size: 12.5px; }
.h3d-dot.nn .h3d-name { display: none; }
/* level names beside the slabs in the floor-by-floor view */
.h3d-levels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.h3d-lv { position: absolute; left: 0; top: 0; margin-top: -10px; font: 500 12px/1 var(--f-mono, ui-monospace, monospace); color: #e8cfae; background: rgba(17, 21, 28, .78); border-inline-start: 2px solid var(--copper-lite, #c99256); padding: 4px 6px; white-space: nowrap; }
html[lang="ar"] .h3d-lv { font-family: var(--f-ar, var(--f-body)); }

/* floors in works (home hero at dusk): a copper leader from the works band to a small readout */
.h3d-works { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.h3d-works.on { opacity: 1; visibility: visible; }
.h3d-wk-ln { flex: none; width: 28px; height: 1px; background: #d2914f; position: relative; }
.h3d-wk-ln::before { content: ""; position: absolute; inset-inline-start: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #d2914f; box-shadow: 0 0 0 3px rgba(210, 145, 79, .22); }
.h3d-wk-card { display: grid; gap: 3px; padding: 7px 11px 8px; background: rgba(14, 17, 23, .8); border: 1px solid rgba(210, 145, 79, .45); border-inline-start: 2px solid #d2914f; border-radius: 2px; color: #fff; white-space: nowrap; }
.h3d-works { height: 0; }
.h3d-wk-l { font: 500 11.5px/1.2 var(--f-mono, ui-monospace, monospace); letter-spacing: .04em; color: #e8b583; }
.h3d-wk-n { font: 500 13.5px/1.3 var(--f-body, system-ui, sans-serif); color: rgba(255, 255, 255, .86); }
.h3d-wk-n b { font: 600 15px/1 var(--f-mono, ui-monospace, monospace); color: #fff; }
.h3d-wk-s { font: 400 11px/1.3 var(--f-body, system-ui, sans-serif); color: rgba(255, 255, 255, .58); }
html[lang="ar"] .h3d-wk-l, html[lang="ar"] .h3d-wk-n, html[lang="ar"] .h3d-wk-s { font-family: var(--f-ar, var(--f-body)); letter-spacing: 0; }
html[lang="ar"] .h3d-wk-l { font-size: 12.5px; }
html[lang="ar"] .h3d-wk-n { font-size: 14px; }
@media (max-width: 600px) { .h3d-wk-ln { width: 16px; } .h3d-wk-card { padding: 5px 8px 6px; } .h3d-wk-n { font-size: 12.5px; } .h3d-wk-n b { font-size: 14px; } .h3d-wk-s { display: none; } }

/* tip: dark glass (.glass from site.css) with light text; solid fallback on phones comes from the shared tokens */
.h3d-tip { position: absolute; left: 0; top: 0; z-index: 4; width: 280px; padding: 14px 16px 16px; color: #fff; border-radius: 4px; opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; pointer-events: none; }
.h3d-tip:not(.glass) { background: #181d26; border: 1px solid #232a35; }
.h3d-tip.on { opacity: 1; visibility: visible; pointer-events: auto; }
.h3d-tip small { display: block; font: 600 .8125rem/1.4 var(--f-body, system-ui, sans-serif); color: rgba(255, 255, 255, .62); }
.h3d-tip b { display: block; font-family: var(--f-display, var(--f-body)); font-weight: 600; font-size: 17px; line-height: 1.25; margin: 2px 0 6px; padding-inline-end: 28px; color: #fff; }
.h3d-tip p { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .76); margin: 0; }
html[lang="ar"] .h3d-tip small, html[lang="ar"] .h3d-tip b { font-family: var(--f-ar, var(--f-body)); }
html[lang="ar"] .h3d-tip p { font-size: 15px; line-height: 1.75; }
.h3d-x { display: none; position: absolute; top: 4px; inset-inline-end: 4px; width: 44px; height: 44px; place-items: center; font-size: 22px; line-height: 1; color: #fff; background: none; border: 0; border-radius: 2px; cursor: pointer; }
.h3d-x:active { transform: translateY(1px); }
/* touch: the tip docks to the bottom of the view with a 44px close button */
@media (pointer: coarse) {
  .h3d-tip { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; transform: none !important; pointer-events: auto; }
  .h3d-x { display: grid; }
}
.is-dragging { cursor: grabbing; }
.gl-ready canvas { cursor: grab; }
.gl-ready canvas:focus-visible { outline: 2px solid var(--copper-lite, #c99256); outline-offset: -2px; }
