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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #FAFAFA;
  color: #111111;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding-top: 3rem;
}

main {
  text-align: center;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
}

.place {
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 1.3;
  transition: opacity 0.2s ease;
}

.separator {
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.separator svg {
  width: 28px;
  height: 28px;
  stroke: #111111;
  opacity: 0.4;
}

.distance {
  font-size: 5rem;
  font-weight: 600;
  margin: 2.5rem 0 0.5rem;
  letter-spacing: -2px;
}

.subtitle {
  font-size: 0.875rem;
  font-weight: 300;
  color: #666666;
  opacity: 0.6;
  margin-bottom: 2.5rem;
}

.again-btn {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.75rem 2rem;
  background: transparent;
  border: 1px solid #111111;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.again-btn:hover {
  background-color: rgba(17, 17, 17, 0.08);
}

.again-btn:active {
  transform: scale(0.98);
}

.map-toggle {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #666666;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.map-toggle:hover {
  opacity: 1;
}

.map-toggle.active {
  opacity: 1;
  color: #111111;
}

.map-container {
  display: none;
  margin-top: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container.visible {
  display: block;
}

#map {
  height: 300px;
  width: 100%;
}

.travel-info {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #666666;
  flex-wrap: wrap;
}

.travel-info span {
  white-space: nowrap;
}

.countries-crossed {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #666666;
  line-height: 1.6;
  max-width: 100%;
  opacity: 0.7;
}

/* Visually hidden but accessible to screen readers and SEO */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* SEO Content - hidden visually but accessible to search engines */
.seo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #999;
}

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

footer a:hover {
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .place {
    font-size: 1.4rem;
  }

  .distance {
    font-size: 3.5rem;
  }

  .travel-info {
    gap: 1rem;
  }

  #map {
    height: 250px;
  }

  .seo-content {
    font-size: 0.85rem;
  }
}
