html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}
* {
    box-sizing: border-box;
}

/* ================================================= */
/* UNITY */
/* ================================================= */

#unity-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#unity-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: block;
    background: #000;
    z-index: 1;
}
/* ================================================= */
/* LOADING SCREEN */
/* ================================================= */

#loading-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100vw;
    height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #000;

    z-index: 99999;
}

#logo {
    display: block;
    width: 300px;
    height: auto;
    max-width: 60vw;
    margin-bottom: 50px;
}

#loading-text {
    display: block;

    margin-bottom: 10px;

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;

    text-align: center;
}

#progress-bar {
    width: 300px;
    max-width: 70vw;

    height: 20px;

    background: #333333;

    border-radius: 10px;

    overflow: hidden;
}

#progress-fill {
    width: 0%;
    height: 100%;

    background: #0075be;

    border-radius: 10px;

    transition: width 0.1s linear;
}

/* ================================================= */
/* GOOGLE MAP OVERLAY */
/* ================================================= */

#map {
    position: absolute;

    width: 100%;
    height: 100%;

    top: 0;
    left: 0;

    z-index: 20;

    display: none;

    pointer-events: auto;
}

/* ================================================= */
/* MAP CLOSE BUTTON */
/* ================================================= */

#map-close-btn {
    position: absolute;

    top: 75px;
    right: 10px;

    z-index: 1000;

    padding: 10px 20px;

    background: #ffffff;
    color: #000000;

    border: 1px solid #cccccc;
    border-radius: 6px;

    cursor: pointer;

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);

    display: none;
}

#map-close-btn:hover {
    background: #eeeeee;
}

/* ================================================= */
/* INFO WINDOW */
/* ================================================= */

.custom-infowindow {
    font-family: sans-serif;
    color: black;

    padding: 4px;

    min-width: 200px;
}

.infowindow-info-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;
}

.infowindow-info-row p {
    margin: 0;
}

.infowindow-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 28px;
    height: 28px;

    border-radius: 6px;

    background: #f3f3f3;

    transition: background 0.15s;
}

.infowindow-link:hover {
    background: #dddddd;
}

.sharepoint-icon {
    width: 40px;
    height: 40px;

    object-fit: contain;
}

.infowindow-header {
    display: flex;

    align-items: center;

    height: 40px;

    margin-bottom: 10px;
}

.infowindow-logo {
    height: 28px;

    display: block;
}

.custom-infowindow h3 {
    margin: 0 0 6px 0;

    font-size: 16px;
}

.custom-infowindow p {
    margin: 0;

    font-size: 13px;
}

/* ================================================= */
/* GOOGLE INFO WINDOW OVERRIDE */
/* ================================================= */

.gm-style .gm-style-iw-c {
    border: 3px solid #1565c0;

    border-radius: 10px;

    padding: 16px !important;
}

.gm-style .gm-style-iw-d {
    overflow: visible !important;
}

.gm-style .gm-style-iw-t::after {
    background:
        linear-gradient(
            45deg,
            #1565c0 50%,
            rgba(0, 0, 0, 0) 51%,
            rgba(0, 0, 0, 0) 100%
        );
}

.gm-style .gm-style-iw-chr {
    position: absolute;

    top: 16px;
    right: 16px;

    height: 40px;

    display: flex;

    align-items: center;
}
