/* --- RESET & BODY --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body, html {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #9b00e8, #3a006b, #000000);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
  display: flex;
  flex-direction: column;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

main { flex: 1; padding: 20px 0; }

/* --- HERO SECTION --- */
.hero-section, .hero-content {
  text-align: center;
  color: white;
  padding: 80px 20px;
}
.hero-content {
  background-color: rgba(103, 10, 170, 0.5);
  border-radius: 10px;
}
.hero-content .btn { background: #ff914d; color: #900ebe; transition: 0.3s ease; }
.hero-content .btn:hover { background: #e46c1b; transform: scale(1.05); }

/* --- SEARCH FORM --- */
.search-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.search-form input, .search-form button {
  padding: 10px 14px;
  border-radius: 8px;
  min-width: 180px;
  font-size: 16px;
}
.search-form input:focus { border-color: #5c27d6; outline: none; }
.search-form button {
  background: #5c27d6; color: white; border: none;
}
.search-form button:hover { background: #431fa1; transform: scale(1.05); }

/* --- APARTMENTS LIST --- */
.apartment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 50px 20px;
}
.apartment-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  overflow: hidden;
  transition: 0.3s ease;
}
.apartment-card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* --- IMAGE GALLERY --- */
.image-container { height: 200px; overflow: hidden; }
.apartment-image { width: 100%; height: 100%; object-fit: cover; transition: 0.3s ease; }
.apartment-image:hover { transform: scale(1.05); }

/* --- NAVBAR --- */
.navbar {
  background: #3a006b;
  color: white;
  padding: 15px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  box-sizing: border-box;
}

.navbar a {
  color: white;
  text-decoration: none;
  margin-right: 20px;
  transition: color 0.3s;
}
.navbar a:hover { color: #ff914d; }

/* --- FEATURED, CAROUSEL & FOOTER --- */
.featured-section, .site-footer {
  text-align: center;
  padding: 50px 20px;
}
.site-footer {
  background: rgba(0,0,0,0.7);
  color: white;
}

.carousel-track { display: flex; overflow-x: auto; gap: 20px; }
.carousel-item { flex: 0 0 auto; width: 280px; background: white; border-radius: 10px; }

/* --- TABLES (Bookings) --- */
.bookings-table {
  width: 100%;
  border-collapse: collapse;
}
.bookings-table th, .bookings-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}
.bookings-table tr:nth-child(even) { background: #f9f9f9; }

/* --- BUTTONS --- */
.btn-primary { background: #5c27d6; color: rgb(232, 229, 232); }
.btn-primary:hover { background: #431fa1; }
.btn-danger { background: #e53935; color: rgb(39, 39, 39); }
.btn-danger:hover { background: #c62828; }



/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-section, .search-form, .apartment-grid, .navbar {
    flex-direction: column;
    align-items: center;
  }
}
