/* AmV Weather – SVG-version
   Font: DM Sans
   Thin: 200
   Bold: 800
*/

/* =========================
   BAS (gäller båda layouter)
   ========================= */

.amv-weather {
  display: inline-block;
  border-radius: 8px;
  font-family: 'dm-sans', sans-serif;
  line-height: 1.15;
}

/* PLATS */
.amv-weather-city {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.85;
}

/* SVG-IKON (inline) */
.amv-weather-icon {
  display: block;
  line-height: 0;
}

.amv-weather-icon svg {
  fill: var(--amv-icon-color, currentColor);
}

.amv-weather-icon--clickable {
  cursor: pointer;
}

.amv-weather-icon--clickable svg {
  transition: opacity 0.15s;
}

.amv-weather-icon--clickable:hover svg {
  opacity: 0.7;
}

/* TEMPERATUR */
.amv-weather-temp {
  font-weight: 200;
  line-height: 1;
  opacity: 0.92;
}

/* TID / DATUM */
.amv-weather-time {
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.80;
  white-space: nowrap;
}

/* =========================
   LARGE (default / hero)
   ========================= */

.amv-weather--large {
  display: inline-block;
}

.amv-weather--large .amv-weather-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.amv-weather--large .amv-weather-icon svg {
  width: 84px;
  height: auto;
}

.amv-weather--large .amv-weather-temp {
  font-size: 51px;
}

.amv-weather--large .amv-weather-meta {
  font-size: 14px;
}

/* =========================
   SMALL (horisontell)
   ========================= */

.amv-weather--small {
  display: flex;
  align-items: center;
  gap: 12px;
}

.amv-weather--small .amv-weather-city,
.amv-weather--small .amv-weather-temp,
.amv-weather--small .amv-weather-time {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.amv-weather--small .amv-weather-icon svg {
  width: 26px;
  height: auto;
}

/* =========================
   MOBIL
   ========================= */

@media (max-width: 767px) {

  .amv-weather--large .amv-weather-icon svg {
    width: 34px;
  }

  .amv-weather--large .amv-weather-temp {
    font-size: 34px;
  }

  .amv-weather--large .amv-weather-meta {
    font-size: 12px;
  }

}

/* =========================
   FORECAST MODAL
   ========================= */

.amv-forecast-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

.amv-forecast-overlay.is-open {
  display: flex;
}

.amv-forecast-modal {
  position: relative;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
  padding: 32px 28px 24px;
  width: 100%;
  max-width: 480px;
  margin: 16px;
  font-family: 'dm-sans', sans-serif;
  color: #707070;
}

.amv-forecast-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #707070;
  cursor: pointer;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.amv-forecast-close:hover {
  opacity: 1;
}


.amv-forecast-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #707070;
  opacity: 0.85;
  margin-bottom: 20px;
}

.amv-forecast-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.amv-forecast-row {
  display: grid;
  grid-template-columns: 56px 40px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(112, 112, 112, 0.10);
}

.amv-forecast-row:last-child {
  border-bottom: none;
}

.amv-forecast-time {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #707070;
}

.amv-forecast-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.amv-forecast-desc {
  font-size: 13px;
  color: #707070;
  opacity: 0.80;
  text-transform: capitalize;
  font-weight: 800;
}

.amv-forecast-temp {
  font-size: 15px;
  font-weight: 200;
  color: #707070;
  text-align: right;
  white-space: nowrap;
  font-weight: 800;
}

.amv-forecast-loading,
.amv-forecast-error {
  font-size: 13px;
  color: #707070;
  opacity: 0.70;
  padding: 12px 0;
  text-align: center;
  font-weight: 800;
}