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

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --primary:        #C1440E;
  --primary-dark:   #8B2E08;
  --primary-light:  #E8643A;
  --accent:         #E8A020;
  --accent-light:   #F5C460;
  --bg:             #FDF6EE;
  --bg-alt:         #F5EDE0;
  --surface:        #FFFFFF;
  --text:           #1C1917;
  --text-secondary: #78716C;
  --text-light:     #A8A29E;
  --border:         #E7DDD3;
  --border-dark:    #D4C4B5;
  --success:        #4A7C59;
  --error:          #DC2626;
  --shadow-sm:      0 2px 8px rgba(28,25,23,0.08);
  --shadow-md:      0 8px 24px rgba(28,25,23,0.12);
  --shadow-lg:      0 20px 48px rgba(28,25,23,0.16);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      32px;
  --font-display:   'Fraunces', serif;
  --font-body:      'DM Sans', sans-serif;
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); outline: none; border: none; }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
p  { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; }

/* ─── Utility ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; color: var(--text); }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(193,68,14,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(193,68,14,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(232,160,32,0.35);
}
.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(253,246,238,0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-logo-icon {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.nav-logo-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.nav-logo-text span { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 1px;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-menu-toggle { display: none; background: none; padding: 4px; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(193,68,14,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(232,160,32,0.06) 0%, transparent 50%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(193,68,14,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(193,68,14,0.08);
  border: 1px solid rgba(193,68,14,0.2);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  width: fit-content;
}
.hero-badge span { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; animation: pulse 2s infinite; }
.hero-title { margin-bottom: 20px; }
.hero-title em { font-style: italic; color: var(--primary); }
.hero-subtitle { font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }

/* Hero Visual */
.hero-visual { position: relative; }
.hero-card-main {
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card-img {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #E8A020 0%, #C1440E 50%, #8B2E08 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}
.hero-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3));
}
.hero-card-body { padding: 20px 24px 24px; }
.hero-card-tag {
  display: inline-block;
  background: rgba(74,124,89,0.1);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.hero-card-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.hero-card-meta { display: flex; align-items: center; justify-content: space-between; }
.hero-card-price { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.hero-card-price span { font-size: 0.8rem; font-weight: 400; color: var(--text-secondary); }
.hero-card-rating { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; color: var(--text-secondary); }

.hero-float-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 3s ease-in-out infinite;
}
.hero-float-card.card-1 { top: -20px; right: -20px; animation-delay: 0s; }
.hero-float-card.card-2 { bottom: 40px; left: -30px; animation-delay: 1.5s; }
.hero-float-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.hero-float-icon.orange { background: rgba(193,68,14,0.1); }
.hero-float-icon.green  { background: rgba(74,124,89,0.1); }
.hero-float-label { font-size: 0.7rem; color: var(--text-secondary); }
.hero-float-value { font-size: 0.95rem; font-weight: 600; color: var(--text); }

/* ─── Search Bar ─────────────────────────────────────────── */
.search-section {
  padding: 0 0 60px;
  position: relative;
  z-index: 2;
}
.search-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.search-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  padding: 4px;
  border-radius: var(--radius-md);
  width: fit-content;
  margin-bottom: 24px;
}
.search-tab {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  transition: var(--transition);
}
.search-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}
.search-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: var(--transition);
}
.search-input-wrap:focus-within {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(193,68,14,0.1);
}
.search-input-wrap svg { color: var(--text-light); flex-shrink: 0; }
.search-input-wrap input,
.search-input-wrap select {
  background: none;
  flex: 1;
  font-size: 0.95rem;
  color: var(--text);
  min-width: 0;
}
.search-input-wrap input::placeholder { color: var(--text-light); }

/* ─── How It Works ───────────────────────────────────────── */
.how-section { background: var(--bg-alt); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.how-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}
.how-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}
.how-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.how-card:hover::before { transform: scaleX(1); }
.how-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(193,68,14,0.08);
  line-height: 1;
  position: absolute;
  top: 20px; right: 24px;
}
.how-icon {
  width: 56px; height: 56px;
  background: rgba(193,68,14,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.how-card h3 { margin-bottom: 10px; font-size: 1.15rem; }

/* ─── Featured Listings ──────────────────────────────────── */
.listings-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.listing-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.listing-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.listing-img-bg {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.4s ease;
}
.listing-card:hover .listing-img-bg { transform: scale(1.05); }
.listing-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.listing-badge.featured { background: var(--accent); }
.listing-wishlist {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.listing-wishlist:hover { background: #fee2e2; transform: scale(1.1); }
.listing-body { padding: 18px 20px 20px; }
.listing-location { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--text-light); margin-bottom: 8px; }
.listing-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.listing-prefs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.listing-pref {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.listing-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
.listing-price { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.listing-price span { font-size: 0.75rem; font-weight: 400; color: var(--text-secondary); }
.listing-rating { display: flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--text-secondary); }

/* ─── Preferences Section ────────────────────────────────── */
.prefs-section { background: var(--bg-alt); }
.prefs-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.prefs-visual {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.prefs-visual-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}
.pref-items { display: flex; flex-direction: column; gap: 12px; }
.pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.pref-item-left { display: flex; align-items: center; gap: 12px; }
.pref-item-icon { font-size: 1.2rem; }
.pref-item-label { font-size: 0.9rem; font-weight: 500; }
.toggle {
  width: 44px; height: 24px;
  background: var(--border-dark);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.toggle.on { background: var(--primary); }
.toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle.on::after { left: 23px; }

.prefs-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.prefs-list-item { display: flex; align-items: flex-start; gap: 14px; }
.prefs-list-icon {
  width: 40px; height: 40px;
  background: rgba(193,68,14,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.prefs-list-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }
.prefs-list-desc { font-size: 0.85rem; color: var(--text-secondary); }

/* ─── CTA Section ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-inner h2 { color: white; margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: white;
  color: var(--primary);
  font-weight: 600;
}
.btn-white:hover {
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin: 16px 0 20px; color: rgba(255,255,255,0.5); }
.footer-logo-text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: white; }
.footer-logo-text span { color: var(--accent); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: white; }
.footer-col h4 { color: white; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fadeInUp   { animation: fadeInUp   0.7s ease both; }
.animate-fadeInLeft { animation: fadeInLeft 0.7s ease both; }
.animate-fadeInRight{ animation: fadeInRight 0.7s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ─── Auth Pages ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.auth-visual-content { position: relative; z-index: 1; text-align: center; color: white; }
.auth-visual-icon { font-size: 5rem; margin-bottom: 24px; }
.auth-visual-title { font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin-bottom: 12px; }
.auth-visual-desc { font-size: 1rem; opacity: 0.8; max-width: 320px; }
.auth-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  background: var(--bg);
}
.auth-form-inner { max-width: 420px; margin: 0 auto; width: 100%; }
.auth-form-title { font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin-bottom: 6px; }
.auth-form-subtitle { color: var(--text-secondary); margin-bottom: 32px; font-size: 0.95rem; }
.role-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.role-btn {
  padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.role-btn.active {
  border-color: var(--primary);
  background: rgba(193,68,14,0.05);
  color: var(--primary);
}
.role-btn-icon { font-size: 1.4rem; margin-bottom: 4px; }
.role-btn-label { font-size: 0.78rem; font-weight: 600; display: block; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 700;
  transition: var(--transition);
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193,68,14,0.1);
}
.form-input::placeholder {
  color: var(--text-light);
  font-weight: 500;
  opacity: 0.48;
}
.form-input::-webkit-input-placeholder {
  color: var(--text-light);
  opacity: 0.48;
}
.form-input::-moz-placeholder {
  color: var(--text-light);
  opacity: 0.48;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-divider { text-align: center; margin: 20px 0; position: relative; }
.form-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.form-divider span {
  position: relative;
  background: var(--bg);
  padding: 0 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.btn-full { width: 100%; justify-content: center; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-secondary); }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .btn { grid-column: span 2; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .prefs-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-toggle { display: block; }
  .hero-actions .btn-lg { padding: 13px 24px; font-size: 0.95rem; }
  .search-fields { grid-template-columns: 1fr; }
  .search-fields .btn { grid-column: span 1; }
  .listings-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* Shared dashboard shell and partials */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.sidebar-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.sidebar-username { font-weight: 600; font-size: 0.9rem; }
.sidebar-role {
  font-size: 0.72rem;
  color: #ffffff;
  background: var(--primary);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}
.sidebar-nav { padding: 16px 12px; flex: 1; }
.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0 10px;
  margin: 12px 0 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--bg-alt); color: var(--text); }
.sidebar-link.active { background: var(--bg-alt); color: var(--primary-dark); font-weight: 800; }
.sidebar-link .badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 100px;
  font-weight: 700;
}
.sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--border); }
.sidebar-icon { width: 18px; min-width: 18px; color: currentColor; font-size: 0.95rem; text-align: center; }

.main-content { margin-left: 260px; flex: 1; min-height: 100vh; background: var(--bg); }
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.topbar-leading { display: flex; align-items: center; min-width: 0; }
.topbar-mobile-logo { display: none; align-items: center; gap: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 38px; height: 38px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.icon-btn:hover { background: var(--bg-alt); border-color: var(--border-dark); }
.icon-btn .dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  border: 1.5px solid var(--surface);
}
.icon-btn .dot.is-hidden { display: none; }
.topbar-count,
.mobile-nav-badge {
  align-items: center;
  background: var(--primary);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 900;
  justify-content: center;
  min-width: 17px;
  padding: 2px 5px;
}
.topbar-count {
  position: absolute;
  right: -7px;
  top: -7px;
}

.mobile-bottom-nav { display: none; }
.dashboard-footer { border-top: 2px solid var(--border); background: #ffffff; padding: 38px 32px 24px; }
.dashboard-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.dashboard-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dashboard-footer-brand-icon {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-footer-brand-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.dashboard-footer-brand-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--primary-dark); }
.dashboard-footer p { color: var(--text-secondary); font-size: 0.8rem; font-weight: 700; line-height: 1.7; margin: 0; }
.dashboard-footer-social { display: flex; gap: 8px; margin-top: 16px; }
.dashboard-footer-social a {
  width: 30px; height: 30px;
  border: 1.5px solid var(--border-dark);
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  transition: var(--transition);
}
.dashboard-footer-social a:hover { border-color: var(--primary); background: var(--bg-alt); color: var(--primary-dark); }
.dashboard-footer-title {
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.dashboard-footer-links { display: flex; flex-direction: column; gap: 8px; }
.dashboard-footer-links a { color: var(--text-light); font-size: 0.78rem; font-weight: 800; transition: var(--transition); }
.dashboard-footer-links a:hover { color: var(--primary-dark); }
.dashboard-footer-bottom {
  max-width: 1180px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dashboard-footer-credit {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  left: 50%;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
}
.dashboard-footer-bottom p:last-child { margin-left: auto; text-align: right; }

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.pagination-info {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 800;
}

.pagination-actions,
.pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-bar button {
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-weight: 900;
  transition: var(--transition);
}

.pagination-bar button.active,
.pagination-bar button:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.pagination-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 768px) {
  body { padding-bottom: 76px; }
  .sidebar { width: 240px; transform: translateX(-100%); transition: var(--transition); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar { padding: 14px 18px; }
  .topbar-title { display: none; font-size: 1.08rem; }
  .topbar-mobile-logo { display: flex; }
  .topbar-mobile-logo .nav-logo-icon { width: 32px; height: 32px; }
  .topbar-mobile-logo .nav-logo-icon img { width: 26px; height: 26px; }
  .topbar-mobile-logo .nav-logo-text { font-size: 1.18rem; }
  .dashboard-footer { padding: 34px 18px 96px; }
  .dashboard-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .dashboard-footer-bottom { align-items: center; flex-direction: column; text-align: center; gap: 6px; }
  .dashboard-footer-credit { position: static; transform: none; }
  .dashboard-footer-bottom p:last-child { margin-left: 0; text-align: center; }
  .mobile-bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 150;
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 2px solid var(--border);
    padding: 8px 10px 10px;
    box-shadow: 0 -10px 28px rgba(46, 130, 28, 0.12);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .mobile-bottom-nav::-webkit-scrollbar {
    display: none;
  }
  .mobile-bottom-nav a {
    display: flex;
    min-width: 74px;
    flex: 0 0 74px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 14px;
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.1;
    padding: 8px 4px;
    position: relative;
    scroll-snap-align: start;
  }
  .mobile-nav-badge {
    position: absolute;
    right: 10px;
    top: 4px;
  }
  .mobile-bottom-nav a i { font-size: 1rem; }
  .mobile-bottom-nav a.active { background: var(--bg-alt); color: var(--primary-dark); }
  .mobile-bottom-nav a.mobile-logout { color: var(--error); }
  .pagination-bar { align-items: stretch; flex-direction: column; }
  .pagination-actions { justify-content: space-between; }
  .pagination-pages { justify-content: center; flex-wrap: wrap; }
}
