/* === FILTER CONTROLS === */
.filter-controls {
  max-width: 900px;
  margin: 2rem auto 1rem;
  text-align: center;
}

.filter-controls label {
  margin-right: 0.5rem;
  font-weight: bold;
}

/* === APARTMENT CARDS === */
.apartments-preview {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.apartment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.apartment-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.apartment-card:hover {
  transform: translateY(-4px);
}

.apartment-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 300px;
  display: block;
  background-color: #f0f0f0;
}


.apartment-card h3 {
  font-size: 1.2rem;
  margin: 0.75rem 1rem 0.25rem;
  color: #b22222;
}

.apartment-card p {
  margin: 0 1rem 0.5rem;
  color: #333;
}

.availability-label {
  display: inline-block;
  margin: 0.25rem 1rem 0.75rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
}

.available {
  background-color: #d4edda;
  color: #155724;
}

.leased {
  background-color: #f8d7da;
  color: #721c24;
}

/* === NAVIGATION === */
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: 2px solid #fff;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    color: #fff;
    cursor: pointer;
  }

  .navbar {
    display: none;
    flex-direction: column;
    align-items: stretch;
    background-color: #000;
    width: 100%;
    padding: 0;
    border-top: 2px solid #b22222;
    transition: all 0.3s ease;
  }

  .navbar a {
    color: #fff;
    padding: 1rem;
    border-bottom: 1px solid #333;
    text-align: left;
    font-weight: bold;
    text-decoration: none;
  }

  .navbar a:hover {
    background-color: #111;
  }
}
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    height: auto !important;
  }

  .logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    height: 80px;
    box-sizing: border-box;
  }

  .logo-wrapper {
    display: flex;
    align-items: center;
  }
  .menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    color: #fff;
    cursor: pointer;
  }

  .navbar {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: #000;
    width: 100%;
    padding: 0;
    border-top: 2px solid #b22222;
  }

  .navbar.open {
    display: flex;
  }

  .navbar a {
    color: #fff;
    padding: 1rem;
    width: 100%;
    text-align: left;
    font-weight: bold;
    border-bottom: 1px solid #333;
  }

  .header-underline {
    height: 6px;
    background-color: #c8102e;
    width: 100%;
  }
}
.logo-wrapper img.big-logo {
  max-height: 125px;
  height: auto;
  width: auto;
  display: block;
}
.apartment-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.price {
  font-size: 1rem;
  font-weight: bold;
  margin: 0.25rem 0 0.75rem;
  color: #000;
}

.per-bedroom {
  font-size: 0.85rem;
  font-weight: normal;
  color: #555;
  margin-left: 4px;
}
.old-price {
  text-decoration: line-through;
  color: #888;
  margin-right: 0.5rem;
  font-weight: normal;
}

.new-price {
  color: #c8102e;
  font-weight: bold;
  font-size: 1.2rem;
}

.per-bedroom {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.95rem;
  color: #555;
}
.hero-slider {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.hero-images {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(50, 50, 50, 0.5); /* 🔥 Elegant semi-transparent gray */
  color: #fff;
  padding: 2.5em 2em;
  border-radius: 12px;
  text-align: center;
  max-width: 700px;
  width: 90%;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Optional soft shadow */
}


.hero-images img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.hero-images img.active {
  opacity: 1;
  z-index: 1;
}
@media (max-width: 768px) {
  .hero-slider {
    position: relative;
    height: 70vh;
    overflow: hidden;
  }

  .hero-images {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .hero-images img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
  }

  .hero-images img.active {
    opacity: 1;
    z-index: 1;
  }

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 2em 1em 2.5em;
  border-radius: 10px;
  text-align: center;
  max-width: 95%;
  width: 100%;
  z-index: 2;
}


  .hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5em;
  }

  .hero-text p {
    font-size: 1.05rem;
    margin-bottom: 1em;
  }

  .cta-button {
    font-size: 0.95rem;
    padding: 0.6em 1.5em;
    background-color: #c8102e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
  }
}
/* hide desktop-only images on small screens */
@media (max-width: 768px) {
  .desktop-only { display: none; }
}

