/*
 * Author: Tobalt — https://tobalt.lt
 * Layout + thumbnail nav for IX forto virtualus turas.
 */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #111;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#tour-root {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#panorama {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

/* Scene navigation strip — bottom thumbnails */
#scene-nav {
    flex: 0 0 auto;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(0, 0, 0, 0.85);
    padding: 8px;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: #555 #111;
    -webkit-overflow-scrolling: touch;
}

#scene-nav::-webkit-scrollbar { height: 8px; }
#scene-nav::-webkit-scrollbar-track { background: #111; }
#scene-nav::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }

.thumb {
    flex: 0 0 auto;
    width: 120px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    color: #fff;
    font: inherit;
    transition: border-color 0.15s, transform 0.15s;
    overflow: hidden;
    position: relative;
}

.thumb:hover {
    border-color: #888;
    transform: translateY(-2px);
}

.thumb.is-active {
    border-color: #ffc40d;
}

.thumb img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
    background: #222;
}

.thumb span {
    display: block;
    padding: 4px 6px;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile: smaller thumbs */
@media (max-width: 768px) {
    .thumb { width: 90px; }
    .thumb img { height: 60px; }
    .thumb span { font-size: 10px; padding: 3px 4px; }
    #scene-nav { padding: 6px; gap: 6px; }
}
