.panorama-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

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

.panorama-section .auto-container {
    padding: 0;
}

.panorama-360-container {
  width: 100%;
  height: 600px;
}

/* On mobile (≤768px), make it half height */
@media (max-width: 768px) {
  .panorama-360-container {
    height: 300px;
  }
}


.ripple-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 200;
}

.ripple-marker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
  border: 4px solid rgba(255,255,255,0.9); /* outline ripple */
  border-radius: 0; /* keep sharp diamond corners */
  opacity: 0.9;
  animation: rippleDiamond 2.5s infinite;
}

@keyframes rippleDiamond {
  0% {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
    opacity: 0.9;
  }
  70% {
    transform: translate(-50%, -50%) rotate(45deg) scale(2.5);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Info panel */
.marker-info {
    position: absolute;
    max-width: 350px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    z-index: 300;
    transform: translateY(-50%);
    display: none;
}

.marker-info.visible {
    display: block;
}

.marker-info .close-info {
    position: absolute;
    top: 6px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
}

.marker-info h3 {
    color: #ff8a00;
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.marker-info p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.thumbs-control-section {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 200;
}

/* remove absolute positioning here */
.thumbnail-bar {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 6px 0;
}

.panorama-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #fff;
    opacity: 0.7;
}
.panorama-thumbnail:hover {
    transform: translateY(-5px);
}
.panorama-thumbnail.active {
    border: 3px solid #fff;
    opacity: 1;
}
.panorama-thumbnail img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

/* Controls row */
.controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

/* Control button style */
.control-btn {
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transition: all 0.3s ease;
}
.control-btn:hover {
    transform: translateY(-3px);
}

.loading-container {
    position: absolute;
    inset: 0;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #4cc9f0;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}
.loading-text {
    font-size: 18px;
    color: #fff;
}

@media (max-width: 768px) {
    .controls {
        bottom: 120px;
    }
    .thumbnail-bar {
        bottom: 10px;
        max-width: 95%;
    }
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    .marker-info {
        width: 200px;
        font-size: 0.8rem;
        right: 15px;
    }
}
