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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  padding: 40px 30px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 10px;
}

.subtitle {
  color: #666;
  font-size: 1.1em;
}

.controls {
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input[type="text"] {
  flex: 1;
  min-width: 150px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1em;
  transition: border-color 0.3s;
}

input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

#search-btn {
  background: #667eea;
  color: white;
}

#search-btn:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#gps-btn {
  background: #f0f0f0;
  color: #333;
}

#gps-btn:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

.loader {
  display: none;
  margin-bottom: 30px;
}

.skeleton-card {
  height: 150px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 10px;
  margin-bottom: 15px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.results {
  display: grid;
  gap: 20px;
}

.gym-card {
  background: #f9f9f9;
  border: 2px solid #f0f0f0;
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gym-card:hover {
  border-color: #667eea;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
  transform: translateY(-5px);
}

.icon {
  font-size: 2em;
  margin-bottom: 10px;
}

.gym-card h3 {
  color: #333;
  margin-bottom: 8px;
  font-size: 1.3em;
}

.gym-card p {
  color: #666;
  font-size: 0.95em;
  margin-bottom: 10px;
  line-height: 1.5;
}

.stars {
  color: #ffc107;
  font-size: 1.1em;
  margin-bottom: 10px;
}

.coordinates {
  font-size: 0.85em !important;
  color: #999 !important;
  margin-bottom: 10px !important;
  font-family: monospace;
}

.map-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9em;
  transition: all 0.3s;
}

.map-link:hover {
  background: #5568d3;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  header h1 {
    font-size: 2em;
  }

  .search-box {
    flex-direction: column;
  }

  input[type="text"],
  button {
    width: 100%;
  }
}
