/* Γενικά στυλ για τη σελίδα */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f7fa;
  color: #333;
}

header {
  background-image: url('images/slide.jpg');
  background-size: cover;
  background-position: center center;
  position: relative;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

header h1, header p {
  color: #fff;
  z-index: 2;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

header h1 {
  font-size: 3.5rem;
  margin: 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

header p {
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Ρυθμίσεις για τη διάταξη των βιλών */
.villa-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

/* Ρυθμίσεις για κάθε κάρτα βίλας */
.villa-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.villa-card:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

/* Ρυθμίσεις για την εικόνα */
.villa-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* Πληροφορίες για τη βίλα */
.villa-info {
  padding: 20px;
  text-align: center;
  background-color: #fff;
  border-top: 2px solid #eee;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.villa-info h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-align: center;
}

.villa-info p {
  font-size: 1.1rem;
  color: #7f8c8d;
  text-align: left;
  margin-bottom: 20px;
}

/* Ρυθμίσεις για τα κουμπιά */
.villa-buttons {
  display: flex;
  justify-content: center; /* Κεντράρει τα κουμπιά */
  flex-wrap: wrap; /* Επιτρέπει στα κουμπιά να τυλίγονται αν χρειάζεται */
  gap: 10px; /* Δίνει απόσταση μεταξύ των κουμπιών */
  padding: 10px 0;
  border-top: 1px solid #eee;
}

.villa-buttons .btn {
  background-color: #C19B76;
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.3s, color 0.3s, border-color 0.3s;
}

.villa-buttons .btn:hover {
  background-color: #0b0b0b;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.villa-buttons .btn:disabled {
  background-color: #D8D8D8;
  color: #B0B0B0;
  cursor: not-allowed;
}

/* Ρυθμίσεις για responsive σχεδίαση */
@media (max-width: 1024px) {
  .villa-container {
    grid-template-columns: 1fr;
  }
}

/* Responsive σχεδίαση για τα κουμπιά */
@media (max-width: 768px) {
  .villa-buttons {
    flex-wrap: wrap; /* Τα κουμπιά τοποθετούνται σε νέα γραμμή */
    gap: 10px; /* Εξασφαλίζει ομοιόμορφο κενό μεταξύ κουμπιών */
  }

  .villa-buttons .btn {
    white-space: nowrap; /* Κρατάει το κείμενο σε μία γραμμή */
    font-size: 0.9rem; /* Μειώνει ελαφρώς τη γραμματοσειρά */
    padding: 10px 20px; /* Προσαρμοσμένο padding */
  }

  /* Ειδική ρύθμιση για κινητές συσκευές */
@media (max-width: 1024px) {
  .villa-buttons {
    justify-content: space-evenly; /* Τα κουμπιά κατανέμονται ομοιόμορφα */
  }

  .villa-buttons .btn {
    flex: 1; /* Τα κουμπιά καταλαμβάνουν ίσο χώρο */
    max-width: 45%; /* Το μέγιστο πλάτος κάθε κουμπιού σε κινητές συσκευές */
  }
}
}