/* House Viewer lobby - reuses metascape.css's color palette/.hub-card/.hub-btn conventions
   (loaded globally by enqueue_assets()) so this page feels consistent with the marketplace. */

.house-viewer-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* The narrow, centered width belongs to the lobby/loading cards specifically, not the wrapper
   itself - the wrapper also contains the viewer canvas, which needs to fill the page instead. */
.house-viewer-card {
    max-width: 480px;
    margin: 60px auto;
    text-align: center;
    padding: 36px 28px;
}

.house-viewer-title {
    margin: 0 0 8px;
    font-family: 'Oxanium', sans-serif;
    letter-spacing: 0.5px;
}

.house-viewer-sub {
    opacity: 0.75;
    font-size: 14px;
    margin: 0 0 24px;
}

.house-viewer-input-row {
    display: flex;
    gap: 10px;
}

.house-viewer-input-row input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25) !important;
    color: #ffffff !important;
    caret-color: #ffffff !important;
    font-family: 'Oxanium', sans-serif;
    text-align: center;
    letter-spacing: 1px;
}

.house-viewer-input-row input::placeholder {
    opacity: 0.4;
}

#house-viewer-status {
    min-height: 20px;
    margin: 16px 0 0;
    font-size: 14px;
}

.house-viewer-loading-text {
    opacity: 0.8;
    margin: 14px 0 0;
}

.house-viewer-canvas-wrap {
    width: 100%;
    margin: 20px auto;
    /* Explicit viewport-relative height (not a fixed aspect-ratio) so it fills the space between
       the theme's header/footer rather than being letterboxed - tweak the subtracted value if
       your theme's header+footer height differs noticeably from ~160px. */
    height: calc(100vh - 160px);
    min-height: 480px;
}

.house-viewer-canvas {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    border-radius: 8px;
    background: #000;
}

/* Simple spinner reusing the existing accent color - falls back gracefully if the variable
   isn't defined (metascape.css may use a different name across versions). */
.processing-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 4px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--hub-accent, #2dd4ff);
    animation: house-viewer-spin 0.8s linear infinite;
}

@keyframes house-viewer-spin {
    to { transform: rotate(360deg); }
}
