/* =========================================================
   Atlas Search v6.9 — Stable Weather Page + Widget Lifecycle
   This file is loaded last.
   ========================================================= */

/* Weather route isolation: stop legacy Bootstrap/theme geometry leaking in. */
body.atlas-weather-page{
  margin:0!important;
  min-width:320px!important;
  overflow-x:hidden!important;
  background:#f5f7fb!important;
  color:#182338!important;
}
body.atlas-weather-page #header,
body.atlas-weather-page #footer{
  display:none!important;
}
body.atlas-weather-page #content{
  width:100%!important;
  max-width:none!important;
  min-height:100vh!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  background:transparent!important;
}
.atlas-weather-service,
.atlas-weather-service *,
.atlas-weather-service *::before,
.atlas-weather-service *::after{
  box-sizing:border-box!important;
}
.atlas-weather-service{
  --aw69-bg:#f5f7fb;
  --aw69-surface:#fff;
  --aw69-line:#e5eaf2;
  --aw69-line-strong:#d9e1ec;
  --aw69-text:#182338;
  --aw69-text2:#485970;
  --aw69-muted:#8c98aa;
  --aw69-accent:#6172f4;
  --aw69-accent2:#896cf2;
  width:100%!important;
  min-height:100vh!important;
  margin:0!important;
  padding:0!important;
  background:
    radial-gradient(circle at 50% -180px,rgba(101,119,246,.10),transparent 560px),
    var(--aw69-bg)!important;
  color:var(--aw69-text)!important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:14px!important;
  line-height:1.45!important;
}
.atlas-weather-service a{text-decoration:none!important}
.atlas-weather-service button,
.atlas-weather-service input{
  font:inherit!important;
}
.atlas-weather-service svg{display:block!important}

/* Header */
.atlas-weather-service-header{
  position:sticky!important;
  top:0!important;
  z-index:200!important;
  width:100%!important;
  border-bottom:1px solid rgba(226,232,241,.88)!important;
  background:rgba(248,250,253,.90)!important;
  backdrop-filter:blur(18px)!important;
}
.atlas-weather-service-header-inner{
  width:min(1180px,calc(100% - 40px))!important;
  min-height:72px!important;
  margin:0 auto!important;
  padding:10px 0!important;
  display:grid!important;
  grid-template-columns:auto minmax(280px,520px) auto!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:24px!important;
}
.atlas-weather-service-brand{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:max-content!important;
  color:#26354c!important;
}
.atlas-weather-service-brand img{
  width:32px!important;height:32px!important;object-fit:contain!important;
}
.atlas-weather-service-brand span{
  font-size:16px!important;font-weight:760!important;letter-spacing:-.035em!important;
}
.atlas-weather-service-brand i{
  width:4px!important;height:4px!important;border-radius:999px!important;background:#c3cbd7!important;
}
.atlas-weather-service-brand b{
  color:#7d899a!important;font-size:10px!important;font-weight:620!important;
}
.atlas-weather-city-search{
  position:relative!important;
  width:100%!important;
  height:44px!important;
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr) 34px!important;
  align-items:center!important;
  gap:8px!important;
  padding:0 6px 0 13px!important;
  border:1px solid #e0e6ef!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 7px 24px rgba(40,57,89,.045)!important;
}
.atlas-weather-city-search>svg{
  width:17px!important;height:17px!important;color:#9aa5b5!important;
}
.atlas-weather-city-search input{
  width:100%!important;height:40px!important;margin:0!important;padding:0!important;
  border:0!important;outline:0!important;background:transparent!important;color:#344158!important;
  font-size:11px!important;
}
.atlas-weather-city-search input::placeholder{color:#a2abb9!important}
.atlas-weather-city-search>button{
  width:34px!important;height:34px!important;margin:0!important;padding:0!important;
  display:grid!important;place-items:center!important;border:0!important;border-radius:10px!important;
  background:#f2f5f9!important;color:#7d899b!important;
}
.atlas-weather-city-search>button:hover{background:#eef1ff!important;color:#5c6de8!important}
.atlas-weather-city-search>button svg{width:15px!important;height:15px!important}
.atlas-weather-city-results{
  position:absolute!important;left:0!important;right:0!important;top:calc(100% + 8px)!important;
  z-index:300!important;padding:7px!important;border:1px solid #e0e6ef!important;border-radius:14px!important;
  background:#fff!important;box-shadow:0 20px 55px rgba(35,50,79,.16)!important;
}
.atlas-weather-city-results[hidden]{display:none!important}
.atlas-weather-city-results button{
  width:100%!important;min-height:50px!important;padding:7px 9px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  border:0!important;border-radius:10px!important;background:transparent!important;color:#45546a!important;text-align:left!important;
}
.atlas-weather-city-results button:hover{background:#f5f7fb!important}
.atlas-weather-city-results button span{display:grid!important;gap:3px!important}
.atlas-weather-city-results button b{font-size:10px!important;font-weight:660!important}
.atlas-weather-city-results button small{color:#98a2b1!important;font-size:8.5px!important}
.atlas-weather-city-results button i{font-style:normal!important;color:#a4adba!important}
.atlas-weather-back{
  height:38px!important;padding:0 12px!important;display:inline-flex!important;align-items:center!important;gap:7px!important;
  border:1px solid #e1e6ee!important;border-radius:11px!important;background:#fff!important;color:#6d7a8f!important;
  font-size:10px!important;font-weight:620!important;box-shadow:0 4px 14px rgba(42,58,88,.03)!important;
}
.atlas-weather-back:hover{background:#f8faff!important;color:#5264dd!important;border-color:#d8e0ef!important}
.atlas-weather-back svg{width:14px!important;height:14px!important}

/* Main */
.atlas-weather-service-main{
  width:min(1180px,calc(100% - 40px))!important;
  margin:0 auto!important;
  padding:30px 0 64px!important;
}
.atlas-weather-service-content{
  width:100%!important;
  display:grid!important;
  gap:18px!important;
}
.atlas-weather-service-state,
.atlas-weather-service-error{
  width:100%!important;
  min-height:420px!important;
  padding:50px 20px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.atlas-weather-service-state[hidden],
.atlas-weather-service-error[hidden],
.atlas-weather-service-content[hidden]{display:none!important}

/* Hero: stable two-column composition */
.atlas-weather-hero-card{
  position:relative!important;
  min-height:360px!important;
  padding:34px 36px 112px!important;
  overflow:hidden!important;
  border:1px solid #dfe6f1!important;
  border-radius:26px!important;
  background:
    radial-gradient(circle at 82% 12%,rgba(255,255,255,.88),transparent 27%),
    linear-gradient(135deg,#eaf2ff 0%,#eef0ff 54%,#f4ebff 100%)!important;
  box-shadow:0 20px 60px rgba(51,69,109,.09)!important;
}
.atlas-weather-hero-copy{
  position:relative!important;z-index:3!important;width:min(58%,630px)!important;max-width:630px!important;
}
.atlas-weather-eyebrow{
  display:flex!important;align-items:center!important;gap:7px!important;margin:0!important;color:#7c899c!important;
  font-size:9px!important;font-weight:600!important;
}
.atlas-weather-eyebrow i{width:4px!important;height:4px!important;border-radius:99px!important;background:#aeb7c5!important}
.atlas-weather-hero-copy h1{
  margin:10px 0 0!important;color:#26354b!important;font-size:34px!important;line-height:1.08!important;
  font-weight:750!important;letter-spacing:-.045em!important;
}
.atlas-weather-hero-copy h1 span{color:#596de8!important}
.atlas-weather-hero-copy>p{
  margin:8px 0 0!important;color:#718096!important;font-size:11px!important;line-height:1.4!important;
}
.atlas-weather-current-row{
  margin-top:27px!important;display:flex!important;align-items:flex-end!important;gap:18px!important;
}
.atlas-weather-current-row>strong{
  color:#172033!important;font-size:82px!important;line-height:.84!important;font-weight:690!important;letter-spacing:-.085em!important;
}
.atlas-weather-current-details{
  padding-bottom:7px!important;display:grid!important;gap:5px!important;min-width:0!important;
}
.atlas-weather-current-details b{
  color:#344259!important;font-size:16px!important;line-height:1.25!important;font-weight:700!important;
}
.atlas-weather-current-details span{color:#7e8b9e!important;font-size:10px!important}
.atlas-weather-hero-advice{
  width:min(100%,500px)!important;margin-top:21px!important;padding:12px 14px!important;
  border:1px solid rgba(255,255,255,.72)!important;border-radius:14px!important;background:rgba(255,255,255,.58)!important;
  color:#536177!important;font-size:10px!important;line-height:1.48!important;backdrop-filter:blur(8px)!important;
}
.atlas-weather-hero-visual{
  position:absolute!important;right:36px!important;top:35px!important;z-index:2!important;
  width:350px!important;height:260px!important;
}
.atlas-weather-hero-visual svg{width:100%!important;height:100%!important;filter:drop-shadow(0 18px 28px rgba(54,74,128,.14))!important}
.atlas-weather-hero-metrics{
  position:absolute!important;left:36px!important;right:36px!important;bottom:24px!important;z-index:4!important;
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;
}
.atlas-weather-hero-metrics article{
  min-width:0!important;min-height:64px!important;padding:11px 13px!important;display:grid!important;align-content:center!important;gap:4px!important;
  border:1px solid rgba(255,255,255,.76)!important;border-radius:14px!important;background:rgba(255,255,255,.64)!important;
  backdrop-filter:blur(8px)!important;
}
.atlas-weather-hero-metrics span{color:#8e99aa!important;font-size:8px!important}
.atlas-weather-hero-metrics b{
  min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  color:#3a485e!important;font-size:12px!important;font-weight:690!important;
}

/* Sections */
.atlas-weather-section{
  width:100%!important;margin:0!important;padding:20px!important;overflow:hidden!important;
  border:1px solid var(--aw69-line)!important;border-radius:20px!important;background:#fff!important;
  box-shadow:0 9px 32px rgba(45,61,92,.04)!important;
}
.atlas-weather-section-head{
  min-height:40px!important;margin:0 0 14px!important;display:flex!important;align-items:flex-end!important;
  justify-content:space-between!important;gap:14px!important;
}
.atlas-weather-section-head>div:first-child span{
  color:#9aa5b4!important;font-size:8px!important;font-weight:720!important;text-transform:uppercase!important;letter-spacing:.07em!important;
}
.atlas-weather-section-head h2{
  margin:4px 0 0!important;color:#29374d!important;font-size:17px!important;line-height:1.2!important;font-weight:710!important;
  letter-spacing:-.02em!important;
}
.atlas-weather-sun-chip,
.atlas-weather-section-note{
  height:31px!important;padding:0 10px!important;display:inline-flex!important;align-items:center!important;
  border-radius:9px!important;background:#f5f7fa!important;color:#7f8b9d!important;font-size:8px!important;font-weight:580!important;
  white-space:nowrap!important;
}

/* Parts of day */
.atlas-weather-dayparts{
  width:100%!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;
}
.awp-daypart{
  min-width:0!important;min-height:136px!important;padding:14px!important;display:grid!important;
  grid-template-columns:minmax(0,1fr) 62px!important;grid-template-rows:auto 1fr auto!important;align-items:center!important;
  border:1px solid #e7ecf3!important;border-radius:16px!important;background:linear-gradient(145deg,#fcfdff,#f7f9fd)!important;
}
.awp-daypart>span{color:#748197!important;font-size:10px!important;font-weight:660!important}
.awp-daypart>.awp-mini{grid-column:2!important;grid-row:1/3!important;width:62px!important;height:54px!important}
.awp-daypart>b{align-self:end!important;color:#35435a!important;font-size:25px!important;line-height:1!important;font-weight:700!important}
.awp-daypart>small{
  grid-column:1/-1!important;margin-top:8px!important;color:#939ead!important;font-size:8px!important;white-space:normal!important;
}
.awp-daypart>small i{font-style:normal!important;margin-right:3px!important}

/* Hourly */
.atlas-weather-hourly{
  width:100%!important;display:flex!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;
  padding:2px 1px 8px!important;scroll-snap-type:x proximity!important;scrollbar-width:thin!important;
}
.awp-hour{
  flex:0 0 94px!important;min-width:94px!important;min-height:140px!important;padding:11px 8px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;scroll-snap-align:start!important;
  border:1px solid #e8edf3!important;border-radius:15px!important;background:#fbfcfe!important;
}
.awp-hour>span{color:#8793a5!important;font-size:8px!important;font-weight:600!important}
.awp-hour>.awp-mini{width:50px!important;height:44px!important;margin:9px 0 6px!important}
.awp-hour>b{color:#3e4c62!important;font-size:17px!important;line-height:1!important;font-weight:700!important}
.awp-hour>small{margin-top:7px!important;color:#9aa4b3!important;font-size:7px!important;white-space:nowrap!important}

/* Week: cards instead of a fragile table */
.atlas-weather-week-cards{
  width:100%!important;display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:8px!important;
}
.awp-week-card{
  min-width:0!important;min-height:210px!important;padding:13px 10px!important;display:flex!important;flex-direction:column!important;
  align-items:center!important;border:1px solid #e7ecf3!important;border-radius:16px!important;background:#fbfcfe!important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important;
}
.awp-week-card:hover{transform:translateY(-2px)!important;border-color:#dbe3ef!important;box-shadow:0 10px 25px rgba(45,62,94,.07)!important}
.awp-week-card.is-today{
  border-color:#d8e0ff!important;background:linear-gradient(180deg,#f2f4ff,#fbfcff)!important;
}
.awp-week-card-head{width:100%!important;display:grid!important;gap:2px!important;text-align:center!important}
.awp-week-card-head b{
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#435169!important;font-size:10px!important;
  font-weight:690!important;text-transform:capitalize!important;
}
.awp-week-card-head span{color:#9ba5b4!important;font-size:8px!important}
.awp-week-card-icon{width:58px!important;height:52px!important;margin:11px 0 5px!important}
.awp-week-card-icon .awp-mini{width:100%!important;height:100%!important}
.awp-week-card-condition{
  width:100%!important;min-height:28px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  overflow:hidden!important;color:#788598!important;font-size:8px!important;line-height:1.25!important;text-align:center!important;
}
.awp-week-card-temp{margin-top:7px!important;display:flex!important;align-items:baseline!important;gap:5px!important}
.awp-week-card-temp strong{color:#344259!important;font-size:18px!important;line-height:1!important;font-weight:720!important}
.awp-week-card-temp span{color:#9aa4b3!important;font-size:11px!important}
.awp-week-card-meta{
  width:100%!important;margin-top:auto!important;padding-top:10px!important;display:grid!important;gap:5px!important;
  border-top:1px solid #edf1f5!important;
}
.awp-week-card-meta span{
  min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
  color:#8793a5!important;font-size:7.5px!important;white-space:nowrap!important;
}
.awp-week-card-meta span.is-rain{color:#7194de!important}
.awp-week-card-meta svg{width:11px!important;height:11px!important}

/* Details */
.atlas-weather-details-grid{
  width:100%!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;
}
.atlas-weather-detail-card{
  min-width:0!important;min-height:138px!important;padding:17px!important;border:1px solid var(--aw69-line)!important;
  border-radius:18px!important;background:#fff!important;box-shadow:0 8px 28px rgba(44,60,91,.035)!important;
}
.atlas-weather-detail-icon{
  width:38px!important;height:38px!important;display:grid!important;place-items:center!important;border-radius:12px!important;
  background:#f1f4ff!important;color:#6071e8!important;
}
.atlas-weather-detail-icon svg{width:18px!important;height:18px!important}
.atlas-weather-detail-card>span{display:block!important;margin-top:14px!important;color:#919cab!important;font-size:8px!important}
.atlas-weather-detail-card>b{
  display:block!important;margin-top:4px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  color:#344259!important;font-size:20px!important;font-weight:700!important;
}
.atlas-weather-detail-card>small{display:block!important;margin-top:4px!important;color:#8c98aa!important;font-size:8px!important}
.atlas-weather-service-footer-note{padding:2px 10px!important;color:#9da7b5!important;font-size:8px!important;line-height:1.5!important;text-align:center!important}

/* Widget BFCache/AJAX state helpers */
html[data-atlas-widgets-v69="ready"] [data-widget]{
  --atlas-runtime-ready:1;
}
[data-widget="weather"].is-weather-loading,
[data-widget="currency"]:not(.atlas-v68-currency-ready){
  will-change:auto!important;
}

/* Tablet */
@media(max-width:1000px){
  .atlas-weather-service-header-inner,
  .atlas-weather-service-main{width:min(100% - 28px,960px)!important}
  .atlas-weather-service-header-inner{grid-template-columns:auto minmax(260px,1fr) auto!important;gap:14px!important}
  .atlas-weather-hero-copy{width:60%!important}
  .atlas-weather-hero-visual{right:8px!important;width:290px!important;height:230px!important}
  .atlas-weather-current-row>strong{font-size:74px!important}
  .atlas-weather-dayparts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .atlas-weather-week-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .awp-week-card:nth-child(n+5){min-height:195px!important}
}

/* Mobile */
@media(max-width:720px){
  .atlas-weather-service-header-inner{
    width:calc(100% - 20px)!important;min-height:0!important;padding:10px 0 12px!important;
    grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:9px 10px!important;
  }
  .atlas-weather-service-brand{min-width:0!important}
  .atlas-weather-service-brand i,.atlas-weather-service-brand b{display:none!important}
  .atlas-weather-city-search{grid-column:1/-1!important;grid-row:2!important}
  .atlas-weather-back{grid-column:2!important;grid-row:1!important}
  .atlas-weather-back span{display:none!important}
  .atlas-weather-back{width:38px!important;padding:0!important;justify-content:center!important}
  .atlas-weather-service-main{width:calc(100% - 20px)!important;padding:16px 0 38px!important}
  .atlas-weather-service-content{gap:12px!important}
  .atlas-weather-hero-card{
    min-height:500px!important;padding:22px 18px 145px!important;border-radius:21px!important;
  }
  .atlas-weather-hero-copy{width:100%!important;max-width:none!important}
  .atlas-weather-hero-copy h1{font-size:25px!important;max-width:70%!important}
  .atlas-weather-current-row{margin-top:25px!important}
  .atlas-weather-current-row>strong{font-size:66px!important}
  .atlas-weather-current-details{max-width:122px!important}
  .atlas-weather-current-details b{font-size:13px!important}
  .atlas-weather-hero-advice{width:68%!important;max-width:none!important;font-size:9px!important}
  .atlas-weather-hero-visual{right:-38px!important;top:74px!important;width:225px!important;height:182px!important;opacity:.86!important}
  .atlas-weather-hero-metrics{
    left:14px!important;right:14px!important;bottom:14px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;
  }
  .atlas-weather-hero-metrics article{min-height:54px!important;padding:9px 11px!important}
  .atlas-weather-section{padding:15px!important;border-radius:17px!important}
  .atlas-weather-section-head{align-items:flex-start!important}
  .atlas-weather-section-head h2{font-size:15px!important}
  .atlas-weather-sun-chip,.atlas-weather-section-note{display:none!important}
  .atlas-weather-dayparts{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .awp-daypart{min-height:120px!important;padding:11px!important;grid-template-columns:minmax(0,1fr) 52px!important}
  .awp-daypart>.awp-mini{width:52px!important;height:47px!important}
  .atlas-weather-week-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .awp-week-card{min-height:190px!important}
  .atlas-weather-details-grid{grid-template-columns:1fr!important;gap:8px!important}
  .atlas-weather-detail-card{min-height:112px!important}
}

/* Small phones */
@media(max-width:430px){
  .atlas-weather-service-brand img{width:29px!important;height:29px!important}
  .atlas-weather-service-brand span{font-size:15px!important}
  .atlas-weather-hero-card{min-height:515px!important}
  .atlas-weather-hero-copy h1{max-width:78%!important;font-size:23px!important}
  .atlas-weather-hero-visual{right:-72px!important;top:86px!important;width:220px!important}
  .atlas-weather-hero-advice{width:80%!important}
  .atlas-weather-dayparts{grid-template-columns:1fr!important}
  .awp-daypart{min-height:104px!important}
  .atlas-weather-week-cards{grid-template-columns:1fr 1fr!important}
}
