.ultras {
  display: flex;
  flex-direction: column;
}

.map-header {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 1rem 2rem 0.5rem;
}

.map-header h1 {
  margin: 0 0 0.25rem;
}

.map-header p {
  margin: 0 0 0.5rem;
}

.map-header p:last-child {
  margin-bottom: 0;
}

.ultras-columns {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.map-sticky {
  position: sticky;
  top: var(--global-nav-height, 5rem);
  z-index: 10;
  background: var(--background-color, #97c565);
  padding: 0.5rem 2rem 0.5rem;
  box-sizing: border-box;
}

.map-container {
  width: 100%;
}

.race-list {
  width: 100%;
  box-sizing: border-box;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (min-width: 768px) {
  .ultras-columns {
    display: flex;
    align-items: flex-start;
  }

  .map-sticky {
    width: 50%;
    flex-shrink: 0;
    padding: 0.5rem 1.5rem 0.5rem 2rem;
  }

  .race-list {
    width: 50%;
    padding-left: 1.5rem;
    padding-right: 2rem;
  }
}

#us-map {
  width: 100%;
  height: auto;
  display: block;
}

#us-map path {
  stroke: #333;
  stroke-width: 0.5px;
  stroke-linejoin: round;
  transition: fill 0.15s ease;
}

.race-list {
  list-style: none;
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.race-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.race-item:hover {
  background: rgba(33, 62, 33, 0.08);
  border-color: #213e21;
}

.race-item.active {
  background: rgba(33, 62, 33, 0.15);
  border-color: #213e21;
  color: #213e21;
}

.race-state {
  font-weight: bold;
  font-size: 0.9rem;
  color: #213e21;
  min-width: 2.5rem;
  text-align: center;
  background: rgba(33, 62, 33, 0.12);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
}

.race-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.race-name {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.race-name:hover {
  text-decoration: underline;
}

.race-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: inherit;
}

.race-strava {
  color: #fc4c02;
  text-decoration: none;
  font-weight: 500;
}

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