/* weather-template-bootstrap-toggle.css */

/* no-flash support with your pw-ready logic */
.pw-weather.pw-bt-toggle { opacity: 0; }
.pw-weather.pw-bt-toggle.pw-ready { opacity: 1; }

.pw-weather.pw-bt-toggle {
  position: absolute;
  z-index: 40;
  top: 35px;
  left: 12px;
  max-width: calc(100% - 24px);
  pointer-events: auto; /* clickable */
  font-family: "Roboto", Arial, sans-serif;
}

.pw-bt-toggle .pw-card {
  background: #2d6f8f;
  border-radius: 12px;
  overflow: hidden;
  width: 300px;
  max-width: calc(100vw - 24px);
}

/* header/temperature row */
.pw-bt-toggle .pw-head {
  padding: 10px 12px;
  color: #fff;
}

.pw-bt-toggle .pw-temp {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.pw-bt-toggle .pw-unit {
  font-size: 0.55em;
  font-weight: 800;
  opacity: 0.9;
}

.pw-bt-toggle .pw-caret {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-right: 2px solid rgba(255,255,255,0.95);
  border-bottom: 2px solid rgba(255,255,255,0.95);
  transform: rotate(45deg);
  transition: transform 160ms ease;
  margin-left: 10px;
}

.pw-bt-toggle.pw-open .pw-caret {
  transform: rotate(-135deg);
}

/* details panel */
.pw-bt-toggle .card-body {
  background: rgba(0,0,0,0.12);
  color: #fff;
}

.pw-bt-toggle .pw-item {
  background: rgba(0,0,0,0.14);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  height: 100%;
}

.pw-bt-toggle .pw-label {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.9;
  letter-spacing: 0.3px;
}

.pw-bt-toggle .pw-val {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

/* icons */
.pw-bt-toggle .pw-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex: 0 0 auto;
  opacity: 0.95;
}

.pw-bt-toggle .pw-icon-temp     { background-image: url("//live.panoramika.eu/scripts/panoplayer/img/weather/temp.svg"); }
.pw-bt-toggle .pw-icon-humidity { background-image: url("//live.panoramika.eu/scripts/panoplayer/img/weather/humidity.svg"); }
.pw-bt-toggle .pw-icon-pressure { background-image: url("//live.panoramika.eu/scripts/panoplayer/img/weather/pressure.svg"); }
.pw-bt-toggle .pw-icon-wind     { background-image: url("//live.panoramika.eu/scripts/panoplayer/img/weather/wind.svg"); }
.pw-bt-toggle .pw-icon-dir      { background-image: url("//live.panoramika.eu/scripts/panoplayer/img/weather/direction.svg"); }

/* mobile */
@media (max-width: 480px) {
  .pw-bt-toggle .pw-card { width: 260px; }
  .pw-bt-toggle .pw-temp { font-size: 30px; }
}
