*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue: #003087;
    --blue-light: #0050c8;
    --accent: #ff6b35;
    --accent2: #00c896;
    --bg: #f7f8fc;
    --white: #ffffff;
    --text: #1a1a2e;
    --muted: #6b7280;
    --border: #e5e7eb;
    --card-shadow: 0 2px 16px rgba(0,0,0,0.08);
    --radius: 14px;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAVBAR */
.navbar { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 24px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { color: var(--blue); text-decoration: none; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 16px; border-radius: 8px; font-size: 0.95rem; font-weight: 500; transition: all 0.2s; }
.nav-links a:hover { color: var(--blue); background: var(--bg); }
.nav-links a.btn { background: var(--blue); color: white; }
.nav-links a.btn:hover { background: var(--blue-light); }

/* HERO */
.hero { background: linear-gradient(135deg, #001f5c 0%, #003087 50%, #0050c8 100%); padding: 90px 24px 100px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { max-width: 720px; margin: 0 auto; position: relative; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.15); color: white; padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.2); }
.hero h1 { color: white; font-size: 3rem; font-weight: 800; margin-bottom: 16px; line-height: 1.15; letter-spacing: -1px; }
.hero h1 span { color: #7dd3fc; }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 40px; }

/* SEARCH BAR */
.search-bar { display: flex; gap: 8px; background: white; padding: 8px; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); flex-wrap: wrap; }
.search-bar input, .search-bar select { flex: 1; min-width: 160px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px; font-size: 0.95rem; outline: none; color: var(--text); background: var(--bg); }
.search-bar input:focus, .search-bar select:focus { border-color: var(--blue-light); background: white; }
.search-bar button { background: var(--accent); color: white; border: none; padding: 14px 32px; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.search-bar button:hover { background: #e55a25; transform: translateY(-1px); }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 40px; }
.hero-stats div { text-align: center; color: rgba(255,255,255,0.9); }
.hero-stats strong { display: block; font-size: 1.8rem; font-weight: 800; color: white; }
.hero-stats span { font-size: 0.85rem; opacity: 0.7; }

/* AREAS */
.areas { padding: 72px 0; background: white; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.section-header h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.5px; }
.section-header a { color: var(--blue); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.area-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.area-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 16px; text-align: center; text-decoration: none; color: var(--text); transition: all 0.25s; }
.area-card:hover { border-color: var(--blue); background: #eff6ff; transform: translateY(-3px); box-shadow: var(--card-shadow); }
.area-emoji { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.area-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.area-card p { font-size: 0.78rem; color: var(--muted); }

/* PROPERTIES */
.featured { padding: 72px 0; }
.properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 40px; }
.property-card { background: white; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--card-shadow); border: 1px solid var(--border); transition: all 0.25s; display: block; }
.property-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.property-img { position: relative; height: 210px; overflow: hidden; background: #e5e7eb; }
.property-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.property-card:hover .property-img img { transform: scale(1.04); }
.no-img { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: linear-gradient(135deg, #e0e7ff, #dbeafe); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: white; font-size: 0.72rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; letter-spacing: 0.3px; }
.badge.featured-badge { background: #7c3aed; }
.property-info { padding: 18px; }
.property-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.property-info .area { color: var(--muted); font-size: 0.83rem; margin-bottom: 10px; }
.property-meta { display: flex; gap: 14px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.property-meta span { font-size: 0.83rem; color: var(--muted); }
.price { font-size: 1.25rem; font-weight: 800; color: var(--blue); }
.price span { font-size: 0.83rem; font-weight: 400; color: var(--muted); }

/* WHY */
.why { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); padding: 72px 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { background: white; border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.why-icon { font-size: 2.5rem; display: block; margin-bottom: 14px; }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* LIST YOUR PROPERTY CTA */
.landlord-cta { background: var(--blue); padding: 72px 24px; text-align: center; }
.landlord-cta h2 { color: white; font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.landlord-cta p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 1.05rem; }
.landlord-cta .btn-white { background: white; color: var(--blue); padding: 16px 36px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 1rem; display: inline-block; transition: all 0.2s; }
.landlord-cta .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* BUTTONS */
.btn-primary { background: var(--blue); color: white; padding: 14px 32px; border-radius: 10px; text-decoration: none; font-weight: 700; display: inline-block; border: none; cursor: pointer; transition: all 0.2s; font-size: 0.95rem; }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-secondary { background: white; color: var(--blue); padding: 14px 32px; border-radius: 10px; text-decoration: none; font-weight: 700; display: inline-block; border: 2px solid var(--blue); cursor: pointer; transition: all 0.2s; }
.btn-secondary:hover { background: var(--bg); }
.full-width { width: 100%; text-align: center; margin-bottom: 12px; display: block; }
.btn-sm { padding: 7px 16px; border-radius: 8px; font-size: 0.83rem; text-decoration: none; background: var(--blue); color: white; font-weight: 600; }
.btn-sm.danger { background: #dc2626; }
.center { text-align: center; margin-top: 8px; }

/* SEARCH PAGE */
.search-page { padding: 48px 0; }
.search-top { background: var(--blue); padding: 32px 24px; }
.search-top h1 { color: white; font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.search-bar.compact { border-radius: 12px; }
.result-count { color: var(--muted); margin-bottom: 24px; font-size: 0.9rem; }

/* LISTING PAGE */
.listing-page { padding: 40px 0; }
.back-link { color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font-weight: 500; font-size: 0.95rem; }
.listing-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }
.listing-img { border-radius: var(--radius); overflow: hidden; height: 420px; background: #e5e7eb; margin-bottom: 24px; }
.listing-img img { width: 100%; height: 100%; object-fit: cover; }
.listing-details h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.listing-area { color: var(--muted); margin-bottom: 20px; }
.listing-meta { display: flex; gap: 24px; margin-bottom: 28px; padding: 20px; background: var(--bg); border-radius: var(--radius); }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 500; }
.listing-desc h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.listing-desc p { color: var(--muted); line-height: 1.8; }
.price-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 16px; box-shadow: var(--card-shadow); position: sticky; top: 88px; }
.sidebar-price { font-size: 2.2rem; font-weight: 800; color: var(--blue); line-height: 1; }
.sidebar-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price-note { color: var(--muted); font-size: 0.83rem; margin: 6px 0 24px; }
.contact-info { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 16px; font-size: 0.85rem; color: var(--muted); }
.contact-info p { margin-bottom: 8px; }
.tips-card { background: #eff6ff; border-radius: var(--radius); padding: 20px; border: 1px solid #bfdbfe; }
.tips-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; color: var(--blue); }
.tips-card ul { list-style: none; }
.tips-card li { font-size: 0.85rem; color: var(--muted); padding: 5px 0 5px 20px; position: relative; }
.tips-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent2); font-weight: 700; }

/* ADMIN */
.admin-page { padding: 40px 0; }
.admin-page h1 { margin-bottom: 8px; font-size: 1.8rem; font-weight: 800; }
.admin-subtitle { color: var(--muted); margin-bottom: 32px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.admin-form-section h2, .admin-list-section h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.admin-form { background: white; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; outline: none; font-family: inherit; transition: border 0.2s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(0,80,200,0.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.admin-list { display: flex; flex-direction: column; gap: 12px; max-height: 600px; overflow-y: auto; }
.admin-item { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.admin-item-info strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.admin-item-info span { font-size: 0.82rem; color: var(--muted); }
.admin-item-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state h2 { margin-bottom: 12px; font-size: 1.4rem; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

/* FOOTER */
.footer { background: #0f172a; color: rgba(255,255,255,0.6); padding: 48px 24px 32px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { font-size: 1.2rem; color: white; display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.88rem; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.83rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero h1 { font-size: 2rem; }
    .area-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .listing-grid { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 1.6rem; }
    .area-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .search-bar { flex-direction: column; }
    .hero-stats { gap: 20px; }
    .form-row { grid-template-columns: 1fr; }
    .nav-links a:not(.btn) { display: none; }
}
