/* ==========================================================================
   THOITIETHCM — GENERIC "TOOL PAGE" SHELL (Oceanic Blue Glass)
   Prefix class: hcm-  (dung chung token mau --hcm-* voi trang chu, xem
   thoitiet-modern.css phan "NEW HOMEPAGE REDESIGN")
   Dung cho cac trang cong cu (Thuy trieu, AQI, UV, Co mua khong...) khi
   duoc chuyen sang giao dien hcm-* moi. .hcm-sec-title/.hcm-sec-sub/
   .hcm-sec-header cua trang chu duoc tai su dung truc tiep cho tieu de
   section, khong dinh nghia lai o day.
   ========================================================================== */

.hcm-tool-page {
  padding: 4px 0 68px;
  min-height: 80vh;
}

.hcm-tool-hero {
  margin-bottom: 24px;
}

.hcm-tool-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 999px;
  color: #0284c7;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.hcm-tool-hero__title {
  margin: 0 0 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hcm-tool-hero__desc {
  margin: 0;
  max-width: 860px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--hcm-ink-soft, #334155);
}

@media (max-width: 768px) {
  .hcm-tool-hero__title { font-size: 26px; }
}

/* --- Station / location selector bar --- */
.hcm-tool-selector-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hcm-tool-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.hcm-tool-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.hcm-tool-select-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.hcm-tool-select-wrap select {
  height: 42px;
  min-width: 220px;
  padding: 0 34px 0 36px;
  border: 1px solid var(--hcm-card-border, #cbd5e1);
  border-radius: var(--hcm-radius-md, 12px);
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hcm-ink, #0f172a);
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hcm-btn-submit {
  height: 42px;
  padding: 0 16px;
  background: #0284c7;
  color: #fff;
  border: 0;
  border-radius: var(--hcm-radius-md, 12px);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hcm-btn-submit:hover {
  background: #0369a1;
}

.hcm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Directory grid (tram / quan huyen / tinh...) --- */
.hcm-provinces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.hcm-province-tool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-md, 14px);
  text-decoration: none !important;
  color: var(--hcm-ink, #0f172a) !important;
  box-shadow: var(--hcm-card-shadow);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hcm-province-tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hcm-card-shadow-hover);
}

.hcm-province-tool-card.is-active {
  border-color: #0284c7;
  background: #f0f9ff;
}

.hcm-province-tool-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hcm-province-tool-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hcm-province-tool-card__meta {
  font-size: 12.5px;
  color: var(--hcm-ink-subtle, #64748b);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hcm-province-tool-card__badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Educational guide section --- */
.hcm-tool-guide {
  margin-top: 48px;
  margin-bottom: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--hcm-card-border);
}

.hcm-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.hcm-guide-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-lg, 16px);
  padding: 24px;
  box-shadow: var(--hcm-card-shadow);
}

.hcm-guide-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
  margin: 0 0 10px;
  line-height: 1.4;
}

.hcm-guide-card p {
  font-size: 13.5px;
  color: var(--hcm-ink-soft, #475569);
  line-height: 1.6;
  margin: 0;
}

/* Bien the co icon (AQI, UV, Radar mua, Troi nom): dung __icon/__title/__desc thay vi h4/p tran */
.hcm-guide-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.hcm-guide-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
  margin: 0 0 10px;
  line-height: 1.4;
}

.hcm-guide-card__desc {
  font-size: 13.5px;
  color: var(--hcm-ink-soft, #475569);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .hcm-guide-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Stats strip (4 metric boxes) --- */
.hcm-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.hcm-stat-box {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-lg, 18px);
  padding: 18px 20px;
  box-shadow: var(--hcm-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hcm-stat-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--hcm-card-shadow-hover);
}

.hcm-stat-box__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hcm-ink-subtle, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hcm-stat-box__val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.hcm-stat-box__val small {
  font-size: 15px;
  font-weight: 500;
  color: var(--hcm-ink-subtle, #64748b);
}

.hcm-stat-box__sub {
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .hcm-stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* --- Directory search + filter tabs --- */
.hcm-tool-search-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.hcm-tool-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #94a3b8;
  pointer-events: none;
}

.hcm-tool-search-wrap input,
.hcm-tool-search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--hcm-ink, #0f172a);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hcm-tool-search-wrap input:focus,
.hcm-tool-search-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.hcm-tool-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hcm-tool-filter-tab {
  padding: 8px 18px;
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: 999px;
  color: var(--hcm-ink-soft, #475569);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hcm-tool-filter-tab:hover {
  background: #f0f9ff;
  color: var(--hcm-ink, #0f172a);
  border-color: rgba(56, 189, 248, 0.6);
}

.hcm-tool-filter-tab.is-active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px -2px rgba(2, 132, 199, 0.4);
}

.hcm-btn-geo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  background: #f0f9ff;
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-md, 12px);
  color: #0369a1;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.hcm-btn-geo:hover {
  background: #e0f2fe;
  color: #0284c7;
}

/* ==========================================================================
   "CO MUA KHONG" PAGE (.hcm-rain-*)
   ========================================================================== */

.hcm-rain-verdict-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--hcm-card-shadow);
}

.hcm-rain-verdict-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
}

.hcm-rain-verdict-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  margin-bottom: 10px;
}

.hcm-rain-verdict-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
}

.hcm-rain-main-prob {
  text-align: right;
  flex-shrink: 0;
}

.hcm-rain-prob-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}
.hcm-rain-prob-num span { font-size: 24px; font-weight: 600; }

.hcm-rain-prob-lbl {
  display: block;
  font-size: 11px;
  color: var(--hcm-ink-subtle, #64748b);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
}

.hcm-rain-verdict-advice {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--hcm-ink-soft, #475569);
}

.hcm-rain-advice-section {
  margin-bottom: 28px;
}

.hcm-advice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.hcm-advice-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-lg, 16px);
  padding: 18px 20px;
  box-shadow: var(--hcm-card-shadow);
}

.hcm-advice-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.hcm-advice-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--hcm-radius-md, 12px);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.hcm-advice-card__header strong {
  display: block;
  font-size: 13.5px;
  color: var(--hcm-ink, #0f172a);
}

.hcm-advice-card__header span {
  font-size: 11px;
  color: var(--hcm-ink-subtle, #64748b);
}

.hcm-advice-card__val {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.hcm-rain-hourly-section {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: var(--hcm-card-shadow);
}

.hcm-hourly-timeline {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 18px 0 10px;
  -webkit-overflow-scrolling: touch;
}

.hcm-hourly-col {
  flex: 0 0 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  background: #f8fafc;
  border-radius: var(--hcm-radius-md, 14px);
  border: 1px solid #f1f5f9;
}

.hcm-hourly-time { font-size: 11.5px; font-weight: 700; color: var(--hcm-ink-soft, #475569); }
.hcm-hourly-temp { font-size: 13px; font-weight: 800; color: var(--hcm-ink, #0f172a); }

.hcm-hourly-bar-wrap {
  width: 12px;
  height: 60px;
  background: #e2e8f0;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hcm-hourly-bar {
  width: 100%;
  border-radius: 999px;
  transition: height 0.3s ease;
}

.hcm-hourly-chance { font-size: 11px; font-weight: 800; }
.hcm-hourly-precip { font-size: 10px; color: #94a3b8; }

.hcm-rain-radar-banner {
  background: linear-gradient(135deg, var(--hcm-blue-900, #0f172a) 0%, var(--hcm-blue-700, #1d4ed8) 100%);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  margin-bottom: 28px;
  box-shadow: 0 12px 28px -6px rgba(2, 132, 199, 0.25);
}

.hcm-radar-banner-copy h3 {
  margin: 0 0 6px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
}

.hcm-radar-banner-copy p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13.5px;
  max-width: 580px;
}

.hcm-btn-radar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0284c7;
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--hcm-radius-md, 12px);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.hcm-btn-radar-link:hover {
  background: #0369a1;
  transform: translateY(-1px);
  color: #fff;
}

@media (max-width: 1024px) {
  .hcm-advice-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .hcm-rain-verdict-header { flex-direction: column; }
  .hcm-rain-main-prob { text-align: left; }
  .hcm-rain-radar-banner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   GENERIC "SCALE CARD" (AQI / UV / troi nom scale reference)
   ========================================================================== */

.hcm-scale-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 22px 24px;
  box-shadow: var(--hcm-card-shadow);
  margin-bottom: 36px;
}

.hcm-scale-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
  margin: 0 0 16px;
}

.hcm-scale-card__title svg {
  color: #0284c7;
}

.hcm-scale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.hcm-scale-grid--6 { grid-template-columns: repeat(6, 1fr); }
.hcm-scale-grid--5 { grid-template-columns: repeat(5, 1fr); }
.hcm-scale-grid--4 { grid-template-columns: repeat(4, 1fr); }

.hcm-scale-col {
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-md, 14px);
  padding: 14px;
  background: var(--hcm-surface, #fff);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--hcm-ink-subtle, #64748b);
  line-height: 1.5;
  border-top: 3px solid var(--hcm-scale-color, #0284c7);
}

.hcm-scale-col p { margin: 0; }

.hcm-scale-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hcm-scale-badge {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--hcm-scale-color, #0284c7);
  background: var(--hcm-scale-bg, #e0f2fe);
}

@media (max-width: 1200px) {
  .hcm-scale-grid--6,
  .hcm-scale-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .hcm-scale-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hcm-scale-grid--6,
  .hcm-scale-grid--5,
  .hcm-scale-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   GENERIC TOOL SECTION WRAPPER
   ========================================================================== */

.hcm-tool-section {
  margin-bottom: 44px;
}

.hcm-tool-section__head {
  margin-bottom: 18px;
}

.hcm-tool-section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.hcm-tool-section__desc {
  font-size: 14px;
  color: var(--hcm-ink-subtle, #64748b);
  margin: 0;
}

/* ==========================================================================
   GENERIC "METRO CARD" GRID (AQI / UV / troi nom cac do thi lon)
   ========================================================================== */

.hcm-metros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hcm-metro-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-lg, 18px);
  padding: 20px;
  box-shadow: var(--hcm-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hcm-metro-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hcm-card-shadow-hover);
}

.hcm-metro-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.hcm-metro-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
  margin: 0 0 4px;
  line-height: 1.25;
}

.hcm-metro-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.hcm-metro-score-box {
  border-radius: var(--hcm-radius-md, 12px);
  padding: 8px 14px;
  color: #ffffff;
  text-align: center;
  flex-shrink: 0;
  min-width: 60px;
}

.hcm-metro-score-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.hcm-metro-score-txt {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.hcm-metro-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--hcm-ink-soft, #475569);
  margin: 0;
}

.hcm-metro-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.hcm-metro-action-txt {
  font-size: 12px;
  color: var(--hcm-ink-subtle, #64748b);
  flex: 1;
}

.hcm-tool-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.hcm-tool-link:hover {
  color: #0369a1;
}

/* --- Pollutant pills row (AQI metro card) --- */
.hcm-pollutants-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-top: 1px dashed var(--hcm-card-border);
  border-bottom: 1px dashed var(--hcm-card-border);
}

.hcm-pollutant-pill {
  flex: 1;
  min-width: 55px;
  background: #f8fafc;
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hcm-pollutant-name {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
}

.hcm-pollutant-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.hcm-pollutant-val small {
  font-size: 9px;
  font-weight: normal;
  color: var(--hcm-ink-subtle, #64748b);
}

@media (max-width: 1024px) {
  .hcm-metros-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hcm-metros-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   GENERIC DATA TABLE CARD
   ========================================================================== */

.hcm-table-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  overflow: hidden;
  box-shadow: var(--hcm-card-shadow);
}

.hcm-table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hcm-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.hcm-data-table th {
  background: #f8fafc;
  padding: 14px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hcm-ink-soft, #475569);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--hcm-card-border);
  white-space: nowrap;
}

.hcm-data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
  white-space: nowrap;
}

.hcm-data-table tr:hover td {
  background: #f8fafc;
}

.hcm-td-name a {
  color: var(--hcm-ink, #0f172a);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hcm-td-name a:hover {
  color: #0284c7;
}

.hcm-table-score-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  min-width: 32px;
  text-align: center;
}

.hcm-table-level-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.hcm-data-table td.hcm-td-action,
.hcm-td-action {
  color: var(--hcm-ink-soft, #475569);
  font-size: 13px;
  line-height: 1.5;
  min-width: 250px;
  max-width: 360px;
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: break-word;
}

.hcm-data-table th:last-child,
.hcm-data-table td:last-child {
  width: 90px;
  min-width: 85px;
  text-align: right;
  white-space: nowrap !important;
}

.hcm-table-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
  white-space: nowrap;
}

.hcm-table-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

/* ==========================================================================
   FAQ ACCORDION (dung chung voi footer.php: .hcm-faq-item/.hcm-faq-question)
   ========================================================================== */

.hcm-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hcm-faq-list .hcm-faq-item {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-md, 14px);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hcm-faq-list .hcm-faq-item:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: var(--hcm-card-shadow);
}

.hcm-faq-list .hcm-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: none;
  border: 0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--hcm-ink, #0f172a);
  cursor: pointer;
  text-align: left;
  gap: 12px;
}

.hcm-faq-list .hcm-faq-chevron {
  transition: transform 0.25s ease;
  color: #94a3b8;
  flex-shrink: 0;
}

.hcm-faq-list .hcm-faq-item.is-open .hcm-faq-chevron {
  transform: rotate(180deg);
  color: #0284c7;
}

.hcm-faq-list .hcm-faq-answer {
  display: none;
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--hcm-ink-soft, #475569);
}

.hcm-faq-list .hcm-faq-answer p {
  margin: 0;
}

.hcm-faq-list .hcm-faq-item.is-open .hcm-faq-answer {
  display: block;
}

/* ==========================================================================
   TIDE PAGE (.hcm-tide-*)
   ========================================================================== */

.hcm-tide-hero-card {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 60%, #0284c7 100%);
  border-radius: var(--hcm-radius-xl, 24px);
  padding: 36px 40px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
  box-shadow: 0 20px 40px -15px rgba(2, 132, 199, 0.3);
}

.hcm-tide-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hcm-tide-cur-name {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 600;
}

.hcm-tide-cur-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 6px 0 8px;
}

.hcm-tide-cur-num .unit { font-size: 24px; font-weight: 600; color: #bae6fd; }
.hcm-tide-cur-num .sub { font-size: 17px; font-weight: 500; color: rgba(255, 255, 255, 0.7); margin-left: 8px; }

.hcm-tide-cur-sub {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.8);
}
.hcm-tide-cur-sub strong { color: #fff; }

.hcm-tide-warning {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--hcm-radius-md, 12px);
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
}

.hcm-tide-milestones {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hcm-tide-milestone {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--hcm-radius-lg, 16px);
  padding: 16px 20px;
  backdrop-filter: blur(10px);
}

.hcm-tide-ms-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #bae6fd;
  margin-bottom: 8px;
}

.hcm-tide-ms-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-top: 4px;
}
.hcm-tide-ms-row strong { font-size: 18px; font-family: 'Space Grotesk', sans-serif; color: #fff; }

.hcm-tide-curve-section {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: var(--hcm-card-shadow);
}

.hcm-tide-curve-container {
  overflow-x: auto;
  padding: 18px 0 6px;
  -webkit-overflow-scrolling: touch;
}

.hcm-tide-hours-strip {
  display: flex;
  gap: 8px;
  min-width: 900px;
}

.hcm-tide-hour-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hcm-tide-bar-box {
  position: relative;
  width: 18px;
  height: 90px;
  background: #f1f5f9;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hcm-tide-wave-fill {
  width: 100%;
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  border-radius: 999px;
}

.hcm-tide-now-dot {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.hcm-tide-time-lbl { font-size: 10.5px; color: #64748b; font-weight: 600; }
.hcm-tide-m-lbl { font-size: 11px; font-weight: 700; color: var(--hcm-ink, #0f172a); }

.hcm-tide-week-section {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 26px 30px;
  margin-bottom: 28px;
  box-shadow: var(--hcm-card-shadow);
}

.hcm-tide-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.hcm-tide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.hcm-tide-table th {
  text-align: left;
  padding: 12px 16px;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  border-bottom: 2px solid var(--hcm-card-border);
}

.hcm-tide-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.hcm-tide-table tr.is-today-row {
  background: #f0f9ff;
}

.hcm-tide-date-sub { display: block; font-size: 11px; color: #64748b; }
.hcm-tide-val.high { color: #0284c7; font-weight: 700; }
.hcm-tide-val.low { color: #d97706; font-weight: 700; }
.hcm-tide-m { font-size: 12px; color: #64748b; margin-left: 4px; }

.hcm-tide-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.hcm-tide-pill.is-spring { background: #fee2e2; color: #dc2626; }
.hcm-tide-pill.is-neap { background: #f1f5f9; color: #475569; }

@media (max-width: 900px) {
  .hcm-tide-hero-card { grid-template-columns: 1fr; }
}

/* ==========================================================================
   GENERIC METRO CARD EXTRAS: mini stat strip, tips box, hourly mini bars
   (dung chung cho AQI / UV / troi nom "do thi trong diem" card)
   ========================================================================== */

.hcm-metro-stat-strip {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px dashed var(--hcm-card-border);
  border-bottom: 1px dashed var(--hcm-card-border);
  font-size: 12.5px;
}

.hcm-metro-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hcm-metro-stat-lbl {
  font-size: 11px;
  color: #94a3b8;
}

.hcm-metro-stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
}

.hcm-metro-tips {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--hcm-ink-soft, #475569);
  margin: 0;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
}

/* Hourly mini bar chart (UV theo gio trong metro/featured card) */
.hcm-uv-hourly-wrap {
  background: #f8fafc;
  border-radius: var(--hcm-radius-md, 12px);
  padding: 10px 12px;
}

.hcm-uv-hourly-title {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  display: block;
  margin-bottom: 8px;
}

.hcm-uv-bars-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.hcm-uv-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.hcm-uv-bar-track {
  width: 14px;
  height: 48px;
  background: #e2e8f0;
  border-radius: 7px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hcm-uv-bar-fill {
  width: 100%;
  border-radius: 7px;
  transition: height 0.3s ease;
}

.hcm-uv-bar-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
}

.hcm-uv-bar-time {
  font-size: 9.5px;
  color: #94a3b8;
}

/* ==========================================================================
   3-SELECT LOOKUP FILTER BOX (Quoc gia / Khu vuc / Tinh thanh — trang UV)
   ========================================================================== */

.hcm-filter-box {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 22px 24px;
  box-shadow: var(--hcm-card-shadow);
  margin-bottom: 18px;
}

.hcm-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hcm-filters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hcm-filter-col {
  display: flex;
  flex-direction: column;
}

.hcm-filter-col label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hcm-ink-soft, #475569);
  margin-bottom: 7px;
}

.hcm-filter-col .hcm-tool-select-wrap {
  width: 100%;
}

.hcm-filter-col .hcm-tool-select-wrap select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 34px 0 14px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1.5px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-md, 12px);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hcm-ink, #0f172a);
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hcm-filter-col .hcm-tool-select-wrap select:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

/* UV table: cot khuyen cao rong hon, cho phep xuong dong */
#hcm-uv-table {
  width: 100%;
  table-layout: auto;
}
#hcm-uv-table th, #hcm-uv-table td {
  vertical-align: middle;
}
#hcm-uv-table th:nth-child(1), #hcm-uv-table td:nth-child(1) {
  min-width: 140px;
}
#hcm-uv-table th:nth-child(2), #hcm-uv-table td:nth-child(2),
#hcm-uv-table th:nth-child(3), #hcm-uv-table td:nth-child(3),
#hcm-uv-table th:nth-child(4), #hcm-uv-table td:nth-child(4),
#hcm-uv-table th:nth-child(5), #hcm-uv-table td:nth-child(5) {
  text-align: center;
  white-space: nowrap;
}
#hcm-uv-table th.hcm-th-action,
#hcm-uv-table td.hcm-td-action {
  min-width: 250px;
  max-width: 360px;
  width: 320px;
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.5;
  font-size: 13px;
  color: #475569;
}
#hcm-uv-table .hcm-td-action__text {
  display: block;
  max-width: 360px;
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.5;
}
#hcm-uv-table th:last-child,
#hcm-uv-table td:last-child {
  width: 90px;
  min-width: 85px;
  text-align: right;
  white-space: nowrap !important;
  padding-right: 20px;
}

@media (max-width: 860px) {
  .hcm-filters-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hcm-filter-box {
    padding: 18px 16px;
  }
}

/* ==========================================================================
   TROI NOM PAGE: humidity param grid + table pill
   ========================================================================== */

.hcm-nom-param-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 1px dashed var(--hcm-card-border);
  border-bottom: 1px dashed var(--hcm-card-border);
  text-align: center;
}

.hcm-nom-param-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hcm-nom-param-lbl {
  font-size: 11px;
  color: #94a3b8;
}

.hcm-nom-param-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
}

.hcm-table-hum-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
}

/* ==========================================================================
   BAN DO MUA & RADAR HCM (Oceanic Blue Glass & TP.HCM Pulse)
   ========================================================================== */

.hcm-rainmap-pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.hcm-rainmap-pulse-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.hcm-rainmap-pulse-card:hover {
  transform: translateY(-2px);
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 10px 24px -4px rgba(2, 132, 199, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

.hcm-pulse-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.hcm-pulse-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.hcm-pulse-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hcm-pulse-card__title {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 6px;
}

.hcm-pulse-card__value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
  line-height: 1.2;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.hcm-pulse-card__value .unit {
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
}

.hcm-pulse-card__desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.hcm-pulse-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.15s ease;
}

.hcm-pulse-card__link:hover {
  color: #0369a1;
  text-decoration: underline;
}

.hcm-cluster-card__sub {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tt-city-weather-card .tt-btn-radar-jump {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
  transition: all 0.2s ease;
}

.tt-city-weather-card .tt-btn-radar-jump:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.tt-radar-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tt-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0ea5e9;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
  animation: hcm-pulse-radar 1.8s infinite;
}

@keyframes hcm-pulse-radar {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(14, 165, 233, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

@media (max-width: 1024px) {
  .hcm-rainmap-pulse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hcm-rainmap-pulse-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hcm-rainmap-pulse-card {
    padding: 14px 16px;
  }
}

/* ==========================================================================
   GENERIC MULTI-SELECT FORM GROUP (Ngay nay nam xua: ngay/thang/tinh)
   ========================================================================== */

.hcm-tool-form--multi {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.hcm-tool-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hcm-tool-select-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--hcm-ink-subtle, #64748b);
  margin: 0;
}
.hcm-tool-select-group select {
  height: 42px;
  padding: 0 32px 0 14px;
  border: 1px solid var(--hcm-card-border, #cbd5e1);
  border-radius: var(--hcm-radius-md, 12px);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hcm-ink, #0f172a);
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
   NGAY NAY NAM XUA: record cards, year comparison, historic events
   ========================================================================== */

.hcm-records-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.hcm-record-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-lg, 18px);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--hcm-card-shadow);
}
.hcm-record-card--high { border-left: 5px solid #ef4444; }
.hcm-record-card--low { border-left: 5px solid #06b6d4; }
.hcm-record-card--rain { border-left: 5px solid #3b82f6; }
.hcm-record-card__mark { font-size: 28px; }
.hcm-record-card__tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hcm-ink-subtle, #64748b);
  margin-bottom: 2px;
}
.hcm-record-card__val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--hcm-ink, #0f172a);
  line-height: 1.1;
}
.hcm-record-card__sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 3px;
}

.hcm-history-years-section {
  margin-bottom: 32px;
}
.hcm-history-years-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.hcm-history-year-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-lg, 16px);
  padding: 20px 18px;
  box-shadow: var(--hcm-card-shadow);
  transition: transform 0.2s, border-color 0.2s;
}
.hcm-history-year-card:hover { transform: translateY(-2px); box-shadow: var(--hcm-card-shadow-hover); }
.hcm-history-year-card.is-today {
  border-color: #38bdf8;
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 40%);
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.15);
}
.hcm-history-year-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--hcm-ink-subtle, #64748b);
  margin-bottom: 6px;
}
.hcm-history-year-card.is-today .hcm-history-year-badge { color: #0284c7; }
.hcm-history-year-temp {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--hcm-ink, #0f172a);
  line-height: 1;
  margin-bottom: 12px;
}
.hcm-history-year-metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 10px;
}
.hcm-history-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--hcm-ink-subtle, #64748b);
}
.hcm-history-metric-row strong { color: #1e293b; }
.hcm-history-year-cond {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--hcm-ink-soft, #475569);
}

.hcm-events-section {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 26px 30px;
  margin-bottom: 28px;
  box-shadow: var(--hcm-card-shadow);
}
.hcm-events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.hcm-event-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.hcm-event-item:last-child { border-bottom: 0; padding-bottom: 0; }
.hcm-event-year {
  flex-shrink: 0;
  background: #f1f5f9;
  color: #334155;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--hcm-radius-md, 10px);
}
.hcm-event-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
}
.hcm-event-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--hcm-ink-subtle, #64748b);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hcm-history-years-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   SO SANH THOI TIET: dual-select form, verdict cards, head-to-head, matrix
   ========================================================================== */

.hcm-compare-selector-bar {
  margin-top: 24px;
}
.hcm-compare-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hcm-compare-pick {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hcm-compare-pick label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hcm-ink-subtle, #64748b);
  margin: 0;
}
.hcm-compare-pick select {
  height: 44px;
  min-width: 180px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--hcm-card-border, #cbd5e1);
  border-radius: var(--hcm-radius-md, 12px);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--hcm-ink, #0f172a);
}
.hcm-compare-swap {
  width: 44px;
  height: 44px;
  border-radius: var(--hcm-radius-md, 12px);
  background: #f0f9ff;
  border: 1px solid var(--hcm-card-border);
  display: grid;
  place-items: center;
  color: #0369a1;
  transition: background 0.2s, transform 0.2s;
}
.hcm-compare-swap:hover {
  background: #e0f2fe;
  transform: rotate(180deg);
}

.hcm-compare-presets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.hcm-compare-presets .lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--hcm-ink-subtle, #64748b);
}
.hcm-preset-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.hcm-preset-pill:hover { background: #e2e8f0; color: #0f172a; }
.hcm-preset-pill.is-active { background: #0284c7; color: #fff; }

.hcm-compare-verdict {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.hcm-verdict-col {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-lg, 16px);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--hcm-card-shadow);
}
.hcm-verdict-icon { font-size: 24px; flex-shrink: 0; }
.hcm-verdict-title { display: block; font-weight: 700; font-size: 13.5px; color: var(--hcm-ink, #0f172a); margin-bottom: 3px; }
.hcm-verdict-text { margin: 0; font-size: 13px; color: var(--hcm-ink-soft, #475569); line-height: 1.5; }

.hcm-compare-head-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.hcm-compare-hero-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 28px 32px;
  box-shadow: var(--hcm-card-shadow);
}
.hcm-compare-hero-card.side-a { border-top: 5px solid #38bdf8; }
.hcm-compare-hero-card.side-b { border-top: 5px solid #f97316; }
.hcm-compare-side-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--hcm-ink-subtle, #64748b);
  margin-bottom: 6px;
}
.hcm-compare-hero-name {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
}
.hcm-compare-hero-temp {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--hcm-ink, #0f172a);
  margin: 6px 0;
}
.hcm-compare-hero-temp .cond { font-size: 15px; font-weight: 600; color: var(--hcm-ink-subtle, #64748b); margin-left: 8px; }
.hcm-compare-hero-feels { font-size: 13px; color: var(--hcm-ink-subtle, #64748b); }
.hcm-compare-hero-feels strong { color: var(--hcm-ink, #0f172a); }

.hcm-compare-vs-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hcm-blue-900, #0f172a), var(--hcm-blue-700, #1d4ed8));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
}

.hcm-compare-matrix-section {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 26px 30px;
  margin-bottom: 28px;
  box-shadow: var(--hcm-card-shadow);
}
.hcm-matrix-table-wrap { overflow-x: auto; margin-top: 16px; }
.hcm-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.hcm-matrix-table th {
  text-align: left;
  padding: 12px 16px;
  background: #f8fafc;
  color: var(--hcm-ink-soft, #475569);
  font-weight: 700;
  border-bottom: 2px solid var(--hcm-card-border);
}
.hcm-matrix-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}
.hcm-val-pill {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
}
.hcm-aqi-indicator { font-weight: 800; font-size: 15px; }

@media (max-width: 900px) {
  .hcm-compare-head-grid { grid-template-columns: 1fr; }
  .hcm-compare-vs-badge { margin: 0 auto; transform: rotate(90deg); }
  .hcm-compare-verdict { grid-template-columns: 1fr; }
}

/* ==========================================================================
   BAU TROI DEM: dark astro hero, moon phase card, lunar phases, events
   ========================================================================== */

.hcm-nightsky-hero {
  position: relative;
  background: linear-gradient(135deg, #090d16 0%, #0f172a 55%, #1e1b4b 100%);
  border-radius: var(--hcm-radius-xl, 24px);
  padding: 44px 44px 38px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.4);
}
.hcm-nightsky-glow {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.25) 0%, transparent 40%),
                    radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.15) 0%, transparent 40%);
  pointer-events: none;
}
.hcm-nightsky-hero__copy { position: relative; z-index: 2; }
.hcm-nightsky-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  margin-bottom: 14px;
}
.hcm-nightsky-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 12px #818cf8;
}
.hcm-nightsky-title {
  margin: 0;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.15;
}
.hcm-nightsky-title span { color: #fde047; }
.hcm-nightsky-desc {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.6;
}
.hcm-nightsky-picker {
  margin-top: 20px;
}
.hcm-tool-select-wrap--night select {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--hcm-radius-md, 12px);
  height: 42px;
  padding: 0 36px 0 14px;
}
.hcm-tool-select-wrap--night select option { color: #0f172a; background: #fff; }

.hcm-nightsky-score-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 26px 28px;
  backdrop-filter: blur(12px);
  text-align: center;
}
.hcm-nightsky-score-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}
.hcm-nightsky-score-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
}
.hcm-nightsky-score-num .max { font-size: 24px; font-weight: 600; color: rgba(255, 255, 255, 0.5); }
.hcm-nightsky-score-lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
  font-weight: 600;
}
.hcm-nightsky-metrics-mini {
  display: flex;
  justify-content: space-around;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
}
.hcm-nightsky-metrics-mini strong { color: #fff; margin-left: 4px; }

.hcm-moon-feature-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 22px);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
  box-shadow: var(--hcm-card-shadow);
}
.hcm-moon-visual {
  text-align: center;
}
.hcm-moon-disc {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffdf0 0%, #e2d9b5 60%, #b8ab80 100%);
  box-shadow: 0 0 30px rgba(254, 240, 138, 0.4), inset -10px -10px 20px rgba(0, 0, 0, 0.15);
  margin: 0 auto 12px;
  overflow: hidden;
}
.hcm-moon-crater {
  position: absolute;
  border-radius: 50%;
  background: rgba(168, 153, 116, 0.25);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.hcm-moon-crater.c1 { width: 26px; height: 26px; top: 25px; left: 45px; }
.hcm-moon-crater.c2 { width: 18px; height: 18px; top: 65px; left: 25px; }
.hcm-moon-crater.c3 { width: 22px; height: 22px; top: 75px; left: 75px; }
.hcm-moon-illum-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}
.hcm-moon-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d97706;
  margin-bottom: 4px;
}
.hcm-moon-name {
  margin: 0 0 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
}
.hcm-moon-desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hcm-ink-soft, #475569);
}
.hcm-moon-meta-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.hcm-moon-meta-item .lbl { display: block; font-size: 11px; color: #64748b; }
.hcm-moon-meta-item .val { font-size: 14px; font-weight: 700; color: var(--hcm-ink, #0f172a); }

.hcm-lunar-phases-section { margin-bottom: 28px; }
.hcm-lunar-phases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.hcm-lunar-phase-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-lg, 16px);
  padding: 20px 18px;
  text-align: center;
  box-shadow: var(--hcm-card-shadow);
}
.hcm-lunar-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 1px solid #cbd5e1;
}
.hcm-lunar-icon.new-moon { background: #0f172a; }
.hcm-lunar-icon.first-qtr { background: linear-gradient(90deg, #0f172a 50%, #fef08a 50%); }
.hcm-lunar-icon.full-moon { background: #fef08a; box-shadow: 0 0 14px rgba(254, 240, 138, 0.5); }
.hcm-lunar-icon.last-qtr { background: linear-gradient(90deg, #fef08a 50%, #0f172a 50%); }
.hcm-lunar-phase-card strong { display: block; font-size: 14px; color: var(--hcm-ink, #0f172a); margin-bottom: 4px; }
.hcm-lunar-phase-card span { display: block; font-size: 11.5px; color: var(--hcm-ink-subtle, #64748b); margin-bottom: 4px; }
.hcm-lunar-phase-card small { display: block; font-size: 10.5px; color: #94a3b8; }

.hcm-astro-events-section {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 26px 30px;
  margin-bottom: 28px;
  box-shadow: var(--hcm-card-shadow);
}
.hcm-event-item--astro {
  align-items: center;
}
.hcm-event-astro-badge {
  flex-shrink: 0;
  background: #f0f9ff;
  color: #0284c7;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--hcm-radius-md, 12px);
}
.hcm-event-time-tag {
  font-size: 11px;
  font-weight: 700;
  color: #d97706;
  text-transform: uppercase;
  margin-bottom: 2px;
}

@media (max-width: 900px) {
  .hcm-nightsky-hero { grid-template-columns: 1fr; }
  .hcm-moon-feature-card { grid-template-columns: 1fr; text-align: center; }
  .hcm-moon-meta-grid { justify-content: center; }
  .hcm-lunar-phases-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   LOCATION PAGES: PROVINCE, DISTRICT, WARD (Oceanic Blue Modern Glass)
   ========================================================================== */

.hcm-location-page {
  padding: 4px 0 68px;
  min-height: 80vh;
}

.hcm-tabs-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 6px 0 20px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .hcm-tabs-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
}

.hcm-time-nav {
  display: block !important;
  background: transparent !important;
  position: relative !important;
  box-shadow: none !important;
  z-index: 1 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hcm-time-nav .container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hcm-time-nav__overflow {
  display: block !important;
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 4px 2px 8px !important;
  scrollbar-width: thin !important;
  scrollbar-color: #cbd5e1 transparent !important;
}

.hcm-time-nav__overflow::-webkit-scrollbar {
  height: 5px !important;
}

.hcm-time-nav__overflow::-webkit-scrollbar-track {
  background: transparent !important;
}

.hcm-time-nav__overflow::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 999px !important;
}

.hcm-time-nav__overflow::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

.hcm-time-nav__list {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
}

.hcm-time-nav__item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.hcm-time-nav__link,
.ttmb-nav__link,
.tt-tab-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  font-family: 'Space Grotesk', -apple-system, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--hcm-ink-soft, #475569) !important;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
  cursor: pointer !important;
}

.hcm-time-nav__link:hover,
.ttmb-nav__link:hover,
.tt-tab-pill:hover {
  color: #0284c7 !important;
  border-color: rgba(2, 132, 199, 0.4) !important;
  background: #f0f9ff !important;
  transform: translateY(-1px) !important;
}

.hcm-time-nav__item.active .hcm-time-nav__link,
.ttmb-nav__item.active .ttmb-nav__link,
.tt-tab-pill.is-active {
  color: #ffffff !important;
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  transform: translateY(-1px) !important;
}

.hcm-subloc-btn,
.tt-subloc-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  font-family: 'Space Grotesk', -apple-system, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
}

.hcm-subloc-btn:hover,
.tt-subloc-btn:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
}

/* Sài Gòn Pulse Mini-Bar for TP.HCM locations */
.hcm-loc-pulse-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.hcm-loc-pulse-item {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.04);
  position: relative;
  transition: all 0.2s ease;
}

.hcm-loc-pulse-item:hover {
  border-color: rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -4px rgba(2, 132, 199, 0.08);
}

.hcm-pulse-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.hcm-pulse-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hcm-pulse-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
}

.hcm-pulse-sublink {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  white-space: nowrap;
}

.hcm-pulse-sublink:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .hcm-loc-pulse-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Glass Card Upgrades */
.tt-card,
.tt24-card,
.hcm-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.tt-card:hover,
.tt24-card:hover,
.hcm-card:hover {
  box-shadow: 0 8px 26px -4px rgba(2, 132, 199, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04) !important;
}

/* Metric Items */
.tt-metric-item,
.hcm-metric-item {
  background: rgba(248, 250, 252, 0.8) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  transition: all 0.2s ease !important;
}

.tt-metric-item:hover,
.hcm-metric-item:hover {
  border-color: rgba(2, 132, 199, 0.35) !important;
  background: #f0f9ff !important;
  transform: translateY(-1px) !important;
}

.tt-metric-item__head,
.hcm-metric-item__head {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.tt-metric-item__head span,
.hcm-metric-item__head span {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748b !important;
}

.tt-metric-item__head svg,
.hcm-metric-item__head svg {
  color: #0284c7 !important;
  stroke: #0284c7 !important;
}

.tt-metric-item__val,
.hcm-metric-item__val {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--hcm-ink, #0f172a) !important;
  margin-top: 4px !important;
}

/* Dayparts Grid (Upright, Clean, No Tilt) */
.tt-daypart-card,
.hcm-daypart-card {
  border-radius: 18px !important;
  padding: 16px 14px !important;
  transform: none !important;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.04) !important;
  text-align: center !important;
  border-width: 1px !important;
  background: #ffffff !important;
}

.tt-daypart-card:hover,
.hcm-daypart-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px -4px rgba(2, 132, 199, 0.1) !important;
}

/* Sublocations Grid */
.tt-subloc-grid,
.hcm-subloc-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  gap: 10px !important;
  padding: 20px 24px !important;
}

.tt-subloc-link,
.hcm-subloc-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--hcm-ink, #0f172a) !important;
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.tt-subloc-link:hover,
.hcm-subloc-link:hover {
  color: #0284c7 !important;
  border-color: rgba(2, 132, 199, 0.4) !important;
  background: #f0f9ff !important;
  transform: translateY(-1px) !important;
}

/* Daily forecast rows */
.tt-day-row,
.hcm-day-row {
  transition: background 0.15s ease, transform 0.15s ease !important;
}
.tt-day-row:hover,
.hcm-day-row:hover {
  background: #f8fafc !important;
}

/* Hero Temp & Visuals */
.hcm-hero-temp-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.hcm-hero-temp-row .hcm-anim-floaty svg {
  width: 86px;
  height: 86px;
}
.hcm-giant-temp {
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
}
.hcm-giant-temp__num {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 100px;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.03em;
  padding-right: 0.12em;
  margin-right: -0.06em;
  color: #0f172a !important;
}
.hcm-giant-temp__deg {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #0284c7;
  margin-top: 6px;
  line-height: 1;
}
.hcm-temp-cond-text {
  font-size: 20px;
  line-height: 1.3;
}
.hcm-temp-feels {
  font-size: 13.5px;
  margin-top: 4px;
}

/* Rain QA Cards */
.hcm-rain-qa-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}
.hcm-rain-qa-item {
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}



/* ==========================================================================
   Trang Giờ Mặt Trời Mọc & Lặn (.hcm-solar-page) - Oceanic Modern Glass
   Thay thế hoàn toàn cấu trúc class cũ sang chuẩn .hcm-solar-*
   ========================================================================== */

.hcm-solar-page {
  --solar-ink: #0f172a;
  --solar-muted: #64748b;
  --solar-brand: #0284c7;
  --solar-brand-dark: #0369a1;
  --solar-gold: #f59e0b;
  --solar-gold-glow: rgba(245, 158, 11, 0.4);
  --solar-dawn: #8b5cf6;
  --solar-blue: #06b6d4;
  --solar-dusk: #f97316;
  padding-bottom: 48px;
}

/* Sài Gòn Solar Pulse Mini-Bar */
.hcm-solar-pulse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: 16px;
  padding: 14px 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hcm-solar-pulse__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hcm-solar-pulse__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
  animation: hcmSolarPulseAnim 2s infinite ease-in-out;
}

@keyframes hcmSolarPulseAnim {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25); }
  50% { transform: scale(1.15); opacity: 0.85; box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.1); }
}

.hcm-solar-pulse__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0369a1;
}

.hcm-solar-pulse__metrics {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hcm-solar-pulse__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hcm-solar-pulse__kicker {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.hcm-solar-pulse__val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.hcm-solar-pulse__val.is-sunrise {
  color: #d97706;
}

.hcm-solar-pulse__val.is-sunset {
  color: #ea580c;
}

.hcm-solar-pulse__divider {
  width: 1px;
  height: 24px;
  background: rgba(2, 132, 199, 0.15);
}

/* Master Hero Instrument (Dual-Mode Day/Night) */
.hcm-solar-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  gap: 32px;
  align-items: center;
  min-height: 460px;
  margin-bottom: 28px;
  padding: 44px 44px 38px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: background 0.4s ease, border-color 0.4s ease;
}

/* Day Mode: Radiant Oceanic Azure with Warm Golden Light */
.hcm-solar-hero.is-daylight {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 42%, #0c4a6e 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Night Mode: Deep Midnight Space with Celestial Blue Glow */
.hcm-solar-hero.is-nighttime {
  background: linear-gradient(135deg, #090e17 0%, #0f172a 45%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.hcm-solar-hero__glow {
  position: absolute;
  pointer-events: none;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 0;
}

.hcm-solar-hero.is-daylight .hcm-solar-hero__glow::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.28) 0%, rgba(245, 158, 11, 0.12) 45%, transparent 70%);
  filter: blur(40px);
}

.hcm-solar-hero.is-nighttime .hcm-solar-hero__glow::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.08) 50%, transparent 70%);
  filter: blur(40px);
}

.hcm-solar-hero__info {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.hcm-solar-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fef08a;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hcm-solar-hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 8px #facc15;
}

.hcm-solar-hero__title {
  margin: 0 0 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hcm-solar-hero__title span {
  color: #fef08a;
  display: inline-block;
  text-shadow: 0 2px 14px rgba(254, 240, 138, 0.25);
}

.hcm-solar-hero__desc {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.hcm-solar-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hcm-solar-status-pill__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fde047;
}

.hcm-solar-status-pill__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Pickers & Controls */
.hcm-solar-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hcm-solar-form {
  margin: 0;
}

.hcm-solar-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.hcm-solar-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 9px 38px 9px 16px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.hcm-solar-select:hover, .hcm-solar-select:focus {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.45);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.hcm-solar-select option {
  background: #0f172a;
  color: #ffffff;
}

.hcm-solar-select-arrow {
  position: absolute;
  right: 14px;
  pointer-events: none;
  width: 14px;
  height: 14px;
  stroke: currentColor;
  color: rgba(255, 255, 255, 0.7);
}

.hcm-solar-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.hcm-solar-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.hcm-solar-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* Sky Orbit Visualizer */
.hcm-solar-sky {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 24px 22px 18px;
  min-height: 330px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hcm-solar-sky__header {
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hcm-solar-sky__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.hcm-solar-sky__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.hcm-solar-orbit-svg {
  width: 100%;
  height: 215px;
  overflow: visible;
}

.hcm-solar-orbit-fill {
  fill: url(#hcm-solar-orbit-glow);
  opacity: 0.35;
}

.hcm-solar-orbit-path {
  fill: none;
  stroke: url(#hcm-solar-orbit-line);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.hcm-solar-horizon {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.hcm-solar-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hcm-solar-metric {
  text-align: center;
}

.hcm-solar-metric span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.hcm-solar-metric strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.hcm-solar-metric.is-sunrise strong {
  color: #fde047;
}

.hcm-solar-metric.is-sunset strong {
  color: #fb923c;
}

/* 4 Light Phases Cards Grid */
.hcm-solar-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.hcm-solar-phase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.hcm-solar-phase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.hcm-solar-phase-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hcm-solar-phase-card__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hcm-solar-phase-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.hcm-solar-phase-card--dawn .hcm-solar-phase-card__icon {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}
.hcm-solar-phase-card--dawn:hover {
  border-color: rgba(139, 92, 246, 0.35);
}

.hcm-solar-phase-card--blue .hcm-solar-phase-card__icon {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}
.hcm-solar-phase-card--blue:hover {
  border-color: rgba(6, 182, 212, 0.35);
}

.hcm-solar-phase-card--gold .hcm-solar-phase-card__icon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.hcm-solar-phase-card--gold:hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.hcm-solar-phase-card--dusk .hcm-solar-phase-card__icon {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}
.hcm-solar-phase-card--dusk:hover {
  border-color: rgba(249, 115, 22, 0.35);
}

.hcm-solar-phase-card__kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.hcm-solar-phase-card__title {
  margin: 1px 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.hcm-solar-phase-card__time {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hcm-solar-phase-card__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

/* Tomorrow Banner */
.hcm-solar-tomorrow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px -2px rgba(245, 158, 11, 0.08);
}

.hcm-solar-tomorrow__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.28);
}

.hcm-solar-tomorrow__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.hcm-solar-tomorrow__kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b45309;
}

.hcm-solar-tomorrow__title {
  margin: 4px 0 3px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #78350f;
  letter-spacing: -0.02em;
}

.hcm-solar-tomorrow__desc {
  margin: 0;
  font-size: 13.5px;
  color: #92400e;
}

.hcm-solar-tomorrow__length {
  text-align: right;
  border-left: 1px solid rgba(245, 158, 11, 0.25);
  padding-left: 24px;
}

.hcm-solar-tomorrow__length span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #b45309;
}

.hcm-solar-tomorrow__length strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #78350f;
}

/* 7-Day Solar Forecast Grid */
.hcm-solar-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 32px 30px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

.hcm-solar-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.hcm-solar-section__kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0284c7;
  margin-bottom: 4px;
}

.hcm-solar-section__title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hcm-solar-section__sub {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  text-align: right;
}

.hcm-solar-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.hcm-solar-day-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hcm-solar-day-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
}

.hcm-solar-day-card.is-today {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.35);
}

.hcm-solar-day-card__badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
}

.hcm-solar-day-card__date {
  margin-bottom: 10px;
}

.hcm-solar-day-card__dow {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.hcm-solar-day-card.is-today .hcm-solar-day-card__dow {
  color: #ffffff;
}

.hcm-solar-day-card__day {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

.hcm-solar-day-card.is-today .hcm-solar-day-card__day {
  color: rgba(255, 255, 255, 0.75);
}

.hcm-solar-day-card__orbit {
  position: relative;
  height: 26px;
  margin: 6px auto 10px;
  width: 48px;
  border-top: 2px dashed #cbd5e1;
  border-radius: 48px 48px 0 0;
}

.hcm-solar-day-card.is-today .hcm-solar-day-card__orbit {
  border-color: rgba(255, 255, 255, 0.4);
}

.hcm-solar-day-card__orbit-sun {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef08a, #f59e0b);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.hcm-solar-day-card__times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
}

.hcm-solar-day-card__times span {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 600;
  color: #64748b;
}

.hcm-solar-day-card.is-today .hcm-solar-day-card__times span {
  color: rgba(255, 255, 255, 0.65);
}

.hcm-solar-day-card__times strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.hcm-solar-day-card.is-today .hcm-solar-day-card__times strong {
  color: #ffffff;
}

.hcm-solar-day-card__duration {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
}

.hcm-solar-day-card.is-today .hcm-solar-day-card__duration {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}

/* Directory Section */
.hcm-solar-dir-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.hcm-solar-dir-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(340px, 100%);
  height: 44px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  transition: all 0.2s ease;
}

.hcm-solar-dir-search:focus-within {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.hcm-solar-dir-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.hcm-solar-dir-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 13.5px;
  padding: 0;
}

.hcm-solar-dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hcm-solar-dir-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none !important;
  color: #0f172a;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hcm-solar-dir-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.08);
  color: #0284c7;
}

.hcm-solar-dir-card.is-current {
  border-color: #38bdf8;
  background: #f0f9ff;
  box-shadow: 0 0 0 1px #38bdf8;
}

.hcm-solar-dir-grid:not(.is-expanded):not(.is-searching) .hcm-solar-dir-card.is-extra:not(.is-current) {
  display: none;
}

.hcm-solar-dir-card__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.hcm-solar-dir-card__name small {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  color: #0284c7;
  text-transform: uppercase;
  margin-top: 1px;
}

.hcm-solar-dir-card__times {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
}

.hcm-solar-dir-card__times span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hcm-solar-dir-card__times i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.hcm-solar-dir-card__times .is-rise {
  background: #f59e0b;
  box-shadow: 0 0 0 2px #fef3c7;
}

.hcm-solar-dir-card__times .is-set {
  background: #8b5cf6;
  box-shadow: 0 0 0 2px #ede9fe;
}

.hcm-solar-dir-card__arrow {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #94a3b8;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease, stroke 0.2s ease;
  flex-shrink: 0;
}

.hcm-solar-dir-card:hover .hcm-solar-dir-card__arrow {
  stroke: #0284c7;
  transform: translateX(2px);
}

.hcm-solar-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px auto 0;
  padding: 10px 22px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hcm-solar-toggle-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
}

.hcm-solar-toggle-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s ease;
}

.hcm-solar-toggle-btn.is-expanded svg {
  transform: rotate(180deg);
}

.hcm-solar-no-results {
  margin: 24px 0 6px;
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

/* Editorial & Guide Knowledge Section */
.hcm-solar-guide-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  margin-bottom: 28px;
}

.hcm-solar-guide-feature {
  position: relative;
  padding: 40px 36px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0369a1 100%);
  color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hcm-solar-guide-feature::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  bottom: -100px;
  border: 36px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.hcm-solar-guide-feature__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fde047;
}

.hcm-solar-guide-feature__title {
  margin: 10px 0 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hcm-solar-guide-feature__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

.hcm-solar-guide-feature__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 28px;
}

.hcm-solar-guide-body {
  padding: 38px 40px;
}

.hcm-solar-guide-item {
  margin-bottom: 24px;
}

.hcm-solar-guide-item:last-child {
  margin-bottom: 0;
}

.hcm-solar-guide-item__title {
  margin: 0 0 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.hcm-solar-guide-item__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hcm-solar-hero {
    grid-template-columns: 1fr;
    padding: 36px 30px;
  }
  .hcm-solar-hero__info {
    max-width: 100%;
  }
  .hcm-solar-phases {
    grid-template-columns: repeat(2, 1fr);
  }
  .hcm-solar-week-grid {
    overflow-x: auto;
    grid-template-columns: repeat(7, 140px);
    padding-bottom: 8px;
  }
  .hcm-solar-dir-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hcm-solar-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hcm-solar-pulse {
    flex-direction: column;
    align-items: flex-start;
  }
  .hcm-solar-pulse__divider {
    display: none;
  }
  .hcm-solar-pulse__metrics {
    gap: 14px 20px;
  }
  .hcm-solar-tomorrow {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hcm-solar-tomorrow__length {
    text-align: left;
    border-left: 0;
    border-top: 1px solid rgba(245, 158, 11, 0.25);
    padding-left: 0;
    padding-top: 14px;
  }
}

@media (max-width: 640px) {
  .hcm-solar-hero {
    padding: 24px 18px 20px;
    border-radius: 20px;
  }
  .hcm-solar-hero__title {
    font-size: 28px;
  }
  .hcm-solar-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .hcm-solar-form, .hcm-solar-select-wrap, .hcm-solar-select, .hcm-solar-btn {
    width: 100%;
  }
  .hcm-solar-phases {
    grid-template-columns: 1fr;
  }
  .hcm-solar-dir-grid {
    grid-template-columns: 1fr;
  }
  .hcm-solar-guide-feature,
  .hcm-solar-guide-body {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   THOI TIET QUOC TE: hero, continent chips, search box, country grid
   ========================================================================== */

.hcm-intl-page {
  position: relative;
  overflow: hidden;
  padding: 4px 0 60px;
  z-index: 2;
}

.hcm-intl-hero {
  margin-bottom: 36px;
}

.hcm-intl-hero__title {
  margin: 18px 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--hcm-ink, #0f172a);
  line-height: 1.2;
}

.hcm-intl-hero__desc {
  margin: 12px 0 0;
  max-width: 860px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--hcm-ink-soft, #475569);
}

.hcm-intl-ref {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  border-radius: 22px;
  padding: 14px 22px;
  background: #f0f9ff;
  border: 1px solid var(--hcm-card-border);
  box-sizing: border-box;
}

.hcm-intl-ref__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0369a1;
}

.hcm-intl-ref__city {
  font-size: 14.5px;
  color: var(--hcm-ink-soft, #475569);
}

.hcm-intl-ref__city strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  color: var(--hcm-ink, #0f172a);
  margin-left: 2px;
}

.hcm-intl-ref__link {
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 600;
  color: #0284c7;
  transition: color 0.2s ease;
}

.hcm-intl-ref__link:hover {
  color: #0369a1;
}

.hcm-intl-chips {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hcm-chip {
  border: 1px solid var(--hcm-card-border);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  user-select: none;
}

.hcm-chip:hover {
  border-color: rgba(56, 189, 248, 0.6);
  color: #0369a1;
  transform: translateY(-2px);
}

.hcm-chip.is-active {
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.35);
  color: #0369a1;
  font-weight: 600;
}

.hcm-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0284c7;
  flex-shrink: 0;
}

.hcm-intl-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;
  height: 48px;
  margin-top: 20px;
  background: #ffffff;
  border: 1.5px solid var(--hcm-card-border);
  border-radius: 999px;
  padding: 0 16px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.hcm-intl-search-box:hover {
  border-color: rgba(56, 189, 248, 0.6);
}

.hcm-intl-search-box:focus-within {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.hcm-intl-search-box__icon {
  flex-shrink: 0;
  color: #64748b;
  margin-right: 10px;
  pointer-events: none;
  transition: color 0.2s;
}

.hcm-intl-search-box:focus-within .hcm-intl-search-box__icon {
  color: #0284c7;
}

.hcm-intl-search-box input,
.hcm-intl-search-box input[type="text"],
.hcm-intl-search-box .hcm-intl-search-box__input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-family: inherit !important;
  font-size: 15px !important;
  color: #1e293b !important;
  line-height: normal !important;
  vertical-align: middle !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.hcm-intl-search-box input:focus,
.hcm-intl-search-box input[type="text"]:focus,
.hcm-intl-search-box .hcm-intl-search-box__input:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.hcm-intl-search-box__clear {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  transition: all 0.15s ease;
}

.hcm-intl-search-box__clear:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

.hcm-intl-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hcm-intl-region__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hcm-intl-region__title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hcm-ink, #0f172a);
}

.hcm-intl-region__count {
  font-size: 13.5px;
  color: var(--hcm-ink-subtle, #64748b);
}

.hcm-intl-region__more {
  font-size: 13.5px;
  font-weight: 600;
  color: #0284c7;
  cursor: pointer;
  margin-left: auto;
}

.hcm-intl-region__more:hover {
  color: #0369a1;
}

.hcm-intl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.hcm-intl-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--hcm-radius-xl, 20px);
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  box-shadow: var(--hcm-card-shadow);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-sizing: border-box;
}

.hcm-intl-card:hover {
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-3px);
  box-shadow: var(--hcm-card-shadow-hover);
}

.hcm-intl-card__icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hcm-intl-card__icon svg {
  width: 38px;
  height: 38px;
  display: block;
  overflow: visible;
}

.hcm-intl-card__info {
  min-width: 0;
  flex: 1;
}

.hcm-intl-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--hcm-ink, #0f172a);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.hcm-intl-card__cities {
  font-size: 12.5px;
  color: var(--hcm-ink-subtle, #64748b);
  margin-top: 2px;
}

.hcm-intl-card__temp {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0284c7;
  flex: none;
  text-align: right;
  min-width: 38px;
}

.hcm-intl-empty {
  border-radius: 26px;
  padding: 48px 24px;
  text-align: center;
  background: var(--hcm-surface, #fff);
  border: 1px dashed var(--hcm-card-border);
  color: var(--hcm-ink-soft, #475569);
  font-size: 15.5px;
}

/* --- Native <details>/<summary> FAQ (khong can JS) --- */
.hcm-faq-details details {
  border-bottom: 1px solid var(--hcm-card-border);
  padding: 14px 0;
}

.hcm-faq-details summary {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--hcm-ink, #0f172a);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hcm-faq-details summary::-webkit-details-marker {
  display: none;
}

.hcm-faq-details summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: #0284c7;
  transition: transform 0.2s ease;
}

.hcm-faq-details details[open] summary::after {
  content: "\2212";
  color: #0369a1;
}

.hcm-faq-details__a {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--hcm-ink-soft, #475569);
}

@media (max-width: 768px) {
  .hcm-intl-hero__title { font-size: 28px; }
  .hcm-intl-hero__desc { font-size: 14.5px; line-height: 1.65; }
  .hcm-intl-ref { padding: 12px 16px; gap: 10px 14px; border-radius: 18px; }
  .hcm-intl-ref__link { margin-left: 0; width: 100%; margin-top: 2px; }
  .hcm-intl-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
    gap: 8px;
  }
  .hcm-intl-chips::-webkit-scrollbar { display: none; }
  .hcm-chip { flex-shrink: 0; white-space: nowrap; padding: 7px 14px; font-size: 13px; }
  .hcm-intl-search-box { max-width: 100%; width: 100%; }
  .hcm-intl-region__head { margin-bottom: 12px; }
  .hcm-intl-region__title { font-size: 20px; }
  .hcm-intl-region__more { margin-left: 0; width: 100%; margin-top: 2px; }
}

@media (max-width: 600px) {
  .hcm-intl-search-box { max-width: 100%; height: 46px; }
}

@media (max-width: 580px) {
  .hcm-intl-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ==========================================================================
   INTL WEATHER DETAIL PAGE (/thoi-tiet-quoc-te/{country}/)
   ========================================================================== */

.hcm-intl-detail-hero {
    background: var(--hcm-surface, #fff);
    border: 1px solid var(--hcm-card-border);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.hcm-intl-detail-hero__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}
.hcm-intl-time-badge {
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 14px;
    padding: 12px 18px;
    text-align: right;
}
.hcm-intl-daily-item {
    display: grid;
    grid-template-columns: 140px 180px 1fr 100px;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0,0,0,0.02);
    border-radius: 10px;
    font-size: 14px;
    gap: 8px;
}
@media (max-width: 768px) {
    .hcm-intl-detail-hero__top {
        flex-direction: column;
        align-items: stretch;
    }
    .hcm-intl-time-badge {
        text-align: left;
        width: 100%;
    }
    .hcm-intl-daily-item {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "day temp"
            "weather rain";
        row-gap: 8px;
        padding: 14px;
    }
    .hcm-intl-daily-item__day { grid-area: day; }
    .hcm-intl-daily-item__weather { grid-area: weather; }
    .hcm-intl-daily-item__temp { grid-area: temp; justify-content: flex-end; }
    .hcm-intl-daily-item__rain { grid-area: rain; text-align: right; }
}

/* ==========================================================================
   BAN DO MUA: interactive Windy map card, controls, status bar, legend,
   fullscreen dark mode, city weather grid
   ========================================================================== */

.hcm-rainmap-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 24px);
  box-shadow: var(--hcm-card-shadow);
  margin-bottom: 44px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.hcm-rainmap-card:hover {
  box-shadow: var(--hcm-card-shadow-hover);
}

.hcm-rainmap-controls {
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hcm-rainmap-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.hcm-rainmap-row-layers {
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}

.hcm-rainmap-control-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hcm-rainmap-control-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hcm-rainmap-layer-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.hcm-rainmap-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hcm-rainmap-tab:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.04);
  transform: translateY(-1px);
}

.hcm-rainmap-tab.is-active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.35);
}

.hcm-rainmap-tab svg {
  flex-shrink: 0;
}

.hcm-rainmap-region-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.hcm-rainmap-region-pill {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 13px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.hcm-rainmap-region-pill:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
}

.hcm-rainmap-region-pill.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  font-weight: 600;
}

.hcm-rainmap-select-wrap {
  position: relative;
  flex-shrink: 0;
}

.hcm-rainmap-select {
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  height: 36px;
  padding: 0 34px 0 12px;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  outline: none;
  min-width: 220px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hcm-rainmap-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.hcm-rainmap-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hcm-rainmap-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hcm-rainmap-btn-action:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.hcm-rainmap-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 10px;
}

.hcm-rainmap-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hcm-status-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hcm-status-label {
  color: #94a3b8;
}

.hcm-status-item strong {
  color: #0f172a;
  font-weight: 600;
}

.hcm-status-sep {
  color: #cbd5e1;
}

.hcm-radar-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.hcm-radar-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
  animation: hcmRadarPulse 1.8s infinite;
}

@keyframes hcmRadarPulse {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.hcm-rainmap-viewport {
  position: relative;
  width: 100%;
  height: 680px;
  background: #0f172a;
}

.hcm-rainmap-legend {
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hcm-legend-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
}

.hcm-legend-title svg {
  color: #0284c7;
  flex-shrink: 0;
}

.hcm-legend-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hcm-legend-gradient-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #60a5fa 0%, #38bdf8 25%, #eab308 50%, #f97316 75%, #ef4444 90%, #a855f7 100%);
}

.hcm-legend-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

.hcm-legend-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.hcm-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.hcm-legend-step strong {
  color: #1e293b;
}

/* --- Fullscreen Mode --- */
.hcm-rainmap-card.is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  border-radius: 0 !important;
  border: 0 !important;
  margin: 0 !important;
  max-width: 100vw !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  background: #0f172a !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-rainmap-controls {
  background: #1e293b !important;
  border-bottom: 1px solid #334155 !important;
  padding: 10px 16px !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-rainmap-row-layers {
  border-bottom-color: #334155 !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-rainmap-control-title {
  color: #94a3b8 !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-rainmap-tab {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-rainmap-tab.is-active {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-rainmap-region-pill {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-rainmap-region-pill.is-active {
  background: #38bdf8 !important;
  border-color: #38bdf8 !important;
  color: #0f172a !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-rainmap-select {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-rainmap-btn-action {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-rainmap-btn-action:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-rainmap-status-bar {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
  color: #e2e8f0 !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-rainmap-status-left strong {
  color: #60a5fa !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-rainmap-legend {
  background: #1e293b !important;
  border-top: 1px solid #334155 !important;
  color: #cbd5e1 !important;
  padding: 10px 16px !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-legend-title {
  color: #e2e8f0 !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-legend-step strong {
  color: #ffffff !important;
}

.hcm-rainmap-card.is-fullscreen .hcm-rainmap-viewport {
  flex: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}

body.hcm-has-fullscreen-map {
  overflow: hidden !important;
}

/* --- Key hubs / city weather cards grid --- */
.hcm-rainmap-cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hcm-city-weather-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-lg, 18px);
  padding: 18px 20px;
  box-shadow: var(--hcm-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.hcm-city-weather-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hcm-card-shadow-hover);
}

.hcm-city-weather-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.hcm-city-weather-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
  margin: 0 0 4px;
  line-height: 1.3;
}

.hcm-cluster-card__sub {
  font-size: 12px;
  color: var(--hcm-ink-subtle, #64748b);
  margin-bottom: 2px;
}

.hcm-city-weather-cond {
  font-size: 13px;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hcm-city-weather-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hcm-city-weather-temp {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.hcm-city-temp-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
  line-height: 1;
}

.hcm-city-temp-unit {
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
}

.hcm-city-weather-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-top: 1px dashed var(--hcm-card-border);
  border-bottom: 1px dashed var(--hcm-card-border);
}

.hcm-city-stat-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

.hcm-city-stat-label {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.hcm-city-stat-val {
  color: #1e293b;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.hcm-city-stat-rain {
  color: #0284c7;
}

.hcm-city-weather-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.hcm-btn-radar-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 8px;
  color: #0284c7;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hcm-btn-radar-jump:hover {
  background: #0284c7;
  color: #ffffff;
}

.hcm-link-city-detail {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.hcm-link-city-detail:hover {
  color: #0284c7;
}

@media (max-width: 1100px) {
  .hcm-rainmap-cities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hcm-rainmap-cities-grid { grid-template-columns: 1fr; }
  .hcm-rainmap-viewport { height: 420px; }
  .hcm-legend-labels { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   THEO DOI BAO: warning banner, storm cards, wind map, Beaufort scale,
   tools chip grid. .hcm-prose / .hcm-tool-hero / .hcm-tool-section /
   .hcm-faq-list cua he thong chung duoc tai su dung truc tiep.
   ========================================================================== */

.hcm-storm-page {
  padding: 24px 0 60px;
  background: #f8fafc;
}

.hcm-storm-warn {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #ea580c;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px -2px rgba(234, 88, 12, 0.08);
}

.hcm-storm-warn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffedd5;
  color: #ea580c;
  flex-shrink: 0;
  margin-top: 2px;
}

.hcm-storm-warn__text {
  color: #9a3412;
  font-size: 14px;
  line-height: 1.6;
}
.hcm-storm-warn__text strong { color: #7c2d12; }
.hcm-storm-warn__text a { color: #c2410c; font-weight: 700; text-decoration: underline; }

.hcm-storm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.hcm-storm-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-lg, 18px);
  padding: 20px;
  box-shadow: var(--hcm-card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.hcm-storm-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hcm-card-shadow-hover);
}

.hcm-storm-card.is-vn {
  border-color: #fca5a5;
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
}

.hcm-storm-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.hcm-storm-card__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
}

.hcm-storm-card__wind {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.hcm-storm-card__cap {
  font-size: 14.5px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 8px;
}

.hcm-storm-card__meta {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}
.hcm-storm-card__meta span { display: block; margin-top: 3px; }

.hcm-storm-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0284c7;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.hcm-storm-card__btn:hover { background: #0284c7; color: #ffffff; }

.hcm-storm-none {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 28px;
  color: #166534;
  font-size: 14.5px;
  line-height: 1.5;
}

.hcm-storm-none__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #dcfce7;
  color: #16a34a;
  flex-shrink: 0;
}

/* --- Interactive storm wind map --- */
.hcm-storm-map-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  overflow: hidden;
  box-shadow: var(--hcm-card-shadow);
  margin-bottom: 32px;
}

.hcm-storm-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.hcm-storm-map-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hcm-storm-map-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}
.hcm-storm-map-tab:hover { border-color: #94a3b8; background: #f1f5f9; }
.hcm-storm-map-tab.is-active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px -1px rgba(2, 132, 199, 0.35);
}

.hcm-storm-map-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hcm-storm-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}
.hcm-storm-map-btn:hover { background: #f1f5f9; color: #0f172a; }

.hcm-storm-map-frame {
  position: relative;
  width: 100%;
  height: 600px;
  background: #0f172a;
}
.hcm-storm-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hcm-storm-map-foot {
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}
.hcm-storm-map-foot b { color: #1e293b; }
.hcm-storm-map-foot a { color: #0284c7; text-decoration: underline; }

/* --- Beaufort storm classification scale --- */
.hcm-storm-scale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.hcm-storm-scale-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--hcm-card-shadow);
  border-top: 4px solid #64748b;
}

.hcm-storm-scale-card__level {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
  margin-bottom: 4px;
}

.hcm-storm-scale-card__speed {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.hcm-storm-scale-card__desc {
  font-size: 12.5px;
  color: var(--hcm-ink-soft, #475569);
  line-height: 1.5;
  margin: 0;
}

/* --- Related tools chip grid --- */
.hcm-tools-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.hcm-tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: 12px;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.hcm-tool-chip:hover {
  border-color: rgba(56, 189, 248, 0.6);
  background: #f8fafc;
  color: #0284c7;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .hcm-storm-map-frame { height: 440px; }
  .hcm-storm-map-head { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   HOM NAY MAC GI: tool card wrapper, temp-rule cards, precautions,
   related tools grid. Cac class mg-*/mgp-* (widget "mac gi" JS-driven)
   giu nguyen, khong doi ten vi khong xung dot va gan chat voi logic JS.
   ========================================================================== */

.hcm-tool-card {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 24px 26px;
  box-shadow: var(--hcm-card-shadow);
  margin-bottom: 32px;
}

.hcm-guide-section {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: var(--hcm-card-shadow);
}

.hcm-guide-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--hcm-ink, #0f172a);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hcm-guide-intro {
  font-size: 15px;
  line-height: 1.75;
  color: var(--hcm-ink-soft, #475569);
  margin-bottom: 24px;
}

.hcm-guide-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 18px;
}

.hcm-temp-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .hcm-temp-rules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .hcm-temp-rules-grid { grid-template-columns: 1fr; } }

.hcm-temp-rule-card {
  border-radius: 14px;
  border: 1px solid var(--hcm-card-border);
  padding: 16px 18px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.hcm-rule-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.rule-hot .hcm-rule-badge { background: #fee2e2; color: #b91c1c; }
.rule-warm .hcm-rule-badge { background: #ffedd5; color: #c2410c; }
.rule-mild .hcm-rule-badge { background: #ecfdf5; color: #047857; }
.rule-cool .hcm-rule-badge { background: #eff6ff; color: #0369a1; }
.rule-cold .hcm-rule-badge { background: #f5f3ff; color: #6d28d9; }
.rule-freezing .hcm-rule-badge { background: #ede9fe; color: #4338ca; }

.hcm-rule-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
  margin: 0 0 6px;
}

.hcm-rule-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--hcm-ink-soft, #475569);
  margin: 0 0 12px;
  flex: 1;
}

.hcm-rule-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}

.hcm-precautions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) { .hcm-precautions-grid { grid-template-columns: 1fr; } }

.hcm-precaution-card {
  background: #f1f5f9;
  border-radius: 14px;
  padding: 18px 20px;
}

.hcm-precaution-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hcm-precaution-icon { font-size: 20px; }

.hcm-precaution-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
}

.hcm-precaution-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--hcm-ink-soft, #475569);
  margin: 0;
}

/* --- FAQ section wrapper (items themselves use .hcm-faq-list) --- */
.hcm-faqs-section {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: var(--hcm-card-shadow);
}

.hcm-faqs-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--hcm-ink, #0f172a);
  margin: 0 0 20px;
}

/* --- Related tools grid (4-col link cards) --- */
.hcm-related-tools {
  background: var(--hcm-surface, #fff);
  border: 1px solid var(--hcm-card-border);
  border-radius: var(--hcm-radius-xl, 20px);
  padding: 24px 28px;
  box-shadow: var(--hcm-card-shadow);
}

.hcm-related-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
  margin: 0 0 18px;
}

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

.hcm-related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}
.hcm-related-item:hover {
  background: #f0f9ff;
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.hcm-related-icon { font-size: 22px; flex-shrink: 0; }

.hcm-related-item strong {
  display: block;
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 2px;
}

.hcm-related-item span {
  display: block;
  font-size: 12px;
  color: var(--hcm-ink-subtle, #64748b);
}

/* --- "Hom nay mac gi" widget (JS-driven, class prefix mg-/mgp- giu nguyen) --- */
.mgp-pick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.mgp-pick-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
}
.mgp-pick-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 620px;
  flex-wrap: wrap;
}
.mgp-select-wrap {
  flex: 1;
  min-width: 180px;
  position: relative;
}
.mgp-c, .mgp-u {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.mgp-c:focus, .mgp-u:focus {
  border-color: #0284c7;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

#mgp-result { transition: opacity 0.25s ease; }
.mgp-loading-box { text-align: center; padding: 48px 16px; }
.mgp-spinner {
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 3.5px solid #e2e8f0;
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: mgSpin 0.8s linear infinite;
  margin-bottom: 14px;
}
@keyframes mgSpin { to { transform: rotate(360deg); } }
.mgp-loading-text { font-size: 14.5px; color: #64748b; margin: 0; }

.mgp-h {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--hcm-ink, #0f172a);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mgp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) { .mgp-grid { grid-template-columns: 1fr; } }

.mgp-card {
  border: 1px solid var(--hcm-card-border);
  border-radius: 16px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mgp-card:hover { transform: translateY(-2px); box-shadow: var(--hcm-card-shadow-hover); }
.mgp-ctop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mgp-pn { font-size: 17px; font-weight: 800; color: #075985; }
.mgp-hr {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
}
.mgp-temp {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--hcm-ink, #0f172a);
  line-height: 1.1;
  margin-bottom: 6px;
}
.mgp-feels { font-size: 13px; font-weight: 600; color: #475569; margin-left: 10px; vertical-align: middle; }
.mgp-desc { font-size: 13.5px; font-weight: 500; color: #64748b; margin-bottom: 12px; }
.mgp-rec {
  font-size: 14.5px;
  line-height: 1.8;
  color: #334155;
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--hcm-card-border);
}
.mg-tip {
  font-size: 13px;
  color: #64748b;
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mg-tip::before { content: "💡"; }

.mg-i {
  display: inline-flex !important;
  align-items: center;
  color: #0369a1 !important;
  background: #f0f9ff !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 6px !important;
  padding: 2px 7px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  margin: 1px 2px !important;
  text-decoration: none !important;
}
.mg-i:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  transform: translateY(-1px);
}
.hcm-rule-items .mg-i { font-size: 12px !important; padding: 2px 6px !important; }

/* Modal Window */
.mg-modal { position: fixed; inset: 0; z-index: 99999; display: none; }
.mg-modal.open { display: block; }
.mg-back {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}
.mg-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 94vw);
  background: #ffffff;
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.35);
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}
.mg-x {
  position: absolute;
  right: 16px;
  top: 14px;
  border: 0;
  background: #f1f5f9;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.mg-x:hover { background: #e2e8f0; color: #0f172a; }
.mg-title {
  margin: 0 0 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--hcm-ink, #0f172a);
}
.mg-toggle {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}
.mg-toggle button {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mg-toggle button.on { background: #0284c7; color: #ffffff; box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3); }
.mg-img {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}
.mg-img svg { width: 190px; height: 190px; }
.mg-img img { max-width: 100%; max-height: 280px; border-radius: 10px; object-fit: contain; }
.mg-desc { margin: 0; color: #334155; font-size: 14.5px; line-height: 1.7; min-height: 48px; font-weight: 500; }

/* ==========================================================================
   LICH CAU CA: warning banner, guide cards (rieng, khong dung chung
   .hcm-guide-card vi khac mau/padding). Cac class cauca-*/cc-*/#ccCountry
   /#ccProvince/#ccResult do PHP backend (REST cauca/v1/forecast) sinh ra
   HTML dong, giu nguyen hoan toan khong doi ten.
   ========================================================================== */

.hcm-cauca-warn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #991b1b;
}
.hcm-cauca-warn__icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.hcm-cauca-warn__text strong { color: #7f1d1d; }

.hcm-cauca-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
@media (max-width: 680px) { .hcm-cauca-guide-grid { grid-template-columns: 1fr; } }

.hcm-cauca-guide-card {
  background: #f8fafc;
  border: 1px solid var(--hcm-card-border);
  border-radius: 14px;
  padding: 20px 22px;
}
.hcm-cauca-guide-card__icon { font-size: 24px; margin-bottom: 8px; }
.hcm-cauca-guide-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
  margin: 0 0 8px;
}
.hcm-cauca-guide-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--hcm-ink-soft, #475569);
  margin: 0 0 10px;
}
.hcm-cauca-guide-card p:last-child { margin-bottom: 0; }
.hcm-cauca-guide-card ul {
  margin: 6px 0 0 18px;
  padding: 0;
  color: var(--hcm-ink-soft, #475569);
  font-size: 13.5px;
  line-height: 1.65;
}

/* --- Location picker bar (giu nguyen ten cauca-*) --- */
.cauca-picker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cauca-picker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
}
.cauca-picker-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 620px;
  flex-wrap: wrap;
}
.cauca-select-wrap { flex: 1; min-width: 180px; position: relative; }
#ccCountry, #ccProvince {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
#ccCountry:focus, #ccProvince:focus {
  border-color: #0284c7;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* --- Dynamic result area (server-rendered via REST, class names fixed) --- */
#ccResult { transition: opacity 0.2s ease; }
.cauca-loading { opacity: 0.45; pointer-events: none; }
.cauca-loading-state { text-align: center; padding: 48px 16px; }
.cauca-spinner {
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 3.5px solid #e2e8f0;
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: ccSpin 0.8s linear infinite;
  margin-bottom: 14px;
}
@keyframes ccSpin { to { transform: rotate(360deg); } }

.cauca-result { font-family: inherit; }
.cc-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 2px solid #3cb043;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 6px 0 16px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.cc-grade {
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  text-align: center;
  min-width: 80px;
  background: #3cb043;
}
.cc-grade .cc-g { font-size: 32px; font-weight: 800; line-height: 1; }
.cc-grade .cc-sc { font-size: 12px; font-weight: 600; opacity: 0.95; margin-top: 2px; }
.cc-hero-meta { flex: 1; }
.cc-stars { color: #f59e0b; font-size: 20px; letter-spacing: 2px; line-height: 1; margin-bottom: 4px; }
.cc-name { font-weight: 800; font-size: 20px; color: #0f172a; line-height: 1.2; }
.cc-sub { color: #64748b; font-size: 13px; margin-top: 3px; }

.cc-factors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 16px 0 20px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 16px 18px;
}
@media (min-width: 740px) { .cc-factors { grid-template-columns: 1fr 1fr; gap: 8px 24px; } }
.cc-fac {
  display: grid;
  grid-template-columns: 125px 90px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
@media (max-width: 540px) { .cc-fac { grid-template-columns: 105px 65px 1fr; font-size: 12px; } }
.cc-fn { font-weight: 600; color: #1e293b; }
.cc-bar { background: #e2e8f0; border-radius: 6px; height: 8px; overflow: hidden; }
.cc-bar i { display: block; height: 8px; border-radius: 6px; }
.cc-fnote { color: #475569; white-space: normal; }

.cc-h {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 22px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cc-sol { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cc-sol span {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}
.cc-major { background: #059669; color: #ffffff; box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25); }
.cc-minor { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

.cc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 580px) { .cc-grid2 { grid-template-columns: 1fr; } }
.cc-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
}

.cc-tidestate {
  font-size: 14px;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 8px 14px;
  margin: 6px 0 10px;
}
.cc-tide { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.cc-hi { color: #0284c7; background: #f0f9ff; padding: 4px 10px; border-radius: 6px; border: 1px solid #e0f2fe; }
.cc-lo { color: #b45309; background: #fffbeb; padding: 4px 10px; border-radius: 6px; border: 1px solid #fef3c7; }

.cc-days { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.cc-day {
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  min-width: 72px;
  flex: 1;
}
.cc-dd { font-size: 13px; font-weight: 600; color: #64748b; }
.cc-dg { color: #fff; border-radius: 6px; font-weight: 800; margin: 6px 0; padding: 4px 8px; font-size: 15px; }
.cc-dm { font-size: 12px; color: #475569; }

.cc-spots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cc-spot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #0369a1;
  text-decoration: none;
  transition: all 0.15s ease;
}
.cc-spot span { color: #64748b; font-size: 11.5px; font-weight: 500; }
.cc-spot:hover { background: #0284c7; color: #ffffff; border-color: #0284c7; }
.cc-spot:hover span { color: #e0f2fe; }
.cc-disc { font-size: 12.5px; color: #64748b; margin-top: 14px; line-height: 1.6; }

/* --- Stats box (giu nguyen ten cauca-stats-*/ccst-*) --- */
.cauca-stats-box { border-top: 1px solid #f1f5f9; padding-top: 24px; }
.cauca-stats-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
  margin: 0 0 16px;
}
.ccst-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 760px) { .ccst-grid { grid-template-columns: repeat(2, 1fr); } }
.ccst { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 18px; }
.ccst b { display: block; font-size: 26px; font-weight: 800; color: #0369a1; line-height: 1.1; margin-bottom: 4px; }
.ccst span { font-size: 13px; color: #64748b; font-weight: 500; }
.ccst-types-wrap { margin-bottom: 12px; }
.ccst-types-wrap h4 { font-size: 14.5px; font-weight: 700; color: #1e293b; margin: 0 0 10px; }
.ccst-types {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 20px;
}
@media (max-width: 760px) { .ccst-types { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ccst-types { grid-template-columns: 1fr; } }
.ccst-types li {
  font-size: 13.5px;
  color: #475569;
  border-bottom: 1px dashed #e2e8f0;
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
}
.ccst-types li b { color: #0f172a; }
.ccst-source-note { font-size: 12.5px; color: #64748b; margin: 14px 0 0; line-height: 1.6; }


/* ====================================================================
   HCM LOCATION & DETAIL PAGES (Oceanic Blue Glass Modernization)
   Replaces legacy tt-card, tt-detail-grid, tt-dayparts-grid, etc.
   ==================================================================== */
.hcm-card {
  border-radius: var(--hcm-radius-lg, 20px);
  background: #ffffff;
  border: 1px solid rgba(186, 230, 253, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -2px rgba(2, 132, 199, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hcm-card--interactive:hover {
  transform: translateY(-3px);
  border-color: #0284c7;
  box-shadow: 0 12px 28px -4px rgba(2, 132, 199, 0.16);
}

.hcm-loc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}
.hcm-loc-main {
  flex: 3 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hcm-loc-aside {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (max-width: 900px) {
  .hcm-loc-grid {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .hcm-loc-main,
  .hcm-loc-aside {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}

/* Metrics 6 Grid */
.hcm-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.hcm-metrics-grid--day {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
@media (max-width: 900px) {
  .hcm-metrics-grid--day {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 520px) {
  .hcm-metrics-grid,
  .hcm-metrics-grid--day {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.hcm-metric-item {
  border-radius: 14px;
  min-width: 0;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.hcm-metric-item:hover {
  background: #f0f9ff;
  border-color: rgba(2, 132, 199, 0.35);
}
.hcm-metric-item__head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}
.hcm-metric-item__val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
}

/* Dayparts Grid (Sáng, Trưa, Tối, Đêm) */
.hcm-dayparts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 560px) {
  .hcm-dayparts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hcm-daypart-card {
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hcm-daypart-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.15);
}

/* Hourly Forecast Scroll */
.hcm-hourly-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 20px 20px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}
.hcm-hourly-scroll::-webkit-scrollbar {
  height: 6px;
}
.hcm-hourly-scroll::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 3px;
}
.hcm-hourly-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.hcm-hour-col {
  flex: 0 0 88px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.2s ease;
}
.hcm-hour-col:hover {
  background: #ffffff;
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

/* Daily Forecast Rows */
.hcm-day-row {
  display: grid;
  grid-template-columns: minmax(86px, auto) minmax(84px, auto) minmax(0, 1fr) auto auto 24px;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: background 0.2s ease;
}
.hcm-day-row:hover {
  background: rgba(2, 132, 199, 0.04);
}
@media (max-width: 640px) {
  .hcm-day-row {
    grid-template-columns: minmax(70px, auto) minmax(70px, auto) minmax(0, 1fr) auto;
  }
  .hcm-day-row__wind,
  .hcm-day-row__chev {
    display: none !important;
  }
}

/* Sublocations Grid */
.hcm-subloc-grid {
  padding: 18px 24px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.hcm-subloc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #f8fafc;
  color: var(--hcm-ink, #0f172a);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.hcm-subloc-link:hover {
  background: #ffffff;
  border-color: #0284c7;
  color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

/* Sublocation button in tab row */
.hcm-subloc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.hcm-subloc-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Sun Moon Astronomy Cards (Modern Glassmorphic Redesign) */
.hcm-sunmoon-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.hcm-astro-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  isolation: isolate;
}

.hcm-astro-card:hover {
  transform: translateY(-2px);
}

/* Sun Card Theme */
.hcm-sun-card {
  box-shadow: 0 10px 28px -6px rgba(234, 88, 12, 0.38), 0 2px 8px rgba(0, 0, 0, 0.12);
  border-color: rgba(253, 186, 116, 0.35);
  background-color: #c2410c;
}
.hcm-sun-card:hover {
  box-shadow: 0 14px 34px -6px rgba(234, 88, 12, 0.48), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hcm-sun-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, rgba(15, 23, 42, 0.52) 0%, rgba(30, 27, 75, 0.32) 32%, rgba(194, 65, 12, 0.68) 78%, rgba(124, 45, 18, 0.88) 100%);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  z-index: 1;
  pointer-events: none;
}

/* Moon Card Theme */
.hcm-moon-card {
  box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.65), 0 2px 8px rgba(0, 0, 0, 0.2);
  border-color: rgba(165, 180, 252, 0.25);
  background-color: #0b1329;
}
.hcm-moon-card:hover {
  box-shadow: 0 14px 34px -6px rgba(15, 23, 42, 0.8), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hcm-moon-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, rgba(8, 12, 28, 0.62) 0%, rgba(15, 23, 42, 0.5) 35%, rgba(26, 21, 56, 0.72) 75%, rgba(12, 14, 35, 0.92) 100%);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  z-index: 1;
  pointer-events: none;
}

/* Shared Content Wrapper */
.hcm-astro-content {
  position: relative;
  z-index: 2;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Header */
.hcm-astro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hcm-astro-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hcm-astro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
}

.hcm-sun-badge {
  background: rgba(254, 240, 138, 0.22);
  border: 1px solid rgba(254, 240, 138, 0.4);
  color: #fef08a;
  box-shadow: 0 0 12px rgba(254, 240, 138, 0.3);
}

.hcm-moon-badge {
  background: rgba(199, 210, 254, 0.18);
  border: 1px solid rgba(199, 210, 254, 0.35);
  color: #c7d2fe;
  box-shadow: 0 0 12px rgba(165, 180, 252, 0.25);
}

.hcm-astro-headings {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hcm-astro-heading {
  margin: 0 !important;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hcm-astro-subhead {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hcm-astro-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.hcm-astro-action:hover {
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateX(1px);
}

.hcm-astro-action svg {
  transition: transform 0.2s ease;
}
.hcm-astro-action:hover svg {
  transform: translateX(2px);
}

/* Sun Stage */
.hcm-sun-stage {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hcm-sun-svg {
  width: 100%;
  height: 80px;
  display: block;
  overflow: visible;
}

.hcm-sun-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.92);
}

.hcm-sun-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.24);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  font-size: 11px;
}

.hcm-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hcm-pulse-dot.is-active {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: hcmPulseGlow 2s infinite ease-in-out;
}

.hcm-pulse-dot.is-night {
  background: #94a3b8;
}

@keyframes hcmPulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.25); }
}

.hcm-sun-duration-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
}
.hcm-sun-duration-tag strong {
  color: #fff;
  font-weight: 700;
}

/* Moon Stage (Cosmic Observatory) */
.hcm-moon-stage {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 14px;
  padding: 2px 0;
}

.hcm-moon-orb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hcm-moon-sphere {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hcm-moon-svg {
  filter: drop-shadow(0 0 10px rgba(165, 180, 252, 0.45));
  overflow: visible;
}

.hcm-moon-illum-pill {
  background: rgba(165, 180, 252, 0.18);
  border: 1px solid rgba(165, 180, 252, 0.35);
  color: #e0e7ff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.hcm-moon-illum-pill strong {
  color: #ffffff;
}

.hcm-moon-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hcm-moon-calendar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  color: #f1f5f9;
  font-weight: 600;
}

.hcm-moon-calendar-pill strong {
  color: #fef08a;
  font-weight: 700;
}

.hcm-moon-phase-name {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-top: 1px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hcm-moon-desc {
  margin: 0 !important;
  font-size: 11.5px;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bottom Pods (Shared Grid) */
.hcm-astro-pods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.hcm-astro-pod {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  text-decoration: none !important;
  color: #ffffff !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hcm-sun-pods .hcm-astro-pod {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hcm-sun-pods .hcm-astro-pod:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
}

.hcm-moon-pods .hcm-astro-pod {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(165, 180, 252, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hcm-moon-pods .hcm-astro-pod:hover {
  background: rgba(30, 41, 59, 0.68);
  border-color: rgba(165, 180, 252, 0.42);
  transform: translateY(-1px);
}

.hcm-astro-pod__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
}

.hcm-sunrise-pod .hcm-astro-pod__icon {
  color: #fef08a;
  background: rgba(254, 240, 138, 0.2);
}
.hcm-sunset-pod .hcm-astro-pod__icon {
  color: #fb923c;
  background: rgba(249, 115, 22, 0.2);
}
.hcm-moonrise-pod .hcm-astro-pod__icon {
  color: #a5b4fc;
  background: rgba(165, 180, 252, 0.2);
}
.hcm-moonset-pod .hcm-astro-pod__icon {
  color: #818cf8;
  background: rgba(129, 140, 248, 0.2);
}

.hcm-astro-pod__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hcm-astro-pod__label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.2;
}

.hcm-astro-pod__val {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px;
  color: #ffffff !important;
  line-height: 1.2;
  margin-top: 1px;
}

@media (max-width: 480px) {
  .hcm-astro-content {
    padding: 16px;
    gap: 10px;
  }
  .hcm-moon-stage {
    grid-template-columns: 74px 1fr;
    gap: 10px;
  }
  .hcm-astro-pods {
    gap: 8px;
  }
  .hcm-astro-pod {
    padding: 8px 10px;
    gap: 8px;
  }
}


/* Table 7-30 Days Forecast */
.hcm-day-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.hcm-day-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}
.hcm-day-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  color: #334155;
}
.hcm-day-table td img {
  vertical-align: middle !important;
  margin-right: 6px !important;
  display: inline-block !important;
}
.hcm-day-table tr:hover {
  background: rgba(2, 132, 199, 0.04);
}
.hcm-day-table__today {
  background: rgba(2, 132, 199, 0.06) !important;
  font-weight: 700;
}
.hcm-day-table__label {
  font-weight: 700;
  color: var(--hcm-ink, #0f172a);
}
.hcm-day-table__hilo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #0284c7;
}

/* Hourly Table Wrap & Table */
.hcm-hourly-table-wrap {
  display: block !important;
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}
.hcm-hourly-table-wrap::-webkit-scrollbar {
  height: 6px;
}
.hcm-hourly-table-wrap::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 3px;
}
.hcm-hourly-table-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.hcm-hourly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.hcm-hourly-table tr {
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.hcm-hourly-table td {
  padding: 10px 14px;
  white-space: nowrap;
  text-align: center;
}
.hcm-hourly-table td img {
  vertical-align: middle !important;
  display: inline-block !important;
}
.hcm-hourly-table td:first-child {
  text-align: left;
  font-weight: 700;
  color: #64748b;
  position: sticky;
  left: 0;
  background: #ffffff;
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
}
.hcm-hourly-temp {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  color: #0284c7;
  font-size: 15px;
}

/* ==========================================================================
   MODERN NEWS, BLOG & SIDEBAR (.hcm-news-*, .hcm-article-*, .hcm-sidebar-*)
   ========================================================================== */

/* Magazine Hero */
.hcm-mag-hero {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .hcm-mag-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
.hcm-mag-primary {
  display: flex;
}
.hcm-mag-primary-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  padding: 0 !important;
}
.hcm-mag-primary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(2, 132, 199, 0.12) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
}
.hcm-mag-primary-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}
.hcm-mag-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}
.hcm-mag-hero-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.hcm-mag-primary-card:hover .hcm-mag-hero-img {
  transform: scale(1.04);
}
.hcm-card-cat-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.hcm-card-cat-pill:hover {
  background: #0284c7;
}
.hcm-mag-primary-content {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hcm-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 8px;
}
.hcm-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}
.hcm-meta-sep {
  color: #cbd5e1;
  font-size: 11px;
  margin: 0 1px;
}
.hcm-meta-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.08);
  padding: 3px 9px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.hcm-meta-cat:hover {
  background: #0284c7;
  color: #ffffff !important;
}
.hcm-mag-primary-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.38 !important;
  margin: 4px 0 12px !important;
  color: var(--hcm-ink, #0f172a) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hcm-mag-primary-title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}
.hcm-mag-primary-title a:hover {
  color: #0284c7 !important;
}
.hcm-mag-primary-excerpt {
  font-size: 14px !important;
  line-height: 1.68 !important;
  color: #475569 !important;
  margin: 0 0 18px !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.hcm-mag-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0284c7 !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  margin-top: auto;
}
.hcm-mag-readmore:hover {
  color: #0369a1 !important;
  gap: 10px;
}

/* Magazine Secondary (Right 3) */
.hcm-mag-secondary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.hcm-mag-sub-card {
  display: flex !important;
  gap: 14px;
  align-items: center;
  padding: 12px 14px !important;
  flex: 1;
  text-decoration: none;
}
.hcm-mag-sub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.1) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
}
.hcm-mag-sub-thumb {
  width: 110px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  display: block;
}
.hcm-mag-sub-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.35s ease !important;
}
.hcm-mag-sub-card:hover .hcm-mag-sub-img {
  transform: scale(1.06);
}
.hcm-mag-sub-content {
  flex: 1;
  min-width: 0;
}
.hcm-mag-sub-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-bottom: 6px;
}
.hcm-sub-cat {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.08);
  padding: 2px 7px;
  border-radius: 5px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.hcm-sub-cat:hover {
  background: #0284c7;
  color: #ffffff !important;
}
.hcm-sub-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
}
.hcm-mag-sub-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hcm-mag-sub-title a {
  color: var(--hcm-ink, #0f172a) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}
.hcm-mag-sub-title a:hover {
  color: #0284c7 !important;
}

/* Subsequent Posts List */
.hcm-post-list-subsequent {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hcm-post-item-card {
  display: flex !important;
  gap: 20px;
  align-items: center;
  padding: 16px 20px !important;
  border-radius: 18px !important;
}
@media (max-width: 640px) {
  .hcm-post-item-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px !important;
  }
}
.hcm-item-thumb-link {
  width: 190px;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  display: block;
}
@media (max-width: 640px) {
  .hcm-item-thumb-link {
    width: 100%;
  }
}
.hcm-item-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.35s ease !important;
}
.hcm-post-item-card:hover .hcm-item-img {
  transform: scale(1.05);
}
.hcm-item-content {
  flex: 1;
  min-width: 0;
}
.hcm-item-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 6px 0 8px !important;
}
.hcm-item-title a {
  color: var(--hcm-ink, #0f172a) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}
.hcm-item-title a:hover {
  color: #0284c7 !important;
}
.hcm-item-excerpt {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: #64748b !important;
  margin: 0 0 10px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hcm-item-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0284c7 !important;
  text-decoration: none !important;
  transition: gap 0.2s ease;
}
.hcm-item-link:hover {
  gap: 8px;
}

/* Pagination */
.hcm-pagination-wrap {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}
.hcm-pagination-wrap .navigation.pagination {
  display: flex !important;
  justify-content: center !important;
}
.hcm-pagination-wrap .nav-links {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.hcm-pagination-wrap .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  color: #475569 !important;
  transition: all 0.2s ease !important;
}
.hcm-pagination-wrap .page-numbers:hover {
  background: rgba(2, 132, 199, 0.08) !important;
  color: #0284c7 !important;
  transform: translateY(-1px);
}
.hcm-pagination-wrap .page-numbers.current {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}
.hcm-pagination-wrap .prev.page-numbers,
.hcm-pagination-wrap .next.page-numbers {
  padding: 0 14px !important;
  gap: 6px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

/* Single Post View */
.hcm-article-card {
  padding: 36px 42px !important;
  border-radius: 24px !important;
}
@media (max-width: 768px) {
  .hcm-article-card {
    padding: 22px 18px !important;
  }
}
.hcm-article-cat-wrap {
  margin-bottom: 12px;
}
.hcm-article-cat-wrap .hcm-card-cat-pill {
  position: static !important;
  display: inline-flex !important;
}
.hcm-article-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.32 !important;
  color: var(--hcm-ink, #0f172a) !important;
  margin: 10px 0 16px !important;
}
@media (max-width: 768px) {
  .hcm-article-title {
    font-size: 22px !important;
  }
}
.hcm-article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.hcm-meta-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}
.hcm-meta-author {
  font-weight: 600;
  color: var(--hcm-ink, #0f172a);
}
.hcm-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hcm-article-featured-image {
  margin-bottom: 24px;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
}
.hcm-article-hero-img {
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* TOC in Single */
.hcm-toc-wrapper {
  background: rgba(2, 132, 199, 0.03);
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: 18px;
  padding: 20px 24px;
  margin: 24px 0 32px;
}
.hcm-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.hcm-toc-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--hcm-ink, #0f172a) !important;
}
.hcm-toc-toggle-btn {
  background: none !important;
  border: none !important;
  font-size: 13px !important;
  color: #0284c7 !important;
  cursor: pointer !important;
  font-weight: 600 !important;
}
.hcm-toc-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.hcm-toc-item a {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  font-size: 14px !important;
  color: #334155 !important;
  text-decoration: none !important;
  line-height: 1.5 !important;
  transition: color 0.2s ease !important;
}
.hcm-toc-item a:hover {
  color: #0284c7 !important;
  text-decoration: underline !important;
}
.hcm-toc-num {
  font-weight: 700 !important;
  color: #0284c7 !important;
}
.hcm-toc-level-3 { padding-left: 18px !important; font-size: 13.5px !important; }
.hcm-toc-level-4 { padding-left: 32px !important; font-size: 13px !important; }

/* Article Content & Typography */
.hcm-article-content p {
  font-size: 16px !important;
  line-height: 1.85 !important;
  color: #334155 !important;
  margin: 0 0 20px !important;
}
.hcm-article-content h2 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--hcm-ink, #0f172a) !important;
  margin: 36px 0 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid rgba(2, 132, 199, 0.15) !important;
}
.hcm-article-content h3 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--hcm-ink, #0f172a) !important;
  margin: 28px 0 14px !important;
}

/* Article Tags */
.hcm-article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  margin-top: 32px;
}
.hcm-tags-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}
.hcm-tag-item {
  font-size: 13px;
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.hcm-tag-item:hover {
  background: #0284c7;
  color: #ffffff !important;
}

/* Related Posts Section */
.hcm-related-posts-section {
  padding: 28px 32px !important;
  border-radius: 24px !important;
}
.hcm-related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.hcm-related-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--hcm-ink, #0f172a) !important;
  margin: 0 !important;
}
.hcm-related-viewmore {
  font-size: 13px;
  font-weight: 700;
  color: #0284c7 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.hcm-related-viewmore:hover {
  gap: 9px;
}
.hcm-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .hcm-related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.hcm-related-card {
  display: flex;
  flex-direction: column;
}
.hcm-related-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  margin-bottom: 10px;
  background: #f1f5f9;
}
.hcm-rel-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}
.hcm-related-card:hover .hcm-rel-img {
  transform: scale(1.05);
}
.hcm-related-date {
  font-size: 11.5px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}
.hcm-related-card-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}
.hcm-related-card-title a {
  color: var(--hcm-ink, #0f172a) !important;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease !important;
}
.hcm-related-card-title a:hover {
  color: #0284c7 !important;
}

/* Sidebar Widgets */
.hcm-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}
.hcm-sidebar-widget {
  padding: 22px 24px !important;
  border-radius: 20px !important;
}
.hcm-widget-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  color: var(--hcm-ink, #0f172a) !important;
  margin: 0 0 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid rgba(2, 132, 199, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.hcm-widget-cat-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}
.hcm-widget-cat-link {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 8px 12px !important;
  text-decoration: none !important;
  color: #334155 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}
.hcm-widget-cat-link:hover {
  background: rgba(2, 132, 199, 0.08) !important;
  color: #0284c7 !important;
}
.hcm-widget-cat-item.is-active .hcm-widget-cat-link {
  background: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.hcm-cat-count {
  font-size: 11.5px;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 7px;
  border-radius: 999px;
  color: #64748b;
}
.hcm-widget-cat-item.is-active .hcm-cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Sidebar Recent Posts */
.hcm-widget-post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hcm-widget-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
}
.hcm-widget-post-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
  display: block;
}
.hcm-widget-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}
.hcm-widget-post-item:hover .hcm-widget-img {
  transform: scale(1.08);
}
.hcm-widget-post-info {
  flex: 1;
  min-width: 0;
}
.hcm-widget-post-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 4px !important;
}
.hcm-widget-post-title a {
  color: var(--hcm-ink, #0f172a) !important;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease !important;
}
.hcm-widget-post-title a:hover {
  color: #0284c7 !important;
}
.hcm-widget-post-date {
  font-size: 11px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Quick Loc Tags in Sidebar */
.hcm-quick-loc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

