/* ============================================================================
 * InfoMeteo — app.css (consolidado)
 * ============================================================================
 * Contém todos os estilos usados em home e em páginas de cidade/subdivisão.
 * As regras estão em 3 blocos sequenciais. Selectors compartilhados (~380
 * linhas de :root vars + tipografia base) aparecem idênticos em [home] e
 * [city]; a cascata resolve sem conflito. Selectors específicos de cada
 * página (.hp-*, .hero-city-*, .aqp-*, etc.) só matcham nas suas views.
 *
 * Ordem intencional:
 *   1. home  — primeiro (aplica em todas as páginas, sobrepujado por city
 *              em city-page scope quando há conflito real)
 *   2. city  — segundo (overrides pra views de cidade)
 *   3. pwa-banner — último (componente isolado, compartilhado home+city)
 * ============================================================================ */

=== HOME ===
/* ============================================================================
 * BLOCO 1 — HOME
 * ============================================================================ */
/* TEMA CLARO — azul céu + branco */
:root{--bg:#9ec4df;--text:#1a3a52;--muted:#5a8aaa;--muted2:#7aaac4;--accent:#3aa8e8;--accent2:#0e7abf;--radius:16px;--shadow:0 10px 30px rgba(14,122,191,.14);--c-max:rgba(220,60,50,.90);--c-min:rgba(47,128,255,.85);--c-max-solid:#e33b30;--c-min-solid:#2f80ff}
*{box-sizing:border-box} html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(1200px 900px at 70% -10%, rgba(58,168,232,.18), transparent 60%),
    radial-gradient(900px 700px at 10% 0%, rgba(255,255,255,.15), transparent 55%),
    var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 900px at 70% -10%, rgba(58,168,232,.18), transparent 60%),
    radial-gradient(900px 700px at 10% 0%, rgba(255,255,255,.15), transparent 55%),
    var(--bg);
}
.app-shell{min-height:100%;display:flex;justify-content:center;padding:0px 14px 22px}
.app{
  width:100%;max-width:420px;border-radius:20px;overflow:hidden;
  background:rgba(255,255,255,.60);
  border:1px solid rgba(58,168,232,.18);
  box-shadow:var(--shadow)
}
.app-header{
  position:sticky;top:0;z-index:30;
  background:transparent;
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(58,168,232,.16);
  padding:14px 14px 12px
}
.header-logo{display:flex;justify-content:center;padding:10px 0px 0px;width:100%;}
.header-logo a{display:inline-flex;align-items:center;}
.site-logo{height:110px;width:auto;display:block;}
.header-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.location{display:flex;align-items:center;gap:10px;min-width:0}
.loc-icon{
  width:22px;height:38px;display:block;border-radius:12px;
  background-color:#7eabca;
  -webkit-mask-image:url('https://br.infometeo.com/assets/svg/ic-local.svg?v=3');
  mask-image:url('https://br.infometeo.com/assets/svg/ic-local.svg?v=3');
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain;
  opacity:.99;
}
.loc-city{font-weight:700;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.loc-sub{font-size:12px;color:var(--muted)}

/* ===== UNIT SWITCHES BAR ===== */
.unit-switches{display:flex;align-items:center;justify-content:center;gap:10px;padding:6px 14px 2px;flex-wrap:wrap}
.uswitch{position:relative;display:inline-flex;align-items:center;height:30px;border-radius:999px;background:rgba(58,168,232,.13);border:1.5px solid rgba(58,168,232,.18);overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:0 3px}
.uswitch-opt{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;height:22px;padding:0 9px;font-size:11px;font-weight:800;letter-spacing:.03em;color:var(--muted);transition:color .2s ease;white-space:nowrap;border-radius:999px}
.uswitch-opt.is-active{color:var(--accent2)}
.uswitch-pill{position:absolute;height:22px;border-radius:999px;background:rgba(58,168,232,.22);border:1px solid rgba(14,122,191,.25);transition:left .25s ease,width .25s ease;pointer-events:none}

.page-h1{
  margin: 0 0 10px 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(26,58,82,.95);
  text-align: center;
}
.page-h1-sub{
  margin: 0 0 14px 0;
  font-size: 12px;
  color: rgba(26,58,82,.65);
  text-align: center;
}

.suggest-loading{
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(26,58,82,.75);
  font-size: 12px;
}
.suggest-spinner{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(58,168,232,.20);
  border-top-color: rgba(14,122,191,.95);
  animation: suggestSpin .75s linear infinite;
  flex: 0 0 auto;
}
@keyframes suggestSpin{ to { transform: rotate(360deg); } }

.search{display:flex;gap:10px}
.search-wrap{ position:relative; flex:1; }
.search-wrap::before{
  content:"";
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  width:18px;height:18px;
  background-color: rgba(90,138,170,.55);
  -webkit-mask-image: url('https://br.infometeo.com/assets/svg/ic-search.svg?2e');
  mask-image: url('https://br.infometeo.com/assets/svg/ic-search.svg?2e');
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain;
  pointer-events:none;
  opacity:.95;
  transition: opacity .12s ease;
}
.search-wrap:focus-within::before{ opacity:0; pointer-events:none; }
.search-input{
  flex:1;height:42px;border-radius:14px;border:0px solid rgba(58,168,232,.22);
  background:rgba(255,255,255,.70);color:var(--text);
  padding:0 12px;padding-right:42px;
  font-size:16px;
  outline:none;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.search-input:focus{
  background: rgba(255,255,255,.92);
  border-color: rgba(58,168,232,.22);
  box-shadow: 0 0 0 3px rgba(58, 168, 232, 0.32);
}
.search-input::placeholder{color:rgba(90,138,170,.75)}
.search-wrap.has-value::before{ opacity:0; pointer-events:none; }
.search-input::-webkit-search-cancel-button{ -webkit-appearance:none; display:none; }
.search-input::-ms-clear{ display:none; }
.search-clear{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  width:26px; height:26px; border:none; background:transparent;
  color:rgba(14,122,191,.75); display:none; align-items:center; justify-content:center;
  cursor:pointer; padding:0; border-radius:50%;
  transition: color .15s ease, background .15s ease;
}
.search-clear:hover{ color:rgba(14,122,191,1); background:rgba(14,122,191,.10); }
.search-clear.is-visible{ display:flex; }
.gps-btn{
  flex:0 0 auto;
  width:42px;height:42px;
  border:none;border-radius:14px;
  background:rgba(255,255,255,.70);
  color:rgba(90,138,170,.75);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition: background .15s ease, color .15s ease;
}
.gps-btn svg{ width:22px; height:22px; }
.gps-btn:hover{ background:rgba(255,255,255,.92); color:rgba(14,122,191,.85); }
.gps-btn.is-loading{ pointer-events:none; opacity:.6; }
.gps-btn.is-loading svg{ animation: gpsSpin .8s linear infinite; }
@keyframes gpsSpin{ to{ transform:rotate(360deg); } }

.gps-wrap{ position:relative; flex:0 0 auto; }
.gps-tooltip{
  position:absolute;
  bottom:calc(100% + 10px);
  right:0;
  white-space:nowrap;
  font-size:11px;
  font-weight:600;
  color:rgba(26,58,82,.88);
  background:#e8f6ff;
  border:1px solid rgba(58,168,232,.22);
  border-radius:10px;
  padding:6px 10px;
  box-shadow:0 4px 16px rgba(14,122,191,.14);
  pointer-events:none;
  opacity:1;
  transform:translateY(0);
}
.gps-tooltip::after{
  content:"";
  position:absolute;
  top:100%;
  right:13px;
  border:5px solid transparent;
  border-top-color:#e8f6ff;
  filter:drop-shadow(0 1px 0 rgba(58,168,232,.22));
}
.gps-wrap .gps-tooltip{
  opacity:1;
  transform:translateY(0);
  animation: gpsFloat 2.4s ease-in-out infinite;
}
@keyframes gpsFloat{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-3px); }
}
.gps-toast{
  overflow:hidden;
  max-height:0;
  opacity:0;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s ease, margin 0.4s ease;
  margin:0;
}
.gps-toast.is-visible{
  max-height:60px;
  opacity:1;
  margin-top:8px;
}
.gps-toast-inner{
  font-size:12px;
  line-height:1.4;
  padding:10px 14px;
  border-radius:12px;
  background:rgba(220,70,60,.10);
  border:1px solid rgba(220,70,60,.22);
  color:rgba(160,40,30,.9);
}
.suggest{
  position:absolute; left:0; right:0;
  top:calc(42px + 8px);
  z-index:99999;
  max-height:200px;
  overflow-y:auto;
  background: rgba(240,250,255,.98);
  border:1px solid rgba(58,168,232,.20);
  border-radius:14px;
  box-shadow: 0 18px 40px rgba(14,122,191,.18);
  display:none;
}
.suggest.is-open{ display:block; }
.suggest-item{
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  user-select:none;
  text-decoration:none;
  color:inherit;
  border-bottom:1px solid rgba(58,168,232,.10);
}
.suggest-item:last-child{ border-bottom:0; }
.suggest-item:hover{ background: rgba(58,168,232,.08); }
.suggest-main{display:flex;flex-direction:column;gap:2px;min-width:0;}
.suggest-name{font-weight:800;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.suggest-sub{font-size:11px;color:rgba(26,58,82,.60);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.suggest-pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(58,168,232,.14);
  border:1px solid rgba(58,168,232,.28);
  color: rgba(26,58,82,.90);
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.suggest-pill img{width:22px;height:22px;display:block;background:rgba(58,168,232,.14);border-radius:8px;}
.suggest-temp{font-weight:900;letter-spacing:.2px;white-space:nowrap;}
.suggest-empty{padding:12px;font-size:12px;color:rgba(26,58,82,.60);}

.ad-slot1{
  margin-top: clamp(10px, 1.8vh, 18px);
  height: clamp(56px, 9vh, 110px);
  width: 100%;
  background: rgba(14,122,191,.04);
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(14,122,191,.08);
}
.ad-slot2{
  background: rgba(14,122,191,.04);
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(14,122,191,.15), 0 1px 6px rgba(0,0,0,.06);
}
.ad-bottom-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ad-bottom-desktop{
  width: 728px;
  height: 90px;
  max-width: 100%;
}
.ad-bottom-mobile{
  width: 300px;
  height: 250px;
}
.ad-top-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(10px, 1.8vh, 18px);
}
.ad-top-desktop{
  width: 728px;
  height: 90px;
  max-width: 100%;
  margin-top: 0;
  box-shadow: 0 4px 24px rgba(14,122,191,.15), 0 1px 6px rgba(0,0,0,.06);
  border-radius: 0;
}
.ad-top-mobile{
  width: 320px;
  height: 100px;
  margin-top: 0;
  box-shadow: 0 4px 24px rgba(14,122,191,.15), 0 1px 6px rgba(0,0,0,.06);
  border-radius: 0;
}
.ad-label{
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(26,58,82,.35);
  text-align: center;
  margin-top: 6px;
}
.app-content{padding:14px}
.stack{display:flex;flex-direction:column;gap:12px}
.card{
  background:rgba(255,255,255,.82);
  border:none;
  border-radius:var(--radius);
  padding:14px;
  box-shadow:0 10px 22px rgba(14,122,191,.10)
}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:#ddf2ff91;
  border:1px solid rgba(58,168,232,.18);
  display:inline-flex;
  align-items:center;
  gap:6px
}
.badge-maxmin{gap:10px}
.badge-mx,.badge-mn{display:inline-flex;align-items:center;gap:3px;font-weight:700}
.badge-mx{color:var(--c-max)}
.badge-mn{color:var(--c-min)}
.ic-rain{width:14px;height:14px;vertical-align:-2px;flex:0 0 14px;object-fit:contain;filter:brightness(0) saturate(100%) invert(55%) sepia(15%) saturate(700%) hue-rotate(160deg) brightness(90%) contrast(85%)}
.badge-rain{color:var(--muted)}
.card-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.card-title{margin:0;font-size:14px}
.card-subtitle{font-size:12px;color:var(--muted)}
.hours-maxmin{display:inline-flex;align-items:center;gap:4px;font-weight:700;font-size:12px;white-space:nowrap}
.cities-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.city-card{background:#ddf2ff91;border:1px solid rgba(58,168,232,.14);border-radius:14px;padding:10px;text-decoration:none;color:var(--text);display:flex;flex-direction:column;gap:4px;transition:background .15s,border-color .15s;overflow:hidden;min-width:0;}
.city-card:hover{background:rgba(255,255,255,.80);border-color:rgba(14,122,191,.32);}
.city-card-top{display:flex;align-items:center;justify-content:space-between;min-width:0;overflow:hidden;}
.city-card-name{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.city-card-state{font-size:12px;color:var(--muted);}
.city-card-top>div{min-width:0;overflow:hidden;flex:1;}
.footer{display:flex;justify-content:center;gap:8px;color:var(--muted2);font-size:12px;padding:4px 0 2px}
.dot{opacity:.7}
.live-dot{width:10px;height:10px;border-radius:999px;background:#ff3b30;box-shadow:0 0 0 0 rgba(255,59,48,.55);animation: livePulse 1s infinite;}
@keyframes livePulse{
  0%{transform:scale(1);box-shadow:0 0 0 0 rgba(255,59,48,.55);opacity:1;}
  60%{transform:scale(1.12);box-shadow:0 0 0 10px rgba(255,59,48,0);opacity:.95;}
  100%{transform:scale(1);box-shadow:0 0 0 0 rgba(255,59,48,0);opacity:1;}
}
:root{ --bottom-nav-h: 64px; --bottom-nav-gap: 0px; }
.app-content{padding-bottom: calc(14px + var(--bottom-nav-h) + var(--bottom-nav-gap) + 10px);}
.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;width:100%;z-index:9999;
  background:rgba(232,244,253,.94);border-top:1px solid rgba(58,168,232,.18);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  box-shadow:0 -14px 30px rgba(14,122,191,.12);
  padding:8px 10px;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
}
.bottom-nav-inner{display:flex;gap:8px;justify-content:flex-start;width:max-content;margin:0 auto;padding:0 10px;}
.bottom-nav a{
  height:calc(var(--bottom-nav-h) - 16px);display:grid;place-items:center;padding:0 12px;
  white-space:nowrap;text-decoration:none;color:rgba(26,58,82,.80);
  font-weight:800;letter-spacing:.2px;font-size:13px;
  background:rgba(255,255,255,.55);border:1px solid rgba(58,168,232,.16);
  border-radius:999px;transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.bottom-nav a:hover{background:rgba(255,255,255,.80);border-color:rgba(58,168,232,.28);}
.bottom-nav a.is-active{background:rgba(58,168,232,.22);border-color:rgba(14,122,191,.40);color:rgba(26,58,82,.98);}
.bottom-nav a.nav-home{padding:0 14px;min-width:44px;}
.bottom-nav a.nav-home svg{display:block;}

/* homepage-only components */
.hero{padding:16px;background:rgba(255,255,255,.82)}
.hero-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.temp{font-size:52px;line-height:1;font-weight:800;letter-spacing:-1px}
.temp-dual{display:flex;align-items:baseline;gap:8px}
.temp-max{color:#a63025;display:inline-flex;align-items:baseline;gap:2px}
.temp-max .mm-ic{align-self:center;background-color:#a63025}
.temp-min{font-size:38px;color:#1a5a8a;display:inline-flex;align-items:baseline;gap:2px}
.temp-min .mm-ic{align-self:center;background-color:#1a5a8a}
.desc{font-size:13px;color:var(--muted);margin-top:6px}
.badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.hero-icon{
  width:72px;height:72px;border-radius:18px;display:grid;place-items:center;
  background:#c9dfee;overflow:hidden
}
.hero-icon img{width:58px;height:58px}
.kpis{margin-top:12px;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.kpi{background:#ddf2ff91;border:1px solid rgba(58,168,232,.14);border-radius:14px;padding:10px}
.kpi .label{color:var(--muted);font-size:12px}
.kpi .value{font-weight:700;margin-top:4px;display:flex;align-items:center;gap:4px}
.wd-arrow{flex-shrink:0;color:var(--accent2)}
.hero--multi{padding:14px;background:rgba(255,255,255,.82);}
.hero--multi .temp{font-size:46px;}
.hero--multi .desc{margin-top:4px;font-size:13px;}
.live-now{
  display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border-radius:999px;
  background:#ddf2ff91;border:1px solid #3aa8e824;
  font-size:16px;font-weight:900;letter-spacing:.2px;line-height:1;min-height:36px;margin-bottom:10px;color:rgba(26,58,82,.98);
}
.hero-city-cta{display:block;width:100%;margin-top:12px;padding:10px;background:rgba(58,168,232,.18);border:1px solid rgba(14,122,191,.30);border-radius:12px;text-align:center;text-decoration:none;color:var(--accent2);font-weight:800;font-size:13px;transition:background .15s,border-color .15s;}
.hero-city-cta:hover{background:rgba(58,168,232,.28);border-color:rgba(14,122,191,.45);}
.mm-ic{width:12px;height:12px;display:inline-block;flex:0 0 12px;vertical-align:-2px;opacity:.98;background-color:var(--text);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:contain;mask-repeat:no-repeat;mask-position:center;mask-size:contain;}
.mm-ic--min{background-color:var(--c-min-solid);-webkit-mask-image:var(--mm-url);mask-image:var(--mm-url);}
.mm-ic--max{background-color:var(--c-max-solid);-webkit-mask-image:var(--mm-url);mask-image:var(--mm-url);}
.hero-city{background:rgba(255,255,255,.82);border-radius:var(--radius);padding:14px;box-shadow:0 10px 22px rgba(14,122,191,.10);position:relative;overflow:hidden;}
.hero-city::after{content:"";position:absolute;top:-40px;right:-40px;width:160px;height:160px;border-radius:50%;background:radial-gradient(circle,rgba(58,168,232,.18) 0%,transparent 70%);pointer-events:none;}
.hero-city-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.hero-city-info{flex:1;min-width:0;}
.hero-city-name{font-weight:700;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-city-state{font-size:12px;color:var(--muted);margin-top:2px;}
.hero-city-temp{font-size:52px;line-height:1;font-weight:800;letter-spacing:-1px;margin-top:4px;}
.hero-city-desc{font-size:13px;color:var(--muted);margin-top:6px;}
.hero-city-icon{width:72px;height:72px;border-radius:18px;display:grid;place-items:center;background:#c9dfee;overflow:hidden;flex-shrink:0;}
.hero-city-icon img{width:58px;height:58px;}
.hero-city-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;}
.live-badge{display:inline-flex;align-items:center;gap:7px;padding:5px 10px 5px 8px;border-radius:999px;background:#ddf2ff91;border:1px solid rgba(58,168,232,.24);font-size:11px;font-weight:700;color:var(--text);margin-bottom:10px;}
.days-strip{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;}
.day-chip{flex:0 0 auto;min-width:86px;background:#ddf2ff91;border:1px solid rgba(58,168,232,.14);border-radius:14px;padding:10px 10px 12px;display:flex;flex-direction:column;align-items:center;gap:6px;scroll-snap-align:center;text-decoration:none;color:var(--text);transition:background .15s,border-color .15s;}
.day-chip:hover{background:rgba(255,255,255,.80);border-color:rgba(14,122,191,.28);}
.day-chip.is-today{background:rgba(58,168,232,.22);border-color:rgba(14,122,191,.40);}
.day-chip-label{font-size:12px;color:var(--muted);}
.day-chip img{width:44px;height:44px;border-radius:12px;background:#aed2e8;}
.day-chip-temps{display:flex;gap:6px;align-items:center;}
.day-chip-max{font-size:14px;font-weight:700;color:var(--c-max);}
.day-chip-min{font-size:12px;font-weight:600;color:var(--c-min);}
.cities-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.city-card{background:#ddf2ff91;border:1px solid rgba(58,168,232,.14);border-radius:14px;padding:10px;text-decoration:none;color:var(--text);display:flex;flex-direction:column;gap:4px;transition:background .15s,border-color .15s;overflow:hidden;min-width:0;}
.city-card:hover{background:rgba(255,255,255,.80);border-color:rgba(14,122,191,.32);}
.city-card-top{display:flex;align-items:center;justify-content:space-between;min-width:0;overflow:hidden;}
.city-card-name{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.city-card-state{font-size:12px;color:var(--muted);}
.city-card-top>div{min-width:0;overflow:hidden;flex:1;}
.city-card-temp{font-weight:700;margin-top:4px;}
.city-card-icon img{width:44px;height:44px;border-radius:12px;background:#aed2e8;}
.sun-bar{background:linear-gradient(90deg,rgba(255,200,50,.12) 0%,rgba(58,168,232,.12) 50%,rgba(80,80,120,.10) 100%);border-radius:14px;padding:10px;display:flex;justify-content:space-between;align-items:center;border:1px solid rgba(58,168,232,.14);margin-top:6px;}
.sun-point{display:flex;flex-direction:column;align-items:center;gap:4px;}
.sun-point-icon{width:28px;height:28px;object-fit:contain;display:block;}
.sun-point-label{font-size:12px;color:var(--muted);}
.sun-point-time{font-weight:700;margin-top:4px;}
.sun-track{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0 12px;}
.sun-track-bar{width:100%;height:4px;border-radius:999px;background:linear-gradient(90deg,rgba(255,180,30,.5),rgba(58,168,232,.5));position:relative;}
.sun-track-dot{width:12px;height:12px;border-radius:50%;background:rgba(255,200,50,1);border:2px solid white;position:absolute;top:50%;transform:translateY(-50%);box-shadow:0 0 6px rgba(255,180,30,.6);}
.sun-track-label{font-size:12px;color:var(--muted);}
.states-list{display:flex;flex-direction:column;gap:6px;}
.state-row{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-radius:14px;background:#ddf2ff91;border:1px solid rgba(58,168,232,.14);text-decoration:none;color:var(--text);transition:background .15s,border-color .15s;}
.state-row:hover{background:rgba(255,255,255,.80);border-color:rgba(14,122,191,.28);}
.state-row-info{display:flex;flex-direction:column;gap:2px;}
.state-row-name{font-size:13px;font-weight:700;}
.state-row-cap{font-size:12px;color:var(--muted);}
.state-row-right{display:flex;align-items:center;gap:8px;}
.state-row-temp{font-weight:700;margin-top:4px;}
.state-row-icon img{width:44px;height:44px;border-radius:12px;background:#aed2e8;}
.phenomena-scroll{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch;}
.phenomenon-chip{flex:0 0 auto;min-width:86px;background:#ddf2ff91;border:1px solid rgba(58,168,232,.14);border-radius:14px;padding:10px 10px 12px;display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;color:var(--text);transition:background .15s,border-color .15s;}
.phenomenon-chip:hover{background:rgba(255,255,255,.80);border-color:rgba(14,122,191,.28);}
.phenomenon-emoji{font-size:28px;line-height:1;}
.phenomenon-name{font-size:12px;font-weight:700;text-align:center;color:var(--muted);}
.tips-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.tip-card{background:#ddf2ff91;border:1px solid rgba(58,168,232,.14);border-radius:14px;padding:10px;}
.tip-icon{font-size:20px;margin-bottom:6px;}
.tip-title{font-size:13px;font-weight:700;}
.tip-text{font-size:12px;color:var(--muted);line-height:1.4;margin-top:4px;}

/* padrão: esconde desktop, mostra mobile */
.ad-only-desktop{display:none!important;}
.ad-only-mobile{display:flex!important;}

/* PC: mostra desktop, esconde mobile */
@media (min-width: 768px){
  .ad-only-desktop{display:flex!important;}
  .ad-only-mobile{display:none!important;}
}
@media (min-width: 768px) {
  .app-shell{ padding: 0px 22px 34px; }
  .app{ max-width: 860px; border-radius: 24px; }
  .app-header{ padding: 18px 18px 16px; }
  .site-logo{ height: 110px; }
  .loc-icon{ width: 34px; height: 54px; border-radius: 16px; }
  .loc-city{ font-size: 20px; }
  .loc-sub{ font-size: 14px; }
  .search{ gap: 12px; }
  .search-input{
    height: 54px;
    border-radius: 16px;
    padding: 0 14px;
    padding-right: 48px;
    font-size: 15px;
  }
  .search-wrap::before{ right: 14px; width: 20px; height: 20px; }
  .gps-btn{ width:54px; height:54px; border-radius:16px; }
  .gps-btn svg{ width:24px; height:24px; }
  .suggest{ top: calc(54px + 10px); border-radius: 16px; max-height: 280px; }
  .app-content{
    padding: 18px;
    padding-bottom: calc(18px + var(--bottom-nav-h) + var(--bottom-nav-gap) + 14px);
  }
  .stack{ gap: 14px; }
  .card{ padding: 18px; border-radius: 18px; }
  .badge{ font-size: 13px; padding: 7px 12px; }
  .hero--multi .temp{ font-size: 64px; }
  .temp{ font-size: 72px; }
  .desc{ font-size: 14px; }
  .hero-icon{ width: 92px; height: 92px; border-radius: 22px; }
  .hero-icon img{ width: 70px; height: 70px; }
  .kpis{ gap: 12px; grid-template-columns: repeat(3,1fr); }
  .kpi{ padding: 12px; border-radius: 16px; }
  .kpi .label{ font-size: 13px; }
  .kpi .value{ font-size: 15px; }
  .live-now{ font-size: 18px; min-height: 40px; padding: 9px 14px; }
  .hero-city{ padding: 18px; border-radius: 18px; }
  .hero-city-temp{ font-size: 72px; }
  .hero-city-icon{ width: 92px; height: 92px; border-radius: 22px; }
  .hero-city-icon img{ width: 70px; height: 70px; }
  .cities-grid{ grid-template-columns: repeat(4, 1fr); }
  .tips-grid{ grid-template-columns: repeat(4, 1fr); }
  .day-chip{ min-width: 104px; border-radius: 16px; padding: 12px 12px 14px; }
  .day-chip img{ width: 50px; height: 50px; border-radius: 12px; background: #c9dfee; }
  .day-chip-label{ font-size: 13px; }
  .day-chip-max{ font-size: 15px; }
  .ad-slot1{ height: clamp(70px, 10vh, 140px); }
  :root{ --bottom-nav-h: 72px; }
  .bottom-nav{
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    padding: 10px 12px;
  }
  .bottom-nav-inner{ justify-content: center; padding: 0 8px; width: 100%; }
  .bottom-nav a{
    height: calc(var(--bottom-nav-h) - 18px);
    font-size: 14px;
    padding: 0 14px;
  }
}

/* ============================================================================
 * BLOCO 2 — CIDADE / SUBDIVISÃO
 * ============================================================================ */
/* TEMA CLARO — azul céu + branco */
:root{--bg:#9ec4df;--text:#1a3a52;--muted:#5a8aaa;--muted2:#7aaac4;--accent:#3aa8e8;--accent2:#0e7abf;--radius:16px;--shadow:0 10px 30px rgba(14,122,191,.14);--c-max:rgba(220,60,50,.90);--c-min:rgba(47,128,255,.85);--c-max-solid:#e33b30;--c-min-solid:#2f80ff}
*{box-sizing:border-box} html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(1200px 900px at 70% -10%, rgba(58,168,232,.18), transparent 60%),
    radial-gradient(900px 700px at 10% 0%, rgba(255,255,255,.15), transparent 55%),
    var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 900px at 70% -10%, rgba(58,168,232,.18), transparent 60%),
    radial-gradient(900px 700px at 10% 0%, rgba(255,255,255,.15), transparent 55%),
    var(--bg);
}
.app-shell{min-height:100%;display:flex;justify-content:center;padding:0px 14px 22px}
.app{
  width:100%;max-width:420px;border-radius:20px;overflow:hidden;
  background:rgba(255,255,255,.60);
  border:1px solid rgba(58,168,232,.18);
  box-shadow:var(--shadow)
}
.app-header{
  position:sticky;top:0;z-index:30;
  background:transparent;
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(58,168,232,.16);
  padding:14px 14px 12px
}
.header-logo{display:flex;justify-content:center;padding:10px 0px 0px;width:100%;}
.header-logo a{display:inline-flex;align-items:center;}
.site-logo{height:110px;width:auto;display:block;}
.header-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.location{display:flex;align-items:center;gap:10px;min-width:0}
.loc-icon{
  width:22px;height:38px;display:block;border-radius:12px;
  background-color:#7eabca;
  -webkit-mask-image:url('https://br.infometeo.com/assets/svg/ic-local.svg?v=32');
  mask-image:url('https://br.infometeo.com/assets/svg/ic-local.svg?v=32');
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain;
  opacity:.99;
}
.loc-city{font-weight:700;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.loc-sub{font-size:12px;color:var(--muted)}

/* ===== UNIT SWITCHES BAR ===== */
.unit-switches{display:flex;align-items:center;justify-content:center;gap:10px;padding:6px 14px 2px;flex-wrap:wrap}
.uswitch{position:relative;display:inline-flex;align-items:center;height:30px;border-radius:999px;background:rgba(58,168,232,.13);border:1.5px solid rgba(58,168,232,.18);overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:0 3px}
.uswitch-opt{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;height:22px;padding:0 9px;font-size:11px;font-weight:800;letter-spacing:.03em;color:var(--muted);transition:color .2s ease;white-space:nowrap;border-radius:999px}
.uswitch-opt.is-active{color:var(--accent2)}
.uswitch-pill{position:absolute;height:22px;border-radius:999px;background:rgba(58,168,232,.22);border:1px solid rgba(14,122,191,.25);transition:left .25s ease,width .25s ease;pointer-events:none}

.page-h1{
  margin: 0 0 10px 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(26,58,82,.95);
  text-align: center;
}

.page-h1-sub{
  margin: 0 0 14px 0;
  font-size: 12px;
  color: rgba(26,58,82,.65);
  text-align: center;
}

.suggest-loading{
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(26,58,82,.75);
  font-size: 12px;
}
.suggest-spinner{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(58,168,232,.20);
  border-top-color: rgba(14,122,191,.95);
  animation: suggestSpin .75s linear infinite;
  flex: 0 0 auto;
}
@keyframes suggestSpin{ to { transform: rotate(360deg); } }

.search{display:flex;gap:10px}
.search-wrap{ position:relative; flex:1; }
.search-wrap::before{
  content:"";
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  width:18px;height:18px;
  background-color: rgba(90,138,170,.55);
  -webkit-mask-image: url('https://br.infometeo.com/assets/svg/ic-search.svg?rr');
  mask-image: url('https://br.infometeo.com/assets/svg/ic-search.svg?rr');
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain;
  pointer-events:none;
  opacity:.95;
  transition: opacity .12s ease;
}
.search-wrap:focus-within::before{ opacity:0; pointer-events:none; }
.search-input{
  flex:1;height:42px;border-radius:14px;border:0px solid rgba(58,168,232,.22);
  background:rgba(255,255,255,.70);color:var(--text);
  padding:0 12px;padding-right:42px;
  font-size:16px;
  outline:none;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.search-input:focus{
  background: rgba(255,255,255,.92);
  border-color: rgba(58,168,232,.22);
  box-shadow: 0 0 0 3px rgba(58, 168, 232, 0.32);
}
.search-input::placeholder{color:rgba(90,138,170,.75)}
/* oculta lupa quando há texto digitado */
.search-wrap.has-value::before{ opacity:0; pointer-events:none; }
.search-input::-webkit-search-cancel-button{ -webkit-appearance:none; display:none; }
.search-input::-ms-clear{ display:none; }
/* botão X customizado */
.search-clear{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:26px;height:26px;
  border:none;background:transparent;
  color:rgba(14,122,191,.75);
  display:none;
  align-items:center;justify-content:center;
  cursor:pointer;
  padding:0;
  border-radius:50%;
  transition: color .15s ease, background .15s ease;
}
.search-clear:hover{ color:rgba(14,122,191,1); background:rgba(14,122,191,.10); }
.search-clear.is-visible{ display:flex; }
.gps-btn{
  flex:0 0 auto;
  width:42px;height:42px;
  border:none;border-radius:14px;
  background:rgba(255,255,255,.70);
  color:rgba(90,138,170,.75);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition: background .15s ease, color .15s ease;
}
.gps-btn svg{ width:22px; height:22px; }
.gps-btn:hover{ background:rgba(255,255,255,.92); color:rgba(14,122,191,.85); }
.gps-btn.is-loading{ pointer-events:none; opacity:.6; }
.gps-btn.is-loading svg{ animation: gpsSpin .8s linear infinite; }
@keyframes gpsSpin{ to{ transform:rotate(360deg); } }

.gps-wrap{ position:relative; flex:0 0 auto; }
.gps-tooltip{
  position:absolute;
  bottom:calc(100% + 10px);
  right:0;
  white-space:nowrap;
  font-size:11px;
  font-weight:600;
  color:rgba(26,58,82,.88);
  background:#e8f6ff;
  border:1px solid rgba(58,168,232,.22);
  border-radius:10px;
  padding:6px 10px;
  box-shadow:0 4px 16px rgba(14,122,191,.14);
  pointer-events:none;
  opacity:1;
  transform:translateY(0);
}
.gps-tooltip::after{
  content:"";
  position:absolute;
  top:100%;
  right:13px;
  border:5px solid transparent;
  border-top-color:#e8f6ff;
  filter:drop-shadow(0 1px 0 rgba(58,168,232,.22));
}
.gps-wrap .gps-tooltip{
  opacity:1;
  transform:translateY(0);
  animation: gpsFloat 2.4s ease-in-out infinite;
}
@keyframes gpsFloat{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-3px); }
}
.gps-toast{
  overflow:hidden;
  max-height:0;
  opacity:0;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s ease, margin 0.4s ease;
  margin:0;
}
.gps-toast.is-visible{
  max-height:60px;
  opacity:1;
  margin-top:8px;
}
.gps-toast-inner{
  font-size:12px;
  line-height:1.4;
  padding:10px 14px;
  border-radius:12px;
  background:rgba(220,70,60,.10);
  border:1px solid rgba(220,70,60,.22);
  color:rgba(160,40,30,.9);
}
.suggest{
  position:absolute; left:0; right:0;
  top:calc(42px + 8px);
  z-index:99999;
  max-height:200px;
  overflow-y:auto;
  background: rgba(240,250,255,.98);
  border:1px solid rgba(58,168,232,.20);
  border-radius:14px;
  box-shadow: 0 18px 40px rgba(14,122,191,.18);
  display:none;
}
.suggest.is-open{ display:block; }
.suggest-item{
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  user-select:none;
  text-decoration:none;
  color:inherit;
  border-bottom:1px solid rgba(58,168,232,.10);
}
.suggest-item:last-child{ border-bottom:0; }
.suggest-item:hover{ background: rgba(58,168,232,.08); }
.suggest-main{display:flex;flex-direction:column;gap:2px;min-width:0;}
.suggest-name{font-weight:800;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.suggest-sub{font-size:11px;color:rgba(26,58,82,.60);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.suggest-pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(58,168,232,.14);
  border:1px solid rgba(58,168,232,.28);
  color: rgba(26,58,82,.90);
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.suggest-pill img{width:22px;height:22px;display:block;background:rgba(58,168,232,.14);border-radius:8px;}
.suggest-temp{font-weight:900;letter-spacing:.2px;white-space:nowrap;}
.suggest-empty{padding:12px;font-size:12px;color:rgba(26,58,82,.60);}

.ad-slot1{
  margin-top: clamp(10px, 1.8vh, 18px);
  height: clamp(56px, 9vh, 110px);
  width: 100%;
  background: rgba(14,122,191,.04);
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(14,122,191,.08);
}
.ad-slot2{
  background: rgba(14,122,191,.04);
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(14,122,191,.15), 0 1px 6px rgba(0,0,0,.06);
}
.ad-bottom-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ad-bottom-desktop{
  width: 728px;
  height: 90px;
  max-width: 100%;
}
.ad-bottom-mobile{
  width: 300px;
  height: 250px;
}
.ad-top-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(10px, 1.8vh, 18px);
}
.ad-top-desktop{
  width: 728px;
  height: 90px;
  max-width: 100%;
  margin-top: 0;
  box-shadow: 0 4px 24px rgba(14,122,191,.15), 0 1px 6px rgba(0,0,0,.06);
  border-radius: 0;
}
.ad-top-mobile{
  width: 320px;
  height: 100px;
  margin-top: 0;
  box-shadow: 0 4px 24px rgba(14,122,191,.15), 0 1px 6px rgba(0,0,0,.06);
  border-radius: 0;
}
.ad-label{
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(26,58,82,.35);
  text-align: center;
  margin-top: 6px;
}
.app-content{padding:14px}
.stack{display:flex;flex-direction:column;gap:12px}
.card{
  background:rgba(255,255,255,.82);
  border:none;
  border-radius:var(--radius);
  padding:14px;
  box-shadow:0 10px 22px rgba(14,122,191,.10)
}
.card.card-hours{margin-bottom: clamp(12px, 2.2vh, 26px);}
.card.card-hours--inline{ margin-bottom: 0 !important; }
.hero{padding:16px;background:rgba(255,255,255,.82)}
.hero-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.temp{font-size:52px;line-height:1;font-weight:800;letter-spacing:-1px}
.temp-dual{display:flex;align-items:baseline;gap:8px}
.temp-max{color:#a63025;display:inline-flex;align-items:baseline;gap:2px}
.temp-max .mm-ic{align-self:center;background-color:#a63025}
.temp-min{font-size:38px;color:#1a5a8a;display:inline-flex;align-items:baseline;gap:2px}
.temp-min .mm-ic{align-self:center;background-color:#1a5a8a}
.desc{font-size:13px;color:var(--muted);margin-top:6px}
.badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:#ddf2ff91;
  border:1px solid rgba(58,168,232,.18);
  display:inline-flex;
  align-items:center;
  gap:6px
}
.badge-maxmin{gap:10px}
.badge-mx,.badge-mn{display:inline-flex;align-items:center;gap:3px;font-weight:700}
.badge-mx{color:var(--c-max)}
.badge-mn{color:var(--c-min)}
.ic-rain{width:14px;height:14px;vertical-align:-2px;flex:0 0 14px;object-fit:contain;filter:brightness(0) saturate(100%) invert(55%) sepia(15%) saturate(700%) hue-rotate(160deg) brightness(90%) contrast(85%)}
.badge-rain{color:var(--muted)}
.hero-icon{
  width:72px;height:72px;border-radius:18px;display:grid;place-items:center;
  background:#c9dfee;overflow:hidden
}
.hero-icon img{width:58px;height:58px}
.kpis{margin-top:12px;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.kpi{background:#ddf2ff91;border:1px solid rgba(58,168,232,.14);border-radius:14px;padding:10px}
.kpi .label{color:var(--muted);font-size:12px}
.kpi .value{font-weight:700;margin-top:4px;display:flex;align-items:center;gap:4px}
.card-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.card-title{margin:0;font-size:14px}
.card-subtitle{font-size:12px;color:var(--muted)}
.hours-maxmin{display:inline-flex;align-items:center;gap:4px;font-weight:700;font-size:12px;white-space:nowrap}
.cities-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.city-card{background:#ddf2ff91;border:1px solid rgba(58,168,232,.14);border-radius:14px;padding:10px;text-decoration:none;color:var(--text);display:flex;flex-direction:column;gap:4px;transition:background .15s,border-color .15s;overflow:hidden;min-width:0;}
.city-card:hover{background:rgba(255,255,255,.80);border-color:rgba(14,122,191,.32);}
.city-card--active{background:rgba(58,168,232,.18);border-color:rgba(14,122,191,.40);box-shadow:0 0 0 1px rgba(58,168,232,.20);}
.city-card-top{display:flex;align-items:center;justify-content:space-between;min-width:0;overflow:hidden;}
.city-card-name{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.city-card-state{font-size:12px;color:var(--muted);}
.city-card-top>div{min-width:0;overflow:hidden;flex:1;}
.hourly-scroll{
  display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.hour{
  min-width:86px;background:#ddf2ff91;border:1px solid rgba(58,168,232,.14);border-radius:14px;
  padding:10px 10px 12px;display:flex;flex-direction:column;align-items:center;gap:6px;
  scroll-snap-align:center;
}
.hour .t{font-size:12px;color:var(--muted)}
.hour img{width:44px;height:44px;border-radius:12px;background:#aed2e8;}
.hour .v{font-size:14px;font-weight:700}
.hour-feels{font-size:10px;color:var(--muted);text-align:center;margin-top:1px;white-space:nowrap}
.hour .hour-cond{font-size:10px;color:var(--muted2);text-align:center;line-height:1.2;margin-top:2px;max-width:80px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:calc(10px * 1.2 * 2);min-height:calc(10px * 1.2 * 2)}
.hour.is-now{ background: rgba(58,168,232,.22); border-color: rgba(14,122,191,.40); }
.hour.is-now .t{ color: rgba(26,58,82,.95); font-weight: 800; }
.hourly-scroll.is-centering{ scroll-snap-type: none !important; }

/* Expandable hour detail */
.hour--expandable{ cursor: pointer; position: relative; }
.hour--expandable.is-expanded{
  background: rgba(58,168,232,.18);
  border-color: rgba(14,122,191,.32);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.hour-arrow{
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);margin-top:2px;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.hour--expandable.is-expanded .hour-arrow{
  transform: rotate(180deg);
}

/* External detail panel (below hourly-scroll, inside the card) */
.hour-detail-panel{
  overflow:hidden;
  max-height:0;
  opacity:0;
  transition: max-height 0.5s cubic-bezier(.4,0,.2,1), opacity 0.35s ease, margin 0.5s cubic-bezier(.4,0,.2,1);
  margin-top:0;
}
.hour-detail-panel.is-open{
  max-height:320px;
  opacity:1;
  margin-top:12px;
}
.hour-detail-panel-inner{
  background: rgba(221,242,255,.55);
  border: 1px solid rgba(58,168,232,.18);
  border-radius: 14px;
  padding: 14px 16px;
}

/* Mobile card is no longer used — detail panel stays inside the card on all screens */
.hour-detail-panel-mobile-card {
  display: none !important;
}
.hdp-title{
  font-size:13px;font-weight:700;margin-bottom:10px;
  color:var(--fg);
  display:flex;align-items:center;gap:6px;
}
.hdp-title .hdp-time{
  font-weight:800;color:rgba(14,122,191,.85);
}
.hdp-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}
@media (max-width: 639px){
  .hdp-grid{ grid-template-columns: 1fr; gap: 7px 0; }
}
.hd-row{
  display:flex;justify-content:flex-start;align-items:center;
  gap:6px;font-size:12px;line-height:1.4;
  width:100%;
}
.hd-label{ color:var(--muted); white-space:nowrap; flex-shrink:0; }
.hd-val{ font-weight:600; white-space:nowrap; }
.hd-wdir{ display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.wd-arrow{ flex-shrink:0; color:var(--accent2); }
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.tile{background:#ddf2ff91;border:1px solid rgba(58,168,232,.14);border-radius:14px;padding:10px}
.tile .label{color:var(--muted);font-size:12px}
.tile .value{font-weight:700;margin-top:6px;display:flex;align-items:center;gap:4px}
.alert{
  background:rgba(255,193,7,.08);
  border:1px solid rgba(255,193,7,.28);
  border-radius:16px;padding:12px 12px 10px
}
.alert-title{font-weight:800;margin:0 0 6px}
.alert-item{font-size:13px;color:rgba(26,58,82,.88);line-height:1.35;margin:0 0 10px}
.alert-item strong{color:var(--text)}
.alert-meta{font-size:12px;color:rgba(26,58,82,.60)}
.day-divider{height:1px;background:rgba(58,168,232,.15);margin:8px 0;border-radius:999px;}
.sun-bar{background:linear-gradient(90deg,rgba(255,200,50,.12) 0%,rgba(58,168,232,.12) 50%,rgba(80,80,120,.10) 100%);border-radius:14px;padding:10px;display:flex;justify-content:space-between;align-items:center;border:1px solid rgba(58,168,232,.14);margin-top:6px;}
.sun-point{display:flex;flex-direction:column;align-items:center;gap:4px;}
.sun-point-icon{width:28px;height:28px;object-fit:contain;display:block;}
.sun-point-label{font-size:12px;color:var(--muted);}
.sun-point-time{font-weight:700;margin-top:4px;}
.sun-track{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0 12px;}
.sun-track-bar{width:100%;height:4px;border-radius:999px;background:linear-gradient(90deg,rgba(255,180,30,.5),rgba(58,168,232,.5));position:relative;}
.sun-track-dot{width:12px;height:12px;border-radius:50%;background:rgba(255,200,50,1);border:2px solid white;position:absolute;top:50%;transform:translateY(-50%);box-shadow:0 0 6px rgba(255,180,30,.6);}
.sun-track-label{font-size:12px;color:var(--muted);}
/* Qualidade do ar */
.aq-card{ background: rgba(255,255,255,.82); }
.aq-body{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.aq-status{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; flex:0 0 80px; text-align:center; }
.aq-emoji{ font-size:34px; line-height:1; }
.aq-label{ font-size:13px; font-weight:800; letter-spacing:.1px; margin-top:2px; }
.aq-index{ font-size:11px; color:var(--muted); }
.aq-index strong{ color:var(--text); font-weight:800; }
.aq-metrics{ flex:1; display:flex; flex-direction:column; gap:8px; min-width:0; }
.aq-metric{ display:flex; align-items:center; justify-content:space-between; background:#ddf2ff91; border:1px solid rgba(58,168,232,.14); border-radius:12px; padding:9px 12px; gap:8px; min-width:0; }
.aq-m-label{ font-size:12px; color:var(--muted); flex-shrink:0; line-height:1.4; }
.aq-m-label sub{ font-size:9px; vertical-align:baseline; position:relative; top:3px; }
.aq-m-val{ font-size:13px; font-weight:700; white-space:nowrap; flex-shrink:0; }
.aq-bar-wrap{ margin-top:2px; }
.aq-bar-track{ position:relative; height:7px; border-radius:999px; background:linear-gradient(90deg,#22c55e 0%,#eab308 33%,#f97316 55%,#ef4444 72%,#a855f7 88%,#7f1d1d 100%); }
.aq-bar-dot{ width:14px; height:14px; border-radius:50%; position:absolute; top:50%; transform:translate(-50%,-50%); border:2px solid white; box-shadow:0 0 6px rgba(0,0,0,.22); }
.aq-bar-ticks{ display:flex; justify-content:space-between; margin-top:5px; font-size:10px; color:var(--muted); }
.aq-deeplink{
  display:flex;align-items:center;justify-content:center;gap:7px;
  margin-top:12px;
  padding:10px 14px;
  border-radius:12px;
  background:rgba(58,168,232,.08);
  border:1px solid rgba(58,168,232,.18);
  text-decoration:none;
  color:rgba(14,122,191,.9);
  font-size:12px;
  font-weight:600;
  transition:background .15s, border-color .15s;
}
.aq-deeplink:hover{ background:rgba(58,168,232,.16); border-color:rgba(14,122,191,.32); }
.aq-deeplink svg{ flex-shrink:0; opacity:.8; }
.aq-deeplink-text{ line-height:1.3; }
.aq-deeplink-arrow{ font-size:14px; color:var(--accent2); flex-shrink:0; opacity:.7; }
.dot{opacity:.7}
.footer{display:flex;justify-content:center;gap:8px;color:var(--muted2);font-size:12px;padding:4px 0 2px}
.error{background:rgba(255,107,107,.07);border:1px solid rgba(255,107,107,.28);border-radius:var(--radius);padding:14px}
.error-title{font-weight:800;margin-bottom:6px}
.error-msg{color:rgba(26,58,82,.85);font-size:13px;margin-bottom:0}
#heroContainer{display:flex;flex-direction:column;gap:12px}
.hero--multi{padding:14px;background:rgba(255,255,255,.82);}
.hero--multi .temp{font-size:46px;}
.hero--multi .desc{margin-top:4px;font-size:13px;}
.hero-daytitle,.live-now{
  display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border-radius:999px;
  background:#ddf2ff91;border:1px solid #3aa8e824;
  box-shadow: inset 0 0 0 0px rgba(58,168,232,.12);
  font-size:16px;font-weight:900;letter-spacing:.2px;line-height:1;min-height:36px;margin-bottom:10px;color:rgba(26,58,82,.98);
}
.hero-daytitle .mini{font-size:12px;font-weight:800;color:rgba(26,58,82,.75);opacity:.95;line-height:1;}
.live-dot{width:10px;height:10px;border-radius:999px;background:#ff3b30;box-shadow:0 0 0 0 rgba(255,59,48,.55);animation: livePulse 1s infinite;}
@keyframes livePulse{
  0%{transform:scale(1);box-shadow:0 0 0 0 rgba(255,59,48,.55);opacity:1;}
  60%{transform:scale(1.12);box-shadow:0 0 0 10px rgba(255,59,48,0);opacity:.95;}
  100%{transform:scale(1);box-shadow:0 0 0 0 rgba(255,59,48,0);opacity:1;}
}
.mm-ic{width:12px;height:12px;display:inline-block;flex:0 0 12px;vertical-align:-2px;opacity:.98;background-color:var(--text);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:contain;mask-repeat:no-repeat;mask-position:center;mask-size:contain;}
.mm-ic--min{background-color:var(--c-min-solid);-webkit-mask-image:var(--mm-url);mask-image:var(--mm-url);}
.mm-ic--max{background-color:var(--c-max-solid);-webkit-mask-image:var(--mm-url);mask-image:var(--mm-url);}
:root{ --bottom-nav-h: 64px; --bottom-nav-gap: 0px; }
.app-content{padding-bottom: calc(14px + var(--bottom-nav-h) + var(--bottom-nav-gap) + 10px);}
.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;width:100%;z-index:9999;
  background:rgba(232,244,253,.94);border-top:1px solid rgba(58,168,232,.18);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  box-shadow:0 -14px 30px rgba(14,122,191,.12);
  padding:8px 10px;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
}
.bottom-nav-inner{display:flex;gap:8px;justify-content:flex-start;width:max-content;margin:0 auto;padding:0 10px;}
.bottom-nav a{
  height:calc(var(--bottom-nav-h) - 16px);display:grid;place-items:center;padding:0 12px;
  white-space:nowrap;text-decoration:none;color:rgba(26,58,82,.80);
  font-weight:800;letter-spacing:.2px;font-size:13px;
  background:rgba(255,255,255,.55);border:1px solid rgba(58,168,232,.16);
  border-radius:999px;transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.bottom-nav a:hover{background:rgba(255,255,255,.80);border-color:rgba(58,168,232,.28);}
.bottom-nav a.is-active{background:rgba(58,168,232,.22);border-color:rgba(14,122,191,.40);color:rgba(26,58,82,.98);}
.bottom-nav a.nav-home{padding:0 14px;min-width:44px;}
.bottom-nav a.nav-home svg{display:block;}

/* DESKTOP / PC MODE */
.pc-hero-row{display:block;}
.pc-hero-main{display:block;}

@media (min-width: 768px){
  /* Só vira grid 2-col quando o ad lateral existe (classe .has-ad emitida pelo PHP).
     Sem .has-ad, mantém o display:block da linha acima e o card ocupa 100%. */
  .pc-hero-row.has-ad{
    display:grid;
    grid-template-columns: 300px minmax(0,1fr);
    gap: 14px;
    align-items:start;
  }
  .pc-adslot1{
    width: 300px;
    height: 250px;
    min-height: 250px;
    margin: 0;
    justify-content: center;
    align-items: center;
    align-self: center;
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(14,122,191,.15), 0 1px 6px rgba(0,0,0,.06);
  }
  .pc-adslot1-wrap{
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
  }
  .pc-topslot{
    margin-top: 0;
    margin-bottom: 0;
    justify-content: center;
  }
}

/* padrão: esconde desktop, mostra mobile */
.ad-only-desktop{display:none!important;}
.ad-only-mobile{display:flex!important;}

/* PC: mostra desktop, esconde mobile */
@media (min-width: 768px){
  .ad-only-desktop{display:flex!important;}
  .ad-only-mobile{display:none!important;}
} 
@media (min-width: 768px) {
  .app-shell{ padding: 0px 22px 34px; }
  .app{ max-width: 860px; border-radius: 24px; }
  .app-header{ padding: 18px 18px 16px; }
  .site-logo{ height: 110px; }
  .loc-icon{ width: 34px; height: 54px; border-radius: 16px; }
  .loc-city{ font-size: 20px; }
  .loc-sub{ font-size: 14px; }

  .search{ gap: 12px; }
  .search-input{
    height: 54px;
    border-radius: 16px;
    padding: 0 14px;
    padding-right: 48px;
    font-size: 15px;
  }
  .search-wrap::before{ right: 14px; width: 20px; height: 20px; }
  .gps-btn{ width:54px; height:54px; border-radius:16px; }
  .gps-btn svg{ width:24px; height:24px; }
  .suggest{ top: calc(54px + 10px); border-radius: 16px; max-height: 280px; }

  .app-content{
    padding: 18px;
    padding-bottom: calc(18px + var(--bottom-nav-h) + var(--bottom-nav-gap) + 14px);
  }
  .stack{ gap: 14px; }
  .card{ padding: 18px; border-radius: 18px; }

  .hero--multi .temp{ font-size: 64px; }
  .temp{ font-size: 72px; }
  .desc{ font-size: 14px; }
  .badge{ font-size: 13px; padding: 7px 12px; }

  .hero-icon{ width: 92px; height: 92px; border-radius: 22px; }
  .hero-icon img{ width: 70px; height: 70px; }

  .kpis{ gap: 12px; grid-template-columns: repeat(3,1fr); }
  .kpi{ padding: 12px; border-radius: 16px; }
  .kpi .label{ font-size: 13px; }
  .kpi .value{ font-size: 15px; }

  .hourly-scroll{ gap: 12px; padding-bottom: 8px; }
  .hour{
    min-width: 104px;
    border-radius: 16px;
    padding: 12px 12px 14px;
  }
  .hour img{ width: 50px; height: 50px; border-radius: 12px; background: #c9dfee; }
  .hour .t{ font-size: 13px; }
  .hour .v{ font-size: 15px; }
  .hour .hour-cond{ font-size: 11px; max-width: 96px; height:calc(11px * 1.2 * 2); min-height:calc(11px * 1.2 * 2); }
  .hdp-grid{ grid-template-columns: repeat(3, 1fr); gap: 8px 20px; }
  .hd-row{ font-size: 13px; }

  .grid{ grid-template-columns: repeat(4, 1fr); }
  .ad-slot1{ height: clamp(70px, 10vh, 140px); }

  :root{ --bottom-nav-h: 72px; }

  .bottom-nav{
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    padding: 10px 12px;
  }
  .bottom-nav-inner{ justify-content: center; padding: 0 8px; width: 100%; }
  .bottom-nav a{
    height: calc(var(--bottom-nav-h) - 18px);
    font-size: 14px;
    padding: 0 14px;
  }
  .hero-daytitle,.live-now{
    font-size: 18px;
    min-height: 40px;
    padding: 9px 14px;
  }
}

/* ============ qualidade-do-ar page (antes inline em render_aq_page) ============ */
.aqp-hero{
  background:rgba(255,255,255,.82);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:0 10px 22px rgba(14,122,191,.10);
  display:flex;flex-direction:column;gap:16px;
}
.aqp-days{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:12px;
}
.aqp-day{
  border-radius:14px;
  padding:16px;
  display:flex;flex-direction:column;gap:10px;
  border:1.5px solid rgba(58,168,232,.18);
  background:rgba(255,255,255,.72);
  position:relative;overflow:hidden;
}
.aqp-day::before{
  content:"";
  position:absolute;inset:0;
  border-radius:inherit;
  opacity:.07;
  pointer-events:none;
  background:var(--aqp-color,#22c55e);
}
.aqp-day-header{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
}
.aqp-day-label{font-weight:800;font-size:15px;color:var(--text);}
.aqp-day-dm{font-size:12px;color:var(--muted);}
.aqp-status-row{
  display:flex;align-items:center;gap:10px;
}
.aqp-emoji{font-size:36px;line-height:1;}
.aqp-status-text{display:flex;flex-direction:column;gap:2px;}
.aqp-aqi-label{font-size:18px;font-weight:800;line-height:1.1;}
.aqp-aqi-num{font-size:12px;color:var(--muted);}
.aqp-bar-wrap{margin-top:2px;}
.aqp-bar-track{
  height:8px;border-radius:999px;
  background:linear-gradient(90deg,#22c55e 0%,#eab308 33%,#f97316 55%,#ef4444 70%,#a855f7 85%,#7f1d1d 100%);
  position:relative;
}
.aqp-bar-pin{
  position:absolute;top:50%;transform:translate(-50%,-50%);
  width:14px;height:14px;border-radius:50%;
  border:2.5px solid #fff;
  box-shadow:0 1px 4px rgba(0,0,0,.25);
}
.aqp-bar-ticks{
  display:flex;justify-content:space-between;
  font-size:9px;color:var(--muted);margin-top:3px;
}
.aqp-pollutants{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px;
}
.aqp-pol{
  background:rgba(221,242,255,.55);
  border:1px solid rgba(58,168,232,.14);
  border-radius:10px;padding:8px 10px;
}
.aqp-pol-name{font-size:10px;color:var(--muted);margin-bottom:3px;}
.aqp-pol-val{font-size:13px;font-weight:700;}
.aqp-pol-bar{
  height:3px;border-radius:999px;background:rgba(58,168,232,.15);margin-top:4px;overflow:hidden;
}
.aqp-pol-fill{height:100%;border-radius:999px;}
.aqp-legend{
  display:flex;gap:8px;flex-wrap:wrap;margin-top:4px;
}
.aqp-legend-item{
  display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);
}
.aqp-legend-dot{
  width:10px;height:10px;border-radius:50%;flex-shrink:0;
}
.aqp-nodata{
  text-align:center;padding:24px;color:var(--muted);font-size:13px;
}

/* ============================================================================
 * BLOCO 3 — PWA BANNER (compartilhado)
 * ============================================================================ */
.pwa-banner{
  position:fixed;top:0;left:0;right:0;z-index:99999;
  transform:translateY(-100%);transition:transform .35s cubic-bezier(.4,0,.2,1);
  display:none;
}
.pwa-banner.is-visible{transform:translateY(0)}
/* Modo minimizado: barra fina no topo do documento, empurra o conteúdo, não flutua */
.pwa-banner.is-sticky{
  position:static;transform:none;transition:none;display:block;
}
.pwa-banner.is-sticky .pwa-banner-inner{
  padding:8px 14px;box-shadow:none;border-radius:0;margin:0;max-width:none;
  gap:10px;
}
.pwa-banner.is-sticky .pwa-banner-icon{width:28px;height:28px;border-radius:7px}
.pwa-banner.is-sticky .pwa-banner-icon img{border-radius:7px}
.pwa-banner.is-sticky .pwa-banner-title{font-size:13px}
.pwa-banner.is-sticky .pwa-banner-desc{display:none}
.pwa-banner.is-sticky .pwa-banner-btn{padding:6px 14px;font-size:12px;border-radius:8px}
.pwa-banner.is-sticky .pwa-banner-close{display:none}
.pwa-banner-inner{
  display:flex;align-items:center;gap:12px;
  padding:12px 16px;
  background:linear-gradient(135deg,#0e7abf 0%,#3aa8e8 100%);
  color:#fff;font-family:Inter,system-ui,sans-serif;
  box-shadow:0 4px 20px rgba(0,0,0,.18);
}
.pwa-banner-icon{
  width:40px;height:40px;border-radius:10px;flex-shrink:0;overflow:hidden;
}
.pwa-banner-icon img{width:100%;height:100%;object-fit:cover;border-radius:10px}
.pwa-banner-text{flex:1;min-width:0}
.pwa-banner-title{font-size:14px;font-weight:700;line-height:1.2}
.pwa-banner-desc{font-size:12px;opacity:.88;line-height:1.3;margin-top:2px}
.pwa-banner-btn{
  flex-shrink:0;background:#fff;color:#0e7abf;border:none;border-radius:10px;
  padding:9px 18px;font-size:13px;font-weight:700;cursor:pointer;
  font-family:inherit;transition:background .15s,transform .1s;
  white-space:nowrap;
}
.pwa-banner-btn:active{transform:scale(.96)}
.pwa-banner-close{
  flex-shrink:0;background:none;border:none;color:rgba(255,255,255,.7);
  font-size:22px;line-height:1;cursor:pointer;padding:4px;
  transition:color .15s;font-family:inherit;
}
.pwa-banner-close:hover{color:#fff}
@media(min-width:600px){
  .pwa-banner-inner{
    max-width:580px;margin:12px auto;border-radius:14px;
    padding:14px 20px;
  }
}