/* ============================================================
   Nagdevi Street - Main Stylesheet
   ============================================================ */

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

:root {
  --red:        #2453B2;
  --red-dark:   #1a3d8f;
  --red-light:  #3a6fd8;
  --navy:       #0f1f4b;
  --blue:       #2453B2;
  --green:      #27ae60;
  --green-dark: #1e8449;
  --orange:     #6B4F4F;
  --teal:       #1a6b8a;
  --purple:     #5c3d8f;
  --gold:       #c4922a;
  --light-bg:   #f0f4fb;
  --border:     #d0d9ee;
  --text:       #1a1a2e;
  --text-muted: #6b7a9e;
  --white:      #fff;
}

body { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: var(--text); background: var(--light-bg); }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); text-decoration: underline; }
ul { list-style: none; }
img { max-width: 100%; }

.container-fluid { max-width: 1260px; margin: 0 auto; padding: 0 14px; }

/* ── TOPBAR ─────────────────────────────────────── */
.topbar { background: #1a1a2e; color: #aaa; font-size: 12px; padding: 5px 0; border-bottom: 2px solid var(--red); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-links a { color: #aaa; font-size: 12px; transition: color .2s; }
.topbar-links a:hover { color: #fff; text-decoration: none; }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.btn-topbar { font-size: 11px; padding: 4px 12px; border-radius: 3px; font-weight: bold; transition: all .2s; }
.btn-join { background: var(--gold); color: #fff !important; }
.btn-join:hover { background: #c4922a; text-decoration: none; }
.btn-login { background: #444; color: #ddd !important; }
.btn-login:hover { background: #555; text-decoration: none; }

/* ── HEADER ─────────────────────────────────────── */
.site-header { background: var(--white); border-bottom: 3px solid var(--red); padding: 10px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 56px; height: 56px; background: var(--red); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 16px; flex-shrink: 0; letter-spacing: 1px; }
.logo-text { display: flex; flex-direction: column; }
.brand { font-size: 20px; font-weight: bold; color: var(--red); line-height: 1.2; }
.tagline { font-size: 11px; color: var(--text-muted); }
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-add-company { background: var(--red); color: #fff; padding: 7px 14px; border-radius: 4px; font-size: 12px; font-weight: bold; transition: background .2s; }
.btn-add-company:hover { background: var(--red-dark); color: #fff; text-decoration: none; }
.btn-post-offer { background: var(--green); color: #fff; padding: 7px 14px; border-radius: 4px; font-size: 12px; font-weight: bold; transition: background .2s; }
.btn-post-offer.sell { background: var(--orange); }
.btn-post-offer:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.btn-post-offer.sell:hover { background: #5a4a8a; }

/* ── NAVBAR ─────────────────────────────────────── */
.main-nav { background: var(--red); position: relative; z-index: 100; }
.main-nav .container-fluid { display: flex; align-items: center; }
.nav-menu { display: flex; flex-wrap: wrap; }
.nav-menu li { position: relative; }
.nav-menu li a { display: block; color: #fff; padding: 11px 16px; font-size: 13px; font-weight: bold; white-space: nowrap; transition: background .2s; }
.nav-menu li a:hover { background: rgba(0,0,0,.2); text-decoration: none; }
.nav-menu li.has-dropdown:hover .dropdown { display: block; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--navy); min-width: 200px; border-top: 3px solid var(--gold); box-shadow: 0 4px 12px rgba(0,0,0,.3); z-index: 200; }
.dropdown li a { padding: 9px 16px; font-size: 13px; font-weight: normal; color: #ddd; border-bottom: 1px solid rgba(255,255,255,.05); }
.dropdown li a:hover { background: var(--red); color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; padding: 10px; cursor: pointer; margin-left: auto; }

/* ── SEARCH BAR ─────────────────────────────────── */
.search-section { background: var(--red-dark); padding: 10px 0; }
.search-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.search-select { padding: 8px 10px; border: none; border-radius: 4px; font-size: 13px; background: #fff; min-width: 200px; }
.search-input { flex: 1; min-width: 220px; padding: 8px 12px; border: none; border-radius: 4px; font-size: 13px; }
.btn-search { background: var(--orange); color: #fff; border: none; padding: 8px 20px; border-radius: 4px; font-size: 13px; font-weight: bold; cursor: pointer; transition: background .2s; white-space: nowrap; }
.btn-search:hover { background: #5a4a8a; }
.btn-offer-quick { background: var(--green); color: #fff; padding: 8px 14px; border-radius: 4px; font-size: 12px; font-weight: bold; white-space: nowrap; transition: background .2s; }
.btn-offer-quick.sell { background: var(--orange); }
.btn-offer-quick:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.btn-offer-quick.sell:hover { background: #5a4a8a; }

/* ── ALERTS ─────────────────────────────────────── */
.alert-success-bar { background: #d4edda; color: #155724; padding: 10px 0; border-bottom: 1px solid #c3e6cb; font-size: 13px; }
.alert-error-bar   { background: #f8d7da; color: #721c24; padding: 10px 0; border-bottom: 1px solid #f5c6cb; font-size: 13px; }

/* ── STATS BAR ──────────────────────────────────── */
.stats-bar { background: #fff; border-bottom: 3px solid var(--red); }
.stats-inner { display: flex; }
.stat-item { flex: 1; text-align: center; padding: 12px 6px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { display: block; font-size: 22px; font-weight: bold; color: var(--red); line-height: 1; }
.stat-label { display: block; font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ── HOME LAYOUT ────────────────────────────────── */
.home-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 0; }
.full-width { grid-column: 1 / -1; }

/* ── CATEGORY SECTION ───────────────────────────── */
.cat-section { background: #fff; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.cat-header { background: var(--navy); color: #fff; padding: 9px 13px; display: flex; justify-content: space-between; align-items: center; }
.cat-header h3 { font-size: 13px; font-weight: bold; margin: 0; text-transform: uppercase; letter-spacing: .4px; }
.cat-header a { color: var(--gold); font-size: 11px; font-weight: normal; }
.cat-header a:hover { color: #fff; text-decoration: none; }
.cat-body { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 6px; gap: 0; }
.cat-body a { display: block; padding: 4px 8px; font-size: 12px; color: var(--blue); border-bottom: 1px dotted #eee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .15s; }
.cat-body a:hover { background: #eef2fb; color: var(--red); text-decoration: none; }

/* ── OFFERS PANEL ───────────────────────────────── */
.offers-panel { background: #fff; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.offers-header { padding: 9px 13px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--border); }
.offers-header.buy h3 { color: var(--red); }
.offers-header.sell h3 { color: var(--green); }
.offers-header h3 { font-size: 14px; font-weight: bold; margin: 0; }
.offers-header a { font-size: 11px; }
.offer-item { padding: 9px 12px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.offer-item:last-child { border-bottom: none; }
.offer-title { font-size: 13px; font-weight: bold; color: var(--navy); display: block; }
.offer-title:hover { color: var(--red); }
.offer-meta { display: flex; gap: 10px; margin: 3px 0; }
.offer-city { font-size: 11px; color: var(--red); font-weight: bold; }
.offer-date { font-size: 11px; color: var(--text-muted); }
.offer-desc { font-size: 12px; color: #555; line-height: 1.4; }
.btn-view-offer { background: var(--blue); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 3px; white-space: nowrap; transition: background .2s; align-self: flex-start; flex-shrink: 0; }
.btn-view-offer:hover { background: #1a6fa0; color: #fff; text-decoration: none; }
.btn-view-offer.sell { background: var(--green); }
.btn-view-offer.sell:hover { background: var(--green-dark); }

/* ── TESTIMONIALS ───────────────────────────────── */
.testimonials-section { background: #fff; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.section-header { padding: 9px 14px; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.section-header.teal { background: var(--teal); }
.section-header.blue { background: var(--blue); }
.section-header h3 { font-size: 13px; font-weight: bold; margin: 0; text-transform: uppercase; }
.section-header a { color: rgba(255,255,255,.85); font-size: 11px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.testimonial-card { padding: 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.testimonial-card:nth-child(3n) { border-right: none; }
.t-logo { width: 80px; height: 50px; object-fit: contain; border: 1px solid var(--border); padding: 4px; margin-bottom: 8px; display: block; }
.t-logo-placeholder { width: 60px; height: 40px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 16px; border-radius: 4px; margin-bottom: 8px; }
.testimonial-card h4 { font-size: 12px; font-weight: bold; color: var(--navy); margin-bottom: 4px; }
.t-person { font-size: 11px; color: var(--teal); margin-bottom: 6px; }
.t-text { font-size: 12px; color: #555; line-height: 1.55; font-style: italic; }

/* ── PRIME COMPANIES ────────────────────────────── */
.prime-section { background: #fff; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.prime-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.prime-card { padding: 12px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.prime-card:nth-child(4n) { border-right: none; }
.prime-logo { width: 80px; height: 40px; object-fit: contain; margin-bottom: 6px; display: block; }
.prime-card h4 { font-size: 12px; font-weight: bold; margin-bottom: 4px; }
.prime-card h4 a { color: var(--blue); }
.prime-card h4 a:hover { color: var(--red); }
.prime-card p { font-size: 11px; color: #666; line-height: 1.45; margin-bottom: 5px; }
.prime-web { font-size: 11px; color: var(--teal); }

/* ── PAGE CONTENT ───────────────────────────────── */
.page-content { padding: 14px 0; }
.breadcrumb-bar { background: #fff; border: 1px solid var(--border); padding: 8px 12px; font-size: 12px; color: #888; margin-bottom: 12px; border-radius: 4px; }
.breadcrumb-bar a { color: var(--blue); }
.breadcrumb-bar a:hover { color: var(--red); }
.breadcrumb-bar span { color: var(--text); font-weight: bold; }

/* ── LISTING LAYOUT ─────────────────────────────── */
.listing-layout { display: grid; grid-template-columns: 220px 1fr; gap: 14px; }

/* ── SIDEBAR ────────────────────────────────────── */
.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.sidebar-title { background: var(--navy); color: #fff; padding: 8px 12px; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: .4px; }
.sidebar-list { padding: 6px 0; }
.sidebar-list li a { display: block; padding: 5px 12px; font-size: 12px; color: var(--blue); border-bottom: 1px dotted #eee; }
.sidebar-list li a:hover { background: #f8f9fa; color: var(--red); text-decoration: none; }
.sidebar-btn { display: block; margin: 8px 10px 4px; padding: 7px 12px; text-align: center; border-radius: 4px; font-size: 12px; font-weight: bold; transition: background .2s; }
.sidebar-btn.buy { background: var(--blue); color: #fff; }
.sidebar-btn.buy:hover { background: #1a6fa0; color: #fff; text-decoration: none; }
.sidebar-btn.sell { background: var(--green); color: #fff; }
.sidebar-btn.sell:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.sidebar-btn.add-company { background: var(--red); color: #fff; }
.sidebar-btn.add-company:hover { background: var(--red-dark); color: #fff; text-decoration: none; }
.filter-form .sidebar-box { margin-bottom: 12px; }
.filter-select { width: 100%; padding: 7px 10px; border: 1px solid var(--border); font-size: 13px; background: #fff; }
.mt-3 { margin-top: 12px; }

/* ── LISTING MAIN ───────────────────────────────── */
.listing-main { min-width: 0; }
.listing-header { background: #fff; border: 1px solid var(--border); padding: 10px 14px; margin-bottom: 10px; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; }
.listing-header h1 { font-size: 18px; color: var(--navy); margin: 0; }
.listing-count { font-size: 12px; color: var(--text-muted); }

/* ── COMPANY CARD ───────────────────────────────── */
.company-card { background: #fff; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 10px; overflow: hidden; position: relative; transition: box-shadow .2s; }
.company-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.company-card.prime  { border-left: 4px solid var(--gold); }
.company-card.premium{ border-left: 4px solid var(--blue); }
.company-card-inner { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; padding: 12px; align-items: start; }
.company-logo-wrap { display: flex; align-items: flex-start; justify-content: center; padding-top: 4px; }
.company-logo-img { width: 70px; height: 50px; object-fit: contain; border: 1px solid var(--border); padding: 3px; }
.company-logo-placeholder { width: 60px; height: 50px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: bold; border-radius: 4px; }
.company-details h3 { font-size: 15px; margin-bottom: 4px; }
.company-details h3 a { color: var(--navy); }
.company-details h3 a:hover { color: var(--red); }
.company-desc { font-size: 12px; color: #555; line-height: 1.45; margin: 4px 0; }
.company-meta-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.company-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; }
.btn-view-company { background: var(--blue); color: #fff; padding: 6px 12px; border-radius: 3px; font-size: 12px; white-space: nowrap; transition: background .2s; }
.btn-view-company:hover { background: #1a6fa0; color: #fff; text-decoration: none; }
.btn-call-company { background: var(--green); color: #fff; padding: 6px 12px; border-radius: 3px; font-size: 12px; white-space: nowrap; transition: background .2s; }
.btn-call-company:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.membership-badge { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 2px; font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: .5px; }
.membership-badge.prime   { background: var(--gold); color: #fff; }
.membership-badge.premium { background: var(--blue); color: #fff; }
.membership-badge.large   { font-size: 11px; }
.verified-badge { background: var(--teal); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 2px; font-weight: normal; margin-left: 6px; }

/* ── COMPANY PROFILE ────────────────────────────── */
.company-profile-card { background: #fff; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; position: relative; }
.company-profile-top { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px; border-bottom: 1px solid var(--border); }
.company-profile-logo img { width: 110px; height: 80px; object-fit: contain; border: 1px solid var(--border); padding: 5px; }
.logo-placeholder-lg { width: 100px; height: 80px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: bold; border-radius: 6px; }
.company-profile-info h1 { font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.company-category { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.company-contact-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-call-lg, .btn-email-lg, .btn-website-lg { padding: 8px 14px; border-radius: 4px; font-size: 13px; font-weight: bold; color: #fff; transition: background .2s; }
.btn-call-lg         { background: var(--green); }
.btn-call-lg.mobile  { background: var(--teal); }
.btn-email-lg        { background: var(--blue); }
.btn-website-lg      { background: var(--purple); }
.btn-call-lg:hover   { background: var(--green-dark); color: #fff; text-decoration: none; }
.btn-email-lg:hover  { background: #1a6fa0; color: #fff; text-decoration: none; }
.btn-website-lg:hover{ background: #7d3c98; color: #fff; text-decoration: none; }
.company-profile-body { padding: 20px; }
.profile-section { margin-bottom: 20px; }
.profile-section h3 { font-size: 15px; color: var(--navy); border-bottom: 2px solid var(--red); padding-bottom: 6px; margin-bottom: 12px; }
.profile-section p { font-size: 13px; color: #555; line-height: 1.6; }
.products-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-tag { background: #e8f4fd; color: var(--blue); padding: 4px 10px; border-radius: 20px; font-size: 12px; border: 1px solid #b3d7f0; }
.cert-tag { background: #e8f8f0; color: var(--green); padding: 4px 10px; border-radius: 20px; font-size: 12px; border: 1px solid #a9dfbf; }
.contact-table { width: 100%; border-collapse: collapse; }
.contact-table tr { border-bottom: 1px solid #f0f0f0; }
.contact-table td { padding: 8px 12px; font-size: 13px; }
.contact-table td:first-child { color: var(--text-muted); width: 160px; font-weight: bold; }
.contact-table td:last-child a { color: var(--blue); }

/* ── OFFER CARD FULL ─────────────────────────────── */
.offer-card-full { background: #fff; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 10px; overflow: hidden; transition: box-shadow .2s; }
.offer-card-full:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.offer-card-full.buy  { border-left: 4px solid var(--red); }
.offer-card-full.sell { border-left: 4px solid var(--green); }
.offer-card-body { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px; align-items: start; }
.offer-card-info h3 { font-size: 15px; margin-bottom: 4px; }
.offer-card-info h3 a { color: var(--navy); }
.offer-card-info h3 a:hover { color: var(--red); }
.offer-cat-tag { display: inline-block; background: #f0f4ff; color: var(--blue); font-size: 11px; padding: 2px 8px; border-radius: 2px; margin-bottom: 6px; }
.offer-full-desc { font-size: 13px; color: #555; line-height: 1.5; margin: 6px 0; }
.offer-meta-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.offer-card-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.btn-call-offer { background: var(--green); color: #fff; padding: 6px 12px; border-radius: 3px; font-size: 12px; text-align: center; }
.btn-call-offer:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.buysell-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.buysell-tab { padding: 9px 18px; border-radius: 4px 4px 0 0; font-size: 13px; font-weight: bold; background: #e0e0e0; color: #555; transition: all .2s; }
.buysell-tab:hover { background: #ccc; text-decoration: none; }
.buysell-tab.active.buy  { background: var(--red);   color: #fff; }
.buysell-tab.active.sell { background: var(--green); color: #fff; }
.buysell-tab.post { background: var(--navy); color: #fff; margin-left: auto; }
.buysell-tab.post:hover { background: #1a252f; text-decoration: none; }

/* ── FORMS ───────────────────────────────────────── */
.form-page-layout { max-width: 860px; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.form-card-header { background: var(--navy); color: #fff; padding: 16px 20px; }
.form-card-header.buy  { background: var(--red); }
.form-card-header.sell { background: var(--green); }
.form-card-header h2 { font-size: 18px; margin-bottom: 4px; }
.form-card-header p  { font-size: 13px; opacity: .85; }
.mid-form { padding: 20px; }
.form-errors { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; }
.form-errors ul { padding-left: 18px; font-size: 13px; }
.form-section-title { font-size: 13px; font-weight: bold; color: var(--navy); text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--red); padding-bottom: 5px; margin: 18px 0 12px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: bold; color: #444; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 8px 11px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px;
    background: #fafafa; transition: border-color .2s; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--blue); background: #fff;
}
.form-group textarea { resize: vertical; }
.req { color: var(--red); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.btn-submit { background: var(--red); color: #fff; border: none; padding: 10px 24px; border-radius: 4px; font-size: 14px; font-weight: bold; cursor: pointer; transition: background .2s; }
.btn-submit:hover { background: var(--red-dark); }
.btn-submit.buy  { background: var(--red); }
.btn-submit.sell { background: var(--green); }
.btn-submit.sell:hover { background: var(--green-dark); }
.btn-cancel { background: #ddd; color: #555; padding: 10px 20px; border-radius: 4px; font-size: 14px; font-weight: bold; transition: background .2s; }
.btn-cancel:hover { background: #ccc; text-decoration: none; color: #333; }
.offer-type-toggle { display: flex; gap: 0; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.type-btn { flex: 1; text-align: center; padding: 10px; font-size: 14px; font-weight: bold; background: #f5f5f5; color: #777; border-right: 1px solid var(--border); transition: all .2s; }
.type-btn:last-child { border-right: none; }
.type-btn:hover { text-decoration: none; background: #eee; }
.type-btn.active.buy  { background: var(--red);   color: #fff; }
.type-btn.active.sell { background: var(--green); color: #fff; }

/* ── AUTH FORMS ──────────────────────────────────── */
.auth-layout { max-width: 480px; margin: 30px auto; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.auth-header { background: var(--red); color: #fff; padding: 20px; text-align: center; }
.auth-header h2 { font-size: 20px; margin-bottom: 4px; }
.auth-body { padding: 24px; }
.auth-footer { text-align: center; padding: 14px; border-top: 1px solid var(--border); font-size: 13px; }
.btn-auth { width: 100%; background: var(--red); color: #fff; border: none; padding: 11px; border-radius: 4px; font-size: 15px; font-weight: bold; cursor: pointer; margin-top: 8px; transition: background .2s; }
.btn-auth:hover { background: var(--red-dark); }

/* ── DASHBOARD ───────────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 220px 1fr; gap: 14px; padding: 14px 0; }
.dash-menu { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; height: fit-content; }
.dash-menu a { display: block; padding: 10px 14px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); transition: all .2s; }
.dash-menu a:hover, .dash-menu a.active { background: var(--red); color: #fff; text-decoration: none; }
.dash-content { min-width: 0; }
.dash-card { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 16px; margin-bottom: 14px; }
.dash-card h3 { font-size: 15px; color: var(--navy); border-bottom: 2px solid var(--red); padding-bottom: 8px; margin-bottom: 14px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 14px; text-align: center; }
.stat-card .num { font-size: 28px; font-weight: bold; color: var(--red); }
.stat-card .lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── ADMIN ───────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: 100vh; }
.admin-sidebar { background: var(--navy); color: #fff; padding: 0; }
.admin-sidebar .brand { background: var(--red); padding: 14px 16px; font-size: 15px; font-weight: bold; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar ul { padding: 8px 0; }
.admin-sidebar ul li a { display: block; padding: 9px 16px; color: #bdc3c7; font-size: 13px; transition: all .2s; border-left: 3px solid transparent; }
.admin-sidebar ul li a:hover, .admin-sidebar ul li a.active { background: rgba(255,255,255,.1); color: #fff; border-left-color: var(--red); text-decoration: none; }
.admin-main { background: var(--light-bg); }
.admin-topbar { background: #fff; padding: 12px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.admin-topbar h1 { font-size: 18px; color: var(--navy); margin: 0; }
.admin-content { padding: 20px; }
.admin-card { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.admin-card-header { background: var(--navy); color: #fff; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; }
.admin-card-header h3 { font-size: 14px; font-weight: bold; margin: 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { background: #f8f9fa; padding: 9px 12px; text-align: left; font-size: 12px; font-weight: bold; color: #555; text-transform: uppercase; letter-spacing: .4px; border-bottom: 2px solid var(--border); }
.admin-table td { padding: 9px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.admin-table tr:hover td { background: #fafafa; }
.badge-active   { background: #d4edda; color: #155724; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.badge-inactive { background: #f8d7da; color: #721c24; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.badge-prime    { background: var(--gold); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.badge-premium  { background: var(--blue); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.btn-sm { padding: 4px 10px; border-radius: 3px; font-size: 12px; cursor: pointer; border: none; }
.btn-sm-primary { background: var(--blue);  color: #fff; }
.btn-sm-danger  { background: var(--red);   color: #fff; }
.btn-sm-success { background: var(--green); color: #fff; }
.btn-sm-warning { background: var(--gold);  color: #fff; }
.admin-filters { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; gap: 10px; flex-wrap: wrap; }
.admin-filters input, .admin-filters select { padding: 7px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.admin-stat-card { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 16px; text-align: center; }
.admin-stat-card .num { font-size: 30px; font-weight: bold; color: var(--red); }
.admin-stat-card .lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── NO RESULTS ──────────────────────────────────── */
.no-results { background: #fff; border: 2px dashed var(--border); border-radius: 6px; padding: 40px; text-align: center; color: var(--text-muted); margin: 20px 0; }
.no-results i { color: #ccc; margin-bottom: 14px; display: block; }
.no-results h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.no-data { padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.btn-primary { background: var(--red); color: #fff; padding: 10px 20px; border-radius: 4px; font-size: 14px; font-weight: bold; display: inline-block; margin-top: 12px; transition: background .2s; }
.btn-primary:hover { background: var(--red-dark); color: #fff; text-decoration: none; }

/* ── PAGINATION ──────────────────────────────────── */
.pagination { display: flex; gap: 4px; margin: 16px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 3px; font-size: 13px; color: var(--blue); background: #fff; }
.pagination a:hover { background: var(--red); color: #fff; border-color: var(--red); text-decoration: none; }
.pagination .active span { background: var(--red); color: #fff; border-color: var(--red); }
.pagination .disabled span { color: #ccc; cursor: default; }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer { background: var(--navy); margin-top: 20px; }
.footer-top { padding: 24px 0 16px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-about .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; font-size: 14px; font-weight: bold; }
.logo-icon-sm { width: 36px; height: 36px; background: var(--red); border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 11px; flex-shrink: 0; }
.footer-about p { font-size: 12px; color: #aaa; line-height: 1.65; }
.footer-social { display: flex; gap: 8px; margin-top: 12px; }
.footer-social a { width: 30px; height: 30px; background: rgba(255,255,255,.1); color: #bbb; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; transition: all .2s; }
.footer-social a:hover { background: var(--red); color: #fff; text-decoration: none; }
.footer-col h4 { color: #fff; font-size: 13px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 6px; }
.footer-col ul li { margin-bottom: 5px; }
.footer-col ul li a { font-size: 12px; color: #aaa; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 10px 0; text-align: center; }
.footer-bottom p { font-size: 11px; color: #888; }
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: #fff; }

/* ── MAIN CATEGORY PAGE ──────────────────────────── */
.main-cat-page { padding: 14px 0; }
.sub-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.sub-cat-card { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; text-align: center; transition: all .2s; }
.sub-cat-card:hover { border-color: var(--red); background: #fff8f8; text-decoration: none; }
.sub-cat-card h4 { font-size: 13px; color: var(--navy); margin-bottom: 4px; }
.sub-cat-card span { font-size: 11px; color: var(--text-muted); }

/* ── SEARCH RESULTS ──────────────────────────────── */
.search-results-header { background: #fff; border: 1px solid var(--border); padding: 12px 16px; margin-bottom: 12px; border-radius: 4px; }
.search-results-header h2 { font-size: 18px; color: var(--navy); }
.search-results-header span { color: var(--text-muted); font-size: 13px; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
    .home-layout   { grid-template-columns: 1fr; }
    .prime-grid    { grid-template-columns: repeat(3, 1fr); }
    .footer-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-actions { display: none; }
    .nav-toggle { display: block; }
    .nav-menu { display: none; flex-direction: column; width: 100%; }
    .nav-menu.open { display: flex; }
    .nav-menu li a { padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
    .dropdown { position: static; display: none; }
    .has-dropdown.open .dropdown { display: block; }
    .listing-layout { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
    .company-card-inner { grid-template-columns: 60px 1fr; }
    .company-actions { flex-direction: row; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .prime-grid { grid-template-columns: 1fr 1fr; }
    .stat-cards, .admin-stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .dashboard-layout, .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .stats-inner { flex-wrap: wrap; }
    .stat-item { min-width: 50%; }
    .sub-cat-grid { grid-template-columns: 1fr 1fr; }
    .search-form { flex-direction: column; }
    .search-select, .search-input { min-width: unset; width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .cat-body { grid-template-columns: 1fr 1fr; }
    .prime-grid { grid-template-columns: 1fr; }
    .company-card-inner { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SEARCH BAR — TWO-ROW LAYOUT WITH LOCATION FILTERS
   Append to the bottom of public/css/app.css
══════════════════════════════════════════════════════════════════════════ */

/* Row 1: type selector + input + search button */
.search-row-main {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.search-row-main .search-select { flex-shrink: 0; }
.search-row-main .search-input  { flex: 1; min-width: 180px; }

/* Row 2: location filter strip */
.search-row-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 7px;
}
.filter-label {
    font-size: 12px;
    color: #ccd;
    white-space: nowrap;
    font-weight: bold;
    letter-spacing: .3px;
}
.filter-input {
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 4px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 12px;
    width: 110px;
    transition: background .2s, border-color .2s;
}
.filter-input::placeholder { color: rgba(255,255,255,.55); }
.filter-input:focus {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.6);
    outline: none;
}
