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

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styling */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e6e6e6;
}

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

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.8rem;
  color: #d32323;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 12px;
  border-radius: 4px;
}

nav ul li a:hover {
  color: #d32323;
  background-color: #f5f5f5;
}

/* Main Content */
.main-content {
  padding: 30px 0;
}

h1,
h2,
h3 {
  margin: 1rem 0;
  color: #333;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #d32323;
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.4rem;
  color: #444;
}

/* Restaurant Listings */
.restaurant-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.restaurant-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  border: 1px solid #e6e6e6;
  overflow: hidden;
}

.restaurant-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.restaurant-info {
  padding: 20px;
}

.restaurant-info h3 {
  margin-bottom: 5px;
  color: #0073bb;
  font-size: 1.2rem;
}

.restaurant-info p {
  color: #666;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.restaurant-category {
  display: inline-block;
  background-color: #f8f8f8;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 10px;
}

.restaurant-address {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

/* Rating Stars */
.rating {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.stars {
  color: #f15c4f;
  font-size: 1.2rem;
  margin-right: 5px;
}

.review-count {
  color: #666;
  font-size: 0.9rem;
}

/* Category Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.category-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e6e6e6;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
  margin-bottom: 10px;
  color: #0073bb;
}

.category-card p {
  color: #666;
  font-size: 0.9rem;
}

/* Neighborhood Grid */
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin: 20px 0;
}

.neighborhood-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e6e6e6;
}

.neighborhood-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.neighborhood-card h3 {
  margin-bottom: 10px;
  color: #0073bb;
}

.neighborhood-card a {
  text-decoration: none;
  color: inherit;
}

/* Buttons */
.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background-color: #d32323;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #b71c1c;
}

.btn-secondary {
  background-color: #0073bb;
}

.btn-secondary:hover {
  background-color: #005689;
}

/* Lists */
ul {
  list-style-type: none;
  margin-left: 0;
  margin-bottom: 2rem;
}

li {
  margin-bottom: 1rem;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid #e6e6e6;
}

li:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Links */
a {
  color: #0073bb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #d32323;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 40px 0;
  margin-top: 60px;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

footer h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer ul li {
  margin-bottom: 10px;
  background: none;
  box-shadow: none;
  padding: 0;
  border: none;
}

footer a {
  color: #ccc;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }

  nav ul {
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 5px 10px;
  }

  .restaurant-list {
    grid-template-columns: 1fr;
  }

  .neighborhood-grid,
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #d32323;
  color: white;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }

  :root {
    scroll-behavior: auto;
  }
}

/* Card Images */
.card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
}

.restaurant-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
}

/* Hero section with background image */
.hero {
  background-size: cover;
  background-position: center;
  color: white;
  padding: 80px 0;
  text-align: center;
  margin-bottom: 30px;
}

/* Footer improvements */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}

/* About section */
.about-section {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 8px;
  margin: 40px 0;
}

.seo-content {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 8px;
  margin: 40px 0;
}

/* Main content padding */
.main-content {
  padding: 30px 0;
}

/* Categories section */
.categories-section {
  margin-bottom: 40px;
}

/* Restaurants section */
.restaurants-section {
  margin-bottom: 40px;
}
