/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --text-color: #1e293b;
  --bg-color: #ffffff;
  --border-color: #e2e8f0;
  --hover-color: #f1f5f9;
  --star-color: #fbbf24;
  --max-width: 1200px;
  --spacing: 1rem;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* Header */
.site-header {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 500;
}

/* Main Content */
.site-main {
  padding: 2rem 0;
  min-height: 60vh;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .content-wrapper {
    grid-template-columns: 2fr 1fr;
  }
}

.main-content {
  min-width: 0;
}

/* Homepage */
.hero {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
}

.categories {
  margin: 2rem 0;
}

.categories h2 {
  margin-bottom: 1.5rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-color);
}

.category-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-decoration: none;
  transform: translateY(-2px);
}

.category-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.category-card p {
  color: var(--secondary-color);
  font-size: 0.875rem;
}

/* Business Cards */
.business-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
}

.business-card .rank {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 50px;
}

.business-card .business-info {
  flex: 1;
}

.business-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.business-card h2 a {
  color: var(--text-color);
  text-decoration: none;
}

.business-card h2 a:hover {
  color: var(--primary-color);
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.stars {
  color: var(--star-color);
  font-weight: 600;
}

.reviews {
  color: var(--secondary-color);
  font-size: 0.875rem;
}

.business-card p {
  margin: 0.5rem 0;
  color: var(--secondary-color);
}

.business-card .address,
.business-card .phone,
.business-card .price,
.business-card .hours {
  font-size: 0.875rem;
}

.review-snippet {
  background: var(--hover-color);
  padding: 1rem;
  border-left: 3px solid var(--primary-color);
  margin: 1rem 0;
  font-style: italic;
}

.actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
}

/* Business Detail Page */
.business-header {
  margin-bottom: 2rem;
}

.business-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.rating-large {
  font-size: 1.25rem;
}

.business-card-detail {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item {
  padding: 0.5rem 0;
}

.info-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--secondary-color);
  font-size: 0.875rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.reviews {
  margin: 2rem 0;
}

.reviews h2 {
  margin-bottom: 1.5rem;
}

.review {
  background: var(--hover-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.review-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.review-rating {
  color: var(--star-color);
}

.review-author {
  color: var(--secondary-color);
}

.review-text {
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  color: var(--secondary-color);
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--secondary-color);
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header .intro {
  font-size: 1.125rem;
  color: var(--secondary-color);
  line-height: 1.6;
}

/* FAQ */
.faq {
  margin: 3rem 0;
}

.faq h2 {
  margin-bottom: 1.5rem;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* Business Grid */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.business-card-mini {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
}

.business-card-mini h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.business-card-mini h3 a {
  color: var(--text-color);
}

.business-card-mini h3 a:hover {
  color: var(--primary-color);
}

.business-card-mini .address {
  font-size: 0.875rem;
  color: var(--secondary-color);
  margin-top: 0.5rem;
}

/* Ad Slots */
.ad-slot {
  margin: 2rem 0;
  text-align: center;
}

.ad-header {
  margin: 1rem 0;
}

.ad-sidebar {
  position: sticky;
  top: 100px;
}

/* Footer */
.site-footer {
  background: var(--hover-color);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.site-footer p {
  margin: 0.5rem 0;
  color: var(--secondary-color);
  font-size: 0.875rem;
}

.disclaimer {
  font-size: 0.75rem !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .business-card {
    flex-direction: column;
  }
  
  .business-card .rank {
    font-size: 1.5rem;
  }
  
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* EEAT Enhancements */

/* Quick Summary Box */
.quick-summary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.quick-summary h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.summary-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 6px;
}

.summary-item strong {
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.summary-tags {
  grid-column: 1 / -1;
}

.best-for-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin: 0.25rem;
  font-size: 0.875rem;
}

.verdict {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.125rem;
}

/* Customers Love Section */
.customers-love {
  margin: 2rem 0;
}

.love-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.love-item {
  background: var(--hover-color);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.love-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.mention-count {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--secondary-color);
  font-style: italic;
}

/* Pros & Cons */
.pros-cons {
  margin: 2rem 0;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.pros-box,
.cons-box {
  padding: 1.5rem;
  border-radius: 8px;
}

.pros-box {
  background: #f0fdf4;
  border: 2px solid #86efac;
}

.cons-box {
  background: #fef2f2;
  border: 2px solid #fca5a5;
}

.pros-box h3 {
  color: #16a34a;
  margin-bottom: 1rem;
}

.cons-box h3 {
  color: #dc2626;
  margin-bottom: 1rem;
}

.pros-box ul,
.cons-box ul {
  list-style: none;
  padding: 0;
}

.pros-box li,
.cons-box li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.pros-box li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: bold;
}

.cons-box li:before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: bold;
}

/* Improvements Section */
.improvements {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--hover-color);
  border-radius: 8px;
}

.improvement-intro {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.improvement-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.improvement-item {
  padding: 0.75rem;
  background: white;
  border-radius: 6px;
  border-left: 3px solid #f59e0b;
}

/* Price Analysis */
.price-analysis {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--hover-color);
  border-radius: 8px;
}

.price-analysis h2 {
  margin-bottom: 1rem;
}

/* Neighborhood Guide */
.neighborhood-guide {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--hover-color);
  border-radius: 8px;
}

.neighborhood-guide h2 {
  margin-bottom: 1rem;
}

/* Comparison Table */
.comparison-table-section {
  margin: 2rem 0;
}

.table-responsive {
  overflow-x: auto;
  margin-top: 1rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table thead {
  background: var(--primary-color);
  color: white;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:hover {
  background: var(--hover-color);
}

.rank-cell {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.125rem;
}

.rating-cell {
  color: var(--star-color);
  font-weight: 600;
}

.best-for-badge {
  display: inline-block;
  background: var(--hover-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 500;
}

.btn-small {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 4px;
  font-size: 0.875rem;
  text-decoration: none;
}

.btn-small:hover {
  background: #1d4ed8;
  text-decoration: none;
}

/* Methodology Note */
.methodology-note {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #eff6ff;
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
}

.methodology-note h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Page Meta */
.page-meta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--secondary-color);
  font-size: 0.875rem;
}

.page-meta p {
  margin: 0.5rem 0;
}

/* Stats Bar (Homepage) */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--hover-color);
  border-radius: 8px;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-item span {
  font-size: 0.875rem;
  color: var(--secondary-color);
}

/* Trust Section */
.trust-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--hover-color);
  border-radius: 8px;
}

.trust-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.trust-content {
  margin-bottom: 2rem;
}

.trust-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.trust-feature {
  text-align: center;
  padding: 1rem;
}

.trust-icon {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.trust-feature h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.trust-feature p {
  font-size: 0.875rem;
  color: var(--secondary-color);
}

.methodology-link {
  text-align: center;
  margin-top: 2rem;
  font-weight: 500;
}

/* Neighborhood Breakdown */
.neighborhood-breakdown {
  margin: 2rem 0;
}

.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.neighborhood-card {
  background: var(--hover-color);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.neighborhood-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.neighborhood-stats {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--secondary-color);
}

.top-pick {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
}

/* Tips Section */
.tips-section {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--hover-color);
  border-radius: 8px;
}

.tips-content {
  line-height: 1.8;
}

.tips-content strong {
  color: var(--primary-color);
}

/* Methodology Page Specific */
.methodology-page .lead {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.formula-breakdown {
  margin: 2rem 0;
}

.formula-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--hover-color);
  border-radius: 8px;
}

.formula-weight {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 100px;
  text-align: center;
}

.formula-details h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.update-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.update-item {
  padding: 1.5rem;
  background: var(--hover-color);
  border-radius: 8px;
}

.update-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.update-note {
  margin-top: 2rem;
  padding: 1rem;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 4px;
}

.dont-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.dont-item {
  padding: 1.5rem;
  background: var(--hover-color);
  border-radius: 8px;
  border-left: 4px solid #dc2626;
}

.dont-item h3 {
  color: #dc2626;
  margin-bottom: 0.75rem;
}

/* About Page Specific */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.team-member {
  padding: 1.5rem;
  background: var(--hover-color);
  border-radius: 8px;
}

.team-member h3 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.team-member .role {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* Section Intro */
.section-intro {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

/* Category Arrow */
.category-arrow {
  display: block;
  margin-top: 0.5rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* Business Mini Header */
.business-mini-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.address-mini {
  font-size: 0.875rem;
  color: var(--secondary-color);
  margin-top: 0.5rem;
}

/* Intro Text */
.intro-text {
  line-height: 1.8;
  margin-bottom: 2rem;
}

.intro-text p {
  margin-bottom: 1rem;
}

/* Overview Text */
.overview-text {
  line-height: 1.8;
}

.overview-text p {
  margin-bottom: 1rem;
}

/* Business Description */
.business-description {
  line-height: 1.8;
}

.business-description p {
  margin-bottom: 1rem;
}

/* Contact Note */
.contact-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 4px;
  font-size: 0.875rem;
}

/* Back Link */
.back-link {
  margin-top: 1rem;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .formula-item {
    flex-direction: column;
    text-align: center;
  }
  
  .formula-weight {
    font-size: 2rem;
  }
  
  .comparison-table {
    font-size: 0.875rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
  }
  
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trust-features {
    grid-template-columns: 1fr;
  }
}

/* Handlebars Helper Support */
.gte-4-5 { /* For ratings >= 4.5 */ }
.gte-4-0 { /* For ratings >= 4.0 */ }
.gt-1 { /* For counts > 1 */ }
