@tailwind base;
@tailwind components;
@tailwind utilities;

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/
.map-container {
  padding: 16px;
  padding-bottom: 48px;
  max-width: 100%;
  margin: 0 auto;
}

.map-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

#map {
  height: 300px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.ski-resorts-section {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
}

.ski-resorts-list {
  display: grid;
  gap: 12px;
}

.ski-resort-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.2s;
  position: relative;
}

.ranking-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 14px;
}

.ranking-1 { background: #ffd700; color: #1f2937; }
.ranking-2 { background: #4682b4; color: white; }
.ranking-3 { background: #cd7f32; color: white; }

.ski-resort-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ski-resort-info h4 {
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 4px;
}

.ski-resort-info p {
  color: #6b7280;
  font-size: 14px;
}

.ski-resort-distance {
  text-align: right;
  font-size: 14px;
}

.distance {
  color: #1f2937;
  font-weight: bold;
}

.duration {
  color: #6b7280;
  margin-top: 2px;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .map-container {
    padding: 24px;
    padding-bottom: 64px;
    max-width: 800px;
  }

  #map {
    height: 400px;
    max-width: 600px;
  }
}

/* デスクトップ以上 */
@media (min-width: 1024px) {
  .map-container {
    padding: 32px;
    padding-bottom: 80px;
    max-width: 1000px;
  }

  #map {
    height: 500px;
    max-width: 800px;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Error Messages */
#error_explanation {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0.25rem;
}

#error_explanation h2 {
  color: #721c24;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

#error_explanation ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
  text-align: left;
}

#error_explanation li {
  margin-bottom: 0.25rem;
}
