/* --- Global & AR Scene Reset --- */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden; 
}

a-scene {
    height: 100vh;
    width: 100vw;
}

/* --- Loading Screen Styles --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f7f7f7; 
    z-index: 999; 
    display: flex;
    justify-content: center; 
    align-items: center;     
    text-align: center;
    transition: opacity 0.5s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none; 
}

.loading-content {
    padding: 20px;
    max-width: 90%; 
}

#um-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

#start-button {
    background-color: #004d99; 
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

#start-button:hover {
    background-color: #003366;
}

.orientation-tip {
    font-size: 1em;
    color: #666;
    margin-top: 20px;
}

/* --- UI Overlay --- */
#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; 
    pointer-events: none; 
}

/* --- Info Icon (Bottom Right) --- */
#info-icon {
    position: absolute; 
    right: 20px;
    bottom: 20px;
    background: #004d99; 
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: auto; 
    transition: transform 0.2s;
    padding: 0;
    /* HIDDEN BY DEFAULT */
    display: none; 
}

/* FIX: Class added by JS to make the button visible */
#info-icon.visible {
    display: block; 
}

#info-icon:hover {
    transform: scale(1.05);
}

#info-icon img {
    width: 30px;
    height: 30px;
    filter: invert(1); 
}

/* --- Info Panel (Covers 70% of screen, slides from LEFT) --- */
#info-panel {
    position: absolute;
    top: 0; 
    left: 0;
    width: 70%; 
    height: 100%; 
    background-color: white;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2); 
    padding: 20px;
    box-sizing: border-box;
    transform: translateX(-100%); 
    transition: transform 0.4s ease-out;
    pointer-events: auto;
    overflow-y: auto; 
}

#info-panel.visible {
    transform: translateX(0); 
}

/* --- Panel Content Styles --- */
#location-title {
    color: #004d99;
    margin-top: 0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #333;
}

#image-gallery {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap; 
}

#image-gallery img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
}

#image-gallery img:hover {
    opacity: 0.8;
}

#current-building-img {
    width: 100%; 
    max-width: 300px; 
    height: auto;
}

#archive-photos {
    display: flex;
    flex-direction: column;
}

#archive-photos h3 {
    font-size: 1.1em;
    color: #666;
    margin-top: 0;
    margin-bottom: 10px;
}