:root{
  /* Core palette (keeps your current “glass” look, but more consistent) */
  --ws-panel: rgba(255,255,255,0.08);
  --ws-panel2: rgba(255,255,255,0.06);
  --ws-border: rgba(255,255,255,0.14);
  --ws-border-strong: rgba(255,255,255,0.20);
  --ws-text: rgba(255,255,255,0.92);
  --ws-muted: rgba(255,255,255,0.68);

  --ws-shadow: 0 18px 55px rgba(0,0,0,0.42);
  --ws-shadow-soft: 0 10px 30px rgba(0,0,0,0.28);

  --ws-radius-lg: 22px;
  --ws-radius-md: 16px;
  --ws-radius-sm: 14px;

  --ws-focus: rgba(120,190,255,0.55);
  --ws-focus2: rgba(120,255,210,0.25);
}

@keyframes wsSearchLoader{
  0%{ transform: translateX(-18%); opacity: .55; }
  50%{ opacity: 1; }
  100%{ transform: translateX(18%); opacity: .55; }
}

/* ---------- Page ---------- */
.ws{
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 16px 44px;
}

.ws__header{
  margin: 10px 0 18px;
}

.ws__title{
  margin: 0;
  color: var(--ws-text);
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.12;
  font-size: clamp(26px, 2.6vw, 34px);
  text-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

.ws__subtitle{
  margin: 10px 0 0;
  color: var(--ws-muted);
  max-width: 860px;
  line-height: 1.55;
  font-size: 15px;
}

/* ---------- Search panel ---------- */
.ws__panel{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.ws__search{
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.06));
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
  box-shadow: var(--ws-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px;
}

.ws__search.is-loading::after{
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59,130,246,0), rgba(59,130,246,0.95), rgba(34,197,94,0));
  animation: wsSearchLoader 1.1s linear infinite;
}

.ws__label{
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 2px 0 10px;
}

.ws__inputWrap{ position: relative; }

.ws__input{
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.30));
  color: var(--ws-text);
  padding: 14px 44px 14px 14px;
  outline: none;
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ws__input::placeholder{ color: rgba(255,255,255,0.45); }

.ws__input:focus{
  border-color: rgba(140,210,255,0.55);
  box-shadow:
    0 0 0 3px rgba(120,190,255,0.18),
    0 10px 30px rgba(0,0,0,0.20) inset;
  background: linear-gradient(180deg, rgba(0,0,0,0.20), rgba(0,0,0,0.30));
}

.ws__clear{
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,0.14);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.ws__clear:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
}
.ws__clear:active{ transform: translateY(-50%) scale(0.96); }

.ws__hint{
  margin-top: 10px;
  color: var(--ws-muted);
  font-size: 13px;
  min-height: 18px;
}

/* Krótka instrukcja pod wyszukiwarką */
.ws__guide{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
}
.ws__guideItem{
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
}
.ws__guideDot{ color: rgba(255,255,255,0.35); }

.ws__recent{
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 12px;
  background: rgba(0,0,0,0.22);
  box-shadow: var(--ws-shadow-soft);
}

.ws__recentTitle{
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ws__recentList{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wsRecentBtn{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  color: var(--ws-text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  max-width: 100%;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

.wsRecentBtn:hover,
.wsRecentBtn:focus-visible{
  transform: translateY(-1px);
  border-color: rgba(120,190,255,0.48);
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.08));
  box-shadow: 0 0 0 3px rgba(120,190,255,0.12);
}

.wsRecentBtn__label{
  display: block;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Suggestions */
.ws__suggest{
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.28);
  box-shadow: var(--ws-shadow-soft);
}

.suggestItem{
  padding: 12px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ws-text);
  transition: background .12s ease;
}
.suggestItem:hover,
.suggestItem[aria-selected="true"]{ background: rgba(255,255,255,0.08); }
.suggestItem.is-active{
  background: rgba(59,130,246,0.18);
  box-shadow: inset 0 0 0 1px rgba(120,190,255,0.20);
}
.suggestItem:focus-visible{
  outline: 2px solid rgba(120,190,255,0.52);
  outline-offset: -2px;
}
.suggestItem__left{ display:flex; flex-direction:column; gap:3px; min-width: 0; }
.suggestItem__name{ font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestItem__meta{ font-size: 12px; color: var(--ws-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestItem__tag{
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  align-self: center;
  white-space: nowrap;
  background: rgba(255,255,255,0.05);
}

/* Empty state */
.ws__empty{ margin-top: 14px; }
.emptyCard{
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
  box-shadow: var(--ws-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.emptyCard__icon{ font-size: 26px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25)); }
.emptyCard__text{ color: var(--ws-muted); line-height: 1.4; font-size: 15px; }

/* ---------- Modal ---------- */
.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
}

.modal__panel{
  position: relative;
  width: min(1160px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;

  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(120,190,255,0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(120,255,210,0.10), transparent 55%),
    rgba(10,16,28,0.92);

  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  box-shadow: var(--ws-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px 18px 22px;
}

.modal__panel.is-loading::before{
  content: "";
  position: sticky;
  top: -18px;
  display: block;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59,130,246,0), rgba(59,130,246,0.94), rgba(34,197,94,0.08), rgba(59,130,246,0));
  animation: wsSearchLoader 1.1s linear infinite;
  z-index: 2;
}

/* nicer scrollbar inside modal */
.modal__panel::-webkit-scrollbar{ width: 10px; }
.modal__panel::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.25);
}
.modal__panel::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,0.18); }

.modal__close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.modal__close:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.24);
}
.modal__close:active{ transform: scale(0.96); }

.modal__head{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
  padding-right: 46px;
}

.modal__place{
  font-size: 22px;
  font-weight: 900;
  color: var(--ws-text);
  letter-spacing: .2px;
}

.modal__meta{
  margin-top: 6px;
  color: var(--ws-muted);
  font-size: 13px;
  line-height: 1.4;
}

.modal__now{ display:flex; flex-direction:column; align-items:flex-end; gap: 4px; }

.now__temp{
  font-weight: 950;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1;
  letter-spacing: .2px;
  color: var(--ws-text);
}

.now__cond{
  color: var(--ws-muted);
  font-size: 13px;
}

.now__feels{
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.25;
}

.now__temp.temp--cold{ color: rgba(59,130,246,0.98); text-shadow: 0 0 18px rgba(59,130,246,0.22); }
.now__temp.temp--mild{ color: rgba(34,197,94,0.98); text-shadow: 0 0 18px rgba(34,197,94,0.18); }
.now__temp.temp--hot{ color: rgba(239,68,68,0.98); text-shadow: 0 0 18px rgba(239,68,68,0.20); }

.tempVal{
  font-weight: 900;
  letter-spacing: -0.02em;
}

.tempVal--hero{
  font-size: inherit;
  line-height: inherit;
}

.tempVal--feel{
  font-weight: 850;
}

.tempVal--feelHero{
  font-size: 1.08em;
  font-weight: 900;
}

/* Tiles */
.tiles{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.tile{
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 12px 12px 13px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.14) inset;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.tile::before{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  top:0;
  height:3px;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(120,190,255,.76), rgba(120,255,210,.42));
  opacity:.55;
}

.tile::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(340px 120px at 100% 0%, rgba(255,255,255,.08), transparent 55%);
  opacity:.7;
}
.tile:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.tile--temp{
  border-color: rgba(255,255,255,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05)),
    rgba(255,255,255,.03);
  box-shadow:
    0 14px 34px rgba(0,0,0,.18) inset,
    0 10px 30px rgba(0,0,0,.10);
}

.tile--temp::before{
  left:0;
  right:0;
  height:4px;
  border-radius:18px 18px 999px 999px;
  background: linear-gradient(90deg, var(--tile-accent, rgba(120,190,255,.95)), rgba(255,255,255,.28));
  opacity:.98;
}

.tile__k{
  color: rgba(255,255,255,0.70);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  margin-bottom: 6px;
}
.tile__v{
  color: var(--ws-text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.tile__s{
  color: var(--ws-muted);
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.tile--temp .tile__v{
  font-size: clamp(25px, 2.1vw, 30px);
  line-height: 1.06;
}

.tile--temp .tile__s{
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.36;
}

/* AQI badges (used by JS) */
.aqiBadges{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.aqiBadge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .15px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 10px 26px rgba(0,0,0,0.18) inset;
}

.aqi--good{
  background: rgba(0,200,120,0.22);
  border-color: rgba(0,240,150,0.30);
  color: rgba(235,255,245,0.98);
}
.aqi--mid{
  background: rgba(255,200,0,0.20);
  border-color: rgba(255,220,40,0.28);
  color: rgba(255,240,210,0.98);
}
.aqi--bad{
  background: rgba(255,70,70,0.20);
  border-color: rgba(255,90,90,0.28);
  color: rgba(255,235,235,0.98);
}

/* Summary bar */
.sum{
  margin-top: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 12px;
  color: rgba(255,255,255,0.84);
  line-height: 1.4;
  box-shadow: 0 10px 26px rgba(0,0,0,0.14) inset;
}

/* Chart */
/* Chart header (professional, compact) */
.chartHeader{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin: 2px 0 10px 0;
}
.chartHeader__title{
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.92);
}
.chartHeader__sub{
  font-size: 12.5px;
  color: rgba(255,255,255,0.68);
  text-align:right;
  line-height: 1.25;
}
@media (max-width: 560px){
  .chartHeader{ align-items:flex-start; flex-direction:column; }
  .chartHeader__sub{ text-align:left; }
}

.chartWrap{
  position: relative;
  margin-top: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.14) inset;
}

.chartTop{
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.dayIcon{
  display: flex;
  flex: 1 0 0;
  min-width: 170px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(220px 140px at 20% 0%, rgba(120,190,255,0.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.22));
  min-width: 132px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}
.dayIcon img{ width: 34px; height: 34px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25)); }
.dayIcon__d{ font-size: 12px; color: rgba(255,255,255,0.86); font-weight: 800; }
.dayIcon__t{ font-size: 11px; color: rgba(255,255,255,0.64); max-width: 120px; text-align: center; line-height: 1.15; }

@media (max-width: 620px){
  .dayIcon{ min-width: 116px; }
  .dayIcon img{ width: 32px; height: 32px; }
}

.legend{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--ws-muted);
  font-size: 12px;
}
.legend__item{ display:flex; align-items:center; gap:8px; }
.dot{ width:10px; height:10px; border-radius:999px; display:inline-block; }
.dot--max{ background: rgba(239,68,68,1); }
.dot--min{ background: rgba(59,130,246,1); }
.dot--zero{ background:#b0b0b0; }

#wsChart{ width: 100%; height: 380px; max-height: 380px; }

/* Feel colors (used by JS) */
.feel.feel--violet{ color: rgba(195,120,255,0.98); text-shadow: 0 0 10px rgba(195,120,255,0.22); }
.feel.feel--deepviolet{ color: rgba(155,80,255,0.98); text-shadow: 0 0 10px rgba(155,80,255,0.26); }

/* Hidden handling */
[hidden]{ display: none !important; }

/* Responsive tweaks */
@media (max-width: 980px){
  .tiles{ grid-template-columns: repeat(2, 1fr); }
  .dayIcon{ min-width: 120px; }
}
@media (max-width: 620px){
  .modal__head{ flex-direction: column; align-items: flex-start; }
  .modal__now{ align-items: flex-start; }
  .tiles{ grid-template-columns: 1fr; }
  #wsChart{ height: 300px; max-height: 300px; }
}


/* Sunrise/Sunset row */
.sunRow{ display:flex; align-items:center; justify-content:flex-start; gap:8px; flex-wrap:wrap; }
.sunRow__i{ font-size: 15px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25)); }
.sunRow__t{ font-weight: 700; letter-spacing:0.2px; }
.sunRow__sep{ color: rgba(255,255,255,0.55); }


@media (max-width: 720px){
  #wsChart{ height: 320px; max-height: 320px; }
  .dayIcon{ min-width: 150px; }
}


/* --- KSIĘŻYC (tile) --- */
.moonRow{ display:flex; align-items:center; gap:10px; }
.moonRow__i{ font-size:22px; line-height:1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.moonRow__t{ font-weight:700; letter-spacing:.2px; }
.moonRow__pill{
  margin-left:auto;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

/* Chart tooltip (PRO) */
.chartTip{
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -110%);
  min-width: 180px;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(18,24,34,0.92), rgba(8,10,14,0.88));
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.92);
  font-size: 12.5px;
  line-height: 1.25;
  pointer-events: none;
  z-index: 6;
}
.chartTip__title{ font-weight: 900; font-size: 12.5px; margin-bottom: 6px; color: rgba(255,255,255,0.96); }
.chartTip__row{ display:flex; align-items:center; justify-content: space-between; gap: 10px; margin: 3px 0; }
.chartTip__k{ color: rgba(255,255,255,0.70); }
.chartTip__v{ font-weight: 800; }
.chartTip__v--day{ color: rgba(239,68,68,1); }
.chartTip__v--night{ color: rgba(59,130,246,1); }
.chartTip__fine{ margin-top: 6px; color: rgba(255,255,255,0.62); font-size: 11.5px; }


/* --- AQI PRO bars --- */
.tile--aqi .aqiRows{ display:grid; gap:10px; margin-top:10px; }
.aqiRow__head{ display:flex; justify-content:space-between; align-items:center; font-size:13px; color:rgba(255,255,255,.86); }
.aqiRow__label{ font-weight:700; letter-spacing:.2px; }
.aqiRow__val{ font-variant-numeric: tabular-nums; color:rgba(255,255,255,.9); }
.aqiBar{
  height:10px;
  border-radius:999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  overflow:hidden;
}
.aqiFill{
  height:100%;
  border-radius:999px;
  box-shadow: 0 0 18px rgba(255,255,255,0.12);
  background: rgba(148,163,184,.85); /* fallback */
}
.aqiFill.aqi--good{ background: rgba(34,197,94,.9); }
.aqiFill.aqi--mid{ background: rgba(245,158,11,.92); }
.aqiFill.aqi--bad{ background: rgba(239,68,68,.92); }


/* 7/14 dni buttons */
.chartHeader{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.chartHeader__btns{ display:flex; gap:8px; align-items:center; }
.daysBtn{
  appearance:none; border:1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}
.daysBtn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.26); background: rgba(255,255,255,0.10); }
.daysBtn.isActive{
  background: rgba(59,130,246,0.22);
  border-color: rgba(59,130,246,0.45);
}


/* --- Wykres godzinowy (PRO+) --- */
.chartWrap--hourly{ margin-top: 14px; }
.dot--rain{ background: rgba(60,200,255,0.95); box-shadow: 0 0 14px rgba(60,200,255,0.35); }
.dot--snow{ background: rgba(255,180,255,0.95); box-shadow: 0 0 14px rgba(255,180,255,0.35); }
.dot--mix{  background: rgba(255,220,120,0.95); box-shadow: 0 0 14px rgba(255,220,120,0.35); }
.daysBtn[disabled]{ opacity:.55; cursor:not-allowed; }


/* === HOURLY PRO SVG OVERLAY + RESPONSIVE === */
.wsHourScroller{
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.wsHourChartWrap{
  position: relative;
  /* Szerokość jest ustawiana dynamicznie z JS na podstawie 24/48h,
     żeby po przewinięciu na mobile nie znikały kratki/ikony. */
  display: inline-block;
  min-width: 100%;
}
#wsHourChart{
  display: block;
}
.wsHourOverlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.wsHourMark{
  position: absolute;
  transform: translate(-50%, -100%);
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
  width: 110px; /* ogranicza rozsypywanie tekstu */
}
.wsHourMark__svg{
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.18));
}
.wsHourMark__txt{
  font-size: 11px;
  line-height: 1.05;
  opacity: .82;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(0,0,0,0.35);
}
@media (max-width: 900px){
  .wsHourMark__svg{ width: 34px; height: 34px; }
  .wsHourMark{ width: 96px; }
}
@media (max-width: 520px){
  .wsHourMark__svg{ width: 32px; height: 32px; }
  .wsHourMark__txt{ font-size: 10px; }
}

/* Kolory opadu w legendzie godzinowej (jeśli nie istnieją) */

/* Animacja burzy */
.wsSvgBolt{ transform-origin: 50% 50%; }
@keyframes wsBoltFlicker{
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}
@keyframes wsCloudPulse{
  0%,100% { opacity: 0.92; }
  50% { opacity: 0.65; }
}
.wsSvgThunder .wsSvgBolt{ animation: wsBoltFlicker 0.8s infinite; }
.wsSvgThunder .wsSvgCloud{ animation: wsCloudPulse 1.2s infinite; }



/* === PRO: przewijany wykres 7/14 dni na mobile (bez zlewania dat) === */
.chartScroll{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 6px; /* miejsce na cień/scrollbar */
}
.chartScroll__inner{
  position: relative;
  width: max-content;
  min-width: 100%;
}
#wsIconRow{
  width: 100%;
}
#wsChart{
  display: block;
  width: 100%;
  max-width: none; /* ważne: pozwól na szeroki canvas */
}
.chartScrollBar{
  margin-top: 8px;
}
.chartRange{
  width: 100%;
  accent-color: #3b82f6; /* spójny PRO */
}
@media (max-width: 640px){
  .chartHeader__sub{ line-height: 1.25; }
}

/* === 20260311: prognoza PRO refresh === */
.ws{
  position: relative;
  max-width: 1200px;
  padding: 24px 16px 56px;
}

.ws::before,
.ws::after{
  content: "";
  position: absolute;
  pointer-events: none;
  inset: auto;
  border-radius: 999px;
  filter: blur(42px);
  opacity: .42;
}

.ws::before{
  width: 260px;
  height: 260px;
  top: 8px;
  right: 2%;
  background: radial-gradient(circle, rgba(120,190,255,.24), transparent 68%);
}

.ws::after{
  width: 220px;
  height: 220px;
  left: 1%;
  top: 110px;
  background: radial-gradient(circle, rgba(120,255,210,.14), transparent 68%);
}

.ws__hero{
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) 320px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.ws__header,
.ws__heroCard{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 260px at 0% 0%, rgba(120,190,255,.12), transparent 58%),
    radial-gradient(420px 220px at 100% 0%, rgba(120,255,210,.08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 22px 56px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ws__header{
  border-radius: 28px;
  padding: 22px 22px 24px;
  margin: 0;
}

.ws__eyebrow{
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(125,211,252,.26);
  background: rgba(125,211,252,.10);
  color: rgba(235,245,255,.96);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ws__title{
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.04;
  max-width: 13ch;
}

.ws__subtitle{
  margin-top: 12px;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.62;
}

.ws__heroAside{
  display: grid;
  gap: 12px;
}

.ws__heroCard{
  border-radius: 22px;
  padding: 16px 16px 15px;
}

.ws__heroK{
  color: rgba(255,255,255,.64);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ws__heroV{
  margin-top: 6px;
  color: rgba(255,255,255,.96);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.ws__heroS{
  margin-top: 6px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  line-height: 1.45;
}

.ws__panel{
  margin-top: 0;
}

.ws__search{
  border-radius: 26px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05)),
    rgba(7,14,26,.56);
}

.ws__searchTop{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.ws__searchLead{
  color: rgba(255,255,255,.66);
  font-size: 13px;
  line-height: 1.45;
  max-width: 640px;
}

.ws__searchBadge{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.ws__input{
  min-height: 58px;
  border-radius: 20px;
  padding: 16px 52px 16px 16px;
  font-size: 17px;
  background: linear-gradient(180deg, rgba(0,0,0,.24), rgba(0,0,0,.34));
}

.ws__clear{
  width: 36px;
  height: 36px;
}

.ws__hint{
  min-height: 20px;
}

.ws__guide{
  margin-top: 12px;
  gap: 9px;
}

.ws__guideItem{
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.10);
}

.ws__empty{
  margin-top: 18px;
}

.emptyCard{
  border-radius: 24px;
  padding: 20px;
  align-items: flex-start;
  background:
    radial-gradient(460px 200px at 0% 0%, rgba(120,190,255,.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
}

.emptyCard__icon{
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 26px;
}

.emptyCard__body{
  display: grid;
  gap: 5px;
}

.emptyCard__title{
  color: rgba(255,255,255,.95);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.emptyCard__text{
  font-size: 14px;
  line-height: 1.55;
}

.modal__panel{
  width: min(1180px, 100%);
  max-height: min(92vh, 980px);
  padding: 20px 20px 24px;
  border-radius: 28px;
  background:
    radial-gradient(1100px 560px at 0% 0%, rgba(120,190,255,.14), transparent 56%),
    radial-gradient(900px 440px at 100% 0%, rgba(120,255,210,.10), transparent 55%),
    rgba(10,16,28,.94);
}

.modal__head{
  align-items: center;
  margin-bottom: 16px;
  padding: 2px 54px 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.modal__place{
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.06;
}

.modal__meta{
  max-width: 70ch;
  font-size: 13px;
}

.modal__now{
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  min-width: 180px;
  box-shadow: 0 12px 24px rgba(0,0,0,.12) inset;
  position: relative;
  overflow: hidden;
}

.modal__now::before{
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ws-temp-accent, rgba(120,190,255,.92)), rgba(255,255,255,0));
}

.now__temp{
  font-size: clamp(34px, 5vw, 50px);
}

.tiles{
  margin-top: 0;
  gap: 14px;
}

.tile{
  border-radius: 20px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.045)),
    rgba(255,255,255,.02);
  box-shadow:
    0 18px 36px rgba(0,0,0,.10) inset,
    0 8px 24px rgba(0,0,0,.08);
}

.sum{
  position: relative;
  margin-top: 16px;
  border-radius: 20px;
  padding: 14px 16px 14px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035));
}

.sum::before{
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(59,130,246,.95), rgba(34,197,94,.95));
}

.chartGrid{
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.chartWrap{
  margin-top: 0;
  border-radius: 22px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04)),
    rgba(255,255,255,.02);
}

.chartHeader{
  align-items: flex-start;
  gap: 14px;
}

.chartHeader__main{
  min-width: 0;
  flex: 1 1 auto;
}

.chartHeader__title{
  font-size: 16px;
  font-weight: 900;
}

.chartHeader__sub{
  margin-top: 5px;
  max-width: 70ch;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.42;
}

.chartHeader__btns{
  flex: 0 0 auto;
}

.daysBtn{
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 12px;
}

.legend{
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 1040px){
  .ws__hero{
    grid-template-columns: 1fr;
  }

  .ws__heroAside{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px){
  .ws{
    padding: 18px 14px 44px;
  }

  .ws__header,
  .ws__search,
  .emptyCard,
  .modal__panel,
  .chartWrap,
  .sum{
    border-radius: 22px;
  }

  .ws__searchTop{
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .ws__heroAside{
    grid-template-columns: 1fr;
  }

  .modal__head{
    flex-direction: column;
    align-items: flex-start;
    padding-right: 0;
  }

  .modal__now{
    min-width: 0;
    width: 100%;
    align-items: flex-start;
  }

  .tile--temp .tile__v{
    font-size: 26px;
  }
}

@media (max-width: 620px){
  .ws__title{
    max-width: none;
    font-size: 30px;
  }

  .ws__subtitle{
    font-size: 14px;
    line-height: 1.55;
  }

  .ws__input{
    min-height: 54px;
    padding: 14px 48px 14px 14px;
    font-size: 16px;
  }

  .emptyCard{
    padding: 16px;
    gap: 10px;
  }

  .emptyCard__icon{
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 22px;
  }

  .emptyCard__title{
    font-size: 16px;
  }

  .chartWrap,
  .sum{
    padding: 12px;
  }

  .chartHeader__btns{
    width: 100%;
  }

  .daysBtn{
    flex: 1 1 auto;
    justify-content: center;
  }
}

.chartWrap--daily .chartHeader{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.chartWrap--daily .chartHeader__main{
  max-width: 100%;
}

.chartWrap--daily .chartHeader__sub{
  max-width: 64ch;
}

.chartWrap--daily .chartHeader__btns{
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.chartWrap--daily .daysBtn{
  min-width: 84px;
  padding: 8px 14px;
  font-weight: 800;
}

@media (max-width: 620px){
  .chartWrap--daily .chartHeader__btns{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chartWrap--daily .daysBtn{
    min-width: 0;
    width: 100%;
  }
}
.chartWrap--hourly .chartHeader{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.chartWrap--hourly .chartHeader__main{
  max-width: 100%;
}

.chartWrap--hourly .chartHeader__sub{
  max-width: 64ch;
}

.chartWrap--hourly .chartHeader__btns{
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.chartWrap--hourly .daysBtn{
  min-width: 84px;
  padding: 8px 14px;
  font-weight: 800;
}

.chartScroll,
.wsHourScroller{
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
}

.chartScroll__inner,
.wsHourChartWrap,
#wsChart,
#wsHourChart{
  touch-action: pan-x;
}

@media (max-width: 620px){
  .chartWrap--hourly .chartHeader__btns{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chartWrap--hourly .daysBtn{
    min-width: 0;
    width: 100%;
  }
}
/* 2026-03-11: fixed left-aligned buttons and independent chart sliders */
.chartWrap--daily .chartHeader,
.chartWrap--hourly .chartHeader{
  justify-items: start;
}

.chartWrap--daily .chartHeader__btns,
.chartWrap--hourly .chartHeader__btns{
  justify-self: start;
  justify-content: flex-start;
  margin-right: auto;
}

.chartScrollBar{
  display: block;
  margin-top: 10px;
  padding: 4px 2px 0;
}

.chartRange{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.chartRange::-webkit-slider-runnable-track{
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59,130,246,.38), rgba(125,211,252,.75));
  border: 1px solid rgba(255,255,255,.12);
}

.chartRange::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.88);
  background: #f8fbff;
  box-shadow: 0 0 0 4px rgba(59,130,246,.18);
}

.chartRange::-moz-range-track{
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59,130,246,.38), rgba(125,211,252,.75));
  border: 1px solid rgba(255,255,255,.12);
}

.chartRange::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.88);
  background: #f8fbff;
  box-shadow: 0 0 0 4px rgba(59,130,246,.18);
}

.chartRange:disabled{
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 620px){
  .chartWrap--daily .chartHeader__btns,
  .chartWrap--hourly .chartHeader__btns{
    justify-self: stretch;
  }
}
/* 2026-03-11: keep chart overflow inside each chart card */
.modal__panel{
  overflow-x: hidden;
  overflow-y: auto;
}

.chartGrid,
.chartWrap,
.chartHeader,
.chartHeader__main,
.chartScroll,
.wsHourScroller{
  min-width: 0;
}

.chartWrap{
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.chartScroll,
.wsHourScroller{
  width: 100%;
  max-width: 100%;
}

.chartScroll__inner,
.wsHourChartWrap{
  display: block;
  width: max-content;
  min-width: 100%;
  max-width: none;
}

@media (max-width: 760px){
  .ws__recentList{
    flex-direction: column;
  }

  .wsRecentBtn{
    width: 100%;
    justify-content: flex-start;
  }

  .suggestItem{
    align-items: flex-start;
    flex-direction: column;
  }

  .suggestItem__tag{
    align-self: flex-start;
  }
}

@media (max-width: 520px){
  .ws__search{
    padding: 14px;
  }

  .ws__recent{
    padding: 10px;
  }

  .wsRecentBtn{
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce){
  .ws__search.is-loading::after,
  .modal__panel.is-loading::before{
    animation: none;
  }
}
