/* ═══════════════════════════════════════════════════════════════
   BahayKo — Homepage v4 Unique Styles
   Direction: Warm editorial · illustrated townscape · bold type
   ═══════════════════════════════════════════════════════════════ */

/* ── Shared section helpers ─────────────────────────────────── */
.hp-section-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}
.hp-section-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.hp-section-h2 {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -.025em;
  color: var(--text);
  line-height: 1.1;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hp-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0f1e14;
}

/* SVG townscape background */
.hp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hp-town-svg {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hp-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,20,14,.92) 0%, rgba(10,20,14,.78) 40%, rgba(10,20,14,.2) 100%),
    linear-gradient(to top, rgba(10,20,14,.6) 0%, transparent 60%);
}

/* Inner layout */
.hp-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 72px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: end;
}

/* Location tag */
.hp-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 18px;
}
.hp-tag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #f5a623;
  animation: hp-pulse 2.2s ease infinite;
  flex-shrink: 0;
}
@keyframes hp-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,166,35,.6); }
  50%      { box-shadow: 0 0 0 8px rgba(245,166,35,0); }
}

/* Hero headline */
.hp-hero-h1 {
  font-family: var(--font-head);
  color: #fff;
  line-height: 1.0;
  letter-spacing: -.035em;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}
.hp-h1-line1 {
  font-size: 1.6rem;
  font-weight: 400;
  opacity: .75;
  font-style: italic;
  letter-spacing: -.01em;
}
.hp-h1-line2 {
  font-size: 4.4rem;
  font-weight: 900;
  line-height: .95;
}
.hp-h1-line2 em {
  color: #f5a623;
  font-style: italic;
}
.hp-h1-line3 {
  font-size: 5.5rem;
  font-weight: 900;
  line-height: .9;
  color: #fff;
  position: relative;
  display: inline-block;
}
/* Accent underline on "House." */
.hp-h1-line3::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 60%; height: 4px;
  background: linear-gradient(90deg, #c0531f, transparent);
  border-radius: 2px;
}

.hp-hero-p {
  font-size: 15px;
  color: rgba(255,255,255,.90);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 36px;
}

/* Search box */
.hp-search-wrap { margin-bottom: 0; }
.hp-search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.15);
  max-width: 560px;
  transition: box-shadow .2s, border-color .2s;
}
.hp-search-box:focus-within {
  border-color: rgba(245,166,35,.6);
  box-shadow: 0 8px 40px rgba(0,0,0,.4), 0 0 0 4px rgba(245,166,35,.15);
}
.hp-search-icon {
  padding: 0 14px 0 18px;
  font-size: 16px;
  flex-shrink: 0;
  opacity: .6;
}
.hp-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 16px 0;
  outline: none;
}
.hp-search-box input::placeholder { color: var(--text-3); font-weight: 400; }
.hp-search-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}
.hp-search-box select {
  border: none;
  background: var(--warm-50);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  padding: 0 14px;
  height: 100%;
  min-height: 54px;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}
.hp-search-btn {
  background: linear-gradient(135deg, var(--accent), #e07040);
  color: #fff;
  border: none;
  padding: 0 26px;
  height: 100%;
  min-height: 54px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.hp-search-btn:hover { background: linear-gradient(135deg, var(--accent-d), var(--accent)); }

.hp-search-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.hp-search-tags span {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}
.hp-search-tags button {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  color: rgba(255,255,255,.7);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  cursor: pointer;
  transition: all .18s;
}
.hp-search-tags button:hover {
  background: rgba(245,166,35,.2);
  border-color: rgba(245,166,35,.4);
  color: #f5c842;
}

/* Stat cards (right column) */
.hp-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 4px;
}
.hp-stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 16px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background .2s;
}
.hp-stat-card:hover { background: rgba(255,255,255,.13); }
.hp-stat-card.hp-stat-accent {
  background: rgba(192,83,31,.25);
  border-color: rgba(192,83,31,.4);
}
.hp-stat-num {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.hp-stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  line-height: 1.3;
}

/* Entry animations */
/* hp-tag removed */
.hp-hero-h1   { animation: hp-slide-up .6s .2s both; }
.hp-hero-p    { animation: hp-slide-up .6s .32s both; }
.hp-search-wrap { animation: hp-slide-up .6s .42s both; }
.hp-hero-stats  { animation: hp-slide-up .6s .52s both; }
@keyframes hp-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════════ */
.hp-how {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}
.hp-how-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.hp-how-header {
  text-align: center;
  margin-bottom: 56px;
}
.hp-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.hp-step {
  flex: 1;
  text-align: center;
  padding: 0 32px;
  position: relative;
}
.hp-step-num {
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: -12px;
  letter-spacing: -.05em;
  user-select: none;
}
.hp-step-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.12));
}
.hp-step h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.hp-step p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}
.hp-step-arrow {
  font-size: 1.8rem;
  color: var(--border);
  align-self: center;
  margin-top: -20px;
  flex-shrink: 0;
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════════
   LATEST LISTINGS SECTION
   ═══════════════════════════════════════════════════════════════ */
.hp-listings-wrap {
  background: var(--white);
  padding: 72px 0 80px;
}
.hp-listings-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.hp-listings-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.hp-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid rgba(192,83,31,.25);
  border-radius: 10px;
  transition: all .2s;
  background: rgba(192,83,31,.04);
  white-space: nowrap;
}
.hp-view-all span {
  font-size: 16px;
  transition: transform .2s;
}
.hp-view-all:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}
.hp-view-all:hover span { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════════
   CTA BAND
   ═══════════════════════════════════════════════════════════════ */
.hp-cta-band {
  background: linear-gradient(135deg, #0f1e14 0%, #1a3322 45%, #2d4a35 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.hp-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 600px 300px at 90% 50%, rgba(192,83,31,.18) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 10% 50%, rgba(61,107,79,.2) 0%, transparent 70%);
}
.hp-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.hp-cta-text h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.hp-cta-text p {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  line-height: 1.55;
  max-width: 420px;
}
.hp-cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}
.hp-cta-ghost {
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.75);
}
.hp-cta-ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hp-hero-inner { padding: 72px 32px 64px; gap: 32px; }
  .hp-h1-line2 { font-size: 3.6rem; }
  .hp-h1-line3 { font-size: 4.5rem; }
  .hp-how-inner { padding: 0 32px; }
  .hp-listings-inner { padding: 0 32px; }
  .hp-cta-inner { padding: 0 32px; }
}

@media (max-width: 768px) {
  .hp-hero { min-height: 580px; align-items: flex-end; }
  .hp-hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 24px 56px;
    gap: 32px;
  }
  .hp-hero-overlay {
    background:
      linear-gradient(to bottom, rgba(10,20,14,.5) 0%, rgba(10,20,14,.88) 60%),
      linear-gradient(to right, rgba(10,20,14,.9) 0%, rgba(10,20,14,.4) 100%);
  }
  .hp-h1-line1 { font-size: 1.3rem; }
  .hp-h1-line2 { font-size: 2.8rem; }
  .hp-h1-line3 { font-size: 3.5rem; }
  .hp-hero-p { font-size: 14px; }
  .hp-search-box { max-width: 100%; }
  .hp-hero-stats {
    flex-direction: row;
    gap: 8px;
  }
  .hp-stat-card { flex: 1; padding: 12px 12px; }
  .hp-stat-num { font-size: 1.1rem; }
  .hp-stat-lbl { font-size: 10px; }

  .hp-how { padding: 52px 0; }
  .hp-how-inner { padding: 0 24px; }
  .hp-steps { flex-direction: column; gap: 32px; align-items: stretch; }
  .hp-step { padding: 0; text-align: left; display: grid; grid-template-columns: 48px 1fr; gap: 0 16px; align-items: start; }
  .hp-step-num { font-size: 2.2rem; line-height: 1; margin: 0; grid-row: 1 / 3; align-self: center; }
  .hp-step-icon { font-size: 1.5rem; margin: 0 0 6px; }
  .hp-step h3 { text-align: left; }
  .hp-step p { text-align: left; max-width: 100%; }
  .hp-step-arrow { display: none; }

  .hp-listings-wrap { padding: 52px 0 60px; }
  .hp-listings-inner { padding: 0 24px; }
  .hp-listings-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .hp-cta-band { padding: 52px 0; }
  .hp-cta-inner { flex-direction: column; align-items: flex-start; padding: 0 24px; gap: 28px; }
  .hp-cta-text h2 { font-size: 1.6rem; }
  .hp-cta-actions { width: 100%; }
  .hp-cta-actions .btn { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .hp-hero-inner { padding: 48px 20px 48px; }
  .hp-h1-line2 { font-size: 2.2rem; }
  .hp-h1-line3 { font-size: 2.8rem; }
  .hp-search-box { flex-wrap: wrap; border-radius: 12px; }
  .hp-search-icon { display: none; }
  .hp-search-box input { padding: 14px 14px; min-width: 0; }
  .hp-search-divider { display: none; }
  .hp-search-box select { border-top: 1px solid var(--border); width: 100%; min-height: 44px; }
  .hp-search-btn { width: 100%; min-height: 48px; border-radius: 0 0 10px 10px; }
  .hp-hero-stats { flex-direction: column; }
  .hp-stat-num { font-size: 1.2rem; }
}
