/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Navigation */
.main-nav {
  background-color: #1a2744;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

/* Main Content */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background-color: #fff;
  min-height: calc(100vh - 200px);
}

/* Homepage */
.homepage .hero {
  text-align: center;
  padding: 3rem 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 2rem;
}

.homepage .hero h1 {
  font-size: 2.5rem;
  color: #1a2744;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.125rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.featured-towns h2 {
  font-size: 1.5rem;
  color: #1a2744;
  margin-bottom: 1rem;
}

.town-list {
  list-style: none;
}

.town-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.town-list a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.town-list a:hover {
  text-decoration: underline;
}

/* Town Page */
.town-header {
  border-bottom: 2px solid #1a2744;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.town-header h1 {
  font-size: 2.25rem;
  color: #1a2744;
  margin-bottom: 0.75rem;
}

.town-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: #666;
}

.meta-item {
  font-size: 1rem;
}

.businesses h2 {
  font-size: 1.5rem;
  color: #1a2744;
  margin-bottom: 1.5rem;
}

.business-list {
  display: grid;
  gap: 1.5rem;
}

.business-card {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
}

.business-card h3 {
  font-size: 1.25rem;
  color: #1a2744;
  margin-bottom: 0.5rem;
}

.business-category {
  display: inline-block;
  background: #1a2744;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.business-address,
.business-phone,
.business-email,
.business-website,
.business-hours {
  color: #666;
  margin-bottom: 0.25rem;
}

.business-phone a,
.business-email a,
.business-website a {
  color: #2563eb;
  text-decoration: none;
}

.business-phone a:hover,
.business-email a:hover,
.business-website a:hover {
  text-decoration: underline;
}

/* Featured Business Card */
.business-card.featured {
  background: linear-gradient(135deg, #fef9e7 0%, #fff8e1 100%);
  border: 2px solid #f59e0b;
  position: relative;
}

.featured-badge {
  position: absolute;
  top: -10px;
  right: 15px;
  background: #f59e0b;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Star Ratings */
.business-rating {
  margin: 0.5rem 0;
}

.star {
  font-size: 1.1rem;
  margin-right: 1px;
}

.star.filled {
  color: #f59e0b;
}

.star.half {
  color: #f59e0b;
}

.star.empty {
  color: #d1d5db;
}

.rating-text {
  font-size: 0.875rem;
  color: #666;
  margin-left: 0.5rem;
}

/* Claim Listing */
.claim-listing {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e0e0e0;
}

.claim-listing a {
  color: #059669;
  font-size: 0.875rem;
  text-decoration: none;
}

.claim-listing a:hover {
  text-decoration: underline;
}

/* List Page */
.list-page h1 {
  font-size: 2rem;
  color: #1a2744;
  margin-bottom: 1.5rem;
}

.page-list {
  list-style: none;
}

.page-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.page-list a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.page-list a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: #1a2744;
  color: #e0e0e0;
  padding: 2rem 0;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .homepage .hero h1 {
    font-size: 1.75rem;
  }

  .town-header h1 {
    font-size: 1.75rem;
  }

  .town-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
}
