/* === Base styles === */
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: #212529;
  transition: 0.3s ease;
}

a:hover {
  color: #00bfa6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2, h3 {
  margin-bottom: 0.5em;
  line-height: 1.2;
}

/* === Header === */
.header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 1.4em;
  color: #00bfa6;
}

.nav a {
  margin-left: 20px;
  font-weight: 600;
  transition: color 0.2s ease;
}

/* === Hero section === */
.hero {
  background: linear-gradient(135deg, #00bfa6, #64ffda);
  color: white;
  padding: 70px 20px;
  text-align: center;
  border-radius: 0 0 24px 24px;
}

.hero h1 {
  font-size: 2.7em;
  margin-bottom: 0.4em;
}

.hero p {
  font-size: 1.2em;
  opacity: 0.9;
}

/* === Sections === */
.section {
  padding: 60px 20px;
  animation: fadeIn 0.6s ease;
}

.section h2 {
  font-size: 2em;
  color: #00bfa6;
  margin-bottom: 1em;
}

/* === Flats List === */
.flats-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.flat-card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.flat-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 14px;
  object-fit: cover;
  height: 180px;
}

.flat-card h3 {
  margin: 0.2em 0;
  font-size: 1.3em;
}

.flat-card p {
  margin: 0.3em 0;
}

.flat-card button {
  background: linear-gradient(to right, #00bfa6, #00c9a7);
  color: white;
  border: none;
  padding: 12px;
  font-size: 1em;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s ease;
}

.flat-card button:hover {
  background: linear-gradient(to right, #00a491, #00bfa6);
}

/* === Booking form === */
#booking-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

#booking-form input[type="date"] {
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
  transition: 0.2s ease;
}

#booking-form input[type="date"]:focus {
  border-color: #00bfa6;
  box-shadow: 0 0 4px rgba(0, 191, 166, 0.4);
}

#booking-form button {
  background-color: #00bfa6;
  color: white;
  padding: 14px;
  font-size: 1em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#booking-form button:hover {
  background-color: #009e8c;
}

/* === Contact form === */
#contact-form-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  padding: 24px;
  margin-top: 40px;
  animation: fadeIn 0.5s ease-in-out;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #00bfa6;
  box-shadow: 0 0 5px rgba(0, 191, 166, 0.3);
}

#contact-form button {
  background: #00bfa6;
  color: white;
  padding: 14px 24px;
  font-size: 1em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#contact-form button:hover {
  background: #009e8c;
}

/* === Success message === */
#success-message {
  padding: 16px;
  background-color: #e6fff6;
  border: 1px solid #00bfa6;
  color: #007f6a;
  border-radius: 10px;
  font-weight: 600;
  animation: fadeIn 0.4s ease;
}

/* === Booking message === */
#booking-message p {
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  margin-top: 10px;
}

#booking-message p[style*="green"] {
  background-color: #e6fffa;
  color: #007f6a;
}

#booking-message p[style*="red"] {
  background-color: #ffe6e6;
  color: #c10000;
}

/* === Contacts === */
.contacts p {
  margin: 6px 0;
  font-size: 1.1em;
}

/* === Footer === */
.footer {
  background: #343a40;
  color: #f8f9fa;
  text-align: center;
  padding: 20px;
  font-size: 0.95em;
}

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Responsive === */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .nav a {
    margin-right: 10px;
    margin-left: 0;
  }

  .hero h1 {
    font-size: 1.9em;
  }

  .section {
    padding: 40px 16px;
  }

  .flat-card {
    padding: 16px;
  }

  .flat-card img {
    height: 160px;
  }
}
