/* v0.4.5: Harbour controls overlay the top INSIDE the 360 viewer. */
.h360-panoee{position:relative;width:100%;max-width:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#fff;box-sizing:border-box}
.h360-panoee *{box-sizing:border-box}
.h360-panoee-toolbar{position:absolute;z-index:20;top:14px;left:14px;right:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;width:auto;max-width:none;pointer-events:none}
.h360-panoee-stage{position:relative;isolation:isolate;width:100%;max-width:100%;aspect-ratio:var(--h360-ratio,2/1);min-height:320px;overflow:hidden;border-radius:18px;background:#111}
.h360-panoee-frame{position:absolute;z-index:1;inset:0;width:100%;height:100%;border:0;background:#111;pointer-events:auto!important;touch-action:auto!important;user-select:auto!important;-webkit-user-select:auto!important}
.h360-panoee-colours{pointer-events:auto;display:flex;align-items:center;gap:8px;padding:5px 7px 5px 13px;border-radius:999px;background:rgba(42,47,45,.92);box-shadow:0 5px 20px rgba(0,0,0,.12);color:#fff;max-width:100%}
.h360-panoee-colours>span{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.78;white-space:nowrap}
.h360-panoee-colour-options{display:flex;gap:3px;overflow:auto;scrollbar-width:none}.h360-panoee-colour-options::-webkit-scrollbar{display:none}
.h360-panoee-colour-options button{appearance:none;border:0;border-radius:999px;background:transparent;color:#fff;padding:8px 13px;font:700 13px/1 Inter,system-ui;cursor:pointer;white-space:nowrap}
.h360-panoee-colour-options button.is-active{background:#fff;color:#17211f;box-shadow:0 2px 8px rgba(0,0,0,.16)}
.h360-panoee-colour-options button.is-active:before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#df6c27;vertical-align:1px}
.h360-panoee-actions{pointer-events:auto;display:flex;gap:8px;flex:0 0 auto}
.h360-panoee-action{width:42px;height:42px;border:1px solid rgba(22,55,51,.12);border-radius:11px;background:#fff;color:#173733;font-size:21px;line-height:1;cursor:pointer;box-shadow:0 5px 20px rgba(0,0,0,.1)}
.h360-panoee-loading{position:absolute;z-index:21;right:14px;top:68px;display:flex;align-items:center;gap:8px;background:rgba(30,34,33,.75);backdrop-filter:blur(8px);padding:9px 13px;border-radius:999px;font-size:12px;pointer-events:none}
.h360-panoee-loading[hidden]{display:none}.h360-panoee-loading span{width:14px;height:14px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:h360spin .8s linear infinite}@keyframes h360spin{to{transform:rotate(360deg)}}
.h360-panoee-empty{position:absolute;z-index:4;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;padding:30px;background:#111;color:#fff}.h360-panoee-empty[hidden]{display:none}.h360-panoee-empty strong{font-size:20px}.h360-panoee-empty span{opacity:.7;max-width:520px}
.h360-message{padding:14px 18px;border:1px solid #ddd;border-radius:8px;background:#fff}

/* Product-page / shortcode embed: never escape the parent content column. */
.h360-panoee--embed{display:block;margin:0;width:100%;max-width:100%;overflow:visible}
.h360-panoee--embed .h360-panoee-stage{width:100%;max-width:100%}

/* Dedicated Tour permalink: real viewport-filling page, no theme container. */
.h360-panoee--full{position:fixed;z-index:2147482000;inset:0;width:100vw;height:100dvh;max-width:none;background:#111;overflow:hidden}
.h360-panoee--full .h360-panoee-stage{position:absolute;inset:0;width:100vw;height:100dvh;max-width:none;min-height:100dvh;aspect-ratio:auto;border-radius:0}
.h360-panoee--full .h360-panoee-toolbar{position:absolute;z-index:20;top:max(14px,env(safe-area-inset-top));bottom:auto;left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));width:auto;margin:0;pointer-events:none}
.h360-panoee--full .h360-panoee-colours,.h360-panoee--full .h360-panoee-actions{pointer-events:auto}
.h360-panoee--full .h360-panoee-loading{top:max(68px,calc(env(safe-area-inset-top) + 68px))}

.h360-panoee:fullscreen{background:#111;padding:0}.h360-panoee:fullscreen .h360-panoee-toolbar{position:absolute;z-index:20;top:14px;bottom:auto;left:14px;right:14px;margin:0;pointer-events:none}.h360-panoee:fullscreen .h360-panoee-colours,.h360-panoee:fullscreen .h360-panoee-actions{pointer-events:auto}.h360-panoee:fullscreen .h360-panoee-stage{width:100vw;height:100vh;aspect-ratio:auto;border-radius:0;min-height:100vh}

@media(max-width:700px){
  .h360-panoee-toolbar{top:10px;left:10px;right:10px;gap:8px}
  .h360-panoee--embed .h360-panoee-stage{border-radius:14px;min-height:300px;aspect-ratio:4/3!important}
  .h360-panoee-colours{min-width:0;padding-left:7px}
  .h360-panoee-colours>span{display:none}
  .h360-panoee-colour-options button{padding:8px 11px;font-size:12px}
  .h360-panoee-action{width:38px;height:38px}
  .h360-panoee-loading{right:10px;top:60px}
  .h360-panoee--full .h360-panoee-toolbar{top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right))}
  .h360-panoee--full .h360-panoee-loading{top:max(60px,calc(env(safe-area-inset-top) + 60px))}
}
