/* ===== Ritmo 360 viewer ===== */
.r360 {
  --r360-accent: var(--copper, #C97D3A);
  --r360-accent-2: var(--copper-light, #E29A5C);
  --r360-text: var(--cream, #F1E4D2);
  --r360-glass: rgba(10, 7, 6, 0.62);
  position: relative; overflow: hidden; background: #0a0706; color: var(--r360-text);
  user-select: none; -webkit-user-select: none; outline: none;
  font-family: var(--font-body, system-ui, sans-serif);
}
.r360:focus-visible { box-shadow: inset 0 0 0 2px var(--r360-accent); }
.r360-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.r360-canvas:active { cursor: grabbing; }

/* Loading line */
.r360-progress { position: absolute; top: 0; left: 0; right: 0; height: 2px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.r360-progress::after { content: ''; position: absolute; top: 0; bottom: 0; width: 30%; background: var(--r360-accent); animation: r360-load 1.1s ease-in-out infinite; }
.r360.is-loading .r360-progress { opacity: 1; }
@keyframes r360-load { from { left: -30%; } to { left: 100%; } }

/* Hint */
.r360-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 20px; border-radius: 40px; background: var(--r360-glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; letter-spacing: 1px; pointer-events: none; transition: opacity 0.6s; }
.r360.has-interacted .r360-hint { opacity: 0; }
.r360-unsupported .r360-hint { opacity: 1; }

/* Dock: controls centred above the scene strip */
.r360-dock { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; z-index: 2; }
.r360-bar { display: flex; gap: 4px; padding: 4px; background: var(--r360-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; pointer-events: auto; }
.r360-btn { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 4px; color: var(--r360-text); cursor: pointer; transition: background 0.2s, color 0.2s; }
.r360-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.r360-btn:hover { background: rgba(201,125,58,0.18); color: var(--r360-accent-2); }
.r360-btn[aria-pressed="true"] { color: var(--r360-accent); }
.r360-btn:focus-visible { outline: 2px solid var(--r360-accent); outline-offset: -2px; }

/* Scene strip */
.r360-strip { display: none; max-width: 100%; gap: 8px; overflow-x: auto; padding: 4px; scrollbar-width: thin; scrollbar-color: var(--r360-accent) transparent; pointer-events: auto; }
.r360.strip-open .r360-strip { display: flex; animation: r360-rise 0.25s ease; }
@keyframes r360-rise { from { opacity: 0; transform: translateY(8px); } }
.r360-thumb { flex: 0 0 auto; width: 132px; padding: 0; background: var(--r360-glass); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; color: var(--r360-text); cursor: pointer; text-align: left; transition: border-color 0.2s, transform 0.2s; }
.r360-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.r360-thumb span { display: block; padding: 6px 8px; font-size: 11px; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r360-thumb:hover { border-color: var(--r360-accent); transform: translateY(-2px); }
.r360-thumb.is-active { border-color: var(--r360-accent); box-shadow: 0 0 0 1px var(--r360-accent); }
.r360-thumb:focus-visible { outline: 2px solid var(--r360-accent); outline-offset: 2px; }

/* Hotspots */
.r360-hotspots { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* Only the centre of the ring is clickable (.r360-hs-hit, ~70% of the ring); the label is information, not a target. */
.r360-hs { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; background: none; border: 0; color: var(--r360-text); cursor: pointer; pointer-events: none; will-change: transform; }
.r360-hs-ring { position: relative; width: 56px; height: 56px; pointer-events: none; display: grid; place-items: center; border-radius: 50%; background: rgba(10,7,6,0.45); border: 2px solid rgba(241,228,210,0.9); box-shadow: 0 4px 18px rgba(0,0,0,0.45); transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.r360-hs-ring::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--r360-accent); opacity: 0; animation: r360-pulse 2.4s ease-out infinite; }
.r360-hs-ring svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.r360-hs-hit { position: absolute; inset: 15%; border-radius: 50%; pointer-events: auto; }
.r360-hs.is-floor .r360-hs-ring { transform: perspective(200px) rotateX(50deg); }
.r360-hs-label { padding: 4px 10px; border-radius: 20px; background: var(--r360-glass); font-size: 12px; letter-spacing: 0.5px; white-space: nowrap; opacity: 0.9; transition: opacity 0.2s; }
.r360-hs:hover .r360-hs-ring, .r360-hs:focus-visible .r360-hs-ring { background: var(--r360-accent); border-color: var(--r360-accent); color: #0a0706; }
.r360-hs:focus-visible { outline: none; }
@keyframes r360-pulse { 0% { opacity: 0.7; transform: scale(0.85); } 100% { opacity: 0; transform: scale(1.25); } }

@media (max-width: 600px) {
  .r360-dock { left: 12px; right: 12px; bottom: 12px; }
  .r360-thumb { width: 108px; }
  .r360-hs-ring { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .r360-hs-ring::after, .r360-progress::after { animation: none; }
}

/* Photos switched off for the public tour (only visible in the local editor) */
.r360-thumb.is-hidden img { opacity: 0.35; filter: grayscale(1); }
.r360-thumb.is-hidden span::before { content: 'Paslėpta · '; color: var(--r360-accent); }
.r360-hs.is-hidden .r360-hs-ring { border-style: dashed; opacity: 0.6; }
