/* style.css */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background-color: #222;
    color: #eee;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 40%;
    position: relative;
    border-bottom: 2px solid #444;
    display: flex;
    flex-direction: column;
}

#map {
    flex-grow: 1;
    height: 100%;
    width: 100%;
    background-color: #ccc;
    z-index: 0;
}

.viewer-container {
    width: 100%;
    height: 60%;
    position: relative;
    background-color: #111;
    overflow: hidden;
}

#viewer {
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 1.2em;
    z-index: 1000;
}

.info-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9em;
    line-height: 1.4;
    max-width: 280px;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.info-panel-pin {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.info-panel-pin:hover {
    opacity: 1;
}

.info-panel:not(.pinned) {
    animation: fadeInfoPanel 0.5s ease 10s forwards;
}

@keyframes fadeInfoPanel {
    to { opacity: 0.3; }
}

.info-panel:hover:not(.pinned) {
    animation: none;
    opacity: 1 !important;
}

.compass {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.compass-inner {
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 50%;
    position: relative;
}

.compass-needle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 25px;
    background-color: red;
    transform-origin: bottom;
}

.compass-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    pointer-events: none;
}

.debug-panel {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.7em;
    line-height: 1.3;
    max-width: 400px;
    max-height: 200px;
    overflow-y: auto;
    word-wrap: break-word;
    z-index: 10;
}

.debug-message {
    margin-bottom: 5px;
    padding: 4px;
    border-bottom: 1px solid #333;
    animation: fadeOut 0.5s ease 10s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; height: 0; padding: 0; margin: 0; }
}

.file-selector {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    width: 80%;
    max-width: 500px;
    box-sizing: border-box;
}

.file-selector h2 {
    color: white;
    margin-top: 0;
}

.file-selector p {
    color: #bbb;
    margin-bottom: 20px;
}

.file-input {
    display: block;
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 10px;
    border: 1px solid #555;
    background-color: #333;
    color: #eee;
    border-radius: 5px;
}

.file-selector button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin: 5px;
}

.file-selector button:hover {
    background-color: #45a049;
}

.transition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.default-pano-marker {
    background-color: #007bff;
    border-radius: 50%;
    border: 1px solid white;
    opacity: 0.7;
    transition: all 0.2s ease-in-out;
    /* Updated for small dot */
    width: 7px;
    height: 7px;
}

.default-pano-marker:hover {
    opacity: 1;
    transform: scale(1.3);
    border: 2px solid yellow;
}

.current-panorama-marker {
    background-color: #00ff00; /* Green color for current location [cite: 1] */
    border-radius: 50%;
    border: 2px solid white;
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
    transform: scale(1.2);
}

.unlinked-pano-marker {
    background-color: #ff0000;
    border: 1px solid white;
}

#directional-arrows-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 30;
}

.directional-arrow {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
    z-index: 40;
    transform-origin: center;
    transition: all 0.3s ease;
    opacity: 0.2;
    transition: opacity 0.4s ease, transform 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.directional-arrow svg {
    width: 100%;
  height: 100%;
  fill: yellow;
  stroke: black;
  stroke-width: 2px;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.7));
  transition: fill 0.2s ease, transform 0.2s ease;
}
.directional-arrow:hover {
    opacity: 0.9;
    transform: scale(1.2);
  }
  
  .compass:hover ~ .directional-arrow {
    opacity: 0.4;
  }
  
  .viewer-container:hover .directional-arrow {
    opacity: 0.4;
  }
  
  .tour-step {
    opacity: 1 !important;
    animation: pulseArrow 1.5s infinite;
  }
  
  @keyframes pulseArrow {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }
  
.directional-arrow:hover svg {
    fill: orange;
  transform: scale(1.1);
}
/* Position adjustments */
.arrow-forward { top: 20px; left: 50%; }
.arrow-backward { bottom: 20px; left: 50%; }
.arrow-left { top: 50%; left: 20px; }
.arrow-right { top: 50%; right: 20px; }
/* Tour highlight */
.directional-arrow.tour-step svg {
    fill: #00ff00 !important;
    animation: pulseArrow 1.5s infinite;
  }



/* Tour System Styles */

.tour-guidance {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 100;
    font-size: 1.2em;
    text-align: center;
    display: none;
}

.tour-progress {
    margin-top: 5px;
    font-size: 0.9em;
    color: #ccc;
}

/* Navigation Indicator */
.nav-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    z-index: 50;
    display: none;
    pointer-events: none;
}
/* Add to style.css */
.nav-status {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 100;
    font-size: 1.1em;
    display: none;
  }
  /* Add to style.css */
.leaflet-control {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

.leaflet-control a {
    display: block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    text-decoration: none;
    color: #222;
}

.leaflet-control img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.heatmap-highlight {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0, 255, 0, 0.7);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.9);
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
    animation: pulse 1.5s infinite;
}

@keyframes pulseArrow {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }