/* ================= THỜI TIẾT, ĐƠN ĐẶT HÀNG, ĐẶC SẢN, THANH KHU PHỐ ================= */

/* Thanh khu phố gọn cho 6 khu */
.district-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.district-bar::-webkit-scrollbar { display: none; }
.dist-btn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 5px 11px 5px 11px; }
.dist-btn .db-icon { font-size: 13px; }
.dist-btn small { font-size: 10px; font-weight: 800; opacity: .85; margin-left: 2px; }

/* Cụm tiện ích trên phố (trên nút Trò chuyện) */
.street-widgets {
  position: absolute; left: 12px; bottom: 62px; z-index: 3;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  line-height: normal;
}
.sw-btn {
  position: relative;
  display: flex; align-items: center; gap: 7px;
  min-width: 150px;
  padding: 5px 12px 5px 6px;
  font-family: inherit; text-align: left; cursor: pointer;
  background: rgba(255, 253, 246, 0.95);
  border: 2.5px solid var(--outline); border-radius: 14px;
  box-shadow: 0 3px 0 var(--outline), 0 6px 14px rgba(0,0,0,.18);
  transition: transform .12s;
}
.sw-btn:hover { transform: translateY(-2px); }
.sw-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; border-radius: 10px; background: #fff3bf; border: 2px solid var(--outline);
}
.sw-text { display: flex; flex-direction: column; }
.sw-text b { font-size: 13px; font-weight: 900; }
.sw-text small { font-size: 11px; color: var(--muted); font-weight: 700; }
.sw-weather.w-mua_rao .sw-icon { background: #d0ebff; }
.sw-weather.w-nang_nong .sw-icon { background: #ffd8a8; }
.sw-weather.w-gio_mat .sw-icon { background: #d3f9d8; }
.sw-weather.w-ngay_hoi .sw-icon { background: #ffdeeb; }
.sw-orders .sw-icon { background: #e7f5ff; }
.sw-orders.has-ready { border-color: #2b8a3e; animation: ready-glow 1.4s ease-in-out infinite; }
.sw-orders.has-ready .sw-text small { color: #2b8a3e; }
.sw-badge {
  position: absolute; top: -8px; right: -8px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: #fff;
  background: var(--danger); border: 2px solid #fff; border-radius: 99px;
}

/* Nhãn trong Chợ Đầu Mối */
.tag-spec, .tag-hot, .tag-cold {
  display: inline-block; font-size: 10px; font-weight: 900; border-radius: 6px; padding: 1px 6px; vertical-align: 2px; white-space: nowrap;
}
.tag-spec { color: #7a5500; background: #fff3bf; border: 1.5px solid #fab005; }
.tag-hot { color: #a61e4d; background: #ffe3e3; border: 1.5px solid #ff8787; }
.tag-cold { color: #1864ab; background: #e7f5ff; border: 1.5px solid #74c0fc; }

/* Bảng đơn đặt hàng */
.order-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.order-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px;
  background: #fff; border: 2.5px solid var(--outline); border-radius: 16px;
  box-shadow: 0 3px 0 var(--outline);
}
.order-card.ready { background: #ebfbee; border-color: #2b8a3e; box-shadow: 0 3px 0 #2b8a3e; }
.od-client { display: flex; align-items: center; gap: 9px; }
.od-client > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.od-client b { font-size: 14.5px; }
.od-client small { color: var(--muted); font-size: 12px; font-style: italic; }
.od-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: #fff9db; border: 2px solid var(--outline); border-radius: 12px; }
.od-time { font-size: 12px; font-weight: 900; background: #f1f3f5; border-radius: 99px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.od-time.urgent { background: #ffe3e3; color: #c92a2a; }
.od-items { display: flex; flex-direction: column; gap: 4px; }
.od-item { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 9px; font-size: 13px; font-weight: 700; }
.od-item.ok { background: #d3f9d8; }
.od-item.lack { background: #fff4e6; }
.odi-icon { font-size: 18px; }
.odi-qty { font-weight: 900; font-variant-numeric: tabular-nums; }
.od-item.lack .odi-qty { color: #d9480f; }
.od-item.ok .odi-qty { color: #2b8a3e; }
.od-reward { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; }
.od-actions { display: flex; gap: 6px; }
.od-actions .btn:first-child { flex: 1; }
.od-next { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* Thời tiết */
.weather-now {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 8px;
  border: 2.5px solid var(--outline); border-radius: 16px; box-shadow: 0 3px 0 var(--outline);
  background: linear-gradient(90deg, #fff9db, #fff);
}
.weather-now.w-mua_rao { background: linear-gradient(90deg, #d0ebff, #fff); }
.weather-now.w-nang_nong { background: linear-gradient(90deg, #ffd8a8, #fff); }
.weather-now.w-gio_mat { background: linear-gradient(90deg, #d3f9d8, #fff); }
.weather-now.w-ngay_hoi { background: linear-gradient(90deg, #ffdeeb, #fff); }
.wn-icon { font-size: 46px; }
.wn-name { font-size: 20px; font-weight: 900; }
.wn-desc { font-size: 13px; color: #495057; margin: 2px 0; }
.wn-time { font-size: 12.5px; }
.wf-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wf { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #f1f3f5; border: 1.5px solid #dee2e6; }
.wf.up { background: #ebfbee; border-color: #69db7c; color: #2b8a3e; }
.wf.down { background: #fff5f5; border-color: #ffa8a8; color: #c92a2a; }

@media (max-width: 760px) {
  .street-widgets { bottom: 58px; }
  .sw-btn { min-width: 0; padding-right: 8px; }
  .sw-text small { display: none; }
  .order-list { grid-template-columns: 1fr; }
}
