.hero {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/assets/icons/home-card.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  text-align: center;
  padding: 0 30px;
}

.spacer {
  background-color: transparent;
}


.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(20, 8, 8, 0.35) 0%, rgba(20, 8, 8, 0.55) 55%, rgba(20, 8, 8, 0.78) 100%);
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero p {
  font-size: 19px;
  margin-top: 15px;
  font-weight: 300;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.search-bar {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.search-box {
  background: white;
  padding: 6px 4px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  flex: 1;
  min-width: 250px;
}

.search-box input,
.search-box select {
  border: none;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  background: transparent;
  outline: none;
  color: var(--text-color);
  padding: 10px 12px;
}

.search-bar button {
  background: var(--main-color);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  height: 55px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-sans);
  box-shadow: var(--shadow-md);
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-bar button:hover {
  background: var(--main-color-hover);
  transform: translateY(-1px);
}

.featured-properties {
  text-align: center;
  align-items: center;
  padding: 56px 50px 20px 50px;
  justify-content: space-between;
}

.featured-properties h2 {
  font-size: 34px;
  margin-bottom: 8px;
  text-align: left;
}

.featured-properties p {
  font-size: 17px;
  text-align: left;
  margin: 0;
  color: var(--text-muted);
  font-weight: 300;
}

.view-all-btn {
  display: inline-block;
  background-color: white;
  color: var(--main-color);
  font-weight: 600;
  font-size: 0.95em;
  padding: 11px 22px;
  border: 1.5px solid var(--main-color);
  border-radius: var(--radius-pill);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.view-all-btn:hover {
  background-color: var(--main-color);
  color: white;
}

.button-view-all {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 40px;
}

.nav-btn {
  background-color: #e0e0e0;
  color: black;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.3s;
}

.nav-btn:hover {
  background-color: var(--main-color);
  color: white;
}

.properties-section {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding-bottom: 20px;
}

.main-properties {
  display: flex;
  overflow: hidden;
  padding: 30px 10px;
}

.card-container {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease-in-out;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 calc(35% - 20px);
  padding: 10px;
  box-sizing: border-box;
  text-align: left;
  background: var(--bg-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 200px;
  min-width: 200px;
  cursor: pointer;
}

.card .card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.card h2 {
  color: var(--text-color);
  text-align: left;
  font-size: 16px;
  margin: 15px 5px;
  word-wrap: break-word;
  white-space: normal;
}

.card p {
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 15px;
  margin-left: 5px;
}

.location-icon {
  max-width: 16px;
  max-height: 16px;
  width: 100%;
  height: auto;
  margin-right: 5px;
  vertical-align: middle;
}

.operation {
  font-size: 0.85rem;
  color: var(--secondary-color);
  font-weight: 600;
}

.hidden {
  display: none;
}

/* -------------------RESPONSIVE -----------------*/

/* RESPONSIVE DESKTOP < 1920px */
@media (max-width: 1919px) {
  .card {
    flex: 0 0 calc(25% - 20px);
    max-width: calc(25% - 20px);
  }
}

/* RESPONSIVE TABLET */
@media (max-width: 1024px) {
  .card-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .card {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

/* RESPONSIVE MOBILE */
@media (max-width: 600px) {
  .card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .featured-properties {
    padding: 20px 20px;
  }

  .featured-properties h2 {
    font-size: 26px;
    text-align: center;
  }

  .featured-properties p {
    font-size: 15px;
    text-align: center;
  }

  .button-view-all {
    justify-content: center;
    padding-right: 0;
    margin-top: 20px;
  }
}
