
      body {
        margin: 0;
        /* Ensure full height for absolute positioning context */
        height: 100vh;
        position: relative; /* Creates positioning context for children */
        overflow: hidden; /* Prevent scrollbars */
      }

      /* Logo */
      #logo {
        position: absolute;
        top: 17px;
        left: 45px;
        width: 60px;
        height: 60px;
        z-index: 3;
        transition: opacity 0.3s ease;
      }

      /*  Menu  */
      #hamburger-menu {
        position: absolute;
        top: 20px;
        right: 30px;
      }
      #hamburger-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 40px;
        height: 40px;
        background: #7070704d; /* light gray circle */
        border: none;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        padding: 13px;
      }
      #hamburger-toggle span {
        display: block;
        height: 2px;
        background: #f7f3c1;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
      }
      /* Animate "X" */
      #hamburger-menu.open #hamburger-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
      }
      #hamburger-menu.open #hamburger-toggle span:nth-child(2) {
        opacity: 0;
      }
      #hamburger-menu.open #hamburger-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
      }

      #menu-links {
        position: absolute;
        margin: 0;
        padding: 0;
        right: 0;
        list-style: none;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 4px;
        overflow: hidden;
        overflow-y: auto;
        max-height: 0;
        transition: max-height 0.3s ease;
        z-index: 3;
      }
      /* When open, allow it to expand */
      #hamburger-menu.open #menu-links {
        max-height: 700px; /* plenty for 4–5 items */
      }
      #menu-links li {
        border-bottom: 1px solid #eee;
      }
      #menu-links li:last-child {
        border-bottom: none;
      }
      #menu-links a {
        display: block;
        padding: 10px 15px;
        color: #000000;
        font-size: 20px;
        font-family: "Futura Small Caps Light", Arial, sans-serif;
        text-decoration: none;
        white-space: nowrap;
      }
      #menu-links a:hover {
        background-color: #555555;
      }
      .dropdown-menu.hidden {
        display: none;
      }

      /* Label styling */
      #overlay-label {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: black;
        font-family: Arial, sans-serif;
        font-size: 70px;
        z-index: 1;
        pointer-events: none;
        touch-action: none;
        transition: top 0.5s ease, left 0.5s ease, transform 0.5s ease;
      }
      h1 {
        color: black;
        font-family: "Century Gothic Regular", Arial, sans-serif;
        font-size: 100px;
        font-weight: 1000;
        letter-spacing: 4px;
        margin: 0 0 -40px 0; /* Space between title and subtitle */
      }
      .to-corner {
        top: 2% !important;
        left: 10% !important;
        font-size: 20px !important;
        transform: none !important;
        text-align: left !important;
      }
      .to-corner h1 {
        font-size: 20px !important;
        margin: 0 !important;
      }
      .to-corner .subtitle {
        font-size: 9px !important;
      }
      .subtitle {
        color: black;
        font-family: "Futura Small Caps Light", Arial, sans-serif;
        font-size: 32px;
        letter-spacing: 13px;
      }
    
      /* Modal styling */
      .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(5px);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 4;
      }
      
      .close-modal-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: rgba(255, 0, 0, 0.5);
        border: none;
        font-size: 24px;
        color: #fff;
        cursor: pointer;
        transition: background-color 0.2s ease;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 5px;
        animation: pulse 2s infinite;
        z-index: 777;
      }
      .close-modal-btn:hover {
        background-color: rgba(255, 0, 0, 0.7);
        animation: none;
      }
      .close-modal-btn:active {
        transform: scale(0.9);
        transition: transform 0.1s ease;
      }

      @keyframes pulse {
        0% {
          transform: scale(1);
        }
        50% {
          transform: scale(1.1);
        }
        100% {
          transform: scale(1);
        }
      }

    .modal-content {
        position: relative;
        background: rgba(0, 0, 0, 0.9);
        padding: 30px;
        border-radius: 15px;
        max-width: 90vw;
        max-height: 90vh;
        text-align: center;
        color: navajowhite;
        font-family: "Futura Small Caps Light", Arial, sans-serif;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
      }

    .instruct-modal-content {
        max-width: 50vw;
    }
    
    #modal-description {
        color: #ffffff;
        font-family: "Futura Small Caps Light", Arial, sans-serif;
        font-size: 16px;
        line-height: 1.6;
    }
    
      /* Image container styling */
    #modal-image-container {
        position: relative;
        width: 100%;
        /* height: 70vh; */
        /* max-height: 600px; */
        overflow: hidden;
        border-radius: 8px;
        cursor: grab;
        user-select: none;
        background: #f0f0f0;
    }
    
    .map-image-container {
        position: relative;
        width: 100%;
        height: 100%;
        max-height: 600px;
        overflow: hidden;
        border-radius: 8px;
        cursor: grab;
        user-select: none;
        background: #f0f0f0;
    }

        /* Base image styling */
    .carousel-image {
        max-width: 100%;
        max-height: 100%;
        border-radius: 8px;
        display: none;
        object-fit: contain; /* Added to fix image scaling */
        /* width: 100%;  Added to fix image scaling, causes image overflowing the modal */
        /* height: 100%;  Added to fix image scaling, causes image overflowing the modal */
      }

    /* Active image */
    .carousel-image.active {
        display: block;
      }

    /* Navigation buttons */
    .carousel-prev,
    .carousel-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: #e6d67d;
        border: none;
        padding: 10px 15px;
        cursor: pointer;
        border-radius: 50%;
        font-size: 18px;
      }

      .carousel-prev {
        left: 10px;
      }
    .carousel-next {
        right: 10px;
      }

    /* Dots indicator */
    .carousel-dots {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
      }

    .dot {
        width: 12px;
        height: 12px;
        background: #bbb;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.3s ease;
      }

    .dot.active {
        background: #e6d67d;
      }

    /* Playback controls */
    #player-container {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  color: #fff;
  max-width: 95vw;
  width: 100%;
  box-sizing: border-box;
  min-width: 320px;
  justify-content: center;
      }

    /* playback-controls container */
    #playback-controls {
        position: relative; /* keep pop‑over positioning working */
        display: flex; /* lay out children in a row */
        align-items: center; /* vertical centering */
        justify-content: center;
        gap: 20px; /* space between controls */
        padding: 12px 20px; /* internal buffer */
        min-width: 320px; /* ensure it doesn't collapse too small */
        min-height: 80px; /* give it some heft */
      }

    .playback-button {
        width: 60px;
        height: 60px;
        font-size: 0px;
        cursor: pointer;
        border: none;
        border-radius: 50%;
        background-color: white;
        color: inherit;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        padding: 0;
      }
    .playback-button svg {
        width: 24px;
        height: 24px;
        fill: black;
      }

    /* Volume */
    #volume-slider {
        width: 120px;
        height: 4px;
        cursor: pointer;
      }

    #volume-label {
        font-size: 20px;
        color: black;
        font-family: "Futura Small Caps Light", Arial, sans-serif;
      }
    .icon-button {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 24px;
        padding: 8px;
      }

    /* Hidden by default */
    #volume-popover {
        display: none;
        position: absolute;
        bottom: 100%; /* sit above the controls */
        right: 0; /* align under the volume button */
        background: white;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        z-index: 10;
        white-space: nowrap;
    }

    /* Show when .open is added */
    #volume-popover.open {
        display: block;
    }

      /* Optional: style slider and label inside pop-over */
    #volume-popover input[type="range"] {
        width: 120px;
        margin-right: 8px;
    }

      /* Progress bar */
    #progress-bar {
  width: 100%;
  max-width: 600px;
  height: 6px;
  cursor: pointer;
  background: white;
  border-radius: 3px;
  accent-color: orange; /* Modern browsers */
  box-sizing: border-box;
  margin: 0 auto;
    }
    #progress-bar::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: orangered;
        cursor: pointer;
        margin-top: -3px; /* center thumb vertically */
    }

      /* time labels */
    #time-display {
        font-size: 20px;
        font-family: "Futura Small Caps Light", Arial, sans-serif;
        text-align: space-between;
        align-items: center;
        display: flex;
        width: 100%;
    }
    #current-time {
        margin-right: auto;
        background: rgba(0, 0, 0, 0.2);
    }
    #remaining-time {
        background: rgba(0, 0, 0, 0.2);
    }

    /* Hotspot labels */
    .hotspot-label {
        display: flex;
        gap: 10px;
        font-family: "Futura Small Caps Light", Arial, sans-serif;
        background: rgba(0, 0, 0, 0.4);
        padding: 10px 20px;
        border-radius: 20px;
        white-space: nowrap;
        text-align: center;
        align-items: center;
        justify-content: space-between;
        pointer-events: none;
        touch-action: none;
        transform: translate(-50%, -100%); /* center above the icon */
    }
    .hotspot-name {
        color: white;
        font-weight: bold;
        font-size: 1.5em;
    }
    .hotspot-id {
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 1em;
        color: black;
        background: navajowhite;
        border-radius: 70%;
        width: 25px;
        height: 25px;
    }

    #footer {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        color: #fff;
        width: 100%;
    }

    #btn-install {
        display: none;
        padding: 5px 25px;
        border: 0px;
        border-radius: 10px;
        background: linear-gradient(
          0deg,
          rgba(255, 255, 255, 0.75) 0%,
          rgba(253, 187, 45, 1) 100%
        );
        color: black;
        font-family: "Century Gothic Regular", Arial, sans-serif;
        font-weight: bold;
    }

    #current-scene {
        font-family: "Century Gothic Regular", Arial, sans-serif;
        font-size: 1rem;
        background-color: rgba(0, 0, 0, 0.3);
        color: white;
        text-align: center;
        width: 100%;
        pointer-events: none;
        touch-action: none;
    }

    .inline-icon {
        height: 1.2em;
        width: auto;
        vertical-align: middle;
        /* margin: 0 0.1em; */
    }

    /* Map */
    .map-viewport {
        position: relative;
        width: 100%;
        height: 100%;
        transform-origin: center center;
        cursor: grab;
    }
        
    .map-viewport:active {
      cursor: grabbing;
    }
    
    .map-container {
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 762px;
        width: 90%;
        max-height: 90vh;
        background: white;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        z-index: 3;
        margin: auto;
    }
    .map-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%; /* or a specific height */
    }
    .map-image {
        max-width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        pointer-events: none;
    }

  .map-button {
    position: absolute;
    background: navajowhite;
    color: black;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
  }

    .map-button:hover {
        background: beige;
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    .map-button:active {
        transform: scale(0.95);
    }
    /* Controls */
    .map-controls {
        position: absolute;
        top: 20px;
        left: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 50;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 18px;
        font-weight: bold;
        transition: background-color 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .control-btn:hover {
        background: rgba(0, 0, 0, 0.9);
    }

    .zoom-info {
        position: absolute;
        bottom: 20px;
        left: 20px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        z-index: 50;
    }
        
      /* Example button positions - adjust these percentages based on your needs */
      .btn-1 {
        top: 65%;
        left: 50%;
      }

      .btn-2 {
        top: 65%;
        left: 35%;
      }

      .btn-3 {
        top: 40%;
        left: 45%;
      }

      .btn-4 {
        top: 40%;
        left: 60%;
      }

      .btn-5 {
        top: 45%;
        left: 75%;
      }

      .btn-6 {
        top: 40%;
        left: 30%;
      }
      .btn-7 {
        top: 10%;
        left: 35%;
      }
      .btn-8 {
        top: 2%;
        left: 55%;
      }
      .btn-9 {
        top: 50%;
        left: 40%;
      }
      .btn-10 {
        top: 12%;
        left: 55%;
      }
      .btn-11 {
        top: 12%;
        left: 70%;
      }
      .btn-12 {
        top: 10%;
        left: 85%;
      }
      .btn-13 {
        top: 30%;
        left: 70%;
      }

    /* Tooltip styles */
    .map-button::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 120%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: normal;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 3;
    }

    .map-button:hover::after {
        opacity: 1;
    }

    #close-map-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(239, 68, 68, 0.9);
        color: white;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        cursor: pointer;
        font-size: 18px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1020;
        transition: all 0.3s ease;
    }

    #close-map-btn:hover {
        background: rgba(239, 68, 68, 1);
        transform: scale(1.1);
    }

    /* Hidden state */
    .map-container.hidden {
        display: none;
    }

      /* Adjustments for larger screens */
      @media screen and (max-width: 768px) {
        #logo {
          width: 40px;
          height: 40px;
          top: 25px;
          left: 20px;
        }
        #hamburguer-toggle {
          width: 40px;
          height: 40px;
        }
        #hamburguer-toggle span {
          width: 40px;
          height: 40px;
          margin: 0;
        }
        #hamburguer-menu {
          top: 10px;
        }
        #overlay-label h1 {
          top: 50%;
          font-size: 50px;
          margin: 0;
        }
        #menu-links {
          /* right: -30px; */
          max-width: 300px;
        }
        #menu-links a {
          font-size: 15px;
        }
        .subtitle {
          font-size: 20px;
          letter-spacing: 5px;
        }
        #player-container {
          top: 70px;
        }
        #footer {
          bottom: 15%;
        }
        .to-corner {
          top: 3% !important;
          left: 20% !important;
        }
        .hotspot-name {
          font-size: 1em;
        }
        .modal-content {
          max-width: 80%;
        }
        
      /* Image container styling */
        #modal-image-container {
            height: 100%;
        }
        .map-wrapper {
            /* Ensure centering styles are not overridden */
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .modal-video {
          max-width: 100%;
        }
        .map-image {
            width: 360px;
            height: 400px;
            display: block;
            margin: 0 auto;
        }
        .map-button {
          width: 50px;
          height: 50px;
          font-size: 18px;
        }
      }

      /* Safari-specific touch improvements */
      @media not all and (min-resolution: 0.001dpcm) {
        @supports (-webkit-appearance: none) {
          canvas {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
          }

          /* Safari hamburger menu touch improvements */
          #hamburger-toggle {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            touch-action: manipulation;
          }

          #menu-links a {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            touch-action: manipulation;
          }

          /* Safari modal and carousel button touch improvements */
          .close-modal-btn {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            touch-action: manipulation;
          }

          .carousel-prev,
          .carousel-next {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            touch-action: manipulation;
          }

          .dot {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            touch-action: manipulation;
          }

          /* Safari audio player button touch improvements */
          .playback-button {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            touch-action: manipulation;
          }

          #progress-bar {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            touch-action: manipulation;
          }

          /* Safari-specific play/pause button improvements */
          #play-pause-button {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            touch-action: manipulation;
            /* Increase touch target size */
            min-width: 80px !important;
            min-height: 80px !important;
            /* Ensure it's above other elements */
            position: relative;
            z-index: 1000;
          }

          /* Safari-specific install button improvements */
          #btn-install {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            touch-action: manipulation;
            /* Ensure it's clickable */
            position: relative;
            z-index: 1000;
          }
        }
      }