/* villa-detail.css */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
}

main {
  padding-top: 100px; /* Header yüksekliği için boşluk */
}

.villa-detail-section {
  padding: 60px 0;
}

.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Geri Dönüş Linki */
.back-link {
  display: inline-flex;
  align-items: center;
  color: #666;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 30px;
  transition: color 0.3s ease;
}

.back-link i {
  margin-right: 8px;
  font-size: 14px;
}

.back-link:hover {
  color: #8b4513;
}

/* Villa Başlık */
.villa-title {
  font-size: 2.5rem;
  color: #2d3e2e;
  margin: 0 0 10px 0;
}

.villa-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
}

/* Fotoğraf Galerisi */
.villa-gallery {
  margin-bottom: 40px;
}

.main-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: #f5f5f5; /* Görsel arka planı için renk */
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* "cover" yerine "contain" kullanarak görselin tamamını gösteriyoruz */
  transition: transform 0.3s ease;
}

.main-image img:hover {
  transform: scale(1.02);
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #8b4513 #f1f1f1;
}

/* Webkit tarayıcılar için scrollbar stilini özelleştirin */
.gallery-thumbnails::-webkit-scrollbar {
  height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: #8b4513;
  border-radius: 10px;
}

.gallery-thumbnails img {
  width: 120px;
  height: 80px;
  object-fit: contain; /* "cover" yerine "contain" kullanarak görselin tamamını gösteriyoruz */
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background-color: #f5f5f5; /* Thumbnail arka planı için renk */
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
  border-color: #8b4513;
  transform: translateY(-2px);
}

/* Villa Özeti */
.villa-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.overview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}

.overview-item i {
  font-size: 24px;
  color: #8b4513;
  width: 40px;
  height: 40px;
  background: rgba(139, 69, 19, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Özellik Bölümleri */
.feature-section {
  margin-bottom: 40px;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 1.6rem;
  color: #2d3e2e;
  margin-top: 0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title i {
  color: #8b4513;
  font-size: 1.8rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-item i {
  color: #27ae60;
  margin-top: 4px;
}

/* İletişim Bölümü */
.contact-section {
  background: linear-gradient(135deg, #2d3e2e 0%, #516953 100%);
  padding: 40px;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
}

.contact-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item i {
  font-size: 20px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button.primary {
  background: #fff;
  color: #2d3e2e;
}

.cta-button.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  .main-image {
    height: 400px;
  }

  .gallery-thumbnails img {
    width: 100px;
    height: 70px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .contact-info {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .main-image {
    height: 300px;
  }

  .gallery-thumbnails img {
    width: 80px;
    height: 60px;
  }

  .villa-title {
    font-size: 2rem;
  }

  .contact-section {
    padding: 30px 20px;
  }
}
