/* House Link NG - Nigerian Property Rental Marketplace */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700&display=swap');

:root {
  /* Nigerian-inspired color palette - Green & Gold */
  --primary: #0A6847;
  --primary-light: #10B981;
  --primary-dark: #064E3B;
  --accent: #D4A017;
  --accent-light: #F59E0B;
  
  /* Neutrals - Dark Mode */
  --bg: #0F172A;
  --bg-card: #1E293B;
  --bg-elevated: #334155;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --border: #475569;
  
  /* Status colors */
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* WhatsApp */
  --whatsapp: #25D366;
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  
  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(10,104,71,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 600; }

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-6); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-md);
  font-weight: 500; cursor: pointer; border: none; transition: all 0.3s ease;
  font-size: 0.95rem; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white; box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); color: white; }
.btn-secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text); }
.btn-accent { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%); color: #000; }
.btn-accent:hover { color: #000; }
.btn-whatsapp { background: var(--whatsapp); color: white; }
.btn-whatsapp:hover { background: #128C7E; color: white; }

/* Header/Nav */
.header {
  background: rgba(15,23,42,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) 0; }
.logo { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: var(--space-2); }
.logo span { color: var(--primary-light); }
.logo:hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: var(--space-8); }
.nav-links a { color: var(--text-muted); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-light); }
.nav-actions { display: flex; align-items: center; gap: var(--space-4); }
.mobile-menu { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(10,104,71,0.15) 0%, rgba(15,23,42,1) 100%);
  padding: var(--space-16) 0; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -30%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(10,104,71,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero h1 { font-size: 3.5rem; margin-bottom: var(--space-4); line-height: 1.2; }
.hero h1 span { background: linear-gradient(135deg, var(--primary-light), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto var(--space-8); }

/* Search Box */
.search-box {
  background: var(--bg-card); border-radius: var(--radius-xl); padding: var(--space-6);
  max-width: 900px; margin: 0 auto; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); align-items: end; }
.search-field label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-2); }
.search-field input, .search-field select {
  width: 100%; padding: var(--space-3) var(--space-4); background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text);
  font-size: 1rem;
}
.search-field input:focus, .search-field select:focus { outline: none; border-color: var(--primary-light); }

/* Cards */
.card {
  background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); transition: all 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.card-image { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-image img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: var(--space-3); left: var(--space-3);
  background: var(--primary); color: white; padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600;
}
.card-favorite {
  position: absolute; top: var(--space-3); right: var(--space-3);
  background: rgba(0,0,0,0.5); backdrop-filter: blur(10px); border: none;
  width: 36px; height: 36px; border-radius: 50%; color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
  font-size: 1.2rem;
}
.card-favorite:hover, .card-favorite.active { background: var(--error); }
.card-body { padding: var(--space-4); }
.card-location { font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-1); }
.card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: var(--space-2); }
.card-meta { display: flex; align-items: center; gap: var(--space-4); font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-3); }
.card-price { display: flex; align-items: baseline; gap: var(--space-1); }
.card-price .amount { font-size: 1.25rem; font-weight: 700; color: var(--primary-light); }
.card-price .period { font-size: 0.85rem; color: var(--text-muted); }
.card-rating { display: flex; align-items: center; gap: var(--space-1); color: var(--accent); font-weight: 500; }

/* Property Grid */
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-6); }

/* Section */
.section { padding: var(--space-16) 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-8); }
.section-title { font-size: 2rem; }

/* Categories */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.category-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: var(--space-6);
  text-align: center; border: 1px solid var(--border); cursor: pointer; transition: all 0.3s;
}
.category-card:hover { border-color: var(--primary-light); background: var(--bg-elevated); transform: translateY(-4px); }
.category-icon { font-size: 2.5rem; margin-bottom: var(--space-3); }
.category-name { font-weight: 600; margin-bottom: var(--space-1); }
.category-count { font-size: 0.85rem; color: var(--text-muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.stat-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border-radius: var(--radius-lg); padding: var(--space-6); text-align: center;
  border: 1px solid var(--border);
}
.stat-value { font-size: 2.5rem; font-weight: 700; color: var(--primary-light); }
.stat-label { color: var(--text-muted); }

/* How It Works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.step { text-align: center; }
.step-number {
  width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; margin: 0 auto var(--space-4);
}
.step h3 { margin-bottom: var(--space-2); }
.step p { color: var(--text-muted); }

/* Form Elements */
.form-group { margin-bottom: var(--space-5); }
.form-group label { display: block; margin-bottom: var(--space-2); font-weight: 500; }
.form-control {
  width: 100%; padding: var(--space-3) var(--space-4); background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text);
  font-size: 1rem; transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary-light); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* Dashboard */
.dashboard { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 73px); }
.sidebar {
  background: var(--bg-card); border-right: 1px solid var(--border); padding: var(--space-6);
}
.sidebar-nav { list-style: none; }
.sidebar-nav li { margin-bottom: var(--space-2); }
.sidebar-nav a {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); color: var(--text-muted); transition: all 0.2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--bg-elevated); color: var(--text); }
.sidebar-nav a.active { border-left: 3px solid var(--primary-light); }
.dashboard-content { padding: var(--space-8); }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-8); }

/* Table */
.table-container { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: var(--space-4); text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-elevated); font-weight: 600; color: var(--text-muted); }
tr:hover { background: var(--bg-elevated); }
.status-badge {
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
}
.status-active { background: rgba(34,197,94,0.2); color: var(--success); }
.status-pending { background: rgba(245,158,11,0.2); color: var(--warning); }
.status-rejected { background: rgba(239,68,68,0.2); color: var(--error); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px);
  display: none; align-items: center; justify-content: center; z-index: 200;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card); border-radius: var(--radius-xl); max-width: 500px; width: 90%;
  max-height: 90vh; overflow-y: auto; border: 1px solid var(--border);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-6); border-bottom: 1px solid var(--border);
}
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.modal-body { padding: var(--space-6); }
.modal-footer { padding: var(--space-6); border-top: 1px solid var(--border); display: flex; gap: var(--space-4); justify-content: flex-end; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-2); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main { aspect-ratio: 16/10; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-rows: repeat(2, 1fr); gap: var(--space-2); }
.gallery-thumb { cursor: pointer; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-thumb:hover img { transform: scale(1.05); }

/* Booking Widget */
.booking-widget {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: var(--space-6);
  border: 1px solid var(--border); position: sticky; top: 100px;
}
.booking-price { font-size: 1.75rem; font-weight: 700; margin-bottom: var(--space-2); }
.booking-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

/* Amenities */
.amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.amenity { display: flex; align-items: center; gap: var(--space-2); color: var(--text-muted); }

/* Host Card */
.host-card {
  display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4);
  background: var(--bg-elevated); border-radius: var(--radius-lg);
}
.host-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.host-info h4 { margin-bottom: var(--space-1); }
.host-info p { font-size: 0.85rem; color: var(--text-muted); }

/* Footer */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: var(--space-12) 0 var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--space-8); margin-bottom: var(--space-8); }
.footer-brand p { color: var(--text-muted); margin-top: var(--space-3); max-width: 300px; }
.footer-links h4 { margin-bottom: var(--space-4); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom { text-align: center; padding-top: var(--space-6); border-top: 1px solid var(--border); color: var(--text-muted); }

/* Filters */
.filters { background: var(--bg-card); border-radius: var(--radius-lg); padding: var(--space-6); border: 1px solid var(--border); position: sticky; top: 90px; }
.filter-group { margin-bottom: var(--space-6); }
.filter-group h4 { margin-bottom: var(--space-3); font-size: 0.95rem; }
.filter-options { display: flex; flex-direction: column; gap: var(--space-2); }
.filter-option { display: flex; align-items: center; gap: var(--space-2); cursor: pointer; }
.filter-option input { accent-color: var(--primary-light); }
.price-range { display: flex; align-items: center; gap: var(--space-2); }
.price-range input { flex: 1; padding: var(--space-2); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); width: 80px; }

/* Auth card */
.auth-card { position: relative; }

/* Responsive */
@media (max-width: 1024px) {
  .search-grid { grid-template-columns: repeat(2, 1fr); }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .filters { position: static; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .mobile-menu { display: block; }
  .hero h1 { font-size: 2.25rem; }
  .search-grid { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: 1fr; }
  .categories { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr; }
  .booking-widget { position: static; margin-top: var(--space-6); }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease forwards; }

/* Utility classes */
.text-center { text-align: center; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
