/* ═══ 360° Panorama Viewer ═══ */
.pano-section {
    padding: 32px 0 24px;
}

.pano-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.pano-head__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-soft), rgba(201,169,98,0.08));
    border: 1px solid rgba(201,169,98,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pano-head__icon svg { width: 24px; height: 24px; stroke: var(--brand); }

.pano-head__title {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.pano-head__sub {
    font-size: 14px;
    color: var(--text-2);
    margin: 0;
    line-height: 1.5;
}

.pano-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.pano-tabs::-webkit-scrollbar { display: none; }

.pano-tab {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--surface-2, rgba(255,255,255,0.04));
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}

.pano-tab.is-active {
    background: var(--brand-soft);
    border-color: rgba(201,169,98,0.45);
    color: var(--brand);
}

.pano-tab:active { transform: scale(0.97); }

.pano-viewer-wrap {
    position: relative;
    border-radius: var(--radius-xl, 20px);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
    min-height: 280px;
    aspect-ratio: 16 / 10;
    max-height: 52vh;
    background: #08080a;
}

@media (max-width: 480px) {
    .pano-viewer-wrap { aspect-ratio: 1; max-height: 70vw; min-height: 280px; }
}

.pano-viewer {
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.pano-skeleton {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--surface-2, #121216);
    color: var(--text-2);
    font-size: 13px;
    transition: opacity 0.45s ease, visibility 0.45s;
}

.pano-skeleton.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pano-skeleton__ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(201,169,98,0.2);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: panoSpin 0.9s linear infinite;
}

@keyframes panoSpin { to { transform: rotate(360deg); } }

.pano-toolbar {
    position: absolute;
    bottom: 14px;
    inset-inline-end: 14px;
    z-index: 6;
    display: flex;
    gap: 6px;
}

.pano-tool {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.pano-tool:hover { background: rgba(0,0,0,0.7); }
.pano-tool:active { transform: scale(0.94); }
.pano-tool.is-active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.pano-tool svg { width: 18px; height: 18px; stroke: currentColor; }

.pano-hint {
    position: absolute;
    bottom: 14px;
    inset-inline-start: 14px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    pointer-events: none;
    transition: opacity 0.4s;
}

.pano-hint svg { width: 14px; height: 14px; stroke: rgba(255,255,255,0.45); }
.pano-viewer-wrap.is-interacted .pano-hint { opacity: 0; }

.pano-desc {
    text-align: center;
    font-size: 14px;
    color: var(--text-2);
    margin: 16px auto 0;
    max-width: 520px;
    line-height: 1.6;
}

/* Hotspot markers */
.pnlm-hotspot.pano-public-hotspot {
    width: 32px !important;
    height: 32px !important;
    margin-left: -16px !important;
    margin-top: -16px !important;
    background: rgba(201,169,98,0.9) !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
    animation: hsPulse 2s ease infinite;
}

.pnlm-hotspot.pano-public-hotspot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(201,169,98,0.4);
    animation: hsRing 2s ease infinite;
}

@keyframes hsRing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Hotspot info panel */
.pano-hotspot-panel {
    position: fixed;
    inset-inline: 16px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 200;
    background: rgba(18,18,22,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 20px 48px 20px 20px;
    box-shadow: 0 20px 48px rgba(0,0,0,0.5);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.35s;
}

.pano-hotspot-panel:not([hidden]) {
    transform: translateY(0);
    opacity: 1;
}

.pano-hotspot-panel__close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pano-hotspot-panel__close svg { width: 16px; height: 16px; }

.pano-hotspot-panel__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--brand);
}

.pano-hotspot-panel__desc {
    font-size: 14px;
    color: var(--text-2);
    margin: 0;
    line-height: 1.55;
}

.pano-viewer-wrap:fullscreen,
.pano-viewer-wrap:-webkit-full-screen {
    max-height: none;
    aspect-ratio: unset;
    height: 100dvh;
    height: 100vh;
    border-radius: 0;
}

.pano-viewer-wrap:fullscreen .pano-viewer,
.pano-viewer-wrap:-webkit-full-screen .pano-viewer {
    min-height: 100dvh;
    min-height: 100vh;
}
