#container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: row;
}

#viewer {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.viewpoint-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewpoint-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  filter: blur(30px) brightness(0.7);
  transform: scale(1.1);
}

.viewpoint-bg.active {
  opacity: 1;
}

.viewpoint-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.viewpoint-image.active {
  opacity: 1;
}

#polygonOverlay {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
}

#polygonOverlay.visible {
  opacity: 1;
}

#viewpoint-nav {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 50;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  padding: 8px;
  border-radius: 40px;
}

.nav-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #000;
  color: white;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.nav-arrow:hover {
  background: #222;
  transform: scale(1.05);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.viewpoint-dots {
  display: flex;
  gap: 8px;
  margin: 0 16px;
}

.viewpoint-dot {
  font-family: var(--font-family);
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
}

.viewpoint-dot:hover {
  background: rgba(0, 0, 0, 0.8);
}

.viewpoint-dot.active {
  background: #000;
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#loading p {
  font-family: var(--font-family);
  color: #fff;
  margin-top: 20px;
  font-weight: 500;
  position: relative;
  z-index: 4;
}

#loading.hidden {
  display: none;
}

#loading .splash-center-logo {
  position: static;
  transform: none;
  animation: logoPulseStatic 2s ease-in-out infinite;
}

@keyframes logoPulseStatic {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.7;
  }
}

.benefit-marker {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  background: transparent;
  border-radius: 24px;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom center;
  z-index: 10;
  overflow: visible;
}

.benefit-marker:hover {
  z-index: 10000;
}

.filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.filter-btn {
  font-family: var(--font-family);
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.filter-btn.apply {
  background: #000;
  color: white;
}

.filter-btn.reset {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.modal-footer-form {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(30px);
  border-radius: 20px;
  padding: 32px;
  max-width: 400px;
  margin-left: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-body {
  padding: 40px;
  color: #000;
}

.section {
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #000;
}

.unit-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.unit-detail {
  padding: 16px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  text-align: center;
}

.unit-detail-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.unit-detail-value {
  font-size: 24px;
  font-weight: 600;
  color: #000;
}

.unit-description {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

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

.similar-units {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.similar-unit-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.similar-unit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.similar-unit-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.similar-unit-info {
  padding: 12px;
}

.similar-unit-name {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.similar-unit-details {
  font-family: var(--font-family);
  font-size: 12px;
  color: #666;
}

@media (max-width: 768px) {
  #container {
    flex-direction: column;
  }

  #viewer {
    flex: 1;
    min-height: 0;
  }

  #viewpoint-nav {
    padding: 8px 16px;
    gap: 4px;
  }

  .viewpoint-dot {
    padding: 6px 12px;
    font-size: 12px;
  }

  .nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .benefit-marker-compact {
    padding: 8px;
    gap: 0;
  }

  .benefit-marker:hover .benefit-marker-compact {
    padding-right: 12px;
  }

  .benefit-marker-label {
    font-size: 13px;
  }

  .benefit-marker:hover .benefit-marker-label {
    max-width: 160px;
    margin-left: 6px;
  }

  .benefit-marker-icon {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }
}
