@charset "UTF-8";
/* ══════════════════════════════════════════
   琢木官網 · 自架 360° 環景元件樣式  pano.css
   搭配 pano.js 使用；取代外部 720yun iframe。
   版面較簡報頁縮小，符合部落格文章閱讀寬度。
   （--primary-color 由 style.css 定義，需在本檔之前載入）
   ══════════════════════════════════════════ */
.pano360 { position: relative; width: 100%; height: 340px; margin: 24px 0 8px; background: #111; overflow: hidden; border-radius: 6px; }
.pano360-canvas { display: block; width: 100% !important; height: 100% !important; margin: 0; cursor: grab; }
.pano360-canvas:active { cursor: grabbing; }
.pano360:fullscreen { width: 100vw; height: 100vh; border-radius: 0; margin: 0; }
.pano360:-webkit-full-screen { width: 100vw; height: 100vh; border-radius: 0; margin: 0; }

.pano360-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #111; z-index: 3; pointer-events: none; }
.pano360-ring { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(166,139,109,.25); border-top-color: var(--primary-color, #a68b6d); animation: pano360spin .9s linear infinite; }
@keyframes pano360spin { to { transform: rotate(360deg); } }
.pano360-loadtxt { font-size: 0.72rem; letter-spacing: 2px; color: var(--primary-color, #a68b6d); }

.pano360-hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 0.66rem; letter-spacing: 1.5px; color: rgba(255,255,255,.6); background: rgba(0,0,0,.35); padding: 4px 12px; border-radius: 20px; pointer-events: none; z-index: 2; white-space: nowrap; }

.pano360-fs { position: absolute; bottom: 12px; right: 12px; width: 36px; height: 36px; border-radius: 6px; background: rgba(0,0,0,.6); border: 1px solid rgba(166,139,109,.6); color: var(--primary-color, #a68b6d); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; z-index: 4; line-height: 1; padding: 0; }
.pano360-fs:hover { background: var(--primary-color, #a68b6d); color: #fff; }

.pano360-switch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
/* 小圓點切換（無名稱時）*/
.pano360-switch.is-dots { align-items: center; }
.pano360-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.3); cursor: pointer; transition: all .2s; }
.pano360-dot.on { background: var(--primary-color, #a68b6d); border-color: var(--primary-color, #a68b6d); }
/* 有名稱頁籤切換（data-labels）*/
.pano360-switch.is-tabs { flex-wrap: wrap; justify-content: center; max-width: 92%; }
.pano360-tab { padding: 5px 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.5); color: #fff; font-size: 0.7rem; letter-spacing: 1px; line-height: 1; cursor: pointer; transition: all .2s; white-space: nowrap; }
.pano360-tab:hover { border-color: var(--primary-color, #a68b6d); }
.pano360-tab.on { background: var(--primary-color, #a68b6d); border-color: var(--primary-color, #a68b6d); color: #fff; }

/* 降級：three.js 或環景圖載入失敗時，不留空白破圖 */
.pano360--fallback { display: flex; align-items: center; justify-content: center; }
.pano360-fallimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; margin: 0; }
.pano360-fallmsg { position: relative; z-index: 2; font-size: 0.8rem; letter-spacing: 1px; color: #fff; background: rgba(0,0,0,.5); padding: 8px 16px; border-radius: 4px; }

@media (min-width: 769px) { .pano360 { height: 460px; } }
@media (max-width: 560px) { .pano360 { height: 300px; } .pano360-tab { padding: 4px 9px; font-size: 0.64rem; letter-spacing: 0.5px; } }
