body { font-size: 17px; margin: 0; font-family: sans-serif; }
p { line-height:1.2em; padding-bottom: 0.5em; }
h1 { line-height: 1.1em; }
h2 { margin-bottom: 0; }
#header_olm { width:100%; }
#locStatus { width:100%; height: 1.5vw; background: red; }
#location { position:absolute; left:100px; top:10px; z-index:9999 }
#gps { position: absolute; left: 10px; top:5px; z-index: 100; width:32px; height:auto; opacity:0.25; }
#building-main-image { max-width:100%; height:auto; }

.langbar {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 15px 0;
    font-size: 4vw;
    position: absolute;
    top:2vw;
    right: 5vw;
}

.langitem {
    text-decoration: none;
    transition: all 0.25s ease;
        filter: drop-shadow(0 0 6px white)
            drop-shadow(0 0 12px white);
}

.langitem:hover {
    filter: drop-shadow(0 0 8px white)
            drop-shadow(0 0 16px white)
            drop-shadow(0 4px 8px rgba(255,255,255,0.6));
    transform: scale(1.15);
}

.langitem.active {
    filter: drop-shadow(0 0 4px #fff) 
        drop-shadow(0 0 10px #fff) 
        drop-shadow(0 0 18px #fff);
    font-size: 130%;
}

.map-outer-wrapper {
    width: 100%;
    max-width: 1400px;
    height: 100vh;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    margin: 0 auto;
}

.map-scroll-container {
    width: 100%;
    height: 100%;
    overflow: scroll;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    position: absolute; top:0;
}

.custom-map-container {
    position: relative;
    display: block;
    width: 1400px;
    cursor: crosshair;
    background: #fff;
}

/*.custom-map-container img#map,  .custom-map-container img#routes {
    width: 1400px;
    height: auto;
    display: block;
}*/

@media (max-width: 800px) {
    .map-outer-wrapper {
        height: 100vh;
    }
    
    .custom-map-container {
        width: 900px;
    }
}
#map, #routes {
  width: 100%;
  cursor: crosshair;
  position: relative;
  display: inline-block;
}
#visitor {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 120, 255, 0.35);
  border: 3px solid #0078ff;
  transform: translate(-50%, -50%);
  display: none;
  box-shadow: 0 0 0 12px rgba(0,120,255,0.15);
  z-index: 10000;
}
#status {
  padding: 10px;
  background: #fff;
}
#mapmenu {
  display: none; 
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10000;
  min-width: 180px;
}
.map-thumb {
    position: absolute;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
    object-fit: cover;
    background: transparent;
    border: none;
    cursor: pointer;
    pointer-events: auto;
}

.map-thumb:hover {
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 10;
}
.map-thumb.highlighted { 
    transform: translate(-50%, -50%) scale(1.08);
    background: rgb(255,255,0,0.6);
    border-radius: 40px;
    padding:15px;
}
#building-text { padding: 0.5rem; }
#building-spoken { display: none; margin-top: 1em;}

.tts-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;

    background: #2b7cff;
    color: white;

    font-size: 22px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 3px 10px rgba(0,0,0,.25);

    transition: .2s;
}

.tts-btn:hover {
    background: #1f63d4;
    transform: scale(1.05);
}

.tts-btn:active {
    transform: scale(.95);
}
.hero {
    position: relative;
}

.hero img {
    width: 100%;
    display: block;
    border-radius: 14px;
}

.hero-play {
    position: absolute;
    top: 14px;
    left: 70px;

    width: 44px;
    height: 44px;

    border-radius: 50%;
    border: none;

    background: rgba(60,60,60,.55);
    backdrop-filter: blur(5px);

    color: white;
    font-size: 22px;

    cursor: pointer;

    transition: .2s;

    display:flex;
    justify-content:center;
    align-items:center;
    z-index: 999999;
}

.hero-play:hover{
    background: rgba(120,70,30,.90);
    transform:scale(1.08);
}

.hero-play:active{
    transform:scale(.95);
}
.hero-play.playing{
    animation:pulse 1.8s infinite;
}
.audio-btn.playing{
    animation:pulse 1.8s infinite;
}

@keyframes pulse{

    0%{
        box-shadow:0 0 0 0 rgba(122,75,40,.6);
    }

    70%{
        box-shadow:0 0 0 16px rgba(122,75,40,0);
    }

    100%{
        box-shadow:0 0 0 0 rgba(122,75,40,0);
    }

}
/* Header met tandwiel rechtsboven */
.settings-header {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 10px;
    z-index: 99998;
}

.settings-btn {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-btn:hover {
    background: #555;
    transform: rotate(30deg);
}
/* Modal settings */
.modal-settings {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.close {
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

label {
    display: block;
    margin: 15px 0 8px;
    font-weight: bold;
}
#languageSelect, #voiceSelect { font-size: 130%; }
.active-lang { font-size: 125%; line-height:125%; }
.setting-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stdButton {
    margin-top: 25px;
    width: 100%;
    padding: 12px;
    background: #b34013;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.stdButton:hover { background: #af6c52; }
#editBuilding { border: 0.4em solid red; font-size: 150%; }
.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  background: rgba(60, 60, 60, 0.5);
  border: none;
  border-radius: 50%;
  font-size: 30px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 999999;
}

.close-btn:hover {
  background: rgba(231, 76, 60, 0.9);
  transform: rotate(90deg) scale(1.1);
}
#explainLoc { border: 0.5em solid #af6c52; padding:0.5em; background-color: #f0f0f0; display:flex; gap:1em; }
#QRolm { width:4em; height:4em; padding-top: 1em; }