body {
  font-family: 'Trebuchet MS', sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  margin-top: 2rem;
  font-size: 2rem;
  color: #333;
}

.route-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.route-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.route-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.route-card > img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.route-card h2 {
  font-size: 1.4rem;
  margin: 0.5rem 0;
}

.route-card h2 a {
  text-decoration: none;
  color: #222;
}

.route-card h2 a:hover {
  text-decoration: underline;
}

.route-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.route-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 33%;
}

.icon,
.strava-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.strava-icon {
  margin-right: 0.25rem; /* Add spacing between icon and text */
}

.strava-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fc4c02;
  font-weight: bold;
}

.strava-link:hover {
  text-decoration: underline;
}
