/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #006994;
  padding: 1rem 2rem;
  position: relative;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  z-index: 1100;
}

.nav-links li a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #ffdd57;
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 4px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background-color: #ffdd57;
  color: #333;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #f0c93d;
}

/* Hero Slider */
.hero-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.hero-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fade 12s infinite;
}

.hero-slider img:nth-child(1) { animation-delay: 0s; }
.hero-slider img:nth-child(2) { animation-delay: 4s; }
.hero-slider img:nth-child(3) { animation-delay: 8s; }

@keyframes fade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  33% { opacity: 1; }
  41% { opacity: 0; }
  100% { opacity: 0; }
}

/* Intro Section */
.intro {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #fff;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.intro p {
  max-width: 800px;
  margin: 0 auto 1rem;
  font-size: 1.1rem;
  color: #555;
}

/* Apartments List */
.apartments-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.apartment-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Single-Image Gallery with Arrows */
/* Apartment Image Gallery */
/* Apartment Image Gallery */
.apartment-gallery {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 400px; /* Adjust this based on your design */
  width: 100%; /* Make sure the gallery container spans the full width */
}

.scrollable-thumbs {
  display: flex;
  gap: 1rem;
  overflow-x: hidden; /* Prevent horizontal scrolling on the container itself */
  scroll-behavior: smooth;
  transition: transform 0.3s ease; /* Smooth scroll animation */
}

.gallery-image {
  flex-shrink: 50; /* Prevent the images from shrinking */
  width: 100%; /* Set to 100% to maintain aspect ratio */
  max-width: 400px; /* Adjust based on your design */
  object-fit: cover; /* Ensures images are not stretched */
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 10px;
}

/* Next and Prev Buttons */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 2rem;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.prev-btn:hover, .next-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}



.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.apartment-info {
  padding: 1.5rem;
  flex:auto;
}

.apartment-info h3 {
  margin-bottom: 1rem;
  color: #006994;
}

.apartment-info ul {
  margin-bottom: 1rem;
  color: #555;
}

.apartment-info ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.apartment-info ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #006994;
}

.apartment-info p {
  color: #555;
}

/* Map Section */
.map-section {
  padding: 2rem;
  background-color: #fff;
}

.map-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Location Info */
.location-info {
  padding: 2rem;
  background-color: #f1f1f1;
  text-align: center;
}

.location-info h3 {
  margin-bottom: 1rem;
  color: #006994;
}

.location-info ul {
  margin-bottom: 1rem;
  color: #555;
}

.location-info ul li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: #006994;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #006994;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
    border-radius: 0 0 0 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .apartments-list {
    padding: 1rem;
  }

  .apartment-card {
    flex-direction: column;
  }

  .apartment-info {
    padding: 1rem;
  }
}

@media (min-width: 769px) {
  .apartment-card {
    flex-direction: row;
  }

  .apartment-info {
    padding: 1.5rem;
  }
}

/* Contact button*/

.apartment-info .btn {
  margin-bottom: 10px;
}

.apartment-info p {
  margin-top: 10px;
}
