:root {
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-light: #eff6ff;
  --green: #16a34a;
  --yellow: #ca8a04;
  --red: #dc2626;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--text); background: #fff; margin: 0; line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 1rem; }
.logo { font-size: 1.25rem; font-weight: 800; color: var(--blue-dark); white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 1.1rem; }
.main-nav a { color: #374151; font-weight: 500; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; padding: 3.2rem 0 2.6rem; text-align: center; }
.hero h1 { font-size: 2.1rem; margin: 0 0 .4rem; }
.hero .slogan { color: #bfdbfe; font-size: 1.05rem; margin-bottom: 1.8rem; }
.search-box { max-width: 720px; margin: 0 auto; }
.search-row { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.search-input-wrap { position: relative; flex: 1 1 260px; }
.search-input-wrap span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .55; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], select, textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; background: #fff; color: var(--text);
}
.search-input-wrap input { padding-left: 2.2rem; }
.hero select { flex: 0 1 170px; width: auto; min-width: 150px; }
.btn { display: inline-block; background: var(--blue); color: #fff !important; border: 0; padding: .72rem 1.35rem; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; text-align: center; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-green { background: var(--green); }
.btn-wa { background: #22c55e; }
.btn-sm { padding: .45rem .85rem; font-size: .88rem; border-radius: 8px; }
.btn-outline { background: #fff; color: var(--blue) !important; border: 1px solid var(--blue); }
.btn-danger { background: var(--red); }

/* Sections */
section.block { padding: 2.4rem 0; }
section.block.alt { background: var(--bg); }
.section-title { text-align: center; font-size: 1.5rem; margin: 0 0 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.cat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; text-align: center; transition: box-shadow .15s, transform .15s; }
.cat-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); text-decoration: none; }
.cat-card .icon { font-size: 2rem; }
.cat-card h3 { margin: .5rem 0 .3rem; font-size: 1.05rem; color: var(--text); }
.cat-card p { color: var(--muted); font-size: .85rem; margin: 0; }

.brand-grid { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.brand-chip { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; color: #374151; }
.brand-chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

.city-links { display: flex; flex-wrap: wrap; gap: .5rem .9rem; justify-content: center; }
.city-links a { font-weight: 600; }

/* Business cards */
.biz-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.biz-card h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.biz-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.biz-desc { color: #374151; font-size: .93rem; margin: .6rem 0; }
.biz-foot { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.biz-actions { margin-left: auto; display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.open-state.open { color: var(--green); font-weight: 600; }
.open-state.closed { color: var(--red); font-weight: 600; }

.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px; white-space: nowrap; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-gray { background: #f3f4f6; color: #4b5563; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-featured { background: #fef3c7; color: #92400e; }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: .9rem 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span.sep { margin: 0 .35rem; }

/* Location link lists */
.loc-cols { columns: 4 180px; column-gap: 1.5rem; }
.loc-cols a { display: block; padding: .18rem 0; }

.subcat-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.subcat-list a { background: var(--blue-light); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; font-weight: 500; }

.info-panel { background: var(--blue-light); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.4rem 0; font-size: .95rem; }
.info-panel h2 { font-size: 1.05rem; margin-top: 0; }

/* Business profile */
.profile-head { display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; }
.profile-head .info { flex: 1; min-width: 260px; }
.contact-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0; }
.hours-table { border-collapse: collapse; font-size: .92rem; }
.hours-table td { padding: .28rem .9rem .28rem 0; color: #374151; }
.hours-table td:first-child { font-weight: 600; }
.review-item { border-top: 1px solid var(--border); padding: .9rem 0; }
.review-item:first-child { border-top: 0; }
.review-item .who { font-weight: 700; }
.review-item .when { color: var(--muted); font-size: .82rem; }

.map-box { background: linear-gradient(135deg, #dbeafe, #ede9fe); border: 1px dashed #93c5fd; border-radius: var(--radius); min-height: 300px; display: flex; align-items: center; justify-content: center; color: var(--blue-dark); font-weight: 600; text-align: center; padding: 1rem; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; max-width: 760px; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .93rem; }
.form-hint { color: var(--muted); font-size: .82rem; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem 1rem; max-height: 220px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: .7rem; }
.checks label { display: flex; align-items: center; gap: .4rem; font-weight: 400; font-size: .92rem; margin: 0; }
.alert-ok { background: #dcfce7; color: #166534; padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1rem; }
.alert-err { background: #fee2e2; color: #991b1b; padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1rem; }

/* Article */
.article-body { max-width: 780px; }
.article-body img { max-width: 100%; border-radius: var(--radius); }
.article-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.article-card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.article-card p { color: var(--muted); font-size: .9rem; margin: 0; }

.pager-note { color: var(--muted); font-size: .9rem; text-align: center; }

/* Footer */
.site-footer { background: #111827; color: #d1d5db; margin-top: 3rem; padding: 2.2rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.site-footer h4 { color: #fff; margin: 0 0 .6rem; }
.site-footer a { display: block; color: #9ca3af; padding: .14rem 0; font-size: .92rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.copyright { text-align: center; color: #6b7280; font-size: .85rem; margin-top: 1.6rem; border-top: 1px solid #1f2937; padding-top: 1rem; }

@media (max-width: 800px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--border); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 1.5rem; }
  .biz-actions { margin-left: 0; }
}
