/* ============================================
   RestGuru — Homepage
   ============================================ */

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 24px 72px;
  background: linear-gradient(160deg, #fff 0%, #f7f4ef 100%);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% -10%, rgba(181,113,26,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 0% 100%, rgba(181,113,26,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 660px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-light); border: 1px solid rgba(181,113,26,0.2);
  padding: 5px 12px; border-radius: 20px; margin-bottom: 20px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.08; margin-bottom: 20px; color: var(--text);
}
.hero-accent {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(181,113,26,0.3);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-2);
  line-height: 1.7; margin-bottom: 36px; max-width: 520px;
}
.hero-search-wrap { margin-bottom: 44px; }
.hero-search-box {
  display: flex; align-items: center;
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--r-xl); padding: 8px 8px 8px 20px;
  gap: 12px; max-width: 540px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.hero-search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(181,113,26,0.12), var(--shadow-md);
}
.hero-search-icon { color: var(--text-3); font-size: 1rem; flex-shrink: 0; }
.hero-search-box input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-sans);
  font-size: 0.95rem; padding: 6px 0;
}
.hero-search-box input::placeholder { color: var(--text-4); }
.hero-stats { display: flex; align-items: center; gap: 28px; }
.stat { display: flex; flex-direction: column; gap: 1px; }
.stat-num { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.07em; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

/* ─── FILTER BAR ─────────────────────────────── */
.listings-header { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.filter-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 8px 17px; border-radius: 20px;
  font-family: var(--font-sans); font-size: 0.84rem; font-weight: 500;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--text-2); cursor: pointer;
  transition: all var(--ease); white-space: nowrap;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* ─── LISTING GRID ───────────────────────────── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

/* ─── LISTING CARD ───────────────────────────── */
.listing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.listing-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-link { display: block; height: 100%; color: inherit; }
.card-img-wrap {
  position: relative; height: 130px;
  background: linear-gradient(135deg, #f7f4ef 0%, #ece9e3 100%);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
}
.card-img-placeholder { font-size: 2.8rem; opacity: 0.75; }
.card-badge { position: absolute; top: 10px; right: 10px; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 7px; }
.card-title {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700;
  color: var(--text); line-height: 1.25;
  transition: color var(--ease);
}
.listing-card:hover .card-title { color: var(--accent); }
.card-location { font-size: 0.78rem; color: var(--text-3); }
.card-desc { font-size: 0.84rem; color: var(--text-2); line-height: 1.6; flex: 1; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding-top: 11px; border-top: 1px solid var(--border);
}
.card-cta { font-size: 0.78rem; font-weight: 600; color: var(--accent); }

/* ─── REVEAL ANIMATION ───────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ─── EMPTY STATE ────────────────────────────── */
.empty-state { text-align: center; padding: 64px 24px; color: var(--text-2); font-size: 1.05rem; grid-column: 1 / -1; }

/* ─── WHY SECTION ────────────────────────────── */
.section-why {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 36px; }
.why-card {
  text-align: center; padding: 30px 22px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.why-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.why-icon { font-size: 1.8rem; margin-bottom: 14px; }
.why-card h3 { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 700; margin-bottom: 9px; }
.why-card p { font-size: 0.84rem; color: var(--text-2); line-height: 1.7; }

/* ─── SECTION BASE ───────────────────────────── */
.section { padding: 64px 24px; }
.section-header { margin-bottom: 36px; }
.section-header h2 { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 7px; }
.section-header p { color: var(--text-2); font-size: 0.95rem; }

/* ─── MOBILE ─────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 52px 24px 44px; }
  .hero-stats { gap: 18px; }
  .hero-search-box { flex-wrap: wrap; border-radius: var(--r-lg); }
  .hero-search-box .btn { width: 100%; justify-content: center; margin-top: 4px; }
  .listing-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .why-grid { grid-template-columns: 1fr; } }
