/* === Start: Innovando weather forecast frontend === */
.ivd-weather-forecast {
  --ivd-weather-columns: 3;
  --ivd-weather-card-min-width: 270px;
  margin: 0 auto;
  width: 100%;
  color: var(--ivd-weather-title-color, #35383c);
}

.ivd-weather-forecast__header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.ivd-weather-forecast__label-wrap {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ivd-weather-forecast__cloud {
  color: var(--ivd-weather-title-color, #35383c);
  display: inline-flex;
  height: 16px;
  width: 16px;
}

.ivd-weather-forecast__cloud svg {
  display: block;
  height: 16px;
  width: 16px;
}

.ivd-weather-forecast__label {
  color: var(--ivd-weather-title-color, #35383c);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ivd-weather-forecast__label-wrap strong {
  color: var(--ivd-weather-title-color, #35383c);
  font-size: 14px;
  font-weight: 800;
}

.ivd-weather-forecast__header p {
  color: #6f7478;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 520px;
}

.ivd-weather-forecast__grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(var(--ivd-weather-columns), minmax(min(100%, var(--ivd-weather-card-min-width)), 1fr));
}

.ivd-weather-forecast__card {
  background: #f6f8f9;
  border: 1px solid rgba(30, 35, 40, .08);
  border-bottom: 8px solid var(--ivd-weather-accent, #2f855a);
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(20, 25, 30, .08);
  min-height: 320px;
  overflow: hidden;
  padding: 28px 30px 26px;
  position: relative;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.ivd-weather-forecast__card > * {
  position: relative;
  z-index: 2;
}

.ivd-weather-forecast__card::before,
.ivd-weather-forecast__card::after {
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.ivd-weather-forecast__card:hover {
  border-color: rgba(30, 35, 40, .18);
  box-shadow: 0 24px 70px rgba(20, 25, 30, .13);
  transform: translateY(-3px);
}

.ivd-weather-forecast--bg-none .ivd-weather-forecast__card,
.ivd-weather-forecast--bg-none .ivd-weather-forecast__card--sunny,
.ivd-weather-forecast--bg-none .ivd-weather-forecast__card--partly-cloudy,
.ivd-weather-forecast--bg-none .ivd-weather-forecast__card--cloudy,
.ivd-weather-forecast--bg-none .ivd-weather-forecast__card--fog,
.ivd-weather-forecast--bg-none .ivd-weather-forecast__card--rain,
.ivd-weather-forecast--bg-none .ivd-weather-forecast__card--thunderstorm,
.ivd-weather-forecast--bg-none .ivd-weather-forecast__card--snow {
  background: #fff;
}

.ivd-weather-forecast--bg-static .ivd-weather-forecast__card--sunny,
.ivd-weather-forecast--bg-dynamic .ivd-weather-forecast__card--sunny {
  background: linear-gradient(135deg, #fff8df 0%, #fffdf4 48%, #f7f1d0 100%);
}

.ivd-weather-forecast--bg-static .ivd-weather-forecast__card--partly-cloudy,
.ivd-weather-forecast--bg-dynamic .ivd-weather-forecast__card--partly-cloudy {
  background: linear-gradient(135deg, #eef3f5 0%, #f8f9ee 52%, #fff4cd 100%);
}

.ivd-weather-forecast--bg-static .ivd-weather-forecast__card--cloudy,
.ivd-weather-forecast--bg-dynamic .ivd-weather-forecast__card--cloudy {
  background: linear-gradient(135deg, #edf1f4 0%, #f8f9fa 100%);
}

.ivd-weather-forecast--bg-static .ivd-weather-forecast__card--fog,
.ivd-weather-forecast--bg-dynamic .ivd-weather-forecast__card--fog {
  background: linear-gradient(135deg, #f6f7f7 0%, #e7ecef 50%, #fbfbfb 100%);
}

.ivd-weather-forecast--bg-static .ivd-weather-forecast__card--rain,
.ivd-weather-forecast--bg-dynamic .ivd-weather-forecast__card--rain {
  background: linear-gradient(135deg, #d9e1e8 0%, #edf1f5 100%);
}

.ivd-weather-forecast--bg-static .ivd-weather-forecast__card--thunderstorm,
.ivd-weather-forecast--bg-dynamic .ivd-weather-forecast__card--thunderstorm {
  background: linear-gradient(135deg, #202833 0%, #3c4652 100%);
  color: #f8fafc;
}

.ivd-weather-forecast--bg-static .ivd-weather-forecast__card--snow,
.ivd-weather-forecast--bg-dynamic .ivd-weather-forecast__card--snow {
  background: linear-gradient(135deg, #ffffff 0%, #f2f9fc 55%, #e9f3f8 100%);
}

/* === Start: Soft dynamic weather atmosphere === */
.ivd-weather-forecast--bg-dynamic .ivd-weather-forecast__card::before {
  background: radial-gradient(circle at 82% 18%, rgba(255,255,255,.34), transparent 28%), linear-gradient(115deg, transparent 0%, rgba(255,255,255,.22) 45%, transparent 72%);
  opacity: .35;
  transform: translateX(-18%);
  animation: ivdWeatherSoftLight 10s ease-in-out infinite;
}

.ivd-weather-forecast--bg-dynamic .ivd-weather-forecast__card--sunny::before {
  background: radial-gradient(circle at 78% 18%, rgba(255, 214, 91, .42), rgba(255, 214, 91, 0) 31%), linear-gradient(110deg, transparent 0%, rgba(255,255,255,.18) 45%, transparent 72%);
  opacity: .55;
}

.ivd-weather-forecast--bg-dynamic .ivd-weather-forecast__card--fog::before,
.ivd-weather-forecast--bg-dynamic .ivd-weather-forecast__card--cloudy::before,
.ivd-weather-forecast--bg-dynamic .ivd-weather-forecast__card--partly-cloudy::before {
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.42) 42%, transparent 72%);
  opacity: .42;
}

.ivd-weather-forecast--bg-dynamic .ivd-weather-forecast__card--rain::before {
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.2) 42%, transparent 72%), radial-gradient(circle at 72% 18%, rgba(82, 105, 128, .18), transparent 32%);
  opacity: .38;
}

.ivd-weather-forecast--bg-dynamic .ivd-weather-forecast__card--snow::before {
  background: radial-gradient(circle at 22% 26%, rgba(255,255,255,.55), transparent 22%), radial-gradient(circle at 80% 18%, rgba(210, 230, 238, .32), transparent 28%);
  opacity: .5;
  animation: ivdWeatherSoftPulse 9s ease-in-out infinite;
}

.ivd-weather-forecast--bg-dynamic .ivd-weather-forecast__card--thunderstorm::after {
  background: linear-gradient(120deg, transparent 0 48%, rgba(255,255,255,.2) 51%, transparent 58%);
  opacity: 0;
  animation: ivdWeatherStorm 7s ease-in-out infinite;
}
/* === End: Soft dynamic weather atmosphere === */

.ivd-weather-forecast__card-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ivd-weather-forecast__card-head span {
  color: #263036;
  font-size: 22px;
  font-weight: 800;
  text-transform: lowercase;
}

.ivd-weather-forecast__card-head time {
  color: #697178;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
}

.ivd-weather-forecast__card--thunderstorm .ivd-weather-forecast__card-head span,
.ivd-weather-forecast__card--thunderstorm .ivd-weather-forecast__card-head time {
  color: #f8fafc;
}

.ivd-weather-forecast__main {
  align-items: center;
  display: flex;
  gap: 22px;
  margin-bottom: 24px;
  min-width: 0;
}

.ivd-weather-forecast__icon {
  color: var(--ivd-weather-accent, #2f855a);
  display: inline-flex;
  flex: 0 0 68px;
  height: 68px;
  width: 68px;
}

.ivd-weather-forecast__icon svg {
  display: block;
  height: 68px;
  overflow: visible;
  width: 68px;
}

.ivd-weather-forecast__main div {
  min-width: 0;
}

.ivd-weather-forecast__main strong {
  color: var(--ivd-weather-accent, #2f855a);
  display: block;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .95;
  white-space: nowrap;
}

.ivd-weather-forecast__main span span,
.ivd-weather-forecast__main div > span {
  color: #17345b;
  display: block;
  font-size: 24px;
  font-weight: 800;
  margin-top: 8px;
}

.ivd-weather-forecast__card--thunderstorm .ivd-weather-forecast__main div > span {
  color: #dfe8f0;
}

.ivd-weather-forecast__facts {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.ivd-weather-forecast__facts li {
  align-items: center;
  color: #747b81;
  display: flex;
  font-size: 15px;
  gap: 10px;
  line-height: 1.55;
  margin: 0 0 8px;
}

.ivd-weather-forecast__facts span {
  color: var(--ivd-weather-accent, #2f855a);
  font-family: Arial, sans-serif;
  font-weight: 800;
  min-width: 16px;
  text-align: center;
}

.ivd-weather-forecast__card--thunderstorm .ivd-weather-forecast__facts li {
  color: #e3e8ee;
}

.ivd-weather-forecast__badge {
  background: var(--ivd-weather-badge-bg, #dff0e7);
  border-radius: 4px;
  color: var(--ivd-weather-badge-text, #207446);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  line-height: 1.2;
  padding: 12px 14px;
  text-transform: uppercase;
}

.ivd-weather-forecast__empty {
  background: #fff;
  border: 1px solid rgba(30, 35, 40, .1);
  border-radius: 6px;
  color: #687078;
  padding: 24px;
}

@keyframes ivdWeatherSoftLight {
  0%, 100% { transform: translateX(-18%); opacity: .28; }
  50% { transform: translateX(16%); opacity: .48; }
}

@keyframes ivdWeatherSoftPulse {
  0%, 100% { transform: scale(1); opacity: .38; }
  50% { transform: scale(1.04); opacity: .55; }
}

@keyframes ivdWeatherStorm {
  0%, 78%, 100% { opacity: 0; }
  82% { opacity: .55; }
  86% { opacity: 0; }
}

@media (max-width: 1180px) {
  .ivd-weather-forecast__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ivd-weather-card-min-width)), 1fr));
  }
}

@media (max-width: 680px) {
  .ivd-weather-forecast__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ivd-weather-forecast__grid {
    grid-template-columns: 1fr;
  }
}
/* === End: Innovando weather forecast frontend === */
