* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  padding: 20px;
}

.left-container,
.right-container {
  padding: 20px;
}

.left-container {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.carousel-wrapper {
  width: 100%;
  height: 500px;
  /* adjust as needed */
  overflow: hidden;
  border-radius: 8px;
}

.carousel-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.card.active {
  background-color: #fae0e0;
  border: 2px solid #f58181;
}

.card:hover {
  background-color: #fae0e0;
}

.card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  margin: 5px 0;
  font-size: 16px;
}

.right-container {
  width: 60%;
}

#map {
  width: 100%;
  height: 50%;
  min-height: 400px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Media Queries */
@media (max-width: 1024px) {
  .card h2 {
    font-size: 18px;
  }

  .card p {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .left-container,
  .right-container {
    width: 100%;
  }

  .right-container {
    margin-top: 20px;
  }

  .card h2 {
    font-size: 17px;
  }

  .card p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    flex-direction: column;
  }

  .left-container,
  .right-container {
    width: 100%;
  }

  .card h2 {
    font-size: 16px;
  }

  .card p {
    font-size: 13px;
  }
  .carousel-wrapper {
    margin-bottom: 10px; /* Reduce or control spacing below */
    height: auto;         /* Allow it to adjust based on content */
  }

  .swiper-slide {
    height: auto;         /* Let slides adapt naturally */
  }

  .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  #map {
    margin-top: 0;       /* Remove any default spacing above map */
  }
}