:root {
  --sky: #0ea5e9;
  --sky-dark: #0369a1;
  --sky-light: #e0f2fe;
  --sky-mid: #38bdf8;
  --cloud: #f0f9ff;
  --night: #0f172a;
  --night2: #1e293b;
  --night3: #334155;
  --text: #0f172a;
  --muted: #64748b;
  --muted2: #94a3b8;
  --accent: #f97316;
  --accent2: #fbbf24;
  --green: #10b981;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --border: rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --shadow: 0 4px 24px rgba(14, 165, 233, 0.1);
  --shadow2: 0 2px 12px rgba(14, 165, 233, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: var(--surface2);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 420px;
  background-image: url(./banner.jpg);
  z-index: 0;
  clip-path: ellipse(120% 100% at 50% 0%);
}

/* ========== HEADER ========== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 105, 161, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.logo-text {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent2);
}

.search-bar {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: background 0.2s;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-bar input:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  pointer-events: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.dropdown {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.2s;
}

.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.dropdown-toggle svg {
  transition: transform 0.2s;
}

.dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--cloud);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  min-width: 640px;
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.dropdown:hover .dropdown-menu {
  display: grid;
}

.region-group h4 {
  font-family: 'Lexend', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--sky-mid);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.region-group a {
  display: block;
  color: rgba(44, 44, 44, 0.85);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 6px;
  transition: all 0.15s;
  line-height: 1.4;
}

.region-group a:hover {
  background: rgba(14, 165, 233, 0.2);
  color: #000000;
  padding-left: 12px;
}

/* ========== MAIN ========== */
main {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ========== HERO WEATHER ========== */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin-bottom: 32px;
}

.hero-main {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 32px 36px;
  color: #0f172a;
  position: relative;
  overflow: hidden;
}

.home-hero-main {
  padding: 0;
}

.home-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  padding: 22px 18px 20px;
}

.home-hero-primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.home-weather-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.home-weather-meta .meta-item {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.26);
  align-items: flex-start;
}

.home-weather-meta .meta-item span:last-child {
  line-height: 1.45;
}

.home-hero-aside .update-time {
  margin-top: 12px;
  padding-left: 4px;
}

.hero-main::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.hero-main::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 80px;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.city-name {
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.65);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.city-name svg {
  width: 14px;
  height: 14px;
}

.city-title {
  font-family: 'Lexend', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-temp-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}

.big-temp {
  font-family: 'Lexend', sans-serif;
  font-size: 96px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -4px;
}

.big-temp sup {
  font-size: 36px;
  font-weight: 500;
  vertical-align: super;
  letter-spacing: 0;
}

.weather-icon-big {
  font-size: 72px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.weather-desc {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 24px;
}

.weather-meta {
  display: flex;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.75);
}

.meta-item span:first-child {
  font-size: 16px;
}

/* ========== 3-DAY FORECAST ========== */
.forecast-panel {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 24px;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.forecast-title {
  font-family: 'Lexend', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 16px;
}

.forecast-day {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  gap: 12px;
}

.forecast-day:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.forecast-day:first-of-type {
  padding-top: 0;
}

.day-name {
  font-weight: 600;
  font-size: 14px;
  width: 80px;
  flex-shrink: 0;
}

.day-date {
  font-size: 11px;
  opacity: 0.6;
  display: block;
}

.day-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin: 0 8px;
}

.day-desc {
  font-size: 13px;
  opacity: 0.8;
  flex: 1;
  line-height: 1.3;
}

.day-temps {
  font-weight: 600;
  font-size: 15px;
  text-align: right;
  white-space: nowrap;
}

.day-temps .low {
  font-weight: 400;
  opacity: 0.6;
  font-size: 13px;
  margin-left: 4px;
}

/* ========== SECTION TITLE ========== */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  margin-top: 8px;
}

.section-title {
  font-family: 'Lexend', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.section-badge {
  background: var(--sky-light);
  color: var(--sky-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.home-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.home-main-col {
  min-width: 0;
}

.home-section-header {
  margin-top: 0;
}

.home-sidebar .detail-card:first-child {
  margin-top: 8px;
}

/* ========== PROVINCES GRID ========== */
.provinces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.province-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.province-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  opacity: 0;
  transition: opacity 0.2s;
}

.province-card:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.province-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-city {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.card-region {
  font-size: 11px;
  color: var(--muted2);
  margin-top: 2px;
  font-weight: 400;
}

.card-icon {
  font-size: 40px;
  line-height: 1;
}

.card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.card-temp {
  font-family: 'Lexend', sans-serif;
  font-size: 36px;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1px;
}

.card-temp span {
  font-size: 16px;
  font-weight: 500;
  vertical-align: super;
  letter-spacing: 0;
}

.card-info {
  text-align: right;
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.card-humidity {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted2);
  justify-content: flex-end;
}

/* ========== FOOTER ========== */
footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.75);
  padding: 52px 24px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 300px 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
  font-size: 20px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-top: 12px;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
}

.social-btn:hover {
  background: var(--sky);
}

.footer-col h5 {
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--sky-mid);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--sky-mid);
}

/* ========== HAMBURGER BUTTON ========== */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.25s;
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== MOBILE DRAWER ========== */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cloud);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
  border-top: 1px solid var(--border);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-search {
  position: relative;
  margin-bottom: 16px;
}

.drawer-search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow2);
}

.drawer-search input::placeholder {
  color: var(--muted);
}

.drawer-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sky);
}

.drawer-nav-links {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.drawer-nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
  box-shadow: var(--shadow2);
}

.drawer-nav-links a:hover {
  background: var(--sky);
  color: #fff;
}

.drawer-region {
  margin-bottom: 20px;
}

.drawer-region h4 {
  font-family: 'Lexend', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--sky-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border);
}

.drawer-region-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.drawer-region-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: all 0.2s;
  background: var(--surface);
  border: 1px solid var(--border);
}

.drawer-region-links a:hover {
  background: var(--sky-light);
  border-color: var(--sky);
  color: var(--sky-dark);
}

/* ========== BADGES & UTILS ========== */
.now-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.75);
  margin-bottom: 20px;
}

.pulse {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1.5);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.update-time {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.5);
  margin-top: 6px;
}

/* ========== PROVINCES SECTION ========== */
.provinces-section {
  margin-top: 36px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  padding: 32px 36px 28px;
  position: relative;
  overflow: hidden;
}

.provinces-section-title {
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted2, #64748b);
  margin-bottom: 22px;
}

.provinces-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* Desktop: 4 cols × 5 rows = 20 items visible */
  max-height: calc(5 * 52px);
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 100px), transparent 100%);
  mask-image: linear-gradient(to bottom, black calc(100% - 100px), transparent 100%);
}

.provinces-grid-full.expanded {
  max-height: 2000px;
  -webkit-mask-image: none;
  mask-image: none;
}

.province-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  border-radius: 14px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.province-link:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #2563eb;
  transform: translateX(4px);
}

.provinces-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 18px auto 0;
  padding: 10px 28px;
  border: 1.5px solid rgba(59, 130, 246, 0.25);
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.06);
  color: #3b82f6;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.provinces-toggle:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.provinces-toggle-icon {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.provinces-toggle.active .provinces-toggle-icon {
  transform: rotate(180deg);
}

/* ========== TABLET ========== */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .home-body {
    grid-template-columns: 1fr;
  }

  .provinces-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  header nav {
    display: none;
  }

  .search-bar {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .mobile-drawer {
    display: block;
  }
}

/* ========== MOBILE ========== */
@media (max-width: 720px) {
  .header-inner {
    padding: 0 16px;
    gap: 12px;
    height: 58px;
    justify-content: flex-start;
  }

  .mobile-actions {
    margin-left: auto;
  }

  .mobile-drawer {
    top: 58px;
  }

  main {
    padding: 24px 16px 48px;
  }

  body::before {
    height: 340px;
  }

  .hero-main {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .home-hero-main {
    padding: 0;
  }

  .home-hero-layout,
  .detail-hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .city-title {
    font-size: 23px;
    margin-bottom: 10px;
  }

  .big-temp {
    font-size: 72px;
    letter-spacing: -3px;
  }

  .big-temp sup {
    font-size: 28px;
  }

  .weather-icon-big {
    font-size: 56px;
  }

  .hero-temp-row {
    margin-bottom: 14px;
  }

  .weather-desc {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .weather-meta,
  .home-weather-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    order: 1;
  }

  .detail-hero-aside,
  .home-hero-aside {
    display: flex;
    flex-direction: column;
  }

  .update-time {
    order: 2;
    margin-top: 12px;
    text-align: center;
    width: 100%;
  }

  .meta-item {
    font-size: 13px;
  }

  .provinces-section {
    padding: 22px 18px 20px;
    border-radius: 20px;
    margin-top: 24px;
  }

  .provinces-section-title {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .provinces-grid-full {
    grid-template-columns: repeat(2, 1fr);
    /* Mobile: 3 cols × 5 rows = 15 items visible */
    max-height: calc(5 * 46px);
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - 60px), transparent 100%);
  }

  .province-link {
    padding: 12px 10px;
    font-size: 12.5px;
    gap: 5px;
    border-radius: 10px;
  }

  .provinces-toggle {
    font-size: 12px;
    padding: 8px 22px;
    margin-top: 14px;
  }

  .forecast-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .day-name {
    width: 68px;
    font-size: 13px;
  }

  .day-icon {
    font-size: 24px;
    margin: 0 4px;
  }

  .day-desc {
    font-size: 12px;
  }

  .day-temps {
    font-size: 14px;
  }

  .section-title {
    font-size: 17px;
  }

  .provinces-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .province-card {
    padding: 14px;
    border-radius: 14px;
  }

  .card-city {
    font-size: 14px;
  }

  .card-icon {
    font-size: 32px;
  }

  .card-temp {
    font-size: 30px;
  }

  .card-temp span {
    font-size: 14px;
  }

  .card-desc {
    font-size: 12px;
  }

  footer {
    padding: 36px 16px 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .now-badge {
    font-size: 11px;
    padding: 3px 10px;
  }
}

@media (max-width: 380px) {
  .provinces-grid {
    grid-template-columns: 1fr;
  }

  .big-temp {
    font-size: 60px;
  }
}

/* ============================================================
   DETAIL PAGE — chi tiết thời tiết tỉnh thành
   ============================================================ */

/* ── Sticky Navigation Tabs ── */
.detail-nav {
  display: block;
  position: sticky;
  top: 64px;
  z-index: 97;
  padding: 12px 0;
  margin-left: 0;
}

.detail-nav+main {
  padding-top: 0;
}

.detail-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.detail-nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  flex: 1;
  /* Fill width */
  text-align: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 10px 16px;
  white-space: nowrap;
  border-radius: 99px;
  /* Pill shape */
  background: rgb(255 255 255 / 91%);
  /* Soft transparent background */
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #00000021;
}

.nav-tab:hover {
  background: rgba(15, 23, 42, 0.1);
  color: var(--sky-dark);
}

.nav-tab.active {
  background: var(--sky);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.nav-tab.active::after {
  display: none;
  /* Remove underline */
}

@media (max-width: 900px) {
  .detail-nav-inner {
    gap: 8px;
  }

  .nav-tab {
    flex: none;
    /* Don't force fill on mobile to allow scroll */
    min-width: fit-content;
    padding: 8px 14px;
  }
}

@media (max-width: 720px) {
  .detail-nav {
    top: 58px;
    z-index: 97;
    margin-bottom: 0;
    padding: 8px 0;
  }

  .detail-nav+main {
    padding-top: 0;
  }

  .detail-nav-inner {
    padding: 0 16px;
  }

  .nav-tab {
    font-size: 12px;
  }
}

/* ── Hero full-width ── */
.detail-hero {
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  padding: 22px 18px 20px;
  color: #0f172a;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}

.detail-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.detail-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 40%;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.detail-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 32px;
}

.detail-hero-primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.detail-hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.detail-hero-layout .weather-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-hero-layout .meta-item {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.26);
  align-items: flex-start;
}

.detail-hero-layout .meta-item span:last-child {
  line-height: 1.45;
}

.detail-hero-aside .update-time {
  margin-top: 12px;
  padding-left: 4px;
}

.detail-hero-primary .hero-temp-row {
  margin-bottom: 14px;
  justify-content: center;
  align-items: center;
}

.detail-hero-primary .big-temp {
  font-size: 100px;
}

.detail-hero-primary .weather-desc {
  font-size: 19px;
  margin-bottom: 20px;
}

.detail-temp-range {
  font-family: 'Lexend', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.65);
}

.detail-temp-range strong {
  color: var(--text);
}

/* ── 7/3 layout ── */
.detail-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

/* ── Cards chung ── */
.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
}

.detail-card:last-child {
  margin-bottom: 0;
}

.detail-card-title {
  font-family: 'Lexend', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-card-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 12h forecast (horizontal scroll) ── */
.hourly-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--sky-light) transparent;
}

.hourly-list::-webkit-scrollbar {
  height: 4px;
}

.content-section {
  margin-top: 36px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  padding: 32px 36px 28px;
  position: relative;
  overflow: hidden;
}

.hourly-list::-webkit-scrollbar-thumb {
  background: var(--sky-light);
  border-radius: 4px;
}

.hourly-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 14px;
  background: var(--surface2);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 62px;
  text-align: center;
}

.hourly-item:hover,
.hourly-item.active {
  background: var(--sky-light);
  border-color: var(--sky);
}

.hourly-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.hourly-item.active .hourly-time {
  color: var(--sky-dark);
}

.hourly-icon {
  font-size: 22px;
  line-height: 1;
}

.hourly-temp {
  font-family: 'Lexend', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.hourly-rain {
  font-size: 10px;
  color: var(--sky);
  font-weight: 500;
}

/* ── 7-day accordion ── */
.day-accordion {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.day-row {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.day-row.open {
  border-color: var(--sky);
  box-shadow: 0 2px 16px rgba(14, 165, 233, 0.1);
}

.day-row-header {
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 14px;
  background: var(--surface);
  transition: background 0.2s;
  user-select: none;
}

.day-row.open .day-row-header {
  background: var(--sky-light);
}

.day-row-name {
  font-weight: 700;
  font-size: 14px;
  width: 90px;
  flex-shrink: 0;
}

.day-row-date {
  font-size: 11px;
  color: var(--muted2);
  font-weight: 400;
  display: block;
}

.day-row-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.day-row-desc {
  flex: 1;
  font-size: 13px;
  color: var(--muted);
}

.day-row-temps {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  color: var(--text);
}

.day-row-temps .lo {
  font-weight: 400;
  font-size: 13px;
  color: var(--muted2);
  margin-left: 5px;
}

.day-row-humidity {
  font-size: 12px;
  color: var(--sky);
  font-weight: 600;
  width: 44px;
  text-align: right;
  flex-shrink: 0;
}

.day-row-chevron {
  color: var(--muted2);
  font-size: 12px;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.day-row.open .day-row-chevron {
  transform: rotate(180deg);
}

/* expanded detail */
.day-row-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.4, 0, .2, 1);
}

.day-row-body-inner {
  padding: 0 18px 18px;
  background: var(--sky-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.day-detail-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.day-detail-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted2);
}

.day-detail-stat-value {
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.day-detail-stat-sub {
  font-size: 11px;
  color: var(--muted);
}

/* ── Chart ── */
.chart-stack {
  display: grid;
  gap: 18px;
}

.chart-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.chart-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-panel-head h3 {
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
  flex: 1;
}

.chart-panel-head .detail-card-subtitle {
  width: 100%;
  margin: 4px 0 0 0;
  font-size: 13.5px;
  order: 3;
}

.chart-panel-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--sky-light);
  color: var(--sky-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.chart-badge {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--sky-light);
  color: var(--sky-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.chart-wrapper {
  position: relative;
  height: 240px;
}

.chart-wrapper.compact {
  height: 240px;
}

.chart-wrapper canvas {
  width: 100% !important;
  display: block;
}

.chart-tooltip {
  position: fixed;
  z-index: 300;
  min-width: 152px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  backdrop-filter: blur(14px);
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 6px;
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.chart-tooltip span {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.chart-tooltip b {
  color: #fff;
  font-weight: 600;
}

/* ── Sidebar cards ── */
.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* AQI */
.aqi-value-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 16px;
}

.aqi-number {
  font-family: 'Lexend', sans-serif;
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -2px;
}

.aqi-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.aqi-good {
  background: #dcfce7;
  color: #15803d;
}

.aqi-moderate {
  background: #fef9c3;
  color: #a16207;
}

.aqi-sensitive {
  background: #ffedd5;
  color: #c2410c;
}

.aqi-unhealthy {
  background: #fee2e2;
  color: #b91c1c;
}

.aqi-bar-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ade80 0%, #facc15 40%, #fb923c 65%, #f87171 85%, #a855f7 100%);
  position: relative;
  margin-bottom: 6px;
}

.aqi-bar-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid var(--text);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: left 0.6s cubic-bezier(.4, 0, .2, 1);
}

.aqi-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted2);
  letter-spacing: 0.3px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.aqi-pollutants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.aqi-pollutant {
  background: var(--surface2);
  border-radius: 10px;
  padding: 10px 12px;
}

.aqi-pollutant-name {
  font-size: 10px;
  color: var(--muted2);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.aqi-pollutant-val {
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.aqi-pollutant-unit {
  font-size: 10px;
  color: var(--muted2);
}

/* ── Sun arc ── */
.sun-arc-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 8px;
}

.sun-arc-svg-wrap {
  width: 100%;
  max-width: 260px;
}

.sun-arc-times {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 260px;
  margin-top: 2px;
}

.sun-arc-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.sun-arc-time-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted2);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.sun-arc-time-val {
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.sun-duration {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.sun-duration strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Extra stats row in sidebar ── */
.sidebar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 0;
}

.stat-mini {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-mini-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted2);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.stat-mini-value {
  font-family: 'Lexend', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

.stat-mini-sub {
  font-size: 11px;
  color: var(--muted);
}

/* ── Back button ── */
/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.breadcrumb a {
  color: rgba(15, 23, 42, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--sky-dark);
}

.breadcrumb svg {
  color: rgba(15, 23, 42, 0.4);
}

.breadcrumb span:last-child {
  color: var(--text);
}

/* ── Responsive detail page ── */
@media (max-width: 960px) {
  .detail-body {
    grid-template-columns: 1fr;
  }

  .sidebar-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .sidebar-col .detail-card {
    margin-bottom: 0;
  }
}

@media (max-width: 720px) {
  .detail-hero {
    padding: 24px 20px 22px;
    border-radius: 22px;
    margin-bottom: 20px;
  }

  .detail-hero::before {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -40px;
  }

  .detail-hero::after {
    width: 220px;
    height: 220px;
    bottom: -90px;
    left: 28%;
  }

  .detail-hero-inner {
    flex-direction: column;
    gap: 18px;
  }

  .detail-hero-left .city-title {
    font-size: 34px;
  }

  .detail-hero-left .big-temp {
    font-size: 82px;
  }

  .detail-hero-left .weather-desc {
    font-size: 16px;
    max-width: 28ch;
  }

  .detail-hero-left .weather-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .detail-hero-left .meta-item {
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.26);
  }

  .detail-hero-left .meta-item span:last-child {
    line-height: 1.45;
  }

  .detail-body {
    gap: 18px;
  }

  .detail-card {
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 16px;
  }

  .day-row-header {
    display: grid;
    grid-template-columns: minmax(82px, 1fr) auto;
    gap: 10px 14px;
    align-items: center;
  }

  .day-row-name {
    width: auto;
  }

  .day-row-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }

  .day-row-desc {
    grid-column: 1 / -1;
    order: 3;
  }

  .day-row-humidity,
  .day-row-temps,
  .day-row-chevron {
    justify-self: start;
    text-align: left;
    width: auto;
  }

  .sidebar-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    padding: 0 4px;
  }

  .detail-hero {
    padding: 22px 18px 20px;
    border-radius: 20px;
  }

  .detail-hero-left .city-name {
    font-size: 12px;
    gap: 5px;
  }

  .detail-hero-left .city-title {
    font-size: 30px;
  }

  .detail-hero-left .hero-temp-row {
    gap: 12px;
    align-items: center;
  }

  .detail-hero-left .big-temp {
    font-size: 72px;
    letter-spacing: -3px;
  }

  .detail-hero-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail-hero-primary {
    width: 100%;
  }

  .detail-hero-primary .big-temp sup {
    font-size: 28px;
  }

  .detail-hero-primary .weather-desc {
    margin-bottom: 16px;
  }

  .detail-hero-aside .weather-meta {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    order: 1;
  }

  .detail-hero-aside .meta-item {
    padding: 10px 12px;
    font-size: 13px;
  }

  .detail-hero-aside .update-time {
    order: 2;
    margin-top: 12px;
    line-height: 1.5;
    text-align: center;
    width: 100%;
  }

  .detail-hero-aside {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .detail-card {
    padding: 18px;
    border-radius: 16px;
  }

  .detail-card-title {
    margin-bottom: 16px;
    font-size: 11px;
    letter-spacing: 1.2px;
  }

  .hourly-list {
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 20px) / 3);
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    margin: 0;
    padding: 2px 0 0;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
  }

  .hourly-item {
    min-width: 0;
    padding: 12px 6px;
    scroll-snap-align: start;
  }

  .day-row-header {
    grid-template-columns: minmax(88px, 1fr) auto auto;
    padding: 5px 14px;
    gap: 0 12px;
    align-items: center;
  }

  .day-row-name {
    font-size: 13px;
    width: auto;
  }

  .day-row-date {
    font-size: 10px;
  }

  .day-row-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: center;
    font-size: 22px;
  }

  .day-row-desc {
    grid-column: 1 / -1;
    font-size: 12px;
    line-height: 1.45;
    padding-right: 18px;
  }

  .day-row-humidity {
    font-size: 11px;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    text-align: left;
  }

  .day-row-temps {
    font-size: 15px;
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    text-align: right;
  }

  .day-row-chevron {
    position: absolute;
    top: 16px;
    right: 14px;
    justify-self: auto;
  }

  .day-row {
    position: relative;
  }

  .day-row-body-inner {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 14px 14px;
  }

  .day-detail-stat {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
  }

  .chart-wrapper {
    height: 260px;
  }

  .aqi-value-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .aqi-number {
    font-size: 48px;
  }

  .aqi-pollutants,
  .sidebar-stats {
    grid-template-columns: 1fr 1fr;
  }

  .sun-arc-container {
    padding-top: 0;
  }

  .chart-panel {
    padding: 16px 14px 12px;
    border-radius: 16px;
  }

  .chart-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .chart-panel-head h3 {
    font-size: 14px;
  }

  .chart-wrapper.compact {
    height: 188px;
  }
}

@media (max-width: 420px) {
  .detail-hero-primary .city-title {
    font-size: 23px;
  }

  .detail-hero-primary .big-temp {
    font-size: 64px;
  }

  .weather-icon-big {
    font-size: 48px;
  }

  .detail-hero-primary .weather-desc {
    font-size: 15px;
  }

  .hourly-list {
    grid-auto-columns: calc((100% - 115px) / 2);
  }

  .day-row-header {
    grid-template-columns: minmax(72px, -1fr) auto;
  }

  .day-row-icon {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .day-row-temps {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .day-row-humidity {
    grid-column: 1;
    grid-row: 2;
  }

  .day-row-desc {
    grid-column: 1 / -1;
  }



  .day-row-body-inner {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 14px 14px;
  }

  .chart-wrapper,
  .chart-wrapper.compact {
    height: 245px;
  }

  .aqi-labels {
    font-size: 8px;
  }
}

/* ============================================================
   HOURLY PAGE — sidebar summary card + day separator
   ============================================================ */

/* ── Day separator ── */
.hourly-day-separator {
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-dark);
  background: var(--sky-light);
  padding: 10px 16px;
  border-radius: 10px;
  margin: 12px 0 6px;
  letter-spacing: 0.2px;
}

.hourly-day-separator:first-child {
  margin-top: 0;
}

/* ── Sidebar weather summary ── */
.hourly-summary-card {
  background: white;
  border: 1.5px solid rgba(14, 165, 233, 0.15);
}

.hourly-summary-header {
  margin-bottom: 14px;
}

.hourly-summary-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.hourly-summary-city {
  font-family: 'Lexend', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  margin: 0;
}

.hourly-summary-temp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.hourly-summary-temp {
  font-family: 'Lexend', sans-serif;
  font-size: 52px;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  letter-spacing: -2px;
}

.hourly-summary-temp sup {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
}

.hourly-summary-icon {
  font-size: 48px;
  line-height: 1;
}

.hourly-summary-desc {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.5;
}

.hourly-summary-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.hourly-summary-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  font-size: 13px;
}

.hourly-summary-meta-item span {
  color: var(--muted);
  font-weight: 500;
}

.hourly-summary-meta-item strong {
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}

@media (max-width: 720px) {
  .hourly-summary-city {
    font-size: 22px;
  }

  .hourly-summary-temp {
    font-size: 44px;
  }

  .hourly-summary-icon {
    font-size: 40px;
  }

  .hourly-summary-meta {
    grid-template-columns: 1fr 1fr;
  }

  .hourly-summary-meta-item {
    padding: 8px 5px;
  }
}

/* TOMORROW HERO CARD */
.tomorrow-hero-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tomorrow-hero-date {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.tomorrow-hero-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.tomorrow-hero-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tomorrow-hero-icon {
  font-size: 64px;
  line-height: 1;
}

.tomorrow-hero-temp-wrap {
  display: flex;
  flex-direction: column;
}

.tomorrow-hero-temp {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
}

.tomorrow-hero-temp sup {
  font-size: 24px;
  font-weight: 500;
  margin-top: 10px;
}

.tomorrow-hero-desc {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 5px;
}

.tomorrow-hero-feel {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}

.tomorrow-hero-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.tomorrow-hero-right-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tomorrow-hero-right-item strong {
  color: var(--text-main);
  font-weight: 500;
}

.tomorrow-hero-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
}

.tomorrow-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.tomorrow-hero-stat-icon {
  font-size: 20px;
  color: var(--muted);
}

.tomorrow-hero-stat-label {
  font-size: 13px;
  color: var(--muted);
}

.tomorrow-hero-stat-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

/* FORECAST BLOCK (3 DAYS / 5 DAYS) */
.forecast-block {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.forecast-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.forecast-block:first-child {
  padding-top: 0;
}

.forecast-date {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.forecast-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.forecast-hero {
  display: flex;
  align-items: center;
  gap: 12px;
}

.forecast-icon {
  font-size: 48px;
  line-height: 1;
}

.forecast-temp {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  display: flex;
  align-items: flex-start;
}

.forecast-temp sup {
  font-size: 20px;
  font-weight: 500;
  margin-top: 6px;
}

.forecast-desc {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.forecast-desc .desc-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.forecast-desc .feel-text {
  font-size: 13px;
  color: var(--muted);
}

.forecast-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.forecast-meta>div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.forecast-meta strong {
  color: var(--text);
  font-weight: 600;
}

.forecast-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  text-align: center;
  margin-bottom: 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.f-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.f-stat-icon {
  font-size: 18px;
  color: var(--muted);
}

.f-stat-label {
  font-size: 12px;
  color: var(--muted);
}

.f-stat-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.forecast-actions {
  display: flex;
  justify-content: flex-start;
}

.btn-xem-chi-tiet {
  background: var(--sky);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.btn-xem-chi-tiet:hover {
  background: var(--sky-dark);
}

.btn-xem-chi-tiet.active {
  background: var(--sky-dark);
}

.forecast-block-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(.4, 0, .2, 1);
}

.forecast-block-body-inner {
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.daily-list-header {
  display: grid;
  grid-template-columns: 110px 120px 1fr 100px 80px;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 0 18px;
  /* match day-row-header */
}

.daily-list-header .col-date {}

.daily-list-header .col-icons {
  display: flex;
  justify-content: space-between;
  text-align: center;
  width: 100%;
}

.daily-list-header .col-icons span {
  flex: 1;
}

.day-row-daily .day-row-header {
  display: grid;
  grid-template-columns: 110px 120px 1fr 100px 80px;
  gap: 15px;
  align-items: center;
  cursor: pointer;
}

.day-row-daily .day-row-name {
  font-weight: 600;
  font-size: 14px;
}

.day-row-daily .day-row-name .date {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}

.day-row-daily .day-row-icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-row-daily .day-row-icons img,
.day-row-daily .day-row-icons span {
  width: 50px;
  height: 50px;
  font-size: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.day-row-daily .day-row-desc {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-row-daily .day-row-wind {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.day-row-daily .day-row-temps {
  font-weight: 600;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}

span.hi {
  font-weight: 500;
  font-size: 15px;
  color: #000000;
}

.daily-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  text-align: center;
  padding: 15px 0;
}

.daily-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.daily-stat-icon {
  font-size: 18px;
  color: var(--muted);
}

.daily-stat-label {
  font-weight: 600;
  font-size: 14px;
}

.daily-stat-val {
  font-size: 13px;
  color: var(--muted);
}

.forecast-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.forecast-nav-pills .pill {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--sky);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.forecast-nav-pills .pill.active {
  background: var(--sky);
}

.forecast-nav-pills .pill:not(.active) {
  background: #e2e8f0;
  color: var(--text);
}

.forecast-nav-pills .pill:hover:not(.active) {
  background: #cbd5e1;
}

@media (max-width: 768px) {
  .day-row-daily .day-row-header {
    grid-template-columns: 1fr 70px 80px;
  }

  .day-row-daily .day-row-wind {
    display: none;
  }

  .day-row-daily .day-row-desc {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
    padding-top: 8px;
    font-size: 13px;
    color: var(--muted);
  }

  .day-row-daily.open .day-row-desc {
    display: block;
  }

  .day-row-daily .day-row-icons {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
  }

  .day-row-daily .day-row-temps {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .daily-details {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .daily-list-header {
    display: none;
  }
}

/* Global Icon Sizing */
.weather-icon-big img,
.tomorrow-hero-icon img {
  width: 100px !important;
  height: 100px !important;
  object-fit: contain;
}

.day-row-icons img,
.hourly-icon img,
.day-row-icon img,
.day-icon img,
.card-icon img {
  width: 50px !important;
  height: 50px !important;
  object-fit: contain;
}

.logo-icon img {
  width: 24px !important;
  height: 24px !important;
}

/* Responsive Icon Sizing */
@media (max-width: 768px) {
  .day-row-daily .day-row-header {
    grid-template-columns: 1fr 90px 70px !important;
  }

  .day-row-icons img,
  .hourly-icon img,
  .day-row-icon img {
    width: 35px !important;
    height: 35px !important;
  }

  .weather-icon-big img,
  .tomorrow-hero-icon img {
    width: 80px !important;
    height: 80px !important;
  }
}

/* Mobile Search & Actions */
.mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.mobile-search-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.2s;
}

.mobile-search-toggle:active {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-search-drop {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--cloud);
  padding: 16px;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-bottom: 1.5px solid var(--border);
}

.mobile-search-drop.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.search-drop-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.search-drop-inner input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  box-shadow: var(--shadow2);
}

.search-drop-btn {
  background: var(--sky);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-drop-btn:active {
  background: var(--sky-dark);
}

@media (max-width: 768px) {
  .mobile-actions {
    display: flex;
    margin-left: auto;
  }
}