/* =========================================================
   Houston Trade Pros — Design System & All Pages
   css/style.css
   ========================================================= */

/* ── CSS Custom Properties ────────────────────────────── */
:root {
  --navy:       #0a1628;
  --navy-light: #142240;
  --navy-dark:  #060e1a;
  --orange:     #f97316;
  --orange-hover:#ea6c0e;
  --orange-light:#fff7ed;
  --white:      #ffffff;
  --grey-50:    #f8f9fa;
  --grey-100:   #f1f3f5;
  --grey-200:   #e9ecef;
  --grey-300:   #dee2e6;
  --grey-400:   #adb5bd;
  --grey-500:   #868e96;
  --grey-600:   #495057;
  --grey-700:   #343a40;
  --grey-800:   #212529;
  --success:    #16a34a;
  --success-bg: #f0fdf4;
  --error:      #dc2626;
  --error-bg:   #fef2f2;
  --warning:    #f59e0b;
  --warning-bg: #fffbeb;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-full:9999px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:  0 8px 30px rgba(0,0,0,.12);
  --shadow-nav: 0 2px 12px rgba(0,0,0,.15);
  --transition: 200ms ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --container: 1200px;
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey-800);
  background: var(--white);
  overflow-x: hidden;
}
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-hover); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); font-size: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Typography ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--grey-800);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.section-title {
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--grey-500);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--transition);
  min-height: 44px;
  text-align: center;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(249,115,22,.35);
}
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; min-height: 36px; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn:disabled, .btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Spinner ──────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--grey-200);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-lg { width: 40px; height: 40px; border-width: 4px; }
.spinner-center { display: flex; justify-content: center; padding: 60px 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Badges ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.badge-category {
  color: var(--white);
}
.badge-verified {
  background: var(--orange-light);
  color: var(--orange);
}
.badge-verified::before { content: '✓ '; font-weight: 700; }
.badge-unclaimed {
  background: var(--grey-100);
  color: var(--grey-500);
}
.badge-featured {
  background: linear-gradient(135deg, var(--orange), #fb923c);
  color: var(--white);
}
.badge-status {
  padding: 4px 10px;
  font-size: 0.72rem;
  text-transform: capitalize;
}
.badge-pending { background: var(--warning-bg); color: #b45309; }
.badge-approved { background: var(--success-bg); color: var(--success); }
.badge-rejected { background: var(--error-bg); color: var(--error); }

/* ── Form Inputs ──────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--grey-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23495057' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ── Toggle Switch ────────────────────────────────────── */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--grey-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition);
}
.toggle input:checked + .toggle-slider {
  background: var(--orange);
}
.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ── Cards ────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
  transition: all var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-left: 3px solid var(--orange);
}

/* ── Toast ────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  max-width: 360px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--success); }
.toast-error { background: var(--error); }

/* ── Alert Messages ───────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.alert-success { background: var(--success-bg); color: #15803d; border: 1px solid #bbf7d0; }
.alert-error { background: var(--error-bg); color: #b91c1c; border: 1px solid #fecaca; }

/* ══════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: var(--shadow-nav); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo:hover { color: var(--white); }
.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600 !important;
  font-size: 0.88rem !important;
}
.nav-cta:hover {
  background: var(--orange-hover) !important;
  transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.open { display: block; opacity: 1; }
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--navy);
  z-index: 999;
  padding: 80px 30px 30px;
  transition: right 0.3s ease;
}
.nav-drawer.open { right: 0; }
.nav-drawer a {
  display: block;
  color: rgba(255,255,255,.85);
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav-drawer a:hover { color: var(--orange); }
.nav-drawer .nav-cta {
  display: block;
  text-align: center;
  margin-top: 20px;
  border-bottom: none;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-drawer { display: block; }
}

/* ══════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════ */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,.015) 40px,
    rgba(255,255,255,.015) 80px
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hero-title {
  color: var(--white);
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3rem);
}
.hero-title .word-reveal {
  display: inline-block;
}
.hero-subtitle {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-search {
  display: flex;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  max-width: 640px;
  margin: 0 auto 30px;
}
.hero-search input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  min-width: 0;
  color: var(--grey-800);
}
.hero-search input:focus { outline: none; }
.hero-search select {
  border: none;
  border-left: 1px solid var(--grey-200);
  padding: 16px 14px;
  font-size: 0.9rem;
  color: var(--grey-600);
  background: var(--grey-50);
  min-width: 140px;
  cursor: pointer;
}
.hero-search select:focus { outline: none; }
.hero-search .btn {
  border-radius: 0;
  padding: 16px 28px;
  white-space: nowrap;
}
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.65);
  font-size: 0.88rem;
  font-weight: 500;
}
.trust-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--orange);
  fill: none;
}

@media (max-width: 600px) {
  .hero { padding: 50px 0 45px; }
  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-md);
  }
  .hero-search input { border-bottom: 1px solid var(--grey-200); }
  .hero-search select {
    border-left: none;
    border-bottom: 1px solid var(--grey-200);
  }
  .hero-search .btn { border-radius: 0 0 var(--radius-md) var(--radius-md); }
  .trust-bar { gap: 16px; }
}

/* ══════════════════════════════════════════════════════
   CATEGORY GRID (Homepage)
   ══════════════════════════════════════════════════════ */
.categories-section {
  padding: 70px 0;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--grey-800);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.category-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--grey-800);
}
.category-card .cat-icon {
  width: 48px;
  height: 48px;
  background: var(--orange-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.category-card .cat-icon svg {
  width: 24px;
  height: 24px;
}
.category-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
}
.category-card .cat-count {
  font-size: 0.78rem;
  color: var(--grey-400);
  font-weight: 500;
}

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-card { padding: 20px 14px; }
}

/* ══════════════════════════════════════════════════════
   FEATURED LISTINGS (Homepage)
   ══════════════════════════════════════════════════════ */
.featured-section {
  padding: 70px 0;
  background: var(--grey-50);
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.featured-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
}
.featured-card:hover {
  box-shadow: var(--shadow-md);
  border-left: 3px solid var(--orange);
}
.featured-card .fc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.featured-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.featured-card .fc-phone {
  color: var(--grey-500);
  font-size: 0.88rem;
}
.featured-card .fc-stars {
  color: var(--warning);
  font-size: 0.85rem;
}
.featured-card .fc-stars .review-count { color: var(--grey-400); }
.featured-card .btn { margin-top: auto; align-self: flex-start; }

/* ══════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════ */
.how-section {
  padding: 70px 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  text-align: center;
  padding: 30px 20px;
}
.step-number {
  width: 56px;
  height: 56px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 18px;
}
.step-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.step-card p {
  color: var(--grey-500);
  font-size: 0.92rem;
}

@media (max-width: 700px) {
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ══════════════════════════════════════════════════════
   STATS ROW
   ══════════════════════════════════════════════════════ */
.stats-section {
  padding: 50px 0;
  background: var(--navy);
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  display: block;
}
.stat-label {
  color: rgba(255,255,255,.65);
  font-size: 0.9rem;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; }
}

/* ══════════════════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════════════════ */
.cta-section {
  padding: 70px 0;
}
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 12px;
}
.cta-banner p {
  color: rgba(255,255,255,.7);
  margin-bottom: 28px;
  font-size: 1.05rem;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-buttons .btn-secondary {
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.cta-buttons .btn-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.6);
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.footer-brand .nav-logo { margin-bottom: 10px; }
.footer-tagline {
  color: rgba(255,255,255,.5);
  font-size: 0.88rem;
}
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.6); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

/* ══════════════════════════════════════════════════════
   DIRECTORY PAGE
   ══════════════════════════════════════════════════════ */
.directory-page {
  padding: 40px 0 60px;
}
.directory-header {
  margin-bottom: 30px;
}
.directory-header h1 { margin-bottom: 6px; }
.result-count {
  color: var(--grey-500);
  font-size: 0.92rem;
}
.directory-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: flex-start;
}

/* Sidebar */
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 88px;
}
.filter-sidebar h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}
.filter-group { margin-bottom: 22px; }
.filter-group-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.filter-checks {
  max-height: 240px;
  overflow-y: auto;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--grey-700);
}
.filter-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  cursor: pointer;
}
.filter-check .check-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--grey-400);
}
.verified-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--grey-700);
}
.filter-clear {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  background: none;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  color: var(--grey-500);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-clear:hover {
  border-color: var(--error);
  color: var(--error);
}

/* Mobile filter toggle */
.filter-toggle-mobile {
  display: none;
  width: 100%;
  margin-bottom: 16px;
}

@media (max-width: 800px) {
  .directory-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
    display: none;
  }
  .filter-sidebar.open { display: block; }
  .filter-toggle-mobile { display: block; }
}

/* Business cards grid */
.biz-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.biz-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition);
}
.biz-card:hover {
  box-shadow: var(--shadow-md);
  border-left: 3px solid var(--orange);
}
.biz-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}
.biz-card h3 { font-size: 1.1rem; }
.biz-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.biz-card .biz-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--grey-500);
}
.biz-card .biz-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.biz-card .biz-desc {
  color: var(--grey-600);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.biz-card .biz-stars {
  color: var(--warning);
  font-size: 0.85rem;
}
.biz-card .biz-stars .review-count { color: var(--grey-400); }
.biz-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 12px;
}
.biz-card-bottom .biz-phone {
  color: var(--grey-600);
  font-size: 0.88rem;
  font-weight: 500;
}
.biz-card-bottom .biz-phone a {
  color: var(--grey-600);
}
.biz-card-bottom .biz-phone a:hover { color: var(--orange); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--grey-600);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover:not(.active):not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}
.page-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state h3 {
  margin-bottom: 8px;
  color: var(--grey-600);
}
.empty-state p {
  color: var(--grey-400);
  font-size: 0.92rem;
}

/* Directory search bar */
.directory-search {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.directory-search .form-input {
  flex: 1;
}

@media (max-width: 600px) {
  .directory-search { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════
   BUSINESS PROFILE PAGE
   ══════════════════════════════════════════════════════ */
.business-page {
  padding: 30px 0 60px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--grey-400);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--grey-500); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { color: var(--grey-300); }

.biz-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}
.biz-header h1 { margin-bottom: 8px; }
.biz-header-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.biz-header .biz-stars {
  color: var(--warning);
  font-size: 0.95rem;
}
.biz-header .biz-stars .review-count { color: var(--grey-400); }

.biz-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: flex-start;
}

.biz-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.biz-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: var(--grey-50);
  border-radius: var(--radius-md);
}
.biz-info-item .info-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--orange-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.biz-info-item .info-icon svg { width: 18px; height: 18px; }
.info-label {
  font-size: 0.78rem;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.info-value {
  font-weight: 500;
  color: var(--grey-700);
  font-size: 0.92rem;
  word-break: break-word;
}
.info-value a { color: var(--grey-700); }
.info-value a:hover { color: var(--orange); }

.biz-description {
  margin-bottom: 28px;
}
.biz-description h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.biz-description p {
  color: var(--grey-600);
  line-height: 1.7;
}

.biz-claim-banner {
  background: var(--orange-light);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.biz-claim-banner p {
  font-weight: 500;
  color: var(--grey-700);
}
.biz-claim-banner .sub {
  font-size: 0.85rem;
  color: var(--grey-500);
  font-weight: 400;
}

/* Contact form sidebar */
.biz-contact-form {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}
.biz-contact-form h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .biz-layout { grid-template-columns: 1fr; }
  .biz-info-grid { grid-template-columns: 1fr; }
  .biz-contact-form { position: static; }
}

/* ══════════════════════════════════════════════════════
   CLAIM PAGE
   ══════════════════════════════════════════════════════ */
.claim-page {
  padding: 50px 0 70px;
}
.claim-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.claim-container h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.claim-biz-name {
  color: var(--orange);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 24px;
}
.claim-form .form-group:last-of-type { margin-bottom: 24px; }

/* ══════════════════════════════════════════════════════
   ADMIN PAGE
   ══════════════════════════════════════════════════════ */

/* Login overlay */
.admin-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-overlay.hidden { display: none; }
.admin-login-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.admin-login-box h2 {
  margin-bottom: 8px;
}
.admin-login-box .subtitle {
  color: var(--grey-500);
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.admin-login-box .form-group { text-align: left; }
.lockout-msg {
  color: var(--error);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
}
.login-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* Admin layout */
.admin-page { display: none; }
.admin-page.visible { display: block; }
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 68px);
}

/* Admin sidebar */
.admin-sidebar {
  background: var(--navy);
  padding: 28px 0;
}
.admin-sidebar-title {
  color: rgba(255,255,255,.5);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 24px;
  margin-bottom: 12px;
}
.admin-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}
.admin-tab-btn:hover { background: rgba(255,255,255,.06); color: var(--white); }
.admin-tab-btn.active {
  background: rgba(249,115,22,.1);
  color: var(--orange);
  border-left: 3px solid var(--orange);
}
.admin-tab-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Admin content area */
.admin-content {
  padding: 32px;
  background: var(--grey-50);
  overflow-x: auto;
}
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }
.admin-tab-panel h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

/* Dashboard cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.dash-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
}
.dash-card .dash-label {
  font-size: 0.78rem;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.dash-card .dash-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
}

/* Admin tables */
.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  border: 1px solid var(--grey-100);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table th {
  text-align: left;
  padding: 14px 16px;
  background: var(--grey-50);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey-500);
  border-bottom: 1px solid var(--grey-200);
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--grey-100);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: var(--grey-50); }
.admin-table .actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}
.admin-table .actions .btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

/* Admin search */
.admin-search {
  margin-bottom: 20px;
  max-width: 340px;
}

/* Inline edit row */
.edit-row { background: var(--orange-light) !important; }
.edit-row input,
.edit-row textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  min-width: 100px;
}

/* Lead detail row */
.lead-detail {
  background: var(--grey-50);
}
.lead-detail td {
  padding: 16px;
  color: var(--grey-600);
  font-style: italic;
}

/* Add business form */
.add-biz-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
  max-width: 680px;
}
.add-biz-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.add-biz-form .toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.add-biz-form .toggle-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-700);
}

@media (max-width: 800px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    display: flex;
    overflow-x: auto;
    padding: 0;
    background: var(--navy);
  }
  .admin-sidebar-title { display: none; }
  .admin-tab-btn {
    padding: 14px 18px;
    white-space: nowrap;
    border-left: none !important;
    font-size: 0.82rem;
  }
  .admin-tab-btn.active {
    border-bottom: 3px solid var(--orange);
    border-left: none !important;
  }
  .admin-content { padding: 20px 16px; }
  .add-biz-form .form-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   PAGE LOADING STATE
   ══════════════════════════════════════════════════════ */
.page-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 16px;
  color: var(--grey-400);
}

/* ══════════════════════════════════════════════════════
   404 NOT FOUND
   ══════════════════════════════════════════════════════ */
.not-found {
  text-align: center;
  padding: 80px 20px;
}
.not-found h1 {
  font-size: 4rem;
  color: var(--grey-200);
  margin-bottom: 8px;
}
.not-found p {
  color: var(--grey-500);
  margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════════
   STAR RATING
   ══════════════════════════════════════════════════════ */
.star { font-style: normal; }
.star.full { color: var(--warning); }
.star.half {
  color: var(--warning);
  opacity: 0.6;
}
.star.empty { color: var(--grey-300); }

/* ══════════════════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ══════════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════════ */
@media print {
  .site-nav, .site-footer, .nav-drawer, .nav-overlay,
  .admin-overlay, .toast { display: none !important; }
}
