/* Virtual Tour Viewer — Custom Styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f0f0f;
  color: #fff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  flex-shrink: 0;
  z-index: 10;
}

#property-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

#room-counter {
  font-size: 0.75rem;
  color: #666;
  font-variant-numeric: tabular-nums;
}

#room-label {
  font-size: 0.85rem;
  color: #aaa;
}

/* Pannellum viewer container */
#panorama {
  flex: 1;
  width: 100%;
  position: relative;
  transition: opacity 0.4s ease;
}

#panorama.fading {
  opacity: 0;
}

/* Room navigation bar */
#nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #1a1a1a;
  border-top: 1px solid #333;
  flex-shrink: 0;
}

#room-buttons {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

#room-buttons::-webkit-scrollbar {
  height: 3px;
}

#room-buttons::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 2px;
}

.nav-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #444;
  background: transparent;
  color: #ccc;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.nav-btn:hover {
  background: #333;
  color: #fff;
}

.nav-btn.active {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}

/* Prev / Next arrows */
#arrow-prev,
#arrow-next {
  background: rgba(0,0,0,0.5);
  border: 1px solid #555;
  color: #fff;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

#arrow-prev:hover,
#arrow-next:hover {
  background: rgba(255,255,255,0.1);
}

#arrow-prev:disabled,
#arrow-next:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Auto-play button */
#autoplay-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #555;
  background: transparent;
  color: #ccc;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}

#autoplay-btn:hover {
  background: #333;
  color: #fff;
}

#autoplay-btn.active {
  background: #2d7a2d;
  border-color: #2d7a2d;
  color: #fff;
}

/* Loading overlay */
#loading {
  position: absolute;
  inset: 0;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #888;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.3s;
}

#loading.hidden {
  opacity: 0;
}

/* Mobile */
@media (max-width: 600px) {
  #property-title { font-size: 0.85rem; }
  #room-label { display: none; }
  .nav-btn { font-size: 0.75rem; padding: 5px 10px; }
  #autoplay-btn { font-size: 0.75rem; padding: 5px 10px; }
}
