/* ==========================================================================
   Homepage (front-page.php). Loaded only on the front page, after style.css.
   Clean, light layout: white header -> centered photo hero -> floating
   search -> floating feature card -> airy 3-up listing cards.
   ========================================================================== */

body.home {
  background: #F8F8F6;
  --home-ink: #1B1B1B;
  --home-mute: #6E6E6A;
  --home-line: rgba(27, 27, 27, 0.08);
}

/* ---- Header: solid white bar, dark links (matches reference) ---------- */
body.home .site-header:not(.is-scrolled) {
  background: #fff;
  box-shadow: 0 1px 0 var(--home-line);
}

/* ---- Hero ------------------------------------------------------------ */
.hero--home {
  min-height: min(80vh, 700px);
  padding-bottom: 150px;
  text-align: center;
}
.hero--home .hero__content {
  padding-top: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero--home .hero__title {
  max-width: 17ch;
  margin: 0 auto;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(34px, 5.6vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #fff;
}
.hero--home .hero__subtitle { max-width: 52ch; margin: 18px auto 0; }

.hero--home { position: relative; overflow: hidden; background: #1c232b; }
.hero__layer--photo { position: absolute; inset: 0; transform: none !important; }
.hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.hero--home .hero__content { position: relative; z-index: 2; }
.hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.18) 0%, rgba(14, 18, 24, 0.42) 55%, rgba(14, 18, 24, 0.5) 100%);
  pointer-events: none;
}
.hero--photo .hero__title { text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4); }

.hero__cta {
  display: inline-block;
  margin-top: 34px;
  padding: 12px 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  transition: background 0.3s ease, color 0.3s ease;
}
.hero__cta:hover { background: #fff; color: var(--home-ink); }
.hero__cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---- Floating search bar ---------------------------------------------- */
.home-search { position: relative; z-index: 6; margin-top: -84px; }
.home-search .search-form {
  max-width: 1060px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px 14px;
  gap: 4px;
  box-shadow: 0 26px 50px -28px rgba(10, 14, 20, 0.55);
}
.home-search .search-form__tabs { padding: 2px 6px 8px; }
.home-search .search-form__row { gap: 0; flex-wrap: nowrap; align-items: center; }
.home-search .search-form__field { border-radius: 0; border-left: 1px solid var(--home-line); padding: 6px 20px; min-width: 0; }
.home-search .search-form__field:first-child { border-left: 0; padding-left: 8px; }
.home-search .search-form__field select { cursor: pointer; }
.home-search .search-form__submit {
  background: var(--home-ink);
  color: #fff;
  border-radius: 999px;
  padding: 15px 44px;
  margin-left: 10px;
}
.home-search .search-form__submit:hover { background: #000; }

/* ---- Floating feature card -------------------------------------------- */
.home-features { position: relative; z-index: 5; margin-top: 16px; }
.home-features__card {
  max-width: 1060px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px -26px rgba(10, 14, 20, 0.35);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.feature { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; color: inherit; transition: background 0.25s ease; }
a.feature:hover { background: #F1F1EE; }
.feature__icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #4A4A48;
  color: #fff;
  display: grid; place-items: center;
}
.feature__icon svg { width: 21px; height: 21px; }
.feature--action .feature__icon { background: var(--home-ink); color: #fff; }
.feature__title { display: block; font-weight: 800; font-size: 14.5px; line-height: 1.25; color: var(--home-ink); }
.feature__sub { display: block; font-size: 12.5px; color: var(--home-mute); margin-top: 2px; }

/* ---- Sections + cards -------------------------------------------------- */
.home-section { padding-top: clamp(56px, 8vw, 96px); }
.home-section + .home-section { padding-top: clamp(44px, 6vw, 72px); }
.home-head { text-align: center; margin-bottom: 36px; }
.home-head h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.015em;
  color: var(--home-ink);
}
.home-head p { color: var(--home-mute); margin: 10px auto 0; max-width: 52ch; font-size: 15.5px; }

.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.home-card { display: block; color: inherit; }
.home-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #E7E6E1; box-shadow: none; }
.home-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.home-card:hover .home-card__media img { transform: scale(1.03); }
.home-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 13px; color: var(--home-mute); }
.home-card__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.home-badge { background: rgba(255, 255, 255, 0.95); color: var(--home-ink); font-size: 11.5px; font-weight: 800; padding: 5px 11px; border-radius: 999px; }
.home-badge--featured { background: var(--home-ink); color: #fff; }
.home-badge--rera { background: #fff; color: var(--home-ink); }

.home-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 14px; }
.home-card__title { font-family: var(--font-body); font-weight: 800; font-size: 18px; line-height: 1.28; color: var(--home-ink); }
.home-card__price { font-weight: 800; font-size: 17px; color: var(--home-ink); white-space: nowrap; }
.home-card__price small { font-weight: 600; font-size: 12px; color: var(--home-mute); }
.home-card__sub { margin-top: 4px; font-size: 13.5px; color: var(--home-mute); }
.home-card__meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.home-chip { font-size: 12.5px; font-weight: 700; padding: 5px 12px; background: #fff; border: 1px solid var(--home-line); border-radius: 999px; }
.home-more { text-align: center; margin-top: 44px; }
.home-divider { margin-top: clamp(56px, 8vw, 96px); }
body.home .section--alt { padding-top: clamp(56px, 7vw, 90px); }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); }
  .home-features__card { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero--home { padding-bottom: 120px; min-height: 0; }
  .hero--home .hero__content { padding-top: 90px; }
  .home-search { margin-top: -72px; }
  .home-search .search-form__row { flex-direction: column; align-items: stretch; }
  .home-search .search-form__field,
  .home-search .search-form__field:first-child { border-left: 0; border-bottom: 1px solid var(--home-line); padding: 10px 8px; }
  .home-search .search-form__submit { margin: 8px 0 0; width: 100%; }
}
@media (max-width: 560px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-features__card { grid-template-columns: 1fr; }
}

/* CTA band now holds three buttons: let them wrap instead of overflowing on phones. */
body.home .cta-band__actions { flex-wrap: wrap; justify-content: center; }