/* BizMarket - Complete Stylesheet */
/* Reset & Base */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;color:#1f2937;line-height:1.6;background:#fff}
a{text-decoration:none;color:inherit}
ul{list-style:none}
img{max-width:100%;display:block}
input,select,textarea,button{font-family:inherit;font-size:inherit}

/* Utility */
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

/* Header */
.site-header{position:sticky;top:0;z-index:1000;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px;max-width:1200px;margin:0 auto;padding:0 20px}
.logo{font-size:1.5rem;font-weight:800;color:#2563eb;display:flex;align-items:center;gap:6px}
.logo span{color:#f97316}
.main-nav{display:flex;align-items:center;gap:28px}
.main-nav a{font-size:.9rem;font-weight:500;color:#374151;transition:color .2s}
.main-nav a:hover{color:#2563eb}
.header-actions{display:flex;align-items:center;gap:16px}
.header-actions a{font-size:.875rem;font-weight:500;color:#374151}
.header-actions a:hover{color:#2563eb}
.btn-primary{display:inline-flex;align-items:center;gap:6px;padding:8px 20px;background:#2563eb;color:#fff;border:none;border-radius:6px;font-weight:600;font-size:.875rem;cursor:pointer;transition:background .2s}
.btn-primary:hover{background:#1d4ed8;color:#fff}
.btn-orange{background:#f97316}
.btn-orange:hover{background:#ea580c;color:#fff}
.btn-outline{background:transparent;border:2px solid #2563eb;color:#2563eb}
.btn-outline:hover{background:#2563eb;color:#fff}
.btn-lg{padding:14px 32px;font-size:1rem;border-radius:8px}
.mobile-toggle{display:none;background:none;border:none;font-size:1.5rem;color:#1f2937;cursor:pointer}

/* Hero */
.hero{position:relative;min-height:520px;display:flex;align-items:center;justify-content:center;background:url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?w=1920&q=80') center/cover no-repeat;padding:60px 20px}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.55) 0%,rgba(0,0,0,.7) 100%)}
.hero-content{position:relative;z-index:2;text-align:center;width:100%;max-width:720px}
.hero h1{font-size:2.75rem;font-weight:800;color:#fff;margin-bottom:8px;line-height:1.15}
.hero p{font-size:1.15rem;color:rgba(255,255,255,.85);margin-bottom:28px}
.search-tabs{display:flex;justify-content:center;gap:0;margin-bottom:0}
.search-tabs button{padding:10px 28px;background:rgba(255,255,255,.15);color:#fff;border:none;font-weight:600;font-size:.9rem;cursor:pointer;transition:background .2s;border-radius:8px 8px 0 0}
.search-tabs button.active{background:#fff;color:#1f2937}
.search-box{background:#fff;border-radius:0 8px 8px 8px;padding:16px;display:flex;gap:10px;flex-wrap:wrap;box-shadow:0 8px 30px rgba(0,0,0,.25)}
.search-box input,.search-box select{flex:1;min-width:160px;padding:12px 16px;border:1px solid #d1d5db;border-radius:6px;font-size:.95rem;background:#f9fafb}
.search-box input:focus,.search-box select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.search-box .btn-primary{min-width:120px;justify-content:center;padding:12px 24px;font-size:1rem}

/* Stats Bar */
.stats-bar{background:#111827;color:#fff;padding:20px 0}
.stats-inner{display:flex;justify-content:center;gap:40px;flex-wrap:wrap;text-align:center}
.stat-item{display:flex;flex-direction:column;align-items:center;gap:2px}
.stat-item .num{font-size:1.1rem;font-weight:700;color:#f97316}
.stat-item .label{font-size:.8rem;color:rgba(255,255,255,.7)}

/* Categories */
.categories{padding:64px 0}
.section-title{font-size:1.75rem;font-weight:800;text-align:center;margin-bottom:8px;color:#1f2937}
.section-subtitle{text-align:center;color:#6b7280;margin-bottom:40px;font-size:1rem}
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.cat-card{display:flex;align-items:center;gap:12px;padding:16px 20px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;transition:all .2s;cursor:pointer}
.cat-card:hover{border-color:#2563eb;box-shadow:0 4px 12px rgba(37,99,235,.1);transform:translateY(-2px)}
.cat-card i{font-size:1.4rem;color:#2563eb;width:36px;text-align:center}
.cat-card .cat-info{display:flex;flex-direction:column}
.cat-card .cat-name{font-weight:600;font-size:.9rem;color:#1f2937}
.cat-card .cat-count{font-size:.75rem;color:#6b7280}

/* Listings Grid */
.featured{padding:64px 0;background:#f9fafb}
.listings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.listing-card{background:#fff;border-radius:12px;overflow:hidden;border:1px solid #e5e7eb;transition:all .25s;cursor:pointer}
.listing-card:hover{box-shadow:0 8px 25px rgba(0,0,0,.1);transform:translateY(-3px)}
.listing-card .card-img{position:relative;height:200px;background:#e5e7eb;overflow:hidden}
.listing-card .card-img img{width:100%;height:100%;object-fit:cover}
.listing-card .card-badge{position:absolute;top:12px;left:12px;padding:4px 10px;background:#2563eb;color:#fff;font-size:.7rem;font-weight:700;border-radius:4px;text-transform:uppercase}
.listing-card .card-body{padding:20px}
.listing-card .card-title{font-size:1.05rem;font-weight:700;color:#1f2937;margin-bottom:6px;line-height:1.3}
.listing-card .card-location{font-size:.8rem;color:#6b7280;margin-bottom:12px;display:flex;align-items:center;gap:4px}
.listing-card .card-meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.listing-card .meta-item{display:flex;flex-direction:column}
.listing-card .meta-label{font-size:.65rem;color:#9ca3af;text-transform:uppercase;font-weight:600;letter-spacing:.5px}
.listing-card .meta-value{font-size:.9rem;font-weight:700;color:#1f2937}
.listing-card .meta-value.price{color:#2563eb}
.view-all{text-align:center;margin-top:40px}

/* Why Section */
.why-section{padding:72px 0}
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.why-card{text-align:center;padding:32px 24px}
.why-card i{font-size:2.5rem;color:#2563eb;margin-bottom:16px}
.why-card h3{font-size:1.15rem;font-weight:700;margin-bottom:8px;color:#1f2937}
.why-card p{font-size:.9rem;color:#6b7280;line-height:1.6}

/* Hero CTAs */
.hero-cta{margin-bottom:24px;display:flex;gap:16px;justify-content:center;flex-wrap:wrap}

/* How It Works */
.how-it-works{padding:72px 0;background:#f9fafb}
.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:40px}
.step-card{text-align:center;padding:32px 20px;background:#fff;border-radius:12px;border:1px solid #e5e7eb;position:relative}
.step-number{position:absolute;top:-20px;left:50%;transform:translateX(-50%);width:40px;height:40px;background:#2563eb;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.1rem}
.step-card i{font-size:2rem;color:#f97316;margin:20px 0 16px}
.step-card h3{font-size:1.1rem;font-weight:700;margin-bottom:12px;color:#1f2937}
.step-card p{font-size:.9rem;color:#6b7280;line-height:1.6}

/* Featured Brokers */
.featured-brokers{padding:72px 0}
.brokers-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.broker-card{background:#fff;border-radius:12px;overflow:hidden;border:1px solid #e5e7eb;transition:all .25s;cursor:pointer}
.broker-card:hover{box-shadow:0 8px 25px rgba(0,0,0,.1);transform:translateY(-3px)}
.broker-card .broker-avatar{width:80px;height:80px;border-radius:50%;margin:0 auto 16px;background:#e5e7eb;background-size:cover;background-position:center}
.broker-card .broker-body{padding:24px;text-align:center}
.broker-card .broker-name{font-size:1.1rem;font-weight:700;color:#1f2937;margin-bottom:4px}
.broker-card .broker-title{font-size:.85rem;color:#f97316;margin-bottom:12px;font-weight:600}
.broker-card .broker-stats{font-size:.8rem;color:#6b7280;margin-bottom:12px}
.broker-card .broker-specialties{font-size:.8rem;color:#4b5563;line-height:1.5}

/* CTA Section */
.cta-section{background:linear-gradient(135deg,#1e3a5f 0%,#2563eb 100%);padding:72px 20px;text-align:center;color:#fff}
.cta-section h2{font-size:2rem;font-weight:800;margin-bottom:12px}
.cta-section p{font-size:1.1rem;opacity:.9;margin-bottom:28px;max-width:500px;margin-left:auto;margin-right:auto}

/* Auth Elements */
.user-menu{display:flex;align-items:center;gap:12px}
.user-name{font-size:.875rem;font-weight:600;color:#1f2937}

/* Footer */
.site-footer{background:#111827;color:#fff;padding:48px 0 24px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px;margin-bottom:40px}
.footer-brand .logo{margin-bottom:12px}
.footer-brand p{font-size:.85rem;color:#9ca3af;line-height:1.6}
.footer-col h4{font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;margin-bottom:16px;color:#d1d5db}
.footer-col a{display:block;font-size:.85rem;color:#9ca3af;padding:4px 0;transition:color .2s}
.footer-col a:hover{color:#fff}
.footer-bottom{border-top:1px solid #374151;padding-top:20px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.footer-bottom p{font-size:.8rem;color:#6b7280}
.footer-social{display:flex;gap:16px}
.footer-social a{color:#6b7280;font-size:1.1rem;transition:color .2s}
.footer-social a:hover{color:#fff}

/* ========= LISTING DETAIL PAGE ========= */
.listing-hero{background:#f9fafb;padding:32px 0}
.listing-back{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;color:#6b7280;margin-bottom:16px;transition:color .2s}
.listing-back:hover{color:#2563eb}
.listing-detail{display:grid;grid-template-columns:1fr 380px;gap:32px;align-items:start}
.listing-gallery{border-radius:12px;overflow:hidden;background:#e5e7eb;aspect-ratio:16/10}
.listing-gallery img{width:100%;height:100%;object-fit:cover}
.listing-sidebar{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:28px;position:sticky;top:80px}
.listing-sidebar .price-tag{font-size:1.75rem;font-weight:800;color:#2563eb;margin-bottom:4px}
.listing-sidebar .business-type{font-size:.85rem;color:#6b7280;margin-bottom:20px}
.sidebar-stats{display:flex;flex-direction:column;gap:12px;margin-bottom:24px;padding:16px;background:#f9fafb;border-radius:8px}
.sidebar-stat{display:flex;justify-content:space-between}
.sidebar-stat .s-label{font-size:.85rem;color:#6b7280}
.sidebar-stat .s-value{font-size:.85rem;font-weight:700;color:#1f2937}
.sidebar-actions{display:flex;flex-direction:column;gap:10px}
.sidebar-actions .btn-primary,.sidebar-actions .btn-outline{width:100%;justify-content:center;padding:12px}
.listing-body{padding:48px 0}
.listing-content{max-width:750px}
.listing-content h2{font-size:1.3rem;font-weight:700;margin:32px 0 12px;color:#1f2937}
.listing-content h2:first-child{margin-top:0}
.listing-content p,.listing-content li{font-size:.95rem;color:#4b5563;line-height:1.7}
.listing-content ul{padding-left:20px;list-style:disc}
.listing-content ul li{margin-bottom:6px}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.detail-item{padding:12px 16px;background:#f9fafb;border-radius:8px}
.detail-item .d-label{font-size:.75rem;color:#9ca3af;text-transform:uppercase;font-weight:600}
.detail-item .d-value{font-size:.95rem;font-weight:600;color:#1f2937}

/* ========= POST PAGE ========= */
.post-page{padding:48px 0;min-height:80vh}
.post-form{max-width:720px;margin:0 auto;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:40px}
.post-form h1{font-size:1.5rem;font-weight:800;margin-bottom:4px}
.post-form .subtitle{color:#6b7280;margin-bottom:32px;font-size:.95rem}
.form-group{margin-bottom:20px}
.form-group label{display:block;font-size:.85rem;font-weight:600;color:#374151;margin-bottom:6px}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:10px 14px;border:1px solid #d1d5db;border-radius:6px;font-size:.95rem;background:#f9fafb;transition:border-color .2s}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1);background:#fff}
.form-group textarea{resize:vertical;min-height:120px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-section-title{font-size:1rem;font-weight:700;color:#1f2937;margin:28px 0 16px;padding-top:20px;border-top:1px solid #e5e7eb}
.form-section-title:first-of-type{border:none;margin-top:0;padding-top:0}
.post-form .btn-primary{width:100%;justify-content:center;padding:14px;font-size:1rem;margin-top:8px}

/* ========= RESPONSIVE ========= */
@media(max-width:1024px){
.cat-grid{grid-template-columns:repeat(3,1fr)}
.listings-grid{grid-template-columns:repeat(2,1fr)}
.brokers-grid{grid-template-columns:repeat(2,1fr)}
.steps-grid{grid-template-columns:repeat(2,1fr);gap:32px}
.footer-grid{grid-template-columns:1fr 1fr}
.listing-detail{grid-template-columns:1fr}
.listing-sidebar{position:static}
}
@media(max-width:768px){
.main-nav{display:none}
.mobile-toggle{display:block}
.main-nav.open{display:flex;flex-direction:column;position:absolute;top:64px;left:0;right:0;background:#fff;padding:16px 20px;box-shadow:0 4px 12px rgba(0,0,0,.1);gap:12px}
.hero h1{font-size:1.75rem}
.hero{min-height:420px}
.hero-cta{flex-direction:column;align-items:center}
.search-box{flex-direction:column}
.search-box input,.search-box select{min-width:100%}
.stats-inner{gap:20px}
.cat-grid{grid-template-columns:repeat(2,1fr)}
.listings-grid{grid-template-columns:1fr}
.brokers-grid{grid-template-columns:1fr}
.steps-grid{grid-template-columns:1fr;gap:24px}
.why-grid{grid-template-columns:1fr}
.footer-grid{grid-template-columns:1fr}
.footer-bottom{flex-direction:column;text-align:center}
.form-row{grid-template-columns:1fr}
.detail-grid{grid-template-columns:1fr}
.user-menu{flex-direction:column;gap:8px}
.header-actions .auth-link{display:none}
}
@media(max-width:480px){
.cat-grid{grid-template-columns:1fr}
.header-actions .btn-primary{display:none}
}

/* Loading/Toast */
.toast{position:fixed;bottom:24px;right:24px;padding:14px 24px;background:#1f2937;color:#fff;border-radius:8px;font-size:.9rem;z-index:9999;transform:translateY(100px);opacity:0;transition:all .3s}
.toast.show{transform:translateY(0);opacity:1}
.spinner{display:inline-block;width:18px;height:18px;border:2px solid #e5e7eb;border-top-color:#2563eb;border-radius:50%;animation:spin .6s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.skeleton{background:linear-gradient(90deg,#e5e7eb 25%,#f3f4f6 50%,#e5e7eb 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:8px}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
