#hero {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 5rem;
  background-image: url("/assets/images/hero_background.png");
  background-size: cover;
  color: #ffffff;
}

#hero .hero-buttons {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

#hero .hero-buttons button:nth-child(1) {
  background: transparent;
  border: 1px solid #0b1f2a;
}

#hero .stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

#hero .stats div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  background: transparent;
  padding: 1rem;
  position: relative;
}

#hero .stats div::before {
  position: absolute;
  top: -10px;
  left: 0;
  background-color: #0b1f2a;
  width: 100%;
  height: 0.3rem;
  content: "";
  border-radius: 10px;
}

#hero .search {
  display: flex;
  /* gap: 1rem; */
  align-items: center;
  background-color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  color: #0b1f2a;
  width: 100%;
  justify-content: space-between;
}

#hero .search div {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  border-right: 1px solid #303030;
  flex: 1;
}

#hero .search div select,
#hero .search div input[type="number"] {
  width: 100%;
  cursor: pointer;
  padding: 0.5rem 1rem;
  outline: none;
  border: none;
}

#hero .search div select:focus,
#hero .search div input[type="number"]:focus {
  outline: none;
  border: none;
}

#hero .search div:nth-child(5) {
  border-right: none;
}

@media screen and (max-width: 900px) {
  #hero {
    padding: 2rem 1rem;
  }

  #hero .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  #hero .stats .stat:nth-child(3) {
    grid-column: span 2;
    margin-top: 0.5rem;
  }

  #hero .search {
    padding: 0.5rem 0;
  }

  #hero .search select,
  #hero .search input {
    font-weight: bold;
    font-size: 1.1rem;
  }

  #hero .search button {
    border-radius: 0;
    width: 100%;
    justify-content: center;
  }

  #hero .hero-buttons {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }

  #hero .search {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  #hero .search div {
    width: 100%;
    border-right: none;
    justify-content: space-between;
  }
}

#featured {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 5rem;
  overflow: hidden;
}

#featured .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

#featured .row button {
  flex: 1;
  justify-content: center;
}

#featured a {
  color: #ffffff;
}

#featured .properties-container {
  overflow: hidden;
}

#featured .properties {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease-in-out;
  flex-wrap: nowrap;
}

#featured .properties .property {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #0b1f2a;
  flex: 0 0 380px; /* fixed width: 450px */
  max-width: 380px;
  min-width: min-content;
  justify-content: space-between;
}

#featured .properties .property .property-image {
  position: relative;
}

#featured .properties .property .property-image .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #e57373;
  color: #ffffff;
  padding: 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
}

#featured .properties .property .desc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#featured .properties .property .desc div {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #0b1f2a;
  border-radius: 20px;
  align-items: center;
  min-width: max-content;
}

#featured .properties .property .desc div p {
  text-wrap: nowrap;
}

#featured .properties .property .price {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.navigation {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.navigation div {
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  border: 1px solid #0b1f2a;
  border-radius: 100%;
  padding: 0.5rem;
  background-color: #ffffff;
  color: #0b1f2a;
}

.navigation div:nth-child(2) {
  background-color: #0b1f2a;
  color: #ffffff;
}

@media screen and (max-width: 900px) {
  #featured {
    padding: 2rem 1rem;
  }

  #featured .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  #featured .properties {
    gap: 1rem;
  }

  #featured .row button {
    width: 100%;
  }

  .navigation {
    justify-content: flex-start;
  }

  #featured .properties .property .price {
    flex-direction: row;
  }

  #featured .properties .property {
    flex: 0 0 100%; /* fixed width: 450px */
    max-width: 100%;
  }

  #featured .properties .property .desc {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

#properties {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 5rem;
}

#properties .property-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

#properties .property-cards .card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

#properties .property-cards .card:hover {
  cursor: pointer;
}

/* #properties .property-cards .card:nth-child(4) {
  grid-column: span 2;
} */

/* #properties .property-cards .card:nth-child(4) .property-desc {
  top: 2rem;
  left: 3rem;
} */

#properties .property-cards .card .property-desc {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem;
  background: transparent;
  color: #ffffff;
}

#properties .card img {
  height: 100%;
}

@media screen and (max-width: 900px) {
  #properties {
    padding: 2rem 1rem;
  }

  #properties .property-cards .card:nth-child(4) {
    grid-column: span 1;
  }
}

#about {
  display: flex;
  justify-content: space-between;
  gap: 30%;
  padding: 2rem 5rem;
}

#about .about-left,
#about .about-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

#about button a {
  color: #ffffff;
}

@media screen and (max-width: 900px) {
  #about {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
  }
}

#frame {
  padding: 1rem 0;
  overflow-x: hidden;
  background-color: #0b1f2a;
  margin-top: 5rem;
  margin-bottom: 5rem;
}

#frame .frame-container {
  display: flex;
  gap: 0;
  animation: scrollText 15s linear infinite;
  padding-left: 50%;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

#frame .frame-container .insight {
  padding: 0 0.5rem;
  color: #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
  min-height: fit-content;
}

#frame .frame-container .insight p {
  text-wrap: nowrap;
  font-size: 0.75rem;
}

#testimonal {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 5rem;
  background-color: #f7f9fb;
}

#testimonal .testimonal-cards {
  display: flex;
  gap: 2rem;
}

#testimonal .testimonal-cards .card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #0b1f2a;
}

#testimonal .testimonal-cards .card p:first-of-type {
  margin-bottom: 1rem;
}

#testimonal .testimonal-container {
  overflow: hidden;
}

#testimonal .navigation {
  display: none;
}

@media screen and (max-width: 900px) {
  #testimonal {
    padding: 2rem 1rem;
  }

  #testimonal .testimonal-cards .card {
    flex: 0 0 100%; /* fixed width: 450px */
    max-width: 100%;
  }

  #testimonal .navigation {
    display: flex;
  }
}

#blog {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 5rem;
}

#blog .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7rem;
}

#blog .blog-container {
  overflow: hidden;
}

#blog .blog-cards {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  transition: transform 0.5s ease-in-out;
  flex-wrap: nowrap;
}

#blog .blog-cards .card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #0b1f2a;
  flex: 0 0 350px; /* fixed width: 450px */
  max-width: 350px;
  justify-content: space-between;
}

#blog .blog-cards .card p:first-of-type {
  margin-bottom: 1rem;
}

#blog .blog-cards .card button {
  width: 100%;
  justify-content: center;
}

@media screen and (max-width: 900px) {
  #blog {
    padding: 2rem 1rem;
  }

  #blog .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  #blog .blog-cards .card {
    flex: 0 0 100%; /* fixed width: 450px */
    max-width: 100%;
  }
}

.search-carousel {
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  padding: 0.5rem;
  border-radius: 10px;
}

.search-track {
  display: flex;
  transition: transform 0.3s ease;
}

.search-slide {
  flex: 0 0 100%;
  padding: 10px;
}

.search-slide select,
.search-slide input {
  width: 100%;
  cursor: pointer;
  outline: none;
  border: none;
  font-weight: bold;
  font-size: 1.1rem;
  background-color: #ffffff;
}

.search-slide select:focus,
.search-slide input[type="number"]:focus {
  outline: none;
  border: none;
  background-color: #ffffff;
}

/* On larger screens show all fields normally */
@media (min-width: 768px) {
  .search-track {
    display: flex;
    align-items: center;
    transform: none !important;
    flex: 1;
  }
  .search-slide {
    flex: 1;
  }

  .search-slide button {
    margin-left: auto;
  }

  .search-carousel {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}
