/* ============================================================
   RentFromGhana — Design System
   Inspired by Ghana's flag: Forest Green, Gold, Deep Red
   Font pairing: Playfair Display (headings) + DM Sans (body)
   ============================================================ */

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

/* ── Variables ────────────────────────────────────────────── */
:root {
  --green:        #006B3F;
  --green-dark:   #004D2C;
  --green-light:  #E8F5EE;
  --gold:         #E8A020;
  --gold-light:   #FFF3DC;
  --red:          #CE1126;
  --dark:         #0D1B12;
  --text:         #1C2B22;
  --text-soft:    #4A5E52;
  --border:       #D4E4DA;
  --bg:           #FAFCFB;
  --white:        #FFFFFF;
  --shadow-sm:    0 2px 8px rgba(0,107,63,0.08);
  --shadow-md:    0 8px 32px rgba(0,107,63,0.12);
  --shadow-lg:    0 24px 64px rgba(0,107,63,0.16);
  --radius:       12px;
  --radius-lg:    20px;
  --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; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p  { font-size: 1rem; color: var(--text-soft); }

/* ── Layout ───────────────────────────────────────────────── */
.container  { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.text-center { text-align: center; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-size: 0.95rem;
  font-weight: 600; transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--green); color: var(--white);
  box-shadow: 0 4px 16px rgba(0,107,63,0.3);
}
.btn-primary:hover {
  background: var(--green-dark); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,107,63,0.4);
}
.btn-gold {
  background: var(--gold); color: var(--white);
  box-shadow: 0 4px 16px rgba(232,160,32,0.3);
}
.btn-gold:hover { background: #C88010; transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--green); color: var(--green); background: transparent;
}
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.6); color: var(--white); background: transparent;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600;
}
.badge-green  { background: var(--green-light); color: var(--green); }
.badge-gold   { background: var(--gold-light); color: #A06010; }
.badge-red    { background: #FFF0F0; color: var(--red); }
.badge-verified { background: var(--green); color: var(--white); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: var(--transition); border: 1px solid var(--border);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
}
.brand-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700; color: var(--green);
}
.brand-name span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
  color: var(--text-soft); transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--green); background: var(--green-light); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-menu-btn {
  display: none; padding: 8px; border-radius: 8px;
  background: var(--green-light); color: var(--green); font-size: 1.2rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--green-dark) 50%, #0A2E1C 100%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: radial-gradient(circle at 2px 2px, var(--gold) 1px, transparent 0);
  background-size: 40px 40px;
}
.hero-glow {
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,160,32,0.2) 0%, transparent 70%);
}
.hero-glow-2 {
  position: absolute; bottom: -150px; left: -150px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,107,63,0.4) 0%, transparent 70%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  padding-top: 80px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,160,32,0.15); border: 1px solid rgba(232,160,32,0.3);
  color: var(--gold); padding: 8px 16px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
  color: var(--white); margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 .highlight {
  color: var(--gold);
  font-style: italic;
}
.hero-sub {
  color: rgba(255,255,255,0.75); font-size: 1.15rem;
  max-width: 560px; margin-bottom: 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--gold); font-weight: 700;
}
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ── Search Box ───────────────────────────────────────────── */
.search-box {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 8px;
  max-width: 800px; margin-bottom: 32px;
}
.search-tabs {
  display: flex; gap: 4px; margin-bottom: 8px; padding: 4px;
  background: var(--green-light); border-radius: 10px;
}
.search-tab {
  flex: 1; padding: 10px; border-radius: 8px; font-size: 0.875rem;
  font-weight: 600; color: var(--text-soft); transition: var(--transition);
  text-align: center;
}
.search-tab.active {
  background: var(--green); color: var(--white);
  box-shadow: 0 2px 8px rgba(0,107,63,0.3);
}
.search-tab:hover:not(.active) { color: var(--green); }
.search-fields {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px;
  align-items: center; padding: 4px;
}
.search-field {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 16px;
  border-radius: 10px; background: var(--bg);
}
.search-field label { font-size: 0.7rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.5px; }
.search-field input,
.search-field select {
  background: none; border: none; outline: none;
  font-size: 0.9rem; color: var(--text); font-weight: 500;
}
.search-field select { appearance: none; }

/* ── Section Headers ──────────────────────────────────────── */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.section-tag::before {
  content: ''; display: block; width: 24px; height: 3px;
  background: var(--gold); border-radius: 2px;
}
.section-title { color: var(--dark); margin-bottom: 16px; }
.section-desc { font-size: 1.05rem; max-width: 560px; }

/* ── Property Card ────────────────────────────────────────── */
.prop-card { position: relative; }
.prop-card-img {
  position: relative; height: 220px; overflow: hidden;
}
.prop-card-img img {
  width: 100%; height: 100%; object-fit: cover; transition: var(--transition);
}
.prop-card:hover .prop-card-img img { transform: scale(1.05); }
.prop-card-type {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.type-rent    { background: var(--green); color: var(--white); }
.type-buy     { background: var(--gold); color: var(--white); }
.type-short   { background: var(--red); color: var(--white); }
.prop-save {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition); cursor: pointer;
}
.prop-save:hover { transform: scale(1.1); background: var(--white); }
.prop-card-body { padding: 20px; }
.prop-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700; color: var(--green);
}
.prop-price span { font-size: 0.8rem; font-weight: 400; color: var(--text-soft); font-family: 'DM Sans', sans-serif; }
.prop-title { font-size: 0.95rem; font-weight: 600; color: var(--dark); margin: 6px 0; }
.prop-location {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.83rem; color: var(--text-soft); margin-bottom: 16px;
}
.prop-features {
  display: flex; gap: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.prop-feat {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.8rem; color: var(--text-soft);
}
.prop-feat span { font-weight: 600; color: var(--text); }

/* ── Area Card ────────────────────────────────────────────── */
.area-card {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; height: 280px; cursor: pointer;
}
.area-card img {
  width: 100%; height: 100%; object-fit: cover; transition: var(--transition);
}
.area-card:hover img { transform: scale(1.06); }
.area-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.area-card h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 4px; }
.area-card p  { color: rgba(255,255,255,0.75); font-size: 0.83rem; }
.area-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--gold); color: var(--white);
  padding: 4px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 700;
}

/* ── How it Works ─────────────────────────────────────────── */
.step-card {
  text-align: center; padding: 40px 32px;
}
.step-number {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--green); color: var(--white);
  font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(0,107,63,0.3);
}
.step-icon {
  font-size: 2.2rem; margin-bottom: 16px; display: block;
}
.step-card h4 { color: var(--dark); margin-bottom: 10px; }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-card {
  padding: 32px; background: var(--white);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.testimonial-quote {
  font-size: 2.5rem; color: var(--gold); line-height: 1;
  font-family: 'Playfair Display', serif; margin-bottom: 16px;
}
.testimonial-text { font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-light); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem;
}
.author-name { font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.author-role { font-size: 0.78rem; color: var(--text-soft); }
.stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 4px; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #00875A 100%);
  border-radius: var(--radius-lg); padding: 72px 64px;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '🇬🇭'; font-size: 200px; position: absolute;
  right: 40px; top: 50%; transform: translateY(-50%);
  opacity: 0.08; pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,0.8); max-width: 480px; margin-bottom: 32px; font-size: 1.05rem; }
.cta-banner .flex { gap: 16px; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.7); padding: 72px 0 32px;
}
.footer-brand p { font-size: 0.9rem; max-width: 300px; margin-top: 16px; line-height: 1.7; }
.footer-heading {
  font-family: 'DM Sans', sans-serif; font-weight: 700;
  color: var(--white); font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem; transition: var(--transition); color: rgba(255,255,255,0.65);
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 0.85rem; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: var(--transition);
}
.social-link:hover { background: var(--green); color: var(--white); }

/* ── Trust Bar ────────────────────────────────────────────── */
.trust-bar {
  background: var(--green-light); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 16px 0;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--green);
}

/* ── Listings Page ────────────────────────────────────────── */
.listings-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--green-dark) 100%);
  padding: 120px 0 60px; color: var(--white);
}
.listings-layout {
  display: grid; grid-template-columns: 300px 1fr; gap: 32px;
  align-items: start; padding: 40px 0;
}
.filter-panel {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 28px;
  position: sticky; top: 88px;
}
.filter-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: none; margin-bottom: 0; }
.filter-label {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-soft); margin-bottom: 12px;
  display: block;
}
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 6px 14px; border-radius: 50px;
  border: 1.5px solid var(--border); font-size: 0.82rem; font-weight: 500;
  color: var(--text-soft); cursor: pointer; transition: var(--transition);
  background: var(--white);
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--green); color: var(--green); background: var(--green-light);
}
.range-slider { width: 100%; accent-color: var(--green); }
.range-values {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; font-weight: 600; color: var(--green); margin-top: 8px;
}
.listings-grid-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;
}
.results-count { font-size: 0.9rem; color: var(--text-soft); }
.sort-select {
  padding: 8px 16px; border-radius: 8px; border: 1.5px solid var(--border);
  font-size: 0.875rem; color: var(--text); background: var(--white); cursor: pointer;
}
.listings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}

/* ── Property Detail ──────────────────────────────────────── */
.detail-header { padding: 100px 0 0; }
.detail-gallery {
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 280px 280px; gap: 8px;
  border-radius: var(--radius-lg); overflow: hidden;
}
.gallery-main { grid-row: span 2; }
.gallery-main img, .detail-gallery img {
  width: 100%; height: 100%; object-fit: cover;
}
.detail-body {
  display: grid; grid-template-columns: 1fr 360px; gap: 40px;
  align-items: start; padding: 48px 0;
}
.detail-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700; color: var(--green);
}
.detail-location {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-soft); font-size: 0.95rem; margin: 12px 0 24px;
}
.detail-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0;
}
.meta-item {
  text-align: center; padding: 20px 12px;
  background: var(--green-light); border-radius: 12px;
}
.meta-icon { font-size: 1.5rem; margin-bottom: 6px; }
.meta-val { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.meta-key { font-size: 0.75rem; color: var(--text-soft); }
.amenity-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px;
}
.amenity-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; padding: 10px 14px;
  background: var(--bg); border-radius: 8px; border: 1px solid var(--border);
}
.contact-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 28px;
  position: sticky; top: 88px; box-shadow: var(--shadow-md);
}
.owner-card {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
}
.owner-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green-light); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid var(--border); font-size: 0.9rem;
  margin-bottom: 12px; outline: none; transition: var(--transition);
  background: var(--bg);
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--green); background: var(--white);
}

/* ── Dashboard ────────────────────────────────────────────── */
.dashboard-layout {
  display: grid; grid-template-columns: 260px 1fr; min-height: 100vh;
}
.sidebar {
  background: var(--dark); padding: 0; position: fixed;
  top: 0; left: 0; bottom: 0; width: 260px; z-index: 100;
  display: flex; flex-direction: column; overflow-y: auto;
}
.sidebar-header {
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-nav { padding: 16px 12px; flex: 1; }
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px; margin-bottom: 4px;
  color: rgba(255,255,255,0.6); font-size: 0.9rem; font-weight: 500;
  transition: var(--transition); cursor: pointer;
}
.sidebar-item:hover, .sidebar-item.active {
  background: rgba(255,255,255,0.08); color: var(--white);
}
.sidebar-item.active { background: var(--green); color: var(--white); }
.sidebar-icon { font-size: 1.1rem; width: 20px; }
.sidebar-section-title {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255,255,255,0.3);
  padding: 16px 16px 8px; margin-top: 8px;
}
.dash-main {
  margin-left: 260px; padding: 32px;
  background: #F0F4F2; min-height: 100vh;
}
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.dash-title { font-size: 1.6rem; color: var(--dark); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 16px;
}
.stat-icon.green  { background: var(--green-light); }
.stat-icon.gold   { background: var(--gold-light); }
.stat-icon.red    { background: #FFF0F0; }
.stat-icon.blue   { background: #EEF2FF; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700; color: var(--dark);
}
.stat-label { font-size: 0.82rem; color: var(--text-soft); margin-top: 4px; }
.stat-change { font-size: 0.78rem; margin-top: 8px; font-weight: 600; }
.stat-change.up   { color: var(--green); }
.stat-change.down { color: var(--red); }
.dash-table {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
}
.dash-table-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.dash-table-title { font-size: 1rem; font-weight: 600; color: var(--dark); }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--bg); padding: 12px 20px;
  text-align: left; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-size: 0.875rem; color: var(--text);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }

/* ── Auth Page ────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background: linear-gradient(135deg, var(--dark) 0%, var(--green-dark) 100%);
  padding: 60px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-visual::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(232,160,32,0.1) 1px, transparent 0);
  background-size: 40px 40px;
}
.auth-visual-content { position: relative; z-index: 2; }
.auth-visual h2 { color: var(--white); margin-bottom: 16px; }
.auth-visual p  { color: rgba(255,255,255,0.7); margin-bottom: 40px; }
.auth-feature {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 16px;
}
.auth-feature-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.1); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.auth-form-side {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 80px; background: var(--white);
}
.auth-form-wrap { width: 100%; max-width: 400px; }
.auth-form-wrap h3 { color: var(--dark); margin-bottom: 8px; font-size: 1.8rem; }
.auth-form-wrap > p { margin-bottom: 32px; }
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--border); font-size: 0.9rem;
  outline: none; transition: var(--transition); background: var(--bg);
}
.form-input:focus { border-color: var(--green); background: var(--white); box-shadow: 0 0 0 3px rgba(0,107,63,0.1); }
.form-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0; color: var(--text-soft); font-size: 0.85rem;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.oauth-btn {
  width: 100%; padding: 13px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 0.9rem; font-weight: 500; transition: var(--transition); cursor: pointer;
  color: var(--text);
}
.oauth-btn:hover { border-color: var(--green); background: var(--green-light); }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.role-option {
  padding: 14px; border-radius: 10px; border: 1.5px solid var(--border);
  text-align: center; cursor: pointer; transition: var(--transition);
}
.role-option:hover, .role-option.active {
  border-color: var(--green); background: var(--green-light);
}
.role-option .role-icon { font-size: 1.4rem; margin-bottom: 4px; }
.role-option .role-name { font-size: 0.8rem; font-weight: 600; color: var(--text); }

/* ── Tabs ─────────────────────────────────────────────────── */
.tab-bar {
  display: flex; gap: 4px; background: var(--green-light);
  padding: 6px; border-radius: 12px; margin-bottom: 28px;
}
.tab-btn {
  flex: 1; padding: 10px 16px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600; color: var(--text-soft);
  transition: var(--transition); text-align: center; cursor: pointer;
}
.tab-btn.active { background: var(--green); color: var(--white); box-shadow: 0 2px 8px rgba(0,107,63,0.25); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
.animate-fadeup { animation: fadeUp 0.7s ease forwards; }
.animate-fadein { animation: fadeIn 0.5s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── Utilities ────────────────────────────────────────────── */
.mt-8  { margin-top: 8px; }  .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-8  { margin-bottom: 8px; }  .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.text-green { color: var(--green); }
.text-gold  { color: var(--gold); }
.text-soft  { color: var(--text-soft); }
.text-white { color: var(--white); }
.font-serif { font-family: 'Playfair Display', serif; }
.fw-700 { font-weight: 700; }
.hidden { display: none !important; }
.show   { display: block !important; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4  { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .detail-body { grid-template-columns: 1fr; }
  .listings-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links, .nav-actions .btn:not(.btn-primary) { display: none; }
  .nav-menu-btn { display: flex; }
  .search-fields { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .cta-banner { padding: 48px 32px; }
  .cta-banner::before { display: none; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; padding: 20px; }
  .detail-gallery { grid-template-columns: 1fr; grid-template-rows: 260px; }
  .detail-gallery img:not(.gallery-main img) { display: none; }
  .detail-meta { grid-template-columns: repeat(2, 1fr); }
  .auth-form-side { padding: 40px 24px; }
  .footer-brand, .footer-col { grid-column: span 2; }
}
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }
  .stat-cards { grid-template-columns: 1fr; }
}
