body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Arial", sans-serif;
}
.padding{
  padding: 4px;
}
.logout-btn {
  background: linear-gradient(45deg, #003087, #005cbf); /* Updated to gradient */
  color: #ffffff;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.logout-btn:hover {
  background: linear-gradient(45deg, #c9302c, #e74c3c); /* Red gradient on hover */
  transform: scale(1.05);
}

#viewer {
  width: 100%;
  height: 100%;
}

#viewer-container {
  display: flex;
  width: 100%;
  height: 100%;
}

#panorama-section {
  flex: 1;
  position: relative;
  background: #000;
}

#map-section {
  width: 30%;
  min-width: 300px;
  background: #f8f9fa;
  border-left: 2px solid #003087;
  display: flex;
  flex-direction: column;
}

#map-header {
  background: linear-gradient(135deg, #003087, #005cbf);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#map-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.ripple-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.ripple-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.ripple-btn.active {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
}

#interactive-map {
  flex: 1;
  min-height: 400px;
}

#map-legend {
  background: white;
  padding: 10px 15px;
  border-top: 1px solid #ddd;
  font-size: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.legend-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.legend-marker.landmark {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.legend-marker.heritage {
  background: linear-gradient(45deg, #8e44ad, #9b59b6);
}

.legend-marker.business {
  background: linear-gradient(45deg, #f39c12, #e67e22);
}

#home {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
}

#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 48, 135, 0.7), rgba(0, 92, 191, 0.7));
  z-index: 1;
}

#home > * {
  position: relative;
  z-index: 2;
}

#home h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  font-weight: bold;
}

#home .intro-text {
  font-size: 1.2rem;
  text-align: center;
  max-width: 600px;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

#home .footer-text {
  font-size: 1rem;
  text-align: center;
  max-width: 500px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

#home .map-description {
  font-size: 1rem;
  text-align: center;
  max-width: 600px;
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.map-area {
  border: 3px solid #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-size: 16px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.map-area:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
  border-color: #ffffff;
}

.downtown-area {
  width: 20%;
  height: 10%;
  background: linear-gradient(45deg, #003087, #005cbf);
  font-size: 24px;
  white-space: nowrap;
}

.area-btn {
  margin: 20px;
  padding: 15px 30px;
  font-size: 18px;
  cursor: pointer;
  background: linear-gradient(45deg, #003087, #005cbf);
  color: white;
  border: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.area-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #005cbf, #0073e6);
}

#controls {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  border-radius: 8px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

#controls button {
  margin: 3px;
  padding: 8px 15px;
  cursor: pointer;
  background: #003087;
  color: white;
  border: none;
  border-radius: 5px;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
}

#controls button:hover {
  background: #005cbf;
  transform: scale(1.05);
}

#controls button[onclick="viewFromHere()"] {
  background: linear-gradient(45deg, #003087, #005cbf);
  font-weight: bold;
}

#controls button[onclick="viewFromHere()"]:hover {
  background: linear-gradient(45deg, #005cbf, #0073e6);
  transform: scale(1.1);
}

#hamburger-btn {
  display: none;
  font-size: 24px;
  padding: 8px;
  background: #003087;
  border-radius: 5px;
}

#controls-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#filters {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  border-radius: 8px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

#filters label {
  display: block;
  margin: 8px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

#filters label:hover {
  color: #005cbf;
}

#compass {
  position: absolute;
  top: 180px;
  right: 50px;
  z-index: 1001;
}

.compass-outer {
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.8);
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.compass-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.compass-direction {
  position: absolute;
  color: white;
  font-weight: bold;
  font-size: 12px;
  transform: translate(-50%, -50%);
}

.compass-direction.north {
  top: 12%;
  left: 50%;
  color: #e74c3c;
  font-size: 14px;
}

.compass-direction.south {
  bottom: 12%;
  left: 50%;
  transform: translate(-50%, 50%);
}

.compass-direction.east {
  right: 12%;
  top: 50%;
  transform: translate(50%, -50%);
}

.compass-direction.west {
  left: 12%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.compass-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 25px;
  background: linear-gradient(to bottom, #e74c3c 0%, #e74c3c 50%, #fff 50%, #fff 100%);
  transform: translate(-50%, -50%);
  transform-origin: center center;
  border-radius: 1px;
  transition: transform 0.3s ease-out;
}

.compass-needle::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 6px solid #e74c3c;
}

.hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  border: 3px solid white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hotspot:hover {
  transform: scale(1.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hotspot.landmarks {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.hotspot.nature {
  background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.hotspot.heritage {
  background: linear-gradient(45deg, #8e44ad, #9b59b6);
}

.hotspot.waterfront {
  background: linear-gradient(45deg, #003087, #005cbf);
}

.hotspot-info {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 10px 15px;
  display: none;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 101;
  left: 30px;
  top: -15px;
  min-width: 200px;
  backdrop-filter: blur(10px);
}

.hotspot-info h4 {
  margin: 0 0 5px 0;
  color: #005cbf;
}

.hotspot-info p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.tour-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  display: none;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.hotspot-ui-container {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.hotspot-ui-container:hover {
  pointer-events: all;
}

.hotspot-ui-container:hover .hotspot-icon {
  opacity: 1;
  visibility: visible;
}

.hotspot-icon {
  position: absolute;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: all;
}

.hotspot-icon:hover {
  transform: scale(1.1);
}

.top-left {
  top: 0;
  left: 0;
}

.top-right {
  top: 0;
  right: 0;
}

.bottom-left {
  bottom: 0;
  left: 0;
}

.bottom-right {
  bottom: 0;
  right: 0;
}

.icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 2px solid #003087;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 14px;
}

.central-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
}

.central-arrow:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.arrow-shape {
  background: #003087;
  color: white;
  padding: 12px 16px;
  border-radius: 8px 8px 8px 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.3);
  min-width: 80px;
  text-align: center;
}

.arrow-text {
  font-size: 10px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.arrow-pointer {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #003087;
}

.tooltip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3000;
}

.tooltip-below {
  top: 40px;
}

.tooltip-below::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(0, 0, 0, 0.85) transparent;
}

.tooltip-above {
  bottom: 40px;
}

.tooltip-above::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

.hotspot-icon.has-info .tooltip {
  white-space: normal;
  width: 300px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 6px;
  color: white;
  text-align: left;
}

.hotspot-icon:hover .tooltip {
  opacity: 1;
}

.leaflet-popup-content-wrapper {
  background: rgba(0, 48, 135, 0.95);
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.leaflet-popup-content {
  margin: 15px;
  font-family: Arial, sans-serif;
}

.leaflet-popup-content h4 {
  color: #f39c12; /* Match business marker color */
  margin: 5px 0;
}

.leaflet-popup-content p {
  margin: 5px 0;
  font-size: 12px;
}

.leaflet-popup-content button {
  background: linear-gradient(45deg, #28a745, #34c759);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leaflet-popup-content button:hover {
  background: linear-gradient(45deg, #34c759, #40c4ff);
  transform: scale(1.05);
}

.leaflet-popup-tip {
  background: rgba(0, 48, 135, 0.95);
}

.custom-marker-icon {
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pulsing-marker {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

.coupon-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 48, 135, 0.95);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  max-width: 400px;
  width: 90%;
  color: white;
  text-align: center;
  backdrop-filter: blur(10px);
}

.coupon-popup h3 {
  margin: 0 0 10px;
  color: #f39c12;
  font-size: 1.2rem;
}

.coupon-popup p {
  margin: 5px 0;
  font-size: 14px;
}

.coupon-popup img {
  max-width: 200px;
  margin: 10px 0;
  border: 2px solid white;
  border-radius: 4px;
}

.coupon-popup button {
  background: linear-gradient(45deg, #003087, #005cbf);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.coupon-popup button:hover {
  background: linear-gradient(45deg, #005cbf, #0073e6);
  transform: scale(1.05);
}

.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, rgba(0, 48, 135, 0.7), rgba(0, 92, 191, 0.7)), 
              url('../images/background_image.jpg');
  background-size: cover;
  background-position: center;
  color: white;
}

.auth-form {
  background: rgba(0, 0, 0, 0.8);
  padding: 2rem;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.auth-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #005cbf;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

.auth-btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(45deg, #003087, #005cbf);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.auth-btn:hover {
  background: linear-gradient(45deg, #005cbf, #0073e6);
  transform: translateY(-2px);
}

.flash-messages {
  margin-bottom: 1rem;
}

.flash-messages .success {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
  padding: 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.flash-messages .error {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  padding: 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.auth-link {
  text-align: center;
  margin-top: 1rem;
}

.auth-link a {
  color: #005cbf;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* Mobile responsiveness */
/* @media (max-width: 768px) {
  #viewer-container {
    flex-direction: column;
  }

  #panorama-section {
    height: 70%;
  }

  #map-section {
    width: 100%;
    height: 30%;
    min-width: auto;
    border-left: none;
    border-top: 2px solid #003087;
  }

  #controls {
    top: 10px;
    left: 10px;
    padding: 8px;
  }

  #hamburger-btn {
    display: block;
    z-index: 3002;
    position: relative;
  }

  #controls-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50px;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    border-radius: 8px;
    width: 200px;
    z-index: 3001;
  }

  #controls-menu.active {
    display: flex;
  }

  #controls-menu button {
    width: 100%;
    text-align: left;
    padding: 10px;
    margin: 2px 0;
    font-size: 14px;
  }

  #filters {
    top: 5px;
    right: 10px;
    padding: 8px;
    font-size: 12px;
  }

  #filters label {
    margin: 5px 0;
  }

  #compass {
    top: 200px;
    right: 10px;
  }

  .compass-outer {
    width: 60px;
    height: 60px;
  }

  .compass-direction {
    font-size: 10px;
  }

  .compass-direction.north {
    font-size: 12px;
  }

  .compass-needle {
    height: 18px;
  }

  #home h1 {
    font-size: 2.2rem;
    text-align: center;
    padding: 0 10px;
  }

  #home .intro-text,
  #home .footer-text,
  #home .map-description {
    font-size: 1rem;
    padding: 0 15px;
  }

  .map-area.downtown-area {
    width: 80%;
    height: auto;
    font-size: 18px;
    padding: 12px 0;
    margin: 10px 0;
  }

  .area-btn {
    font-size: 16px;
    padding: 12px 24px;
    width: 80%;
    max-width: 300px;
  }

  .auth-container {
    padding: 0 15px;
  }

  .auth-form {
    padding: 1.5rem;
    max-width: 350px;
  }

  .coupon-popup {
    width: 95%;
    padding: 15px;
  }

  .coupon-popup h3 {
    font-size: 1.1rem;
  }

  .coupon-popup img {
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  #panorama-section {
    height: 60%;
  }

  #map-section {
    height: 40%;
  }

  #controls {
    top: 5px;
    left: 5px;
  }

  #controls-menu {
    width: 180px;
  }

  #filters {
    top: 5px;
    right: 5px;
    font-size: 11px;
  }

  #compass {
    top: 130px;
    right: 35px;
  }

  .compass-outer {
    width: 50px;
    height: 50px;
  }

  #home h1 {
    font-size: 1.8rem;
  }

  #home .intro-text,
  #home .footer-text,
  #home .map-description {
    font-size: 0.95rem;
  }

  .area-btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  .map-area.downtown-area {
    font-size: 16px;
  }

  .auth-form {
    padding: 1rem;
    max-width: 300px;
  }

  .auth-form h2 {
    font-size: 1.5rem;
  }

  .form-group input {
    padding: 0.5rem;
  }

  .auth-btn {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .coupon-popup {
    width: 90%;
    padding: 10px;
  }

  .coupon-popup h3 {
    font-size: 1rem;
  }

  .coupon-popup img {
    max-width: 120px;
  }
}
 */
