/* Reset and Base Styles (unchanged) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: white;
  overflow-x: hidden;
  background-color: #000;
}

/* Controls Container */
#controls-container {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
}

button {
  margin: 5px;
  padding: 8px 16px;
  cursor: pointer;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #555;
}

/* Center the loader on the screen */
#loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000; /* Black background during loading */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensure it’s on top */
}

#loading-wheel {
  width: 200px; /* Adjust size as needed */
  height: 200px;
  animation: spin 8s linear infinite; /* Rotation animation */
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Hide Three.js container until loading is complete */
#threejs-container {
  display: none;
}

/* Show it when loaded */
#threejs-container.loaded {
  display: block;
}

/* Three.js Container */
#threejs-container {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10; /* Fixed typo from 1-9 to a valid value */
}

#info-image {
  width: 100%;
  height: auto;
  max-width: 600px; /* Limit the size of the image */
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}
#info-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 300px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  display: none;
  font-family: Arial, sans-serif;
  z-index: 1000;
}

#info-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
}
#info-panel p {
  margin: 0;
  font-size: 16px;
}
#info-panel .close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  font-size: 40px;
  color: #fff;
}

/* Gradient Section */
.gradient-section {
  position: relative;
  z-index: 20;
  height: 750px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 0, 0, 0) 80%,
    rgb(0, 0, 0) 100%
  );
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 0px;
  pointer-events: none;
}

h1 {
  font-size: 4rem;
  text-transform: uppercase;
  padding: 0 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 20;
  background-color: #000;
  padding: 0px 0px;
}

.intro {
  padding: 40px 30px;
  text-align: center;
}

/* Side-by-Side Layout */
.side-by-side {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.map,
.gallery {
  flex: 1;
  min-width: 300px; /* Ensure readability on smaller screens */
  max-width: 600px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.gallery img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Loading Indicator */
#loading {
  display: none; /* Hidden by default, shown via JS */
  font-size: 1.5rem;
  text-align: center;
}

.tripadvisorcomponentUISample img {
  width: 100%;
  height: auto;
}
