/* static/css/location-pages.css */

.weather-widget,
.outdoor-planner,
.stream-widget {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  min-height: 80px;
}

.weather-widget__loading,
.outdoor-planner__loading,
.stream-widget__loading { color: #6c757d; font-style: italic; font-size: 0.9rem; }

.weather-widget__error,
.outdoor-planner__error,
.stream-widget__error   { color: #dc3545; font-size: 0.9rem; }

.weather-current { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.weather-current__temp { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.weather-current__details { font-size: 0.9rem; color: #495057; }

.weather-forecast { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; }
.weather-forecast__day { flex: 0 0 auto; text-align: center; font-size: 0.8rem; min-width: 50px; }
.weather-forecast__day-name { font-weight: 600; margin-bottom: 4px; }
.weather-forecast__high { color: #dc3545; }
.weather-forecast__low  { color: #0d6efd; }

.outdoor-planner__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.outdoor-planner__card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1rem;
}
.outdoor-planner__card-icon  { font-size: 1.5rem; margin-bottom: 0.5rem; }
.outdoor-planner__card-title { font-weight: 700; margin-bottom: 0.25rem; }
.outdoor-planner__card-body  { font-size: 0.875rem; color: #495057; line-height: 1.5; }
.outdoor-planner__card-affiliate { margin-top: 0.5rem; font-size: 0.8rem; }

.stream-widget__reading { font-size: 2rem; font-weight: 700; }
.stream-widget__unit    { font-size: 1rem; color: #6c757d; }
.stream-widget__stage   { margin-top: 0.5rem; font-size: 0.9rem; }
.stream-widget__stage--normal { color: #198754; }
.stream-widget__stage--action { color: #fd7e14; }
.stream-widget__stage--flood  { color: #dc3545; }

.location-facts { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.location-facts td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #dee2e6; font-size: 0.9rem; }
.location-facts td:first-child { font-weight: 600; width: 40%; color: #495057; }

.affiliate-block { background: #f8f9fa; border-radius: 6px; padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.9rem; }
.affiliate-block__title { font-weight: 700; margin-bottom: 0.75rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: #6c757d; }
.affiliate-block__links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.affiliate-block__link  { display: inline-block; padding: 0.35rem 0.75rem; background: #fff; border: 1px solid #dee2e6; border-radius: 4px; text-decoration: none; color: #0d6efd; font-size: 0.85rem; transition: border-color 0.15s; }
.affiliate-block__link:hover { border-color: #0d6efd; }
