/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
}
html,
body {
  overflow-x: hidden;
}
header {
  background-color: #333;
  padding: 20px 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

nav ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

nav ul.nav-left {
  flex: 1;
}

nav ul.nav-center {
  flex: 2;
  justify-content: center;
}

nav ul.nav-right {
  flex: 1;
  justify-content: flex-end;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
}

nav ul li a img {
  filter: brightness(0) invert(1);
  width: 100px;
  height: auto;
}
.apartment {
  display: flex;
  justify-content: space-between;
  padding: 50px 20px;
  background-color: #fff;
  flex-wrap: wrap;
}

.apartment-left {
  flex: 1;
  max-width: 50%;
  padding: 20px;
  box-sizing: border-box;
}

.apartment-description {
  flex: 1;
  max-height: 50%;
  padding: 20px;
  background-color: #444;
  color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: auto;
}

.apartment-description p {
  margin-bottom: 15px;
}

.reviews-section {
  font-family: "Arial", sans-serif;
  font-size: 1em;
  line-height: 1.6;
  color: #f9f9f9;
  padding: 20px;
}

.review {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  background-color: #444;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.review.active {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.review:not(.active) {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.apartment-right {
  flex: 1;
  max-width: 50%;
  padding: 20px;
  box-sizing: border-box;
}

.apartment-slideshow {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
}

.apartment-slideshow .slide {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  border-radius: 10px;
  overflow: hidden;
}

.apartment-slideshow .slide.active {
  display: block; /* Show only the active slide */
}

.apartment-slideshow button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.apartment-slideshow button:hover {
  background: rgba(0, 0, 0, 0.7);
}

.apartment-slideshow .prev {
  left: 10px;
}

.apartment-slideshow .next {
  right: 10px;
}

.button-container {
  text-align: center;
  margin: 20px 0;
}

.blue-button {
  display: inline-block; /* Change to inline-block to avoid full-width */
  background-color: #007bff;
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.blue-button:hover {
  background-color: #0056b3;
}

footer {
  background-color: #333;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px; /* Adjust padding to your needs */
  font-family: "Arial", sans-serif; /* Use a clean, readable font */
}

.footer-left,
.footer-right {
  flex: 0 0 auto;
}

.footer-left img {
  width: 100px;
  height: auto;
}
.footer-right img {
  width: 75px; /* Adjust the width to make it smaller */
  height: auto; /* Maintain aspect ratio */
  margin-right: 20px; /* Optional: Adjust margin if needed */
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  flex: 1;
  font-family: "Georgia", serif;
}

.footer-content p {
  margin-bottom: 10px;
}

.white-icon {
  filter: brightness(0) invert(1);
  width: 30px; /* Adjust size as needed */
  height: 30px;
}

/* Responsive styles */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }
  nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }

  .apartment {
    flex-direction: column;
    align-items: center;
  }

  .apartment-left,
  .apartment-right {
    max-width: 90%;
    margin: 10px 0;
  }

  .blue-button {
    width: 100%;
  }
  .footer-left img {
    width: 80px; /* Resize the logo in the footer on tablets and smaller devices */
  }

  .footer-right img {
    width: 60px; /* Resize the other image in the footer on tablets and smaller devices */
  }
}

@media (max-width: 480px) {
  body {
    font-size: 12px;
  }

  nav {
    padding: 10px;
  }

  nav ul {
    flex-direction: row;
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    white-space: nowrap; /* Prevent items from wrapping */
    gap: 5px; /* Adjust the gap between items */
  }

  nav ul li {
    flex: 0 0 auto;
  }

  nav ul li a {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  nav ul li a img {
    width: 70px; /* Adjust logo size on very small screens */
  }

  .apartment-description p {
    font-size: 0.9em;
  }

  .review {
    font-size: 1em;
  }

  .blue-button {
    font-size: 1em;
  }
  .footer-left img {
    width: 60px; /* Further resize for smaller mobile devices */
  }

  .footer-right img {
    width: 50px; /* Further resize for smaller mobile devices */
  }
}
