@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #163a5f;
  --navy-dark: #0e2740;
  --gold: #e8b84b;
  --gold-dark: #c99a2e;
  --bg: #f6f7fa;
  --card: #ffffff;
  --text: #24303f;
  --muted: #64748b;
  --border: #e4e8ee;
  --green: #1f8a5f;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(15, 35, 60, 0.06);
  --shadow-lg: 0 8px 30px rgba(15, 35, 60, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* Header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.logo span { color: var(--gold); }
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { background: none; border: none; color: #dbe4f0; font: inherit; font-weight: 600; font-size: 0.92rem; padding: 10px 14px; border-radius: 8px; cursor: pointer; }
.nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); padding: 8px; min-width: 200px; }
.dropdown-menu a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); font-size: 0.9rem; font-weight: 500; }
.dropdown-menu a:hover { background: var(--bg); color: var(--navy); }
.dropdown:hover .dropdown-menu { display: block; }

/* Mega menu variant for the 51-state "Browse by State" dropdown */
.dropdown-menu.mega { min-width: 520px; max-width: 640px; padding: 16px; }
.dropdown-menu.mega .mega-columns { max-height: 56vh; overflow-y: auto; columns: 2 200px; column-gap: 20px; }
.dropdown-menu.mega .mega-region { break-inside: avoid-column; margin-bottom: 14px; }
.dropdown-menu.mega .mega-region-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; padding: 4px 12px; margin-bottom: 2px; }
.dropdown-menu.mega a { padding: 6px 12px; font-size: 0.86rem; }
.dropdown-menu.mega .mega-viewall { display: block; margin-top: 10px; padding: 10px 12px; font-weight: 700; color: var(--navy); border-top: 1px solid var(--border); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 64px 0 80px; text-align: center; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 780px; margin: 0 auto .4em; }
.hero .accent { color: var(--gold); }
.hero p.lead { font-size: 1.1rem; color: #c8d4e5; max-width: 620px; margin: 0 auto 32px; }
.search-box { background: #fff; border-radius: 14px; padding: 10px; max-width: 640px; margin: 0 auto; display: flex; gap: 8px; box-shadow: var(--shadow-lg); }
.search-box select, .search-box input { border: none; outline: none; font: inherit; font-size: 0.95rem; padding: 12px 14px; border-radius: 8px; flex: 1; background: var(--bg); color: var(--text); }
.search-box button { background: var(--gold); color: var(--navy-dark); border: none; font-weight: 700; padding: 12px 22px; border-radius: 8px; cursor: pointer; font-size: 0.95rem; }
.search-box button:hover { background: var(--gold-dark); }
.trust-row { display: flex; gap: 28px; justify-content: center; margin-top: 28px; flex-wrap: wrap; color: #a9bad2; font-size: 0.85rem; font-weight: 600; }

/* Sections */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-head h2 { font-size: 1.7rem; }
.section-head p { color: var(--muted); }

/* Category / state grid */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tile .count { color: var(--gold-dark); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .04em; }
.tile p { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

/* Listing cards */
.listing-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.card-top { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 10px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.card h3 { font-size: 1.02rem; margin: 0; }
.card .loc { color: var(--muted); font-size: 0.85rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { background: #eef2f8; color: var(--navy); font-size: 0.72rem; font-weight: 700; padding: 4px 9px; border-radius: 20px; }
.badge.featured { background: #fdf1d9; color: var(--gold-dark); }
.badge.gold { background: linear-gradient(135deg,#fdf1d9,#f6e0ab); color:#8a6a12; }
.card .bio { font-size: 0.88rem; color: var(--text); flex-grow: 1; }
.card-actions { display: flex; gap: 8px; margin-top: 4px; }
.btn { display: inline-block; padding: 9px 16px; border-radius: 8px; font-weight: 700; font-size: 0.85rem; text-align: center; border: none; cursor: pointer; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-ghost { background: #eef2f8; color: var(--navy); }
.btn-ghost:hover { background: #e2e8f2; }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-block { display: block; width: 100%; }

/* Featured strip */
.featured-strip { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Region / chip layout for national state coverage */
.region-block { margin-bottom: 30px; }
.region-block:last-child { margin-bottom: 0; }
.region-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; margin-bottom: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; font-size: 0.87rem; font-weight: 600; color: var(--text); box-shadow: var(--shadow); transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip-count { font-size: 0.7rem; font-weight: 800; color: var(--gold-dark); background: #fdf1d9; padding: 2px 8px; border-radius: 999px; }
.chip-count.zero { color: var(--muted); background: #eef1f5; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: 1140px; margin: 0 auto 28px; flex-wrap: wrap; }
.section-head-row .section-head { text-align: left; margin: 0; max-width: 620px; }
.link-more { font-weight: 700; font-size: 0.9rem; color: var(--navy); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* Empty-state CTA on a state/city page with no listings yet */
.empty-cta { background: #fff; border: 1px dashed #c3cbd6; border-radius: var(--radius); padding: 48px 32px; text-align: center; }
.empty-cta h3 { font-size: 1.3rem; margin-bottom: 8px; }
.empty-cta p { color: var(--muted); max-width: 460px; margin: 0 auto 22px; }

/* Ad slot */
.ad-slot { background: repeating-linear-gradient(45deg, #eef1f5, #eef1f5 10px, #e6eaf0 10px, #e6eaf0 20px); border: 1px dashed #c3cbd6; border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted); font-size: 0.85rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }

/* Listing detail */
.listing-hero { background: #fff; border-bottom: 1px solid var(--border); padding: 40px 0; }
.listing-hero-inner { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.avatar-lg { width: 78px; height: 78px; border-radius: 16px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.7rem; flex-shrink: 0; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.panel h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); margin-bottom: 14px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); flex-shrink: 0; }
.kv .v { font-weight: 600; text-align: right; min-width: 0; word-break: break-word; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c8d4e5; max-width: 560px; margin: 0 auto 24px; }

/* Pricing */
.pricing-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 10px; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); text-align: center; position: relative; }
.price-card.highlight { border: 2px solid var(--gold); box-shadow: var(--shadow-lg); transform: scale(1.02); }
.price-card .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy-dark); font-size: 0.72rem; font-weight: 800; padding: 4px 14px; border-radius: 20px; text-transform: uppercase; }
.price { font-size: 2.1rem; font-weight: 800; color: var(--navy); margin: 10px 0; }
.price span { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.feature-list { list-style: none; padding: 0; margin: 18px 0; text-align: left; font-size: 0.88rem; }
.feature-list li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.feature-list li:last-child { border-bottom: none; }

/* Filters bar (browse pages) */
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.filters-bar select, .filters-bar input { border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 0.88rem; background: var(--bg); }
.filters-bar input { flex: 1; min-width: 160px; }

/* Steps */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 12px; }

/* Form */
.form-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; font: inherit; font-size: 0.9rem; background: var(--bg); }
.form-row textarea { min-height: 100px; resize: vertical; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #b9c6d9; padding: 48px 0 20px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 28px; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.site-footer a { color: #b9c6d9; font-size: 0.88rem; line-height: 2.1; }
.site-footer a:hover { color: var(--gold); }
.site-footer .wrap:last-child { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 18px; }

/* No results */
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

@media (max-width: 820px) {
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 10px 20px 20px; box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav .dropdown-menu { position: static; box-shadow: none; background: rgba(255,255,255,0.06); }
  .main-nav .dropdown-menu a { color: #dbe4f0; }
  .main-nav .dropdown-menu a:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .nav-toggle { display: block; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; }
}
