:root {
  --primary: #674deb;
  --primary-hover: #5a3dd4;
  --primary-light: #f0edff;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --border: #e5e7eb;
  --success: #10b981;
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

/* Header — Yobi-style dark */
header {
  background: var(--text);
  padding: 0.8rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.logo-img { height: 28px; }
.logo-local {
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 500;
  border-left: 1px solid #4b5563;
  padding-left: 0.5rem;
  margin-left: 0.2rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--primary-hover) !important; }

/* Main content */
main { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }

/* Hero — centered search */
.hero {
  text-align: center;
  padding: 4rem 0 2rem;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, var(--primary), #4338ca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Search box */
.search-box { max-width: 600px; margin: 0 auto; position: relative; }
#find-dentist {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#find-dentist:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(103, 77, 235, 0.1);
}
#search-input {
  width: 100%;
  padding: 1.1rem 1.4rem;
  border: none;
  font-size: 1.05rem;
  outline: none;
  background: var(--bg);
}
#search-input::placeholder { color: #9ca3af; }
.search-results-list {
  text-align: left;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--primary-light); }
.result-name { font-weight: 600; color: var(--text); }
.result-location { color: var(--text-secondary); font-size: 0.9rem; }
.result-rating { color: #f59e0b; font-weight: 600; }
.no-results { text-align: center; color: var(--text-secondary); padding: 1.5rem; background: var(--bg-soft); border-radius: var(--radius); margin-top: 0.5rem; }

/* Browse by state */
.browse { padding: 3rem 0; }
.browse h2 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}
.state-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.state-card {
  padding: 0.5rem 1rem;
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.1s;
}
.state-card:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.state-card span { opacity: 0.7; font-size: 0.8rem; }

/* Practice cards */
.recent { padding: 2rem 0 3rem; }
.recent h2 { font-size: 1.4rem; margin-bottom: 1.2rem; font-weight: 700; }
.practice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.practice-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.practice-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(103, 77, 235, 0.12);
}
.practice-card strong { font-size: 0.95rem; }
.practice-card .location { color: var(--text-secondary); font-size: 0.85rem; }
.practice-card .rating { color: #f59e0b; font-weight: 600; font-size: 0.85rem; }

/* Practice profile page */
.practice-profile h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2rem 0 1rem;
  color: var(--text);
}
.summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.8rem;
  color: var(--text);
  font-weight: 700;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.4rem;
}
h3 { font-size: 1rem; margin: 1.2rem 0 0.4rem; color: var(--text); font-weight: 600; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 0.8rem 0; }
th, td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--primary-light); font-weight: 600; width: 35%; color: var(--text); font-size: 0.9rem; }
td { color: var(--text); }
td a { color: var(--primary); text-decoration: none; }
td a:hover { text-decoration: underline; }

/* Services */
.services ul { columns: 2; list-style: none; padding: 0; }
.services li { margin-bottom: 0.4rem; padding-left: 1.2rem; position: relative; }
.services li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* FAQ */
.faq p { margin-bottom: 1rem; color: var(--text-secondary); }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary-light), #ede9fe);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid #ddd6fe;
}
.cta h2 { border: none; margin-top: 0; color: var(--primary); }
.cta-yobi { margin-top: 1rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.cta-logo { height: 20px; vertical-align: middle; }
.cta-buttons { display: flex; gap: 0.8rem; margin-top: 1.2rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; padding: 0.7rem 1.5rem; background: var(--primary); color: #fff;
  text-decoration: none; border-radius: 8px; font-weight: 600; transition: background 0.2s;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
  display: inline-block; padding: 0.7rem 1.5rem; background: #fff; color: var(--primary);
  text-decoration: none; border-radius: 8px; font-weight: 600; border: 2px solid var(--primary); transition: all 0.2s;
}
.btn-secondary:hover { background: var(--primary-light); }

/* List pages */
.practice-list { list-style: none; }
.practice-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.practice-list a { color: var(--primary); text-decoration: none; font-weight: 600; }
.practice-list a:hover { text-decoration: underline; }

/* Footer */
footer {
  background: var(--text);
  color: #9ca3af;
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
  font-size: 0.85rem;
}
.footer-content {
  display: flex;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid #374151;
}
.footer-brand { max-width: 300px; }
.footer-logo-text {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
}
.footer-brand p { line-height: 1.5; }
.footer-links { display: flex; gap: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 0.3rem; }
.footer-col a { color: #9ca3af; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 1rem auto 0;
}
.footer-social { display: flex; gap: 1.2rem; }
.footer-social a { color: #9ca3af; text-decoration: none; }
.footer-social a:hover { color: #fff; }

/* Claim listing */
.claim-listing {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}
.claim-listing h2 { border: none; margin-top: 0; }
.claim-listing > p { color: var(--text-secondary); margin-bottom: 1rem; }
.claim-toggle { cursor: pointer; border: 2px solid var(--primary); background: #fff; color: var(--primary); padding: 0.6rem 1.4rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.claim-toggle:hover { background: var(--primary-light); }

/* Listing forms (claim + request) */
.listing-form { margin-top: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.5rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.required { color: #ef4444; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(103, 77, 235, 0.1);
}
.form-group textarea { resize: vertical; }
.listing-form .btn-primary { margin-top: 0.5rem; border: none; cursor: pointer; font-size: 1rem; }
.listing-form .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  font-weight: 500;
}

/* Request listing page */
.request-listing-page { padding-bottom: 3rem; }
.page-header { text-align: center; padding: 2.5rem 0 1.5rem; }
.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary), #4338ca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}
.page-header p { color: var(--text-secondary); font-size: 1.05rem; }
.request-listing-page .listing-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.request-listing-page h2 { font-size: 1.1rem; margin: 1.5rem 0 0.8rem; border: none; }
.request-listing-page h2:first-of-type { margin-top: 0; }

/* No results link */
.no-results-link { display: inline-block; margin-top: 0.6rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.no-results-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.6rem; }
  .services ul { columns: 1; }
  .state-grid { gap: 0.4rem; }
  .practice-cards { grid-template-columns: 1fr; }
  #find-dentist { flex-direction: column; }
  #find-dentist button { width: 100%; }
  .footer-content { flex-direction: column; gap: 2rem; }
  .footer-links { flex-wrap: wrap; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .claim-listing { padding: 1.2rem; }
  .request-listing-page .listing-form { padding: 1.2rem; }
}

<<<<<<< Updated upstream
/* Industry Grid */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.industry-card {
  display: block;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: #1f2937;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.industry-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59,130,246,0.15);
}
.industry-card h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.industry-card p { margin: 0; color: #6b7280; font-size: 0.9rem; }

/* Industry Tag on cards */
.industry-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: #6b7280;
  background: #f3f4f6;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.2rem;
}

/* Nav Dropdown */
.nav-dropdown { position: relative; cursor: pointer; }
.nav-dropdown-trigger { color: #d1d5db; text-decoration: none; padding: 0.5rem 0; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 100;
  padding: 0.5rem 0;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { color: #1f2937 !important;
  display: block;
  padding: 0.5rem 1rem;
  color: #1f2937;
  text-decoration: none;
}
.nav-dropdown-menu a:hover { background: #f3f4f6; }

/* Search Filter */
#find-practice {
  display: flex;
  gap: 0.5rem;
  max-width: 700px;
  margin: 1.5rem auto 0;
}
#search-filter {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  min-width: 160px;
}
.result-type {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Section list */
.section-list { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }

@media (max-width: 768px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  #find-practice { flex-direction: column; }
  #search-filter { width: 100%; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; }
}

/* Industry filter bar on state pages */
.industry-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.industry-filter-bar span { color: var(--text-secondary); font-weight: 600; font-size: 0.9rem; }
.filter-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
=======
/* Claimed/Verified badge */
.claimed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.claimed-badge svg { flex-shrink: 0; }

/* Near You section */
.near-you {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}
.near-you h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.near-you p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.near-you-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.nearby-cities {
  width: 100%;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.nearby-cities span { margin-right: 0.3rem; }
.nearby-cities a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 0.4rem;
}
.nearby-cities a:hover { text-decoration: underline; }

/* Doctor-to-practice link */
.practice-link {
  padding: 0.6rem 1rem;
  background: #f0f4ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.practice-link a { color: var(--primary); font-weight: 600; text-decoration: none; }
.practice-link a:hover { text-decoration: underline; }

/* Hamburger Menu */
.nav-toggle { display: none !important; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 0.3rem; }
@media (max-width: 768px) { .nav-toggle { display: block !important; } }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none !important; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #1a1a2e; padding: 1rem 2rem; gap: 0.8rem; z-index: 99; }
  .nav-links.open { display: flex !important; }
  .nav-dropdown-menu { position: static; box-shadow: none; background: transparent; padding: 0 0 0 1rem; }
  header nav { position: relative; }
}

/* Prominent Search Box */
.search-box {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  max-width: 650px;
  margin: 1.5rem auto 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
}
.search-box #search-input,
.search-box #search-filter {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  border: 2px solid var(--primary);
  border-radius: 10px;
  outline: none;
}
.search-box #search-input:focus,
.search-box #search-filter:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(103, 77, 235, 0.1);
}
/* Best-in-City aggregate pages */
.best-page { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; }
.best-page h1 { margin-bottom: 0.5rem; }
.best-list { margin: 2rem 0; }
.best-card { padding: 1.5rem; padding-left: 4rem; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; position: relative; }
.best-card .rank { position: absolute; top: 1.5rem; left: 1rem; background: var(--primary); color: white; width: 2rem; height: 2rem; border-radius: 50%; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.best-card h2 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.best-card h2 a { color: var(--text); text-decoration: none; }
.best-card h2 a:hover { color: var(--primary); }
.best-card .rating { color: #F59E0B; font-weight: 600; }
.best-page .intro { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; }
.best-page .breadcrumbs { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.best-page .breadcrumbs a { color: var(--primary); text-decoration: none; }
.best-page .breadcrumbs a:hover { text-decoration: underline; }
.best-page .view-all { margin-top: 2rem; font-size: 1.05rem; }
.best-page .view-all a { color: var(--primary); text-decoration: none; font-weight: 600; }
.best-page .view-all a:hover { text-decoration: underline; }
