/* Основные стили для страницы жилого комплекса */
.real-estate-container {
  font-family: 'Arial', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  color: #333;
  line-height: 1.6;
}

.complex-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 28px;
}

.section-title {
  color: #2c3e50;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 10px;
  margin-top: 30px;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-title.animated {
  opacity: 1;
}

/* Стили для списков с иконками */
.features-list, .price-list, .additional-features, .contact-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.features-list li, .price-list li, .additional-features li, .contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.icon {
  color: #e74c3c;
  margin-right: 15px;
  font-size: 18px;
  min-width: 25px;
  text-align: center;
}

.feature-name {
  font-weight: bold;
  margin-right: 10px;
  flex: 0 0 200px;
}

.feature-value {
  flex: 1;
}

.price-note {
  font-style: italic;
  color: #7f8c8d;
}

/* Галерея */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

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

/* Карты */
.map-section {
  margin-top: 40px;
}

.map-tabs {
  display: flex;
  margin-bottom: 15px;
}

.map-tab {
  padding: 10px 20px;
  background: #ecf0f1;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-right: 10px;
  border-radius: 5px 5px 0 0;
  transition: all 0.3s ease;
}

.map-tab.active {
  background: #e74c3c;
  color: white;
}

.map-tab:hover:not(.active) {
  background: #bdc3c7;
}

.map-iframe {
  display: none;
  height: 450px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.map-iframe.active {
  display: block;
}

.map-iframe iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .features-list li, .price-list li, .additional-features li, .contact-list li {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .feature-name {
    flex: 1;
    margin-bottom: 5px;
  }
  
  .feature-value {
    flex: 1;
    padding-left: 35px;
  }
  
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .section-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .complex-title {
    font-size: 22px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .map-tabs {
    flex-direction: column;
  }
  
  .map-tab {
    margin-right: 0;
    margin-bottom: 5px;
    border-radius: 5px;
  }
  
  .map-iframe {
    height: 300px;
  }
}