/* =============================================================
   ============================================================= */

/* ============================================================
   HOME PAGE COMPONENTS – [wpp_home] [wpp_featured_cities] [wpp_provinces_list]
   ============================================================ */

/* ── Notice ── */
.wpp-notice {
  padding: 16px 20px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  color: #856404;
  font-size: 14px;
  margin: 16px 0;
}

/* ── Wrapper toàn bộ phần thời tiết trang chủ ── */
.wpp-home-weather-wrap {
  font-family: 'Be Vietnam Pro', -apple-system, 'Segoe UI', sans-serif;
}

/* ── Tab nav (Hôm nay / Hàng giờ / 3 ngày…) ── */
.wpp-home-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 0 12px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  margin-bottom: 0;
}
.wpp-home-tab {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none !important;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: all .18s;
}
.wpp-home-tab:hover,
.wpp-home-tab.active {
  background: rgba(255,255,255,0.95) !important;
  color: #0d47a1 !important;
  border-color: transparent !important;
  text-decoration: none !important;
}

/* ── [wpp_city_links] – tab nav forecast links (giống wpp-home-tab-nav) ── */
.wpp-city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 0 12px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  margin-bottom: 0;
}
.wpp-city-link {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none !important;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: all .18s;
}
.wpp-city-link:hover {
  background: rgba(255,255,255,0.95) !important;
  color: #0d47a1 !important;
  border-color: transparent !important;
  text-decoration: none !important;
}
@media (max-width: 767px) {
    .wpp-city-links {
        display: flex;
        flex-wrap: nowrap;         
        overflow-x: auto;           
        -webkit-overflow-scrolling: touch; 
        gap: 10px;
        padding-bottom: 5px;

        /* Ẩn thanh scroll (tuỳ chọn) */
        scrollbar-width: none;      /* Firefox */
    }

    .wpp-city-links::-webkit-scrollbar {
        display: none;             
    }

    .wpp-city-link {
        flex: 0 0 auto;             
        white-space: nowrap;       

    }
}
/* ── Hero: "Thời tiết hôm nay" – không có background riêng, dùng nền xanh của .tt-home-weather-section ── */
.wpp-home-hero {
  padding: 20px 0 28px;
  background: none !important;
}
.wpp-home-hero-inner {
  position: relative;
}
.wpp-home-hero-title {
  color: #fff !important;
  font-size: clamp(20px, 3vw, 28px) !important;
  font-weight: 800 !important;
  margin: 0 0 20px !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.wpp-home-hero-cols {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.wpp-home-hero-left {
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════════════════════════
   CARD HÔM NAY – style tham khảo thoitiet24h.vn
   ══════════════════════════════════════════════════════════════ */
.wpp-home-cur-card {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 18px 20px 14px;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-sizing: border-box;
}

/* Header */
.wpp-home-cur-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.wpp-home-cur-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  opacity: .9;
}
.wpp-home-cur-hdr-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.wpp-home-cur-date-badge {
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.wpp-home-cur-detail-link {
  font-size: 11px;
  color: rgba(255,255,255,0.82) !important;
  text-decoration: none !important;
  font-weight: 500;
}
.wpp-home-cur-detail-link:hover { color: #fff !important; text-decoration: underline !important; }

/* Body: icon trái + info phải */
.wpp-home-cur-body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.wpp-home-cur-icon-wrap svg { width: 88px; height: 88px; flex-shrink: 0; max-width: 100%; }
.wpp-home-cur-info { flex: 1; }
.wpp-home-cur-desc-text { font-size: 14px; opacity: .85; margin-bottom: 4px; }
.wpp-home-cur-temp-big {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.wpp-home-cur-temp-big sup { font-size: 24px; vertical-align: super; }
.wpp-home-cur-subinfo { font-size: 12px; opacity: .82; margin-bottom: 6px; }
.wpp-home-cur-precip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: .82;
}
.wpp-sep { opacity: .45; }

/* Footer stats – 1 hàng ngang */
.wpp-home-cur-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  background: rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 10px 14px;
}
.wpp-stat-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.wpp-stat-lbl { font-size: 10px; opacity: .65; }
.wpp-stat-val { font-size: 12px; font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   3 CARD NGÀY KẾ TIẾP – xếp NGANG (3 cột)
   ══════════════════════════════════════════════════════════════ */
.wpp-home-hero-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: 100%;
  align-items: stretch;
}
.wpp-home-day-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 18px 10px 14px;
  text-decoration: none !important;
  color: #fff !important;
  text-align: center;
  transition: background .18s, transform .18s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-sizing: border-box;
}
.wpp-home-day-card:hover {
  background: rgba(255,255,255,0.22) !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}
.wpp-home-day-date { font-size: 12px; font-weight: 700; opacity: .92; }
.wpp-home-day-icon svg { width: 54px; height: 54px; }
.wpp-home-day-desc { font-size: 12px; opacity: .88; line-height: 1.3; }
.wpp-home-day-temps { font-size: 14px; font-weight: 700; }
.wpp-home-day-min { opacity: .72; }
.wpp-home-day-rain-mm  { font-size: 11px; opacity: .82; }
.wpp-home-day-rain-prob{ font-size: 11px; opacity: .82; }

/* ── Các section (Theo giờ / 30 ngày) ── */
.wpp-home-section {
  margin-top: 28px;
}
.wpp-home-section-title {
  font-size: clamp(18px, 2.5vw, 22px) !important;
  font-weight: 800 !important;
  color: #0d47a1 !important;
  margin: 0 0 16px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wpp-home-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: #1565c0;
  border-radius: 2px;
}
.wpp-home-hourly-box { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 12px rgba(13,71,161,.08); }
.wpp-section-header-link a { font-size: 14px; font-weight: 600; color: #1565c0; text-decoration: none; }
.wpp-section-header-link a:hover { text-decoration: underline; }

/* ── Widget section trên trang chủ (nền xanh gradient wrap) ── */
.tt-home-weather-section {
  background: linear-gradient(160deg,#1565c0 0%,#1976d2 45%,#1e88e5 100%);
  padding: 0 0 32px;
}
.tt-home-weather-section .wpp-home-tab-nav { padding: 14px 0; }

/* ═══════════════════════════════════════════════════════════════
   [wpp_featured_cities] – Lưới tỉnh/thành nổi bật
   ═══════════════════════════════════════════════════════════════ */
.wpp-featured-cities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.wpp-fc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px 16px;
  background: linear-gradient(160deg,#1565c0 0%,#1976d2 100%);
  border-radius: 14px;
  text-decoration: none !important;
  color: #fff !important;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 12px rgba(13,71,161,.18);
}
.wpp-fc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(13,71,161,.30);
  text-decoration: none !important;
}
.wpp-fc-icon svg { width: 64px; height: 64px; }
.wpp-fc-name { font-size: 14px; font-weight: 800; color: #fff !important; }
.wpp-fc-temp { font-size: 26px; font-weight: 800; color: #fff !important; line-height: 1.1; }
.wpp-fc-rain { font-size: 12px; opacity: .85; }
.wpp-fc-mm   { font-size: 12px; opacity: .85; }
.wpp-fc-desc { font-size: 11px; opacity: .80; }
.wpp-fc-range{ font-size: 11px; opacity: .75; }

@media (max-width: 900px) {
  .wpp-featured-cities-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .wpp-home-hero-cols { grid-template-columns: 1fr; }
  .wpp-home-hero-right { grid-template-columns: repeat(3, 1fr); }
  .wpp-home-cur-stats-row { gap: 4px 12px; }
}
@media (max-width: 600px) {
  .wpp-featured-cities-grid { grid-template-columns: repeat(2, 1fr); }
  .wpp-home-hero-right { grid-template-columns: repeat(3, 1fr); }
  .wpp-home-day-card { padding: 12px 6px; }
  .wpp-home-day-icon svg { width: 42px; height: 42px; }
}

/* ═══════════════════════════════════════════════════════════════
   [wpp_provinces_list] – Danh sách tỉnh/thành
   ═══════════════════════════════════════════════════════════════ */
.wpp-prov-list-wrap { }

.wpp-prov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 0;
}

.wpp-prov-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #1a2332;
  text-decoration: none !important;
  border-bottom: 1px solid #e8f0fa;
  transition: background .15s, color .15s;
  font-size: 13px;
  font-weight: 500;
}
.wpp-prov-item:hover {
  background: #f0f6ff;
  color: #1565c0 !important;
  text-decoration: none !important;
}
.wpp-prov-icon { display: flex; align-items: center; flex-shrink: 0; }
.wpp-prov-icon svg { width: 36px; height: 36px; }
.wpp-prov-name { flex: 1; }

.wpp-prov-actions {
  text-align: center;
  margin-top: 20px;
}
.wpp-prov-btn-more,
.wpp-prov-btn-less {
  display: inline-block;
  padding: 10px 32px;
  background: #1565c0;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s;
}
.wpp-prov-btn-more:hover,
.wpp-prov-btn-less:hover { background: #0d47a1; }

@media (max-width: 768px) {
  .wpp-prov-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .wpp-prov-grid { grid-template-columns: 1fr; }
  .wpp-featured-cities-grid { grid-template-columns: repeat(2, 1fr); }
}

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

/* ============================================================
   RESET & BASE
   ============================================================ */
.wpp-app {
  --wpp-navy:       #0d47a1;
  --wpp-blue:       #1565c0;
  --wpp-blue-mid:   #1976d2;
  --wpp-blue-light: #42a5f5;
  --wpp-sky:        #64b5f6;
  --wpp-white:      #ffffff;
  --wpp-bg:         #edf2f9;
  --wpp-card-bg:    #ffffff;
  --wpp-text:       #1a2332;
  --wpp-text-muted: #546e7a;
  --wpp-text-light: #90a4ae;
  --wpp-border:     #d8e6f3;
  --wpp-radius:     10px;
  --wpp-radius-sm:  6px;
  --wpp-shadow:     0 4px 20px rgba(13,71,161,0.13), 0 1px 4px rgba(0,0,0,0.06);
  --wpp-shadow-sm:  0 1px 8px rgba(13,71,161,0.08);
  --wpp-trans:      all 0.20s ease;
  font-family: 'Be Vietnam Pro', -apple-system, 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--wpp-text) !important;
  background: var(--wpp-bg) !important;
  border-radius: var(--wpp-radius) !important;
  overflow: hidden !important;
  box-shadow: var(--wpp-shadow) !important;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box !important;
  max-width: 100% !important;
  display: block !important;
}
.wpp-app *, .wpp-app *::before, .wpp-app *::after {
  box-sizing: border-box !important;
  font-family: 'Be Vietnam Pro', -apple-system, 'Segoe UI', sans-serif !important;
}

/* Dark theme */
.wpp-theme-dark {
  --wpp-navy:       #1565c0;
  --wpp-bg:         #0b1622;
  --wpp-card-bg:    #112035;
  --wpp-text:       #dce8f5;
  --wpp-text-muted: #7a9dbc;
  --wpp-border:     #1e3550;
}

/* ============================================================
   ERROR
   ============================================================ */
.wpp-error-state {
  padding: 60px 24px !important;
  text-align: center !important;
  background: var(--wpp-bg) !important;
}
.wpp-error-icon {
  width: 52px; height: 52px; background: #fee2e2;
  border-radius: 50%; display: flex !important; align-items: center; justify-content: center;
  margin: 0 auto 14px; color: #ef4444;
}
.wpp-error-icon svg { width: 24px; height: 24px; }
.wpp-error-state h3 { font-size: 16px !important; font-weight: 700 !important; margin: 0 0 6px !important; color: var(--wpp-text) !important; }
.wpp-error-message { color: var(--wpp-text-muted) !important; font-size: 13px !important; margin: 0 0 16px !important; }
.wpp-btn-retry {
  background: var(--wpp-blue) !important; color: #fff !important; border: none !important;
  border-radius: 7px !important; padding: 9px 22px !important;
  font-size: 14px !important; font-weight: 600 !important; cursor: pointer !important;
}
.wpp-btn-retry:hover { background: var(--wpp-blue-mid) !important; }

/* ============================================================
   CONTENT WRAPPER
   ============================================================ */
.wpp-content { background: var(--wpp-bg) !important; padding-bottom: 12px !important; }
.wpp-content[hidden] { display: none !important; }
.wpp-content.wpp-initializing { visibility: hidden !important; pointer-events: none !important; }
.wpp-content:not(.wpp-initializing) { visibility: visible !important; }

/* Ẩn toàn bộ khung (bg, shadow, border-radius) khi chưa có dữ liệu */
.wpp-app:has(.wpp-content.wpp-initializing) {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-height: 0 !important;
}

/* ============================================================
   HEADER BAR – xanh đậm như thoitiet24h.vn
   ============================================================ */
.wpp-header-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  background: linear-gradient(90deg, #0d47a1 0%, #1565c0 55%, #1976d2 100%) !important;
  padding: 11px 16px !important;
  border-bottom: 2px solid rgba(66,165,245,0.45) !important;
}
.wpp-header-left {
  display: flex !important; flex-direction: column !important; gap: 2px !important;
}
.wpp-city-display {
  display: flex !important; align-items: center !important; gap: 7px !important;
  font-size: 15px !important; font-weight: 700 !important; color: #fff !important;
  text-shadow: none !important;
}
.wpp-pin { width: 14px !important; height: 14px !important; flex-shrink: 0 !important; color: #80d8ff !important; }
.wpp-city-name { color: #fff !important; line-height: 1.2 !important; }
.wpp-header-right { display: flex !important; align-items: flex-end !important; flex-direction: column !important; gap: 4px !important; }
.wpp-datetime-display { display: flex !important; flex-direction: column !important; align-items: flex-end !important; gap: 2px !important; }
.wpp-date {
  font-size: 12px !important; font-weight: 600 !important; color: #fff !important;
  background: rgba(255,255,255,0.18) !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  border-radius: 20px !important; padding: 3px 13px !important; white-space: nowrap !important;
}
.wpp-time {
  font-size: 11px !important; color: rgba(255,255,255,0.68) !important;
  font-weight: 500 !important; text-align: right !important;
}

/* Search / unit controls */
.wpp-search-wrap {
  display: flex !important; align-items: center !important;
  background: rgba(255,255,255,0.13) !important;
  border: 1px solid rgba(255,255,255,0.24) !important;
  border-radius: 7px !important; overflow: hidden !important;
}
.wpp-search-input {
  background: transparent !important; border: none !important; outline: none !important;
  color: #fff !important; padding: 6px 10px !important; font-size: 13px !important; width: 175px !important;
}
.wpp-search-input::placeholder { color: rgba(255,255,255,0.52) !important; }
.wpp-search-btn, .wpp-geo-btn {
  background: rgba(255,255,255,0.16) !important; border: none !important;
  padding: 6px 10px !important; cursor: pointer !important; color: #fff !important;
  display: flex !important; align-items: center !important;
}
.wpp-search-btn:hover, .wpp-geo-btn:hover { background: rgba(255,255,255,0.28) !important; }
.wpp-search-btn svg, .wpp-geo-btn svg { width: 14px; height: 14px; }
.wpp-geo-btn { border-left: 1px solid rgba(255,255,255,0.18) !important; }
.wpp-units-toggle { display: flex !important; background: rgba(255,255,255,0.13) !important; border-radius: 6px !important; overflow: hidden !important; }
.wpp-unit-btn {
  background: transparent !important; border: none !important; color: rgba(255,255,255,0.72) !important;
  padding: 5px 12px !important; cursor: pointer !important; font-size: 13px !important; font-weight: 600 !important;
}
.wpp-unit-btn.active { background: rgba(255,255,255,0.26) !important; color: #fff !important; }

/* ============================================================
   CURRENT WEATHER CARD – nền xanh đậm rõ ràng
   ============================================================ */
.wpp-current-card {
  position: relative !important;
  overflow: hidden !important;
  padding: 22px 20px 18px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  /* Default fallback */
  background: linear-gradient(145deg, #1565c0 0%, #1e88e5 50%, #29b6f6 100%) !important;
}

/* BG classes – dùng !important để override theme */
.wpp-current-card.wpp-bg-clear {
  background: linear-gradient(145deg, #1565c0 0%, #1e88e5 50%, #29b6f6 100%) !important;
}
.wpp-current-card.wpp-bg-cloudy {
  background: linear-gradient(145deg, #37474f 0%, #546e7a 52%, #78909c 100%) !important;
}
.wpp-current-card.wpp-bg-rain {
  background: linear-gradient(145deg, #0d2d5e 0%, #1a4a8a 52%, #1976d2 100%) !important;
}
.wpp-current-card.wpp-bg-storm {
  background: linear-gradient(145deg, #0a1a30 0%, #1a2a50 52%, #263060 100%) !important;
}
.wpp-current-card.wpp-bg-snow {
  background: linear-gradient(145deg, #4a7fa5 0%, #6baed6 52%, #9ecae1 100%) !important;
}
.wpp-current-card.wpp-bg-fog {
  background: linear-gradient(145deg, #546e7a 0%, #78909c 52%, #b0bec5 100%) !important;
}
.wpp-current-card.wpp-bg-night {
  background: linear-gradient(145deg, #0a1628 0%, #0d2040 52%, #102a55 100%) !important;
}

/* Decorative blobs */
.wpp-current-card::before {
  content: '' !important; position: absolute !important;
  bottom: -40px; right: -30px;
  width: 210px; height: 210px;
  background: rgba(255,255,255,0.07) !important; border-radius: 50% !important; pointer-events: none;
}
.wpp-current-card::after {
  content: '' !important; position: absolute !important;
  top: -45px; right: 60px;
  width: 130px; height: 130px;
  background: rgba(255,255,255,0.05) !important; border-radius: 50% !important; pointer-events: none;
}

/* Current main row */
.wpp-current-main {
  display: flex !important; align-items: flex-start !important;
  flex-direction: column !important; gap: 4px !important; flex: 1 !important;
}
.wpp-current-icon-wrap { flex-shrink: 0 !important; }
.wpp-current-icon {
  width: 90px !important; height: 90px !important;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.25)) !important;
}
.wpp-current-icon svg { width: 100% !important; height: 100% !important; }

/* Temperature */
.wpp-current-temp-block { color: #fff !important; }
.wpp-temp-big { display: flex !important; align-items: flex-start !important; line-height: 1 !important; margin-bottom: 5px !important; }
.wpp-temp-value {
  font-size: 72px !important; font-weight: 800 !important; letter-spacing: -2px !important;
  color: #fff !important; text-shadow: 0 2px 16px rgba(0,0,0,0.22) !important;
}
.wpp-temp-unit  { font-size: 28px !important; font-weight: 600 !important; margin-top: 8px !important; color: #fff !important; }
.wpp-temp-range { font-size: 13px !important; color: rgba(255,255,255,0.82) !important; margin-bottom: 4px !important; }
.wpp-temp-max-label, .wpp-temp-min-label { color: rgba(255,255,255,0.60) !important; font-size: 13px !important; }
.wpp-temp-max  { font-weight: 700 !important; color: #ffd740 !important; }
.wpp-temp-min  { font-weight: 700 !important; color: #80deea !important; }
.wpp-feels-like { font-size: 12px !important; color: rgba(255,255,255,0.74) !important; margin-bottom: 5px !important; }
.wpp-feels-value { font-weight: 600 !important; color: rgba(255,255,255,0.90) !important; }
.wpp-description { font-size: 15px !important; font-weight: 600 !important; color: #fff !important; }

/* Current top row: icon + info */
.wpp-current-top {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 18px !important;
}

/* Temp display block */
.wpp-temp-display {
  display: flex !important;
  align-items: flex-start !important;
  line-height: 1 !important;
  margin-bottom: 5px !important;
}

/* Feels like – renderer uses .wpp-feels (not .wpp-feels-like) */
.wpp-feels {
  font-size: 12px !important;
  color: rgba(255,255,255,0.74) !important;
  margin-bottom: 5px !important;
}

/* Stats grid 3 cột – renderer outputs .wpp-stats-grid */
.wpp-stats-row,
.wpp-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}
/* Second stats row (áp suất / sunrise / sunset) */
.wpp-stats-grid-2 {
  margin-bottom: 0 !important;
}
.wpp-stat {
  background: rgba(0,0,0,0.18) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  display: flex !important; flex-direction: row !important;
  align-items: center !important; gap: 8px !important; color: #fff !important;
}
.wpp-stat > div { display: flex !important; flex-direction: column !important; gap: 2px !important; }
.wpp-stat svg { width: 16px !important; height: 16px !important; flex-shrink: 0 !important; opacity: 0.80 !important; color: #80d8ff !important; stroke: #80d8ff !important; }
.wpp-stat-label {
  font-size: 10px !important; text-transform: uppercase !important;
  letter-spacing: .05em !important; color: rgba(255,255,255,0.60) !important;
}
.wpp-stat-val { font-size: 14px !important; font-weight: 700 !important; color: #fff !important; }

/* Updated row – renderer uses .wpp-updated-row / .wpp-updated-time */
.wpp-updated-bar,
.wpp-updated-row {
  font-size: 11px !important; color: rgba(255,255,255,0.45) !important;
  text-align: right !important; padding-top: 6px !important;
}
.wpp-updated-time { font-size: 11px !important; color: rgba(255,255,255,0.45) !important; }

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
.wpp-section {
  background: var(--wpp-card-bg) !important;
  border-radius: var(--wpp-radius) !important;
  box-shadow: 0 1px 8px rgba(13,71,161,0.08) !important;
  border: 1px solid var(--wpp-border) !important;
  margin: 10px 10px 0 !important;
  overflow: hidden !important;
}
.wpp-section-header {
  display: flex !important; align-items: center !important; gap: 8px !important;
  padding: 11px 16px 10px !important;
  font-size: 13px !important; font-weight: 700 !important; color: var(--wpp-navy) !important;
  border-bottom: 2px solid var(--wpp-navy) !important;
  background: linear-gradient(90deg, rgba(13,71,161,0.07) 0%, transparent 100%) !important;
  text-shadow: none !important;
}
.wpp-section-header svg { width: 15px !important; height: 15px !important; color: var(--wpp-navy) !important; stroke: var(--wpp-navy) !important; }
.wpp-section-header span { color: var(--wpp-navy) !important; }

/* ============================================================
   HOURLY
   ============================================================ */
.wpp-hourly-scroll {
  overflow-x: auto !important; padding: 12px 14px !important;
  scrollbar-width: thin; scrollbar-color: var(--wpp-border) transparent;
}
.wpp-hourly-scroll::-webkit-scrollbar { height: 4px; }
.wpp-hourly-scroll::-webkit-scrollbar-thumb { background: var(--wpp-border); border-radius: 4px; }
.wpp-hourly-track { display: flex !important; gap: 6px !important; width: max-content !important; }

.wpp-hourly-item {
  display: flex !important; flex-direction: column !important;
  align-items: center !important; gap: 4px !important;
  min-width: 66px !important; background: #f5f8fd !important;
  border: 1px solid var(--wpp-border) !important;
  border-radius: 9px !important; padding: 9px 7px !important;
  text-align: center !important;
}
.wpp-hourly-item:hover, .wpp-hourly-item.is-now {
  background: var(--wpp-navy) !important; color: #fff !important;
  border-color: var(--wpp-navy) !important;
}
.wpp-hourly-item.is-now .wpp-hourly-time { color: rgba(255,255,255,0.72) !important; }
.wpp-hourly-icon { width: 34px !important; height: 34px !important; }
.wpp-hourly-icon svg { width: 100% !important; height: 100% !important; }
.wpp-hourly-temp { font-size: 13px !important; font-weight: 700 !important; color: var(--wpp-text) !important; }
.wpp-hourly-item:hover .wpp-hourly-temp,
.wpp-hourly-item.is-now .wpp-hourly-temp { color: #fff !important; }
.wpp-hourly-rain { font-size: 11px !important; color: #42a5f5 !important; }
.wpp-hourly-item:hover .wpp-hourly-rain,
.wpp-hourly-item.is-now .wpp-hourly-rain { color: #90caf9 !important; }

/* Hourly chart */
.wpp-hourly-fullwidth { width: 100% !important; overflow: hidden !important; min-width: 0 !important; box-sizing: border-box !important; }
.wpp-hourly-chart-wrap {
  padding: 0 14px 14px !important; overflow: visible !important;
}
.wpp-hourly-top-row { display: grid !important; padding: 10px 14px 0 !important; overflow: visible !important; }
.wpp-hourly-col { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 3px !important; padding: 5px 2px !important; min-width: 0 !important; }
.wpp-hourly-col .wpp-hcol-time { font-size: 11px !important; font-weight: 700 !important; color: var(--wpp-text-muted) !important; }
.wpp-hourly-col .wpp-hcol-icon { width: 30px !important; height: 30px !important; }
.wpp-hourly-col .wpp-hcol-icon svg { width: 100% !important; height: 100% !important; }
.wpp-hourly-rain-row, .wpp-hourly-mm-row { display: grid !important; padding: 3px 14px !important; overflow: visible !important; width: 100% !important; }
.wpp-hourly-rain-col, .wpp-hourly-mm-col {
  display: flex !important; flex-direction: column !important;
  align-items: center !important; gap: 2px !important;
  min-width: 60px !important; font-size: 11px !important; color: var(--wpp-text-muted) !important;
}
.wpp-hourly-rain-col .wpp-rain-icon { width: 22px !important; height: 22px !important; }

/* Desktop: hiện 10 mốc, ẩn 5 mốc */
.wpp-hourly-mobile  { display: none !important; }
.wpp-hourly-desktop { display: block !important; }

/* Mobile: ẩn 10 mốc, hiện 5 mốc */
@media (max-width: 600px) {
  .wpp-hourly-desktop { display: none !important; }
  .wpp-hourly-mobile  { display: block !important; }
}

/* ============================================================
   DAILY
   ============================================================ */
.wpp-daily-list { padding: 2px 0 !important; }

/* ── Daily Cards mode (≤ 7 ngày) ── */
/* ── Daily Cards Vertical (≤ 7 ngày) – xếp dọc như current-card ── */
.wpp-daily-cards-vertical {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 12px !important;
}

.wpp-daily-card-v {
  position: relative !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  color: #fff !important;
  padding: 16px 18px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  background: linear-gradient(145deg, #1565c0 0%, #1e88e5 50%, #29b6f6 100%) !important;
  box-shadow: 0 4px 18px rgba(13,71,161,0.22) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.wpp-daily-card-v:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 24px rgba(13,71,161,0.30) !important; }
.wpp-daily-card-v.wpp-dcv-today { outline: 2px solid rgba(255,255,255,0.55) !important; }
.wpp-daily-card-v.wpp-bg-cloudy { background: linear-gradient(145deg, #37474f 0%, #546e7a 52%, #78909c 100%) !important; }
.wpp-daily-card-v.wpp-bg-rain   { background: linear-gradient(145deg, #0d2d5e 0%, #1a4a8a 52%, #1976d2 100%) !important; }
.wpp-daily-card-v.wpp-bg-storm  { background: linear-gradient(145deg, #0a1a30 0%, #1a2a50 52%, #263060 100%) !important; }
.wpp-daily-card-v.wpp-bg-snow   { background: linear-gradient(145deg, #4a7fa5 0%, #6baed6 52%, #9ecae1 100%) !important; }
.wpp-daily-card-v.wpp-bg-fog    { background: linear-gradient(145deg, #546e7a 0%, #78909c 52%, #b0bec5 100%) !important; }
.wpp-daily-card-v.wpp-bg-night  { background: linear-gradient(145deg, #0a1628 0%, #0d2040 52%, #102a55 100%) !important; }
.wpp-daily-card-v.wpp-bg-clear  { background: linear-gradient(145deg, #1565c0 0%, #1e88e5 50%, #29b6f6 100%) !important; }

/* Deco blobs – tái sử dụng CSS của current-card */
.wpp-daily-card-v .wpp-card-deco-1,
.wpp-daily-card-v .wpp-card-deco-2 {
  position: absolute !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.06) !important;
  pointer-events: none !important;
}
.wpp-daily-card-v .wpp-card-deco-1 { width: 140px !important; height: 140px !important; top: -40px !important; right: -30px !important; }
.wpp-daily-card-v .wpp-card-deco-2 { width: 80px !important; height: 80px !important; bottom: -20px !important; left: 20px !important; }

/* Header: ngày | ngày/tháng */
.wpp-dcv-header-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  z-index: 1 !important;
}
.wpp-dcv-day-label  { font-size: 14px !important; font-weight: 700 !important; opacity: 0.95 !important; }
.wpp-dcv-date-label { font-size: 12px !important; opacity: 0.70 !important; }

/* Main row: icon + nhiệt độ + mô tả */
.wpp-dcv-top {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  position: relative !important;
  z-index: 1 !important;
}
.wpp-dcv-icon { width: 64px !important; height: 64px !important; flex-shrink: 0 !important; }
.wpp-dcv-icon svg { width: 100% !important; height: 100% !important; }
.wpp-dcv-main { display: flex !important; flex-direction: column !important; gap: 3px !important; }
.wpp-dcv-temp-display { display: flex !important; align-items: flex-start !important; line-height: 1 !important; }
.wpp-dcv-temp-value { font-size: 52px !important; font-weight: 800 !important; letter-spacing: -2px !important; color: #fff !important; }
.wpp-dcv-temp-unit  { font-size: 22px !important; font-weight: 600 !important; margin-top: 8px !important; color: #fff !important; }
.wpp-dcv-temp-range { font-size: 13px !important; color: rgba(255,255,255,0.82) !important; }
.wpp-dcv-temp-range strong { color: #fff !important; }
.wpp-dcv-feels { font-size: 12px !important; color: rgba(255,255,255,0.74) !important; }
.wpp-dcv-feels-value { font-weight: 600 !important; color: rgba(255,255,255,0.90) !important; }
.wpp-dcv-desc { font-size: 15px !important; font-weight: 600 !important; color: #fff !important; }

/* Stats grid hàng 1 – 3 cột (Độ ẩm | Gió | Tầm nhìn) */
.wpp-dcv-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  background: rgba(0,0,0,0.18) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  position: relative !important;
  z-index: 1 !important;
}
/* Stats grid hàng 2 – Áp suất | Mọc | Lặn */
.wpp-dcv-stats-grid-2 { margin-top: 0 !important; }
.wpp-dcv-stat {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.wpp-dcv-stat svg { width: 18px !important; height: 18px !important; flex-shrink: 0 !important; opacity: 0.80 !important; }
.wpp-dcv-stat-val { font-size: 14px !important; font-weight: 700 !important; color: #fff !important; }
.wpp-dcv-stat-lbl { font-size: 10px !important; opacity: 0.65 !important; text-transform: uppercase !important; letter-spacing: 0.03em !important; color: #fff !important; }

/* Mobile */
@media (max-width: 600px) {
  .wpp-daily-cards-vertical { padding: 8px !important; gap: 8px !important; }
  .wpp-dcv-temp-value { font-size: 42px !important; }
  .wpp-dcv-icon { width: 52px !important; height: 52px !important; }
  .wpp-dcv-stat-val { font-size: 12px !important; }
}

/* ============================================================
   HOURLY ACCORDION (tab Hàng Giờ) – đồng bộ style với website
   ============================================================ */
.wpp-hourly-accordion-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 10px 12px !important;
}
/* Wrapper per giờ: màu nền theo thời tiết – giống daily cards */
.wpp-hourly-accordion-wrapper {
  border-radius: 12px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%) !important;
}
.wpp-hourly-accordion-wrapper.wpp-bg-clear  { background: linear-gradient(135deg, #1565c0 0%, #1e88e5 60%, #29b6f6 100%) !important; }
.wpp-hourly-accordion-wrapper.wpp-bg-cloudy { background: linear-gradient(135deg, #37474f 0%, #546e7a 100%) !important; }
.wpp-hourly-accordion-wrapper.wpp-bg-rain   { background: linear-gradient(135deg, #0d2d5e 0%, #1a4a8a 100%) !important; }
.wpp-hourly-accordion-wrapper.wpp-bg-storm  { background: linear-gradient(135deg, #0a1a30 0%, #1a2a50 100%) !important; }
.wpp-hourly-accordion-wrapper.wpp-bg-snow   { background: linear-gradient(135deg, #4a7fa5 0%, #6baed6 100%) !important; }
.wpp-hourly-accordion-wrapper.wpp-bg-fog    { background: linear-gradient(135deg, #546e7a 0%, #78909c 100%) !important; }
.wpp-hourly-accordion-wrapper.wpp-bg-night  { background: linear-gradient(135deg, #0a1628 0%, #0d2040 60%, #102a55 100%) !important; }

/* Row accordion – override wpp-daily-row defaults */
.wpp-hourly-accordion-wrapper .wpp-hourly-row {
  background: transparent !important;
  border-bottom-color: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  padding: 12px 16px !important;
  gap: 12px !important;
}
.wpp-hourly-accordion-wrapper .wpp-hourly-row:hover {
  background: rgba(255,255,255,0.08) !important;
}
.wpp-hourly-accordion-wrapper .wpp-hourly-row.is-open {
  border-bottom-color: rgba(255,255,255,0.18) !important;
}
.wpp-hourly-accordion-wrapper .wpp-hourly-row .wpp-daily-toggle {
  color: rgba(255,255,255,0.75) !important;
}
.wpp-hourly-accordion-wrapper .wpp-hourly-row .wpp-daily-icon-wrap {
  color: #fff !important;
}
.wpp-hourly-accordion-wrapper .wpp-hourly-row .wpp-daily-desc {
  color: rgba(255,255,255,0.85) !important;
  font-size: 13px !important;
}
/* Nhãn giờ */
.wpp-hourly-time {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
  white-space: nowrap !important;
  min-width: 130px !important;
}
/* Nhiệt độ */
.wpp-hourly-temp {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #fff !important;
  white-space: nowrap !important;
  min-width: 55px !important;
}
/* Mưa% + Gió */
.wpp-hourly-meta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-left: auto !important;
}
.wpp-hourly-rain,
.wpp-hourly-wind {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 13px !important;
  color: rgba(255,255,255,0.9) !important;
  white-space: nowrap !important;
}
/* Detail section */
.wpp-hourly-accordion-wrapper .wpp-hourly-detail {
  background: rgba(0,0,0,0.12) !important;
  border-top: 1px solid rgba(255,255,255,0.12) !important;
  padding: 14px 16px !important;
  color: #fff !important;
}
.wpp-hourly-accordion-wrapper .wpp-hourly-detail .wpp-detail-val {
  color: #fff !important;
}
.wpp-hourly-accordion-wrapper .wpp-hourly-detail .wpp-detail-lbl {
  color: rgba(255,255,255,0.65) !important;
}
.wpp-hourly-accordion-wrapper .wpp-hourly-detail .wpp-detail-icon svg {
  color: #fff !important;
  stroke: #fff !important;
}
/* Mobile */
@media (max-width: 600px) {
  .wpp-hourly-accordion-list { padding: 6px 8px !important; }
  .wpp-hourly-time { min-width: 110px !important; font-size: 13px !important; }
  .wpp-hourly-temp { font-size: 16px !important; }
  .wpp-hourly-meta { gap: 8px !important; }
}

.wpp-daily-row {
  display: flex !important; align-items: center !important;
  padding: 11px 16px !important; gap: 10px !important;
  border-bottom: 1px solid var(--wpp-border) !important;
  cursor: pointer !important; position: relative !important;
  background: transparent !important; transition: background 0.15s !important;
}
.wpp-daily-row:last-child { border-bottom: none !important; }
.wpp-daily-row:hover { background: #f0f6ff !important; }
.wpp-daily-row.is-today { background: #e6f0ff !important; }

.wpp-daily-day {
  min-width: 60px !important; font-size: 12px !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: .04em !important;
  color: var(--wpp-text-muted) !important;
}
.wpp-daily-row.is-today .wpp-daily-day { color: var(--wpp-navy) !important; }
.wpp-daily-icon-wrap { width: 30px !important; height: 30px !important; flex-shrink: 0 !important; }
.wpp-daily-icon-wrap svg { width: 100% !important; height: 100% !important; }
.wpp-daily-desc { flex: 1 !important; font-size: 12px !important; color: var(--wpp-text-muted) !important; }
.wpp-daily-temps { display: flex !important; align-items: center !important; gap: 6px !important; margin-left: auto !important; }
.wpp-daily-max { font-size: 14px !important; font-weight: 800 !important; color: var(--wpp-text) !important; }
.wpp-daily-min { font-size: 12px !important; color: var(--wpp-text-light) !important; }
.wpp-daily-rain { font-size: 11px !important; color: #1976d2 !important; min-width: 34px !important; text-align: right !important; }

.wpp-daily-toggle {
  width: 20px !important; height: 20px !important; flex-shrink: 0 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: var(--wpp-blue-light) !important; transition: transform 0.22s ease !important;
}
.wpp-daily-toggle svg { width: 13px !important; height: 13px !important; }
.wpp-daily-row.is-open .wpp-daily-toggle { transform: rotate(180deg) !important; }

.wpp-daily-detail {
  display: none !important;
  background: #f5f9ff !important;
  border-top: 1px solid var(--wpp-border) !important;
  padding: 12px 16px 14px !important;
}
.wpp-daily-detail.is-open { display: block !important; }

.wpp-detail-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
.wpp-detail-cell { display: flex !important; align-items: center !important; gap: 8px !important; }
.wpp-detail-cell-top { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
.wpp-detail-icon {
  width: 28px !important; height: 28px !important; flex-shrink: 0 !important;
  background: rgba(13,71,161,0.10) !important; border-radius: 7px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
}
.wpp-detail-icon svg { width: 14px !important; height: 14px !important; color: var(--wpp-navy) !important; stroke: var(--wpp-navy) !important; }
.wpp-detail-text { line-height: 1.2 !important; }
.wpp-detail-val { font-size: 14px !important; font-weight: 700 !important; color: var(--wpp-text) !important; }
.wpp-detail-lbl { font-size: 10px !important; color: var(--wpp-text-muted) !important; text-transform: uppercase !important; letter-spacing: .04em !important; }

/* ============================================================
   ACCORDION VIEW (7+ days)
   ============================================================ */
/* ============================================================
   WPP PLUGIN – Breadcrumb spacing
   ============================================================ */
.wpp-breadcrumb {
    margin-top: 18px !important;
}
/* Container */
.wpp-accordion-view {
  background: linear-gradient(160deg, #0d47a1 0%, #1565c0 50%, #1E85E3 100%) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  padding: 0 !important;
}

/* Mỗi row summary */
.wpp-accordion-view .wpp-daily-row {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  color: #fff !important;
  padding: 12px 16px !important;
  transition: background .15s !important;
}
.wpp-accordion-view .wpp-daily-row:last-child { border-bottom: none !important; }
.wpp-accordion-view .wpp-daily-row:hover { background: rgba(255,255,255,.08) !important; }

/* Row đang mở – nền sáng hơn */
.wpp-accordion-view .wpp-daily-row.is-open {
  background: rgba(255,255,255,.14) !important;
  border-bottom: 1px solid rgba(255,255,255,.2) !important;
}

/* Text trắng trong accordion */
.wpp-accordion-view .wpp-daily-day    { color: #fff !important; font-size: 13px !important; min-width: 80px !important; }
.wpp-accordion-view .wpp-daily-desc   { color: rgba(255,255,255,.85) !important; }
.wpp-accordion-view .wpp-daily-max    { color: #fff !important; font-size: 15px !important; }
.wpp-accordion-view .wpp-daily-min    { color: rgba(255,255,255,.7) !important; }
.wpp-accordion-view .wpp-daily-rain   { color: #90caf9 !important; }
.wpp-accordion-view .wpp-daily-toggle { color: rgba(255,255,255,.7) !important; }
.wpp-accordion-view .wpp-daily-icon-wrap svg { filter: brightness(10) !important; opacity: .9 !important; }

/* Panel chi tiết khi mở */
.wpp-accordion-view .wpp-daily-detail {
  background: rgba(255,255,255,.10) !important;
  border-top: 1px solid rgba(255,255,255,.15) !important;
  padding: 14px 16px 16px !important;
}
.wpp-accordion-view .wpp-daily-detail.is-open { display: block !important; }

/* Cells trong detail grid */
.wpp-accordion-view .wpp-detail-icon {
  background: rgba(255,255,255,.18) !important;
  border-radius: 8px !important;
}
.wpp-accordion-view .wpp-detail-icon svg { color: #fff !important; stroke: #fff !important; }
.wpp-accordion-view .wpp-detail-val   { color: #fff !important; font-size: 14px !important; }
.wpp-accordion-view .wpp-detail-lbl   { color: rgba(255,255,255,.65) !important; }

/* ============================================================
   DOUBLE FORECAST NAV (nav ở dưới danh sách ngày)
   ============================================================ */
.wpp-forecast-nav-bottom {
  border-top: 1px solid var(--wpp-border) !important;
  padding-top: 4px !important;
}
.wpp-forecast-nav-bottom .wpp-forecast-nav {
  border-bottom: none !important;
}

/* ============================================================
   DARK THEME OVERRIDES
   ============================================================ */
.wpp-theme-dark .wpp-section { background: var(--wpp-card-bg) !important; }
.wpp-theme-dark .wpp-daily-row:hover { background: rgba(255,255,255,0.04) !important; }
.wpp-theme-dark .wpp-daily-row.is-today { background: rgba(13,71,161,0.22) !important; }
.wpp-theme-dark .wpp-daily-detail { background: rgba(0,0,0,0.15) !important; }
.wpp-theme-dark .wpp-hourly-item { background: rgba(255,255,255,0.05) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .wpp-current-main { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }
  .wpp-temp-value { font-size: 58px !important; }
  .wpp-stats-row,
  .wpp-stats-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .wpp-daily-row { flex-wrap: wrap !important; gap: 7px !important; }
  .wpp-daily-desc { display: none !important; }
  .wpp-detail-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .wpp-section { margin: 8px 8px 0 !important; }
  .wpp-stat { padding: 8px 8px !important; gap: 5px !important; }
  .wpp-stat-val { font-size: 12px !important; }
  .wpp-stat-label { font-size: 9px !important; }
  .wpp-stat svg { width: 14px !important; height: 14px !important; }
}
@media (max-width: 400px) {
  .wpp-temp-value { font-size: 50px !important; }
  .wpp-stats-row,
  .wpp-stats-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .wpp-daily-temps { flex-direction: column !important; gap: 0 !important; }
}

/* ============================================================
   FORECAST NAVIGATION LINKS (Hôm nay / 3 ngày / 5 ngày …)
   ============================================================ */
.wpp-forecast-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  padding: 10px 14px 8px !important;
  border-bottom: 1px solid var(--wpp-border, #e3edf9) !important;
  background: transparent !important;
}
.wpp-forecast-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 14px !important;
  border-radius: 20px !important;
  border: 1.5px solid var(--wpp-primary, #1565c0) !important;
  background: transparent !important;
  color: var(--wpp-primary, #1565c0) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transition: background 0.15s, color 0.15s !important;
  cursor: pointer !important;
}
.wpp-forecast-link:hover {
  background: rgba(21,101,192,0.08) !important;
  text-decoration: none !important;
  color: var(--wpp-primary, #1565c0) !important;
}
.wpp-forecast-link.is-active {
  background: var(--wpp-primary, #1565c0) !important;
  color: #fff !important;
  pointer-events: none !important;
}
/* Dark theme */
.wpp-theme-dark .wpp-forecast-nav { border-bottom-color: rgba(255,255,255,0.08) !important; }
.wpp-theme-dark .wpp-forecast-link { border-color: #90caf9 !important; color: #90caf9 !important; }
.wpp-theme-dark .wpp-forecast-link.is-active { background: #1565c0 !important; color: #fff !important; border-color: #1565c0 !important; }
@media (max-width: 400px) {
  .wpp-forecast-link { font-size: 11px !important; padding: 4px 10px !important; }
}

/* ============================================================
   TWO-COLUMN WHITE CONTENT SECTION
   Bắt đầu từ hourly trở xuống: nền trắng, 2 cột (main + sidebar)
   ============================================================ */

.tt-content-section {
  background: #f5f7fa;
  padding: 28px 0 40px;
}

/* Grid 2 cột: main chiếm ~66%, sidebar ~33% */
.tt-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* CRITICAL: min-width:0 để grid item không vượt quá track width */
.tt-col-main,
.tt-col-sidebar {
  min-width: 0;
  width: 100%;
}

/* ── Block chung (cột main) ─────────────────────────────── */
.wpp-block {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  margin-bottom: 20px;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.wpp-block:last-child { margin-bottom: 0; }

.wpp-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid #e8eef5;
}
.wpp-block-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1565c0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.wpp-block-link {
  font-size: 12px;
  color: #1565c0;
  text-decoration: none;
  white-space: nowrap;
  opacity: .8;
}
.wpp-block-link:hover { opacity: 1; text-decoration: underline; }

/* Hourly và daily block: padding nội dung */
.wpp-hourly-block .wpp-hourly-wrap,
.wpp-hourly-block .wpp-hourly-scroll {
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* Daily block: accordion tự có style riêng, không override */
.wpp-daily-block .wpp-forecast-nav {
  border-top: none !important;
  padding: 10px 16px 8px !important;
}
.wpp-daily-block .wpp-accordion-view {
  border-radius: 0 0 12px 12px !important;
  margin: 0 !important;
}

/* Featured cities block */
.wpp-featured-block .wpp-featured-cities-grid {
  padding: 14px 14px 6px;
}

/* Provinces block */
.wpp-provinces-block .wpp-prov-list-wrap { padding: 0 4px 14px; }
.wpp-provinces-block .tt-section-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1565c0 !important;
  padding: 14px 18px 10px !important;
  margin: 0 !important;
  border-bottom: 1px solid #e8eef5 !important;
}

/* Why block */
.wpp-why-block .tt-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 16px;
}
.wpp-why-block .tt-why-item {
  background: #f0f6ff;
  border-radius: 10px;
  padding: 14px 16px;
}
.wpp-why-block .tt-why-icon { font-size: 24px; margin-bottom: 6px; }
.wpp-why-block .tt-why-item h3 {
  font-size: 13px;
  font-weight: 700;
  color: #1565c0;
  margin: 0 0 4px;
}
.wpp-why-block .tt-why-item p {
  font-size: 12px;
  color: #546e7a;
  margin: 0;
  line-height: 1.5;
}

/* ── Sidebar column: stretch to match main column height ── */
.tt-col-sidebar {
  align-self: stretch;  /* kéo dài bằng chiều cao cột main */
  position: relative;
}

/* Inner wrapper mới là cái sticky thực sự */
.tt-sidebar-sticky {
  position: sticky;
  top: 20px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.wpp-sidebar-block {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  margin-bottom: 20px;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.wpp-sidebar-block:last-child { margin-bottom: 0; }

.wpp-sidebar-block-title {
  font-size: 14px;
  font-weight: 700;
  color: #1565c0;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #e8eef5;
  background: #f8fbff;
}

/* ── Radar map ── */
.wpp-radar-map-wrap {
  overflow: hidden;
  line-height: 0;
}
.wpp-radar-map-wrap iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ── News list ── */
.wpp-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wpp-news-item {
  border-bottom: 1px solid #f0f4f8;
}
.wpp-news-item:last-child { border-bottom: none; }
.wpp-news-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  text-decoration: none !important;
  color: inherit;
  transition: background .15s;
}
.wpp-news-link:hover { background: #f8fbff; }
.wpp-news-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  overflow: hidden;
  border-radius: 6px;
}
.wpp-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wpp-news-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.wpp-news-date {
  font-size: 10px;
  color: #90a4ae;
  white-space: nowrap;
}
.wpp-news-title {
  font-size: 12px;
  font-weight: 600;
  color: #263238;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wpp-news-link:hover .wpp-news-title { color: #1565c0; }

/* ── Mini calendar ── */
.wpp-mini-cal {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  padding: 8px 12px 12px;
  display: table;
}
.wpp-mini-cal th {
  text-align: center;
  font-weight: 700;
  color: #546e7a;
  padding: 6px 2px;
  font-size: 11px;
}
.wpp-mini-cal th.wpp-cal-sat { color: #1565c0; }
.wpp-mini-cal th.wpp-cal-sun { color: #e53935; }
.wpp-mini-cal td {
  text-align: center;
  padding: 5px 2px;
  color: #37474f;
  border-radius: 50%;
  cursor: default;
  line-height: 1;
}
.wpp-mini-cal td.wpp-cal-sat { color: #1565c0; font-weight: 600; }
.wpp-mini-cal td.wpp-cal-sun { color: #e53935; font-weight: 600; }
.wpp-mini-cal td.wpp-cal-empty { color: transparent; }
.wpp-mini-cal td.wpp-cal-today {
  background: #1565c0;
  color: #fff !important;
  border-radius: 50%;
  font-weight: 700;
  width: 26px;
  height: 26px;
  line-height: 26px;
  padding: 0;
}

/* ── News main layout (cột main) ────────────────────────── */
.wpp-news-main-list {
  padding: 8px 0 0;
}
.wpp-news-main-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-bottom: 1px solid #f0f4f8;
  transition: background .15s;
}
.wpp-news-main-item:last-child { border-bottom: none; }
.wpp-news-main-item:hover { background: #f8fbff; }

.wpp-news-main-thumb-link {
  flex-shrink: 0;
  display: block;
  width: 200px;
  height: 130px;
  overflow: hidden;
  border-radius: 10px;
}
.wpp-news-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.wpp-news-main-thumb-link:hover .wpp-news-main-img { transform: scale(1.04); }

.wpp-news-main-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wpp-news-main-title-link { text-decoration: none !important; }
.wpp-news-main-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1a2340 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wpp-news-main-title-link:hover .wpp-news-main-title { color: #1565c0 !important; }

.wpp-news-main-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.wpp-news-meta-date,
.wpp-news-meta-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #78909c;
}
.wpp-news-meta-cat { color: #1565c0; }

.wpp-news-main-excerpt {
  font-size: 13px;
  color: #546e7a;
  line-height: 1.6;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wpp-news-main-read-more {
  font-size: 12px;
  font-weight: 600;
  color: #1565c0;
  text-decoration: none;
  align-self: flex-start;
}
.wpp-news-main-read-more:hover { text-decoration: underline; }

.wpp-news-main-footer {
  padding: 14px;
  text-align: center;
  border-top: 1px solid #f0f4f8;
}
.wpp-news-btn-more {
  display: inline-block;
  padding: 9px 32px;
  background: #1565c0;
  color: #fff !important;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .18s;
}
.wpp-news-btn-more:hover { background: #0d47a1; }

/* ============================================================
   HOURLY EXTRAS: Stats + UV Index + Moon Phases
   ============================================================ */
.wpp-hourly-extras {
  padding: 0 0 6px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* ── Stats cards row ─────────────────────────────────────── */
.wpp-extra-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px 14px 4px;
  min-width: 0;
  box-sizing: border-box;
}
.wpp-extra-card {
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  box-sizing: border-box;
}
.wpp-extra-card-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.wpp-extra-card-val {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}
.wpp-extra-card-sub {
  font-size: 11px;
  opacity: .8;
  line-height: 1.3;
}

/* ── Wind compass card ───────────────────────────────────── */
.wpp-wind-card {
  align-items: center;
  text-align: center;
}
.wpp-wind-compass-wrap {
  display: flex;
  justify-content: center;
}
.wpp-compass-svg { display: block; }

/* ── UV Index ────────────────────────────────────────────── */
.wpp-uv-section {
  margin: 8px 14px 0;
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
  border-radius: 12px;
  overflow: hidden;
}
.wpp-uv-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  padding: 10px 14px 6px;
}
.wpp-uv-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 4px 8px 12px;
  scrollbar-width: none;
}
.wpp-uv-scroll::-webkit-scrollbar { display: none; }
.wpp-uv-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 1 1 0;
  min-width: 48px;
  padding: 4px 6px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.wpp-uv-item:last-child { border-right: none; }
.wpp-uv-time {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}
.wpp-uv-val {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.wpp-uv-none  { color: rgba(255,255,255,.5) !important; }
.wpp-uv-low   { color: #a5d6a7 !important; }
.wpp-uv-mod   { color: #fff59d !important; }
.wpp-uv-high  { color: #ffcc80 !important; }
.wpp-uv-vhigh { color: #ef9a9a !important; }

/* ── Moon phases ─────────────────────────────────────────── */
.wpp-moon-section {
  margin: 10px 14px 10px;
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
  border-radius: 12px;
  overflow: hidden;
}
.wpp-moon-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  padding: 10px 14px 6px;
}
.wpp-moon-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 4px 8px 12px;
  scrollbar-width: none;
}
.wpp-moon-scroll::-webkit-scrollbar { display: none; }
.wpp-moon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  flex: 1 1 0;
  min-width: 55px;
  padding: 4px 4px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.wpp-moon-item:last-child { border-right: none; }
.wpp-moon-date {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}
.wpp-moon-icon { font-size: 22px; line-height: 1; }
.wpp-moon-name {
  font-size: 10px;
  color: rgba(255,255,255,.8);
  text-align: center;
  line-height: 1.3;
}

/* ── Responsive extras ───────────────────────────────────── */
/* ── Full-width section (cities → provinces → why → news) ── */
.tt-fullwidth-section {
  background: #f5f7fa;
  padding: 0 0 40px;
}

/* ============================================================
   RESPONSIVE – Tablet 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .tt-content-grid {
    grid-template-columns: 1fr 280px;
    gap: 16px;
  }
}

/* ============================================================
   RESPONSIVE – Tablet nhỏ 768px
   ============================================================ */
@media (max-width: 768px) {

  /* 2-col content grid → 1 col, sidebar sau main */
  .tt-content-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tt-col-sidebar {
    align-self: auto;
    margin-top: 0;
  }
  .tt-sidebar-sticky {
    position: static;
  }

  /* Hero: 2 cột → 1 cột (stacked) */
  .wpp-home-hero-cols {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .wpp-home-hero-right {
    grid-template-columns: repeat(3, 1fr) !important;
    height: auto !important;
  }

  /* Why block */
  .wpp-why-block .tt-why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
  }

  /* News main: horizontal → stacked */
  .wpp-news-main-thumb-link {
    width: 120px;
    height: 88px;
  }
  .wpp-news-main-title { font-size: 14px !important; }
  .wpp-news-main-excerpt { -webkit-line-clamp: 2; }
}

/* ============================================================
   RESPONSIVE – Mobile 600px
   ============================================================ */
@media (max-width: 600px) {

  /* Container padding */
  .tt-content-section .container,
  .tt-fullwidth-section .container { padding-left: 12px !important; padding-right: 12px !important; }

  /* Hero section */
  .wpp-home-hero { padding: 12px 0 16px !important; }
  .wpp-home-hero-inner { padding: 0 !important; }
  .wpp-home-hero-cols {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Hero: 3 day cards trên mobile → 1 hàng ngang cuộn */
  .wpp-home-hero-right {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    height: auto !important;
  }
  .wpp-home-day-card { padding: 10px 6px 8px !important; }
  .wpp-home-day-icon svg { width: 36px !important; height: 36px !important; }
  .wpp-home-day-date  { font-size: 11px !important; }
  .wpp-home-day-desc  { font-size: 10px !important; }
  .wpp-home-day-temps { font-size: 12px !important; }
  .wpp-home-day-rain-mm,
  .wpp-home-day-rain-prob { font-size: 10px !important; }

  /* Current card */
  .wpp-home-cur-card { padding: 12px 12px 10px !important; }
  .wpp-home-cur-temp-big { font-size: 48px !important; }
  .wpp-home-cur-stats-row {
    gap: 6px 12px !important;
    padding: 8px 10px !important;
  }
  .wpp-stat-lbl { font-size: 9px !important; }
  .wpp-stat-val { font-size: 11px !important; }

  /* Tab nav */
  .wpp-home-tab-nav { gap: 4px !important; padding: 10px 0 8px !important; }
  .wpp-home-tab { padding: 4px 10px !important; font-size: 11px !important; }

  /* Hourly chart */
  .wpp-hourly-scroll { padding: 4px 0 !important; }

  /* Extra stats row: 4 cols → 2 cols */
  .wpp-extra-stats-row {
    grid-template-columns: 1fr 1fr !important;
    padding: 8px 10px 4px !important;
    gap: 8px !important;
  }
  .wpp-extra-card-val { font-size: 18px !important; }

  /* UV + Moon scroll */
  .wpp-uv-section,
  .wpp-moon-section { margin: 8px 10px 0 !important; }
  .wpp-uv-item { min-width: 48px !important; }
  .wpp-moon-item { min-width: 55px !important; }

  /* Block header */
  .wpp-block-header { padding: 10px 12px 8px !important; }
  .wpp-block-title { font-size: 13px !important; }

  /* Accordion daily */
  .wpp-accordion-view .wpp-daily-row { padding: 10px 10px !important; }
  .wpp-accordion-view .wpp-daily-day { font-size: 12px !important; min-width: 60px !important; }

  /* Featured cities: 5 cols → 2 cols */
  .wpp-featured-cities-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
  }
  .wpp-fc-icon svg { width: 44px !important; height: 44px !important; }
  .wpp-fc-temp { font-size: 20px !important; }

  /* Provinces list: 3 cols → 2 cols */
  .wpp-prov-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Why grid: 2 cols → 1 col */
  .wpp-why-block .tt-why-grid {
    grid-template-columns: 1fr !important;
    padding: 10px !important;
  }

  /* News main: stack vertically */
  .wpp-news-main-item {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 12px !important;
  }
  .wpp-news-main-thumb-link {
    width: 100% !important;
    height: 180px !important;
  }
  .wpp-news-main-title { font-size: 14px !important; }

  /* Sidebar blocks */
  .wpp-sidebar-block { border-radius: 10px !important; }
  .wpp-radar-map-wrap iframe { height: 240px !important; }

  /* Mini calendar */
  .wpp-mini-cal th, .wpp-mini-cal td { padding: 4px 1px !important; font-size: 11px !important; }
}

/* ============================================================
   RESPONSIVE – Mobile nhỏ 400px
   ============================================================ */
@media (max-width: 400px) {
  .wpp-home-hero-right {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .wpp-home-day-icon svg { width: 30px !important; height: 30px !important; }
  .wpp-featured-cities-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .wpp-news-main-thumb-link { height: 140px !important; }
  .wpp-extra-card-val { font-size: 16px !important; }
}

/* ============================================================
   MOBILE SAFETY – chống overflow ngang + box-sizing
   ============================================================ */

/* Ngăn horizontal scroll toàn trang
   Dùng overflow-x:clip thay vì hidden để KHÔNG tạo scroll container mới
   (overflow:hidden sẽ ép overflow-y:auto → phá vỡ position:sticky) */
#tt-home {
  overflow-x: clip;
  max-width: 100%;
}

/* Box-sizing cho tất cả component của plugin */
.wpp-home-weather-wrap *,
.tt-content-section *,
.tt-fullwidth-section * {
  box-sizing: border-box;
}

/* Hero section: padding mobile */
@media (max-width: 768px) {
  .tt-home-weather-section {
    padding-bottom: 20px !important;
  }

  /* Tab nav: cho phép cuộn ngang nếu tràn */
  .wpp-home-tab-nav {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 6px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .wpp-home-tab-nav::-webkit-scrollbar { display: none !important; }

  /* Hero icon nhỏ hơn */
  .wpp-home-cur-icon-wrap svg { width: 64px !important; height: 64px !important; }

  /* Full width blocks mobile */
  .wpp-hourly-block,
  .wpp-daily-block { border-radius: 0 !important; }

  /* Content section padding */
  .tt-content-section { padding: 16px 0 24px !important; }
  .tt-fullwidth-section { padding-bottom: 24px !important; }
}

@media (max-width: 600px) {
  /* Hero: tăng padding ngang container */
  .tt-home-weather-section .container { padding-left: 12px !important; padding-right: 12px !important; }

  /* Ẩn bớt stat trên mobile nhỏ */
  .wpp-home-cur-stats-row {
    justify-content: flex-start !important;
  }

  /* Accordion row: text không bị ép */
  .wpp-accordion-view .wpp-daily-desc {
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100px !important;
  }

  /* Compass card chiều cao tự động */
  .wpp-extra-card.wpp-wind-card { min-height: unset !important; }

  /* Featured city card: padding nhỏ hơn */
  .wpp-fc-card { padding: 14px 8px 12px !important; gap: 4px !important; }
  .wpp-fc-icon svg { width: 38px !important; height: 38px !important; }
  .wpp-fc-name { font-size: 12px !important; }
  .wpp-fc-temp { font-size: 20px !important; }
  .wpp-fc-desc,
  .wpp-fc-range { display: none !important; }

  /* Province item: compact */
  .wpp-prov-item { padding: 8px 10px !important; font-size: 12px !important; }
  .wpp-prov-icon svg { width: 28px !important; height: 28px !important; }

  /* Why item: compact */
  .wpp-why-block .tt-why-icon { font-size: 20px !important; margin-bottom: 4px !important; }
  .wpp-why-block .tt-why-item h3 { font-size: 12px !important; }
  .wpp-why-block .tt-why-item p { font-size: 11px !important; }

  /* Sidebar blocks trong layout 1 cột: max-width */
  .tt-col-sidebar .wpp-sidebar-block { border-radius: 10px !important; }
  .wpp-radar-map-wrap { border-radius: 8px !important; overflow: hidden !important; }

  /* News sidebar: compact */
  .wpp-news-item { padding: 8px 12px !important; }
  .wpp-news-thumb { width: 54px !important; height: 40px !important; flex-shrink: 0 !important; }
}

@media (max-width: 400px) {
  /* Tab font nhỏ nhất */
  .wpp-home-tab { padding: 3px 8px !important; font-size: 10px !important; }

  /* Current card icon cực nhỏ */
  .wpp-home-cur-icon-wrap svg { width: 50px !important; height: 50px !important; }
  .wpp-home-cur-temp-big { font-size: 40px !important; }

  /* Featured cities text */
  .wpp-fc-name { font-size: 11px !important; }
  .wpp-fc-temp { font-size: 18px !important; }
  .wpp-fc-rain, .wpp-fc-mm { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   [wpp_all_provinces_weather] – Lưới dự báo thời tiết toàn tỉnh/thành
   Giao diện thẻ xanh gradient giống thoitiet24h.vn
   ═══════════════════════════════════════════════════════════════════════════ */

.wpp-apw-wrap {
  margin: 0 0 32px;
  font-family: inherit;
}

.wpp-apw-main-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a5fa8;
  margin: 0 0 16px;
  padding: 0;
  border-left: 4px solid #2196f3;
  padding-left: 10px;
  line-height: 1.4;
}

.wpp-apw-region {
  margin-bottom: 28px;
}

.wpp-apw-region-title {
  font-size: 14px;
  font-weight: 700;
  color: #1565c0;
  margin: 0 0 12px;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Grid container */
.wpp-apw-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, 1fr);
}

.wpp-apw-cols-4 .wpp-apw-grid { grid-template-columns: repeat(4, 1fr); }
.wpp-apw-cols-3 .wpp-apw-grid { grid-template-columns: repeat(3, 1fr); }

/* Card */
.wpp-apw-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, #1e88e5 0%, #1565c0 100%);
  border-radius: 16px;
  padding: 18px 12px 16px;
  gap: 3px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(21,101,192,0.25);
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.wpp-apw-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.wpp-apw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(21,101,192,0.35);
  color: #fff;
  text-decoration: none;
}

/* Loading skeleton */
.wpp-apw-card.wpp-apw-loading {
  background: linear-gradient(160deg, #1976d2 0%, #1251a0 100%);
}
.wpp-apw-card.wpp-apw-loading .wpp-apw-temp,
.wpp-apw-card.wpp-apw-loading .wpp-apw-rain,
.wpp-apw-card.wpp-apw-loading .wpp-apw-mm,
.wpp-apw-card.wpp-apw-loading .wpp-apw-range {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  min-width: 60px;
  height: 12px;
  color: transparent;
  animation: wpp-apw-pulse 1.4s ease-in-out infinite;
}

@keyframes wpp-apw-pulse {
  0%   { opacity: 0.5; }
  50%  { opacity: 1;   }
  100% { opacity: 0.5; }
}

/* Icon */
.wpp-apw-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.wpp-apw-icon svg {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px;
  max-height: 52px;
  display: block;
}

/* Tên tỉnh */
.wpp-apw-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 2px;
  word-break: break-word;
}

/* Nhiệt độ */
.wpp-apw-temp {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* Rain row */
.wpp-apw-rain-row,
.wpp-apw-mm-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}
.wpp-apw-rain-icon,
.wpp-apw-mm-icon {
  font-size: 11px;
}

/* Mô tả */
.wpp-apw-desc {
  font-size: 11.5px;
  color: rgba(255,255,255,0.85);
  margin-top: 2px;
  font-style: italic;
}

/* Nhiệt độ min/max */
.wpp-apw-range {
  font-size: 11.5px;
  color: rgba(255,255,255,0.8);
  margin-top: 1px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .wpp-apw-grid,
  .wpp-apw-cols-5 .wpp-apw-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 860px) {
  .wpp-apw-grid,
  .wpp-apw-cols-5 .wpp-apw-grid,
  .wpp-apw-cols-4 .wpp-apw-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .wpp-apw-grid,
  .wpp-apw-cols-5 .wpp-apw-grid,
  .wpp-apw-cols-4 .wpp-apw-grid,
  .wpp-apw-cols-3 .wpp-apw-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .wpp-apw-card {
    padding: 14px 8px 12px;
    min-height: 170px;
    border-radius: 12px;
  }
  .wpp-apw-icon { width: 44px; height: 44px; margin-bottom: 2px; }
  .wpp-apw-icon svg { width: 40px !important; height: 40px !important; max-width: 40px; max-height: 40px; }
  .wpp-apw-temp { font-size: 22px; }
  .wpp-apw-name { font-size: 12px; }
  .wpp-apw-desc { display: none; }
  .wpp-apw-range { display: none; }
}

@media (max-width: 380px) {
  .wpp-apw-card { padding: 10px 6px; border-radius: 10px; min-height: 150px; }
  .wpp-apw-temp { font-size: 20px; }
  .wpp-apw-rain-row, .wpp-apw-mm-row { display: none; }
}
