/* House Detail Page Styles */
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
}

.page-container {
  margin-top: 80px;
  padding: 40px 0;
}

.house-title {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
  font-weight: 700;
  font-size: 24px;
}

.house-subtitle {
  text-align: center;
  color: seagreen;
  font-size: 16px;
  margin-bottom: 40px;
}

/* House Slider Styles */
.house-detail-slider {
  position: relative;
  max-width: 1170px;
  margin: 0 auto 50px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.slider-container {
  position: relative;
  height: 800px;
  overflow: hidden;
}

.house-detail-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.house-detail-slide.active {
  opacity: 1;
}

.house-detail-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
}

.detail-slider-btn {
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.detail-slider-btn:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.1);
}

.detail-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.detail-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.detail-dot.active {
  background: white;
  transform: scale(1.2);
}

/* House Description Styles */
.house-description {
  max-width: 1170px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.description-intro {
  text-align: center;
  margin-bottom: 40px;
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

.description-intro p {
  font-size: 16px;
}

.room-layout {
  margin-bottom: 40px;
}

.room-layout h3 {
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.room-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid seagreen;
  transition: all 0.3s ease;
}

.room-item:hover {
  background: #e3f2fd;
  transform: translateX(5px);
}

.room-name {
  font-weight: 400;
  color: #2c3e50;
  font-size: 16px;
}

.room-area {
  font-weight: 400;
  color: seagreen;
  font-size: 16px;
}

.total-area {
  background: seagreen;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-top: 30px;
}

.total-area h4 {
  margin: 0;
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.house-features {
  font-size: 16px;
  margin-top: 40px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
}

.house-features h4 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-item i {
  color: seagreen;
}

/* Navigation Buttons */
.house-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  padding: 30px 0;
  border-top: 1px solid #eee;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: seagreen;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 400;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.nav-btn:hover {
  background: #495057;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

.nav-btn:disabled {
  background: #ddd;
  color: #999;
  cursor: not-allowed;
  transform: none;
}

.back-to-gallery {
  background: #6c757d;
  padding: 12px 24px;
  font-size: 16px;
}

.back-to-gallery:hover {
  background: #495057;
}

.nav-controls {
  display: flex;
  gap: 15px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .house-title {
    font-size: 2rem;
  }
  
  .slider-container {
    height: 300px;
  }
  
  .house-description {
    margin: 0 15px;
    padding: 25px;
  }
  
  .rooms-grid {
    grid-template-columns: 1fr;
  }
  
  .house-navigation {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .detail-slider-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-container {
    margin-top: 70px;
    padding: 20px 0;
  }
  
  .house-title {
    font-size: 1.8rem;
  }
  
  .slider-container {
    height: 250px;
  }
  
  .house-description {
    padding: 20px;
  }
  
  .rooms-grid {
    grid-template-columns: 1fr;
  }
  
  .room-item {
    padding: 12px 15px;
  }
  
  .nav-controls {
    flex-direction: column;
    width: 100%;
  }
}