.panel{
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
}

.panel-pad{ padding: 18px; }

.panel:hover{ border-color: rgba(76,201,255,0.35); }

.kicker{
  letter-spacing: .14em;
  font-size: 12px;
  color: rgba(255,255,255,0.68);
  margin: 0 0 10px;
}

.badge-soft{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}

.form-control{
  background: rgba(0,0,0,0.25) !important;
  color: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 14px !important;
}
.form-control::placeholder{ color: rgba(255,255,255,0.40); }

.btn.btn-light{
  border-radius: 14px;
  font-weight: 700;
}

.weather-grid{
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 980px){
  .weather-grid{ grid-template-columns: 1fr; }
}

.metric-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 900px){
  .metric-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.metric{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  padding: 12px 12px;
}
.metric .k{ font-size: 12px; color: rgba(255,255,255,0.55); }
.metric .v{ font-size: 16px; font-weight: 700; color: rgba(255,255,255,0.90); margin-top: 3px; }

.big-temp{
  font-family: "Cardo", serif;
  font-size: 70px;
  line-height: 0.95;
  margin: 0;
}

.small-muted{ color: rgba(255,255,255,0.62); }
.small-muted2{ color: rgba(255,255,255,0.48); }

.split{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.card-row{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 620px){
  .card-row{ grid-template-columns: 1fr; }
}

.listbtn{
  width:100%;
  text-align:left;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.85);
  padding: 12px 14px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.listbtn:hover{
  transform: translateY(-2px);
  border-color: rgba(76,201,255,0.35);
  background: rgba(255,255,255,0.05);
}

.hr-soft{
  height:1px;
  background: rgba(255,255,255,0.12);
  margin: 14px 0;
}

.chart-wrap{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  padding: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.svgchart text{
  fill: rgba(255,255,255,0.55);
  font-size: 11px;
}
.svgchart .grid{ stroke: rgba(255,255,255,0.08); stroke-width:1; }
.svgchart .line{ stroke: rgba(255,255,255,0.86); stroke-width:2.25; fill: none; }
.svgchart .line2{ stroke: rgba(76,201,255,0.78); stroke-width:2.15; fill:none; stroke-dasharray: 5 7; }
.svgchart .area{ fill: rgba(255,255,255,0.08); }
.svgchart .dot{ fill: rgba(255,255,255,0.92); opacity:.9; }

.toastlike{
  border: 1px solid rgba(255,80,80,.25);
  background: rgba(255,80,80,.10);
  color: rgba(255,210,210,.95);
  border-radius: 18px;
  padding: .85rem 1rem;
}


/* ==============================
   Phone layout tightening
   ============================== */

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

@media (max-width: 520px){
  .panel-pad{ padding: 14px; }
  .big-temp{ font-size: 54px; }
  .metric{ padding: 10px 10px; }
  .metric .v{ font-size: 15px; }
  .chart-wrap{ padding: 10px; }
  .svgchart text{ font-size: 10px; }
  .listbtn{ padding: 11px 12px; }
  .hr-soft{ margin: 12px 0; }

  /* search bar stacks on very small screens */
  .search-row{ flex-direction: column; align-items: stretch; }
  #btnSearch{ width: 100%; }

  /* results list shouldn't eat the whole screen */
  #resultsList{ max-height: 40vh !important; }
}

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

/* --- Allow grid children to shrink (prevents min-content overflow / width expansion) --- */
.weather-grid > *, .metric-grid > *, .card-row > * { min-width: 0; }
