/* ===========================================
   ROVEABILITY WEATHER WIDGET
   Live weather & hazard warnings for route pages
   =========================================== */

/* ── Widget Container ── */
.luke-weather-widget {
  background: var(--panel-bg-color, #f8f9fb);
  border: 2px solid var(--primary-color, #001727);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
  font-family: var(--font-family-primary, 'Inter', sans-serif);
}

.luke-weather-error {
  background: var(--panel-bg-color, #f8f9fb);
  border: 2px solid var(--primary-color, #001727);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--primary-color, #001727);
}

.luke-weather-error p {
  margin: 0;
  font-size: 1rem;
}

/* ── Warning Banner ── */
.luke-warning-banner {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.luke-warning-active {
  background: #fff3e0;
  border-left: 5px solid #e65100;
}

.luke-warning-clear {
  background: #e8f5e9;
  border-left: 5px solid #2e7d32;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.luke-warning-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.luke-warning-icon {
  font-size: 1.4rem;
}

.luke-warning-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color, #001727);
}

.luke-warning-summary {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #bf360c;
}

.luke-warning-clear .luke-warning-title {
  color: #2e7d32;
}

.luke-warning-details {
  margin: 0.25rem 0 0;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: #555;
}

.luke-warning-details li {
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

/* ── Current Weather Body ── */
.luke-weather-body {
  padding: 1rem 1.25rem;
}

.luke-current-weather {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.luke-current-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 200px;
}

.luke-current-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.luke-current-temp {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color, #001727);
}

.luke-current-condition {
  font-size: 1rem;
  text-transform: capitalize;
  color: #555;
  font-weight: 500;
}

.luke-current-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
  flex: 1;
  min-width: 200px;
}

.luke-current-detail {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.luke-current-detail span:first-child {
  color: #666;
}

.luke-current-detail span:last-child {
  font-weight: 600;
  color: var(--primary-color, #001727);
}
/* ── 3-Day Forecast (Collapsible) ── */
.luke-forecast-toggle {
  margin-top: 1.25rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.luke-forecast-summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-color, #001727);
  background: var(--secondary-bg-color, #f9bb0115);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.luke-forecast-summary::-webkit-details-marker {
  display: none;
}

.luke-forecast-summary::before {
  content: "▶";
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.luke-forecast-toggle[open] .luke-forecast-summary::before {
  transform: rotate(90deg);
}

.luke-toggle-hint {
  font-weight: 400;
  font-size: 0.8rem;
  color: #888;
}

.luke-forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
}

.luke-forecast-card {
  background: var(--panel-bg-color, #f8f9fb);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.luke-forecast-day {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--primary-color, #001727);
}

.luke-forecast-icon {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.luke-forecast-temps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.luke-forecast-high {
  font-weight: 700;
  color: #e65100;
}

.luke-forecast-low {
  color: #1565c0;
  font-weight: 500;
}

.luke-forecast-condition {
  font-size: 0.75rem;
  text-transform: capitalize;
  color: #555;
  margin-bottom: 0.25rem;
}

.luke-forecast-rain,
.luke-forecast-snow,
.luke-forecast-wind {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.5;
}

/* ── Footer ── */
.luke-weather-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: var(--secondary-bg-color, #f9bb0115);
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 0.8rem;
}

.luke-weather-location {
  font-weight: 600;
  color: var(--primary-color, #001727);
}

.luke-weather-updated {
  color: #888;
}

/* ── Map Popup Weather Snippet ── */
.luke-popup-weather {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--primary-color, #001727);
  padding: 2px 0;
}

.luke-popup-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.luke-popup-icon {
  font-size: 1.2rem;
}

.luke-popup-temp {
  font-weight: 700;
  font-size: 1rem;
}

.luke-popup-cond {
  text-transform: capitalize;
  color: #555;
}

.luke-popup-warning {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: #fff3e0;
  border: 1px solid #e65100;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  color: #bf360c;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .luke-current-weather {
    flex-direction: column;
    align-items: flex-start;
  }
  .luke-current-details {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .luke-forecast-grid {
    grid-template-columns: 1fr 1fr;
  }
  .luke-weather-footer {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
}