/* ===========================
   NESTFINDER — style.css
   Colorful, Vibrant, Student Energy
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
  --primary: #ff6b35;
  --secondary: #4ecdc4;
  --purple: #7c3aed;
  --yellow: #fbbf24;
  --green: #10b981;
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface2: #f4f4f0;
  --text: #0f0e0d;
  --text-muted: #6b6b6b;
  --text-light: #9a9a9a;
  --border: #e8e8e4;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   NAV
   =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.nav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover { color: var(--text); background: var(--surface2); }

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -100px; right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px; height: 400px;
  background: var(--secondary);
  bottom: -80px; left: -80px;
  animation-delay: 3s;
}

.blob-3 {
  width: 300px; height: 300px;
  background: var(--purple);
  top: 40%; left: 40%;
  animation-delay: 6s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  flex: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease forwards;
  opacity: 0;
}

.highlight {
  position: relative;
  color: var(--primary);
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 6px;
  background: var(--yellow);
  border-radius: 3px;
  z-index: -1;
  opacity: 0.6;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* SEARCH BAR */
.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  gap: 4px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease forwards;
  opacity: 0;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  flex: 1;
  min-width: 160px;
}

.search-field i {
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.search-field input,
.search-field select {
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  width: 100%;
}

.search-field select { cursor: pointer; }
.search-field input::placeholder { color: var(--text-light); }

.search-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

.search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-btn:hover { background: #e55a28; transform: translateY(-1px); }

/* HERO STATS */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeUp 0.6s 0.4s ease forwards;
  opacity: 0;
}

.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--text); }
.stat span { font-size: 0.78rem; color: var(--text-muted); }
.stat-sep { width: 1px; height: 36px; background: var(--border); }

/* HERO VISUAL */
.hero-visual {
  position: relative;
  flex-shrink: 0;
  width: 300px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 220px;
  border: 1px solid var(--border);
}

.hero-card.floating {
  top: 20px; right: 0;
  animation: float 4s ease-in-out infinite;
}

.hero-card.floating-2 {
  bottom: 20px; left: 0;
  animation: float 4s 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hcard-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hcard-title { font-size: 0.78rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.hcard-price { font-family: var(--font-display); font-size: 1rem; color: var(--primary); margin-bottom: 4px; }
.hcard-badge { font-size: 0.68rem; color: var(--green); font-weight: 600; }

/* ===========================
   HOW IT WORKS
   =========================== */
.how-section {
  padding: 80px 0;
  background: var(--text);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f0e0d 0%, #1a1a2e 50%, #16213e 100%);
}

.how-section .container { position: relative; z-index: 1; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.how-section .section-label { color: var(--secondary); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 48px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s;
}

.step-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.06);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}

.step-icon { font-size: 2rem; margin-bottom: 16px; }

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step-card p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ===========================
   LISTINGS
   =========================== */
.listings-section {
  padding: 80px 0;
  background: var(--bg);
}

.listings-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.listings-header .section-title { margin-bottom: 0; }

.listings-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface2);
  border-radius: 8px;
  padding: 6px 14px;
}

/* FILTERS */
.filters-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}

.filter-group label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:focus { border-color: var(--primary); }

.filter-reset {
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  align-self: flex-end;
  white-space: nowrap;
}

.filter-reset:hover { color: var(--primary); border-color: var(--primary); }

/* LISTINGS GRID */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* LISTING CARD */
.listing-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s;
  animation: fadeUp 0.5s ease forwards;
  opacity: 0;
  cursor: pointer;
}

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

.listing-img {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.listing-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow);
}

.listing-badge.verified { color: var(--green); }
.listing-badge.new { color: var(--primary); }

.listing-save {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  border: none;
}

.listing-save:hover, .listing-save.saved { color: #ef4444; }

.listing-body { padding: 18px; }

.listing-type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.listing-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.listing-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.listing-location i { color: var(--primary); font-size: 0.75rem; }

.listing-features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.feature-tag {
  background: var(--surface2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.listing-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.listing-price span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}

.listing-cta {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.listing-cta:hover { background: #e55a28; }

/* NO RESULTS */
.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results-icon { font-size: 4rem; margin-bottom: 16px; }
.no-results h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 8px; }
.no-results p { color: var(--text-muted); margin-bottom: 24px; }

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===========================
   CONTACT
   =========================== */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #fff5f2 0%, #f0fffe 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-left .section-title { margin-bottom: 16px; }

.contact-left > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-details { display: flex; flex-direction: column; gap: 14px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-item i {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-light); }

.submit-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.submit-btn:hover { background: #e55a28; transform: translateY(-1px); }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--text);
  color: #fff;
  padding: 60px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.7; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 1px; color: rgba(255,255,255,0.4); text-transform: uppercase; margin-bottom: 4px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.2s; display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 4px; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero { padding: 60px 24px 40px; min-height: unset; }
  .hero-title { letter-spacing: -1px; }

  .search-bar { flex-direction: column; gap: 0; }
  .search-field { width: 100%; border-bottom: 1px solid var(--border); }
  .search-field:last-of-type { border-bottom: none; }
  .search-divider { display: none; }
  .search-btn { width: 100%; justify-content: center; margin-top: 8px; }

  .steps-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .hero { padding: 50px 16px 32px; }
  .hero-stats { gap: 12px; flex-wrap: wrap; }

  .steps-grid { grid-template-columns: 1fr; }

  .filters-bar { padding: 16px; }
  .filter-group { min-width: 100%; }

  .listings-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}