/* ============================================================
   Aurora Glass — Location page (tỉnh/xã)
   ============================================================ */
.au-loc { padding-top: 0; }

/* ---------- Hero ---------- */
.au-loc-hero { margin-bottom: var(--au-s5); }

/* Banner full-bleed (tràn hết chiều ngang, sát header) + breadcrumb nằm trong banner */
.au-loc-hero--full {
  border-radius: 0; border-top: 0; border-left: 0; border-right: 0;
  margin-bottom: var(--au-s6);
}
.au-loc-hero--full.au-glass--pad { padding-inline: 0; padding-block: clamp(22px, 4vw, 44px); }
.au-loc-hero__inner { position: relative; z-index: 1; }
.au-loc-hero__inner .kw-breadcrumb { margin: 0 0 var(--au-s4); }
.au-loc-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.au-loc-hero__title { font-size: var(--au-fs-h1); margin: 0; }
.au-loc-hero__date { color: var(--au-text-dim); font-size: var(--au-fs-sm); margin: 4px 0 0; }
.au-loc-hero__conf { flex: none; }

.au-loc-hero__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(16px, 3vw, 32px); align-items: center; }
.au-loc-hero__now { display: flex; align-items: center; gap: 16px; }
.au-loc-hero__icon { flex: none; filter: drop-shadow(0 6px 20px rgba(45,212,191,.35)); }
.au-loc-hero__icon svg { width: clamp(84px, 14vw, 120px); height: auto; }
.au-loc-hero__temp { font-size: var(--au-fs-hero); font-weight: 800; line-height: .92; letter-spacing: -.03em; color: var(--au-text); }
.au-loc-hero__temp span { font-size: .3em; font-weight: 600; color: var(--au-text-dim); vertical-align: super; }
.au-loc-hero__cond { font-size: var(--au-fs-h4); color: var(--au-text-soft); }
.au-loc-hero__mm { font-size: var(--au-fs-sm); color: var(--au-text-dim); margin-top: 6px; }
.au-loc-hero__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* ---------- Insight + advice ---------- */
.au-insight__spark { color: var(--au-accent); }
.au-insight__text { color: var(--au-text-soft); line-height: 1.7; margin-bottom: 14px; }
.au-advice { display: flex; flex-wrap: wrap; gap: 8px; }
.au-advice__chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: var(--au-r-pill);
  font-size: var(--au-fs-sm); color: var(--au-text-soft);
  background: var(--au-glass-bg); border: 1px solid var(--au-glass-brd);
}
.au-advice__chip.is-ok { color: var(--au-ok); border-color: color-mix(in srgb, var(--au-ok) 34%, transparent); }
.au-advice__chip.is-warn { color: var(--au-warn); border-color: color-mix(in srgb, var(--au-warn) 34%, transparent); }
.au-advice__chip.is-info { color: var(--au-info); border-color: color-mix(in srgb, var(--au-info) 34%, transparent); }

/* ---------- Daily ---------- */
.au-daily { display: flex; flex-direction: column; }
.au-daily__row {
  display: grid; grid-template-columns: 92px 40px 1fr auto auto; align-items: center; gap: 12px;
  padding: 12px 4px; border-bottom: 1px solid var(--au-glass-brd);
}
.au-daily__row:last-child { border-bottom: none; }
.au-daily__day { display: flex; flex-direction: column; }
.au-daily__day strong { font-size: var(--au-fs-sm); color: var(--au-text); }
.au-daily__day small { font-size: var(--au-fs-xs); color: var(--au-text-faint); }
.au-daily__icon { display: grid; place-items: center; }
.au-daily__icon svg { width: 32px; height: 32px; }
.au-daily__cond { font-size: var(--au-fs-sm); color: var(--au-text-soft); }
.au-daily__pop { font-size: var(--au-fs-sm); color: var(--au-info); white-space: nowrap; }
.au-daily__temp { font-size: var(--au-fs-body); color: var(--au-text-dim); white-space: nowrap; }
.au-daily__temp b { color: var(--au-text); }

/* ---------- 3 cards (AQI/Sun/Wind) ---------- */
.au-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: var(--au-s5); }
.au-card3 { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.au-card3__title { font-size: var(--au-fs-h5); color: var(--au-text-dim); margin: 0; }
.au-card3__gauge { width: 100%; max-width: 220px; }
.au-card3__gauge svg { width: 100%; height: auto; }
.au-card3__foot { font-weight: 700; margin: 0; }
.au-sun { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.au-sun__row { display: flex; align-items: center; justify-content: space-between; font-size: var(--au-fs-sm); color: var(--au-text-soft); }
.au-sun__row b { color: var(--au-text); }
.au-wind { display: flex; align-items: center; gap: 16px; justify-content: center; }
.au-wind__compass { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--au-glass-brd-2); font-size: 1.6rem; color: var(--au-accent); transform: rotate(var(--wd, 0deg)); }
.au-wind__spd { font-size: 1.6rem; color: var(--au-text); display: block; }
.au-wind__spd small { font-size: .5em; color: var(--au-text-dim); }
.au-wind__dir { font-size: var(--au-fs-sm); color: var(--au-text-dim); }

/* ---------- Bản đồ ---------- */
.au-locmap { height: 360px; border-radius: var(--au-r); overflow: hidden; isolation: isolate; transform: translateZ(0); background: var(--au-bg-2); }
.au-locmap .leaflet-container { background: var(--au-bg-2); font-family: inherit; }
.au-locmap__pin { position: relative; }
.au-locmap__dot { position: absolute; inset: 6px; border-radius: 50%; background: var(--au-teal); box-shadow: 0 0 12px var(--au-teal); }
.au-locmap__pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--au-teal); animation: au-pulse 1.8s ease-out infinite; }
@keyframes au-pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.au-locmap .leaflet-popup-content-wrapper, .au-locmap .leaflet-popup-tip { background: var(--au-panel-solid); color: var(--au-text); border: 1px solid var(--au-glass-brd-2); }

/* ---------- Lưới xã ---------- */
.au-wards { margin-bottom: var(--au-s5); }
.au-wards__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: var(--au-s4); }
.au-wards__search { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--au-r-pill); background: var(--au-glass-bg); border: 1px solid var(--au-glass-brd); color: var(--au-text-dim); min-width: 220px; }
.au-wards__search input { background: transparent; border: none; outline: none; color: var(--au-text); font-family: inherit; font-size: var(--au-fs-sm); width: 100%; }
.au-wards__search input::placeholder { color: var(--au-text-faint); }
.au-wards__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.au-ward {
  padding: 10px 12px; border-radius: var(--au-r-sm); font-size: var(--au-fs-sm); color: var(--au-text-soft);
  background: var(--au-glass-bg); border: 1px solid var(--au-glass-brd);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all .16s;
}
.au-ward:hover { color: var(--au-text); background: var(--au-glass-bg-2); border-color: var(--au-glass-brd-2); }
.au-wards__empty { color: var(--au-text-dim); padding: 12px 0; }
.au-wards__toggle { margin-top: 14px; }
.au-wards__toggle-less { display: none; }
.au-ward-grid--expanded .au-wards__toggle-more { display: none; }
.au-ward-grid--expanded .au-wards__toggle-less { display: inline; }

/* ---------- Related ---------- */
.au-related { margin-bottom: var(--au-s5); }
.au-related__links { display: flex; flex-wrap: wrap; gap: 10px; }
.au-related__link { padding: 10px 16px; border-radius: var(--au-r-pill); font-size: var(--au-fs-sm); font-weight: 600; color: var(--au-text-soft); }
.au-related__link:hover { color: var(--au-text); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .au-loc-hero__body { grid-template-columns: 1fr; gap: 18px; }
  .au-cards3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .au-loc-hero__metrics { grid-template-columns: repeat(2, 1fr); }
  .au-daily__row { grid-template-columns: 72px 30px 1fr auto; }
  .au-daily__cond { display: none; }
  .au-wards__grid { grid-template-columns: repeat(2, 1fr); }
  .au-wards__head { flex-direction: column; align-items: stretch; }
}

/* 404 */
.au-404 { text-align: center; padding: clamp(32px, 8vw, 72px) !important; }
