/* Achei Cidades 1.9.114 - PALETA E RODAPE COMPACTO DO CABECALHO MOBILE (site + WebView)
   Manter desktop >1024px completamente intacto.
*/
@media (max-width:1024px) {
  html body .app-shell.mobile-only > .app-top {
    box-sizing:border-box!important;
    padding:calc(6px + env(safe-area-inset-top, 0px)) 12px 8px!important;
    min-height:0!important;height:auto!important;
    border-radius:0!important;
  }
  html.achei-app body .app-shell.mobile-only > .app-top {padding-top:6px!important}
  html body .app-shell > .app-top .app-brand-row {
    display:grid!important;grid-template-columns:38px minmax(0,1fr) 38px!important;
    align-items:center!important;min-height:38px!important;height:38px!important;
    gap:8px!important;padding:0!important;margin:0!important;
  }
  html body .app-shell > .app-top .app-brand-link {
    display:flex!important;justify-content:center!important;align-items:center!important;
    height:38px!important;min-height:0!important;margin:0!important;
  }
  html body .app-shell > .app-top .app-logo {
    display:block!important;width:128px!important;max-width:100%!important;
    height:auto!important;max-height:33px!important;
    margin:0!important;object-fit:contain!important;
  }
  html body .app-shell > .app-top .app-menu-btn,
  html body .app-shell > .app-top .app-account-mini,
  html body .app-shell > .app-top .app-top-spacer {
    width:38px!important;height:38px!important;min-width:38px!important;
    min-height:38px!important;flex-basis:38px!important;margin:0!important;
  }
  html body .app-shell > .app-top .app-search {
    box-sizing:border-box!important;height:40px!important;min-height:40px!important;
    margin:7px 0 0!important;padding:0 12px!important;
    border-radius:22px!important;gap:8px!important;
  }
  html body .app-shell > .app-top .app-search input {
    height:38px!important;min-height:0!important;font-size:13px!important;
    line-height:normal!important;margin:0!important;padding:0!important;
  }
  html body .app-shell > .app-top .app-search button {
    min-width:28px!important;min-height:32px!important;padding:0!important;
  }

  /* Perfil empresarial: o header separado tinha padding duplo e grade de 2 linhas. */
  html body .detail-app > .company-app-header {
    box-sizing:border-box!important;grid-template-columns:38px minmax(0,1fr) 38px!important;
    grid-template-areas:'menu brand account'!important;
    min-height:52px!important;height:52px!important;
    padding:5px 12px!important;column-gap:8px!important;row-gap:0!important;
    align-items:center!important;top:0!important;
  }
  html body .detail-app > .company-app-header .company-app-menu,
  html body .detail-app > .company-app-header .company-app-account {
    width:38px!important;height:38px!important;min-width:38px!important;
  }
  html body .detail-app > .company-app-header .company-app-brand img {
    width:128px!important;max-height:34px!important;object-fit:contain!important;
  }
  /* Outros modelos de perfil. */
  html body .mobile-company-app > .mob-head {
    box-sizing:border-box!important;min-height:54px!important;height:54px!important;
    grid-template-columns:40px minmax(0,1fr) 40px!important;
    padding:4px 12px!important;border-radius:0 0 14px 14px!important;
  }
  html body .mobile-company-app > .mob-head .mob-back{width:38px!important;height:38px!important;font-size:26px!important}
  html body .mobile-company-app > .mob-head img{max-height:38px!important}
  html body .detail-app .m-detail-head{min-height:52px!important;height:52px!important}
  html body .national-head{min-height:54px!important;padding-top:0!important;padding-bottom:0!important}

  /* Listagem e perfis usam a faixa do PRÓPRIO PORTAL, no navegador e no app.
     O Flutter não deve acrescentar uma segunda AppBar. */
  html.achei-mobile-internal body .app-shell > .app-top,
  html.achei-mobile-internal body .detail-app > .company-app-header,
  html.achei-mobile-internal body .mobile-company-app > .mob-head,
  html.achei-mobile-internal body .detail-app .m-detail-head,
  html.achei-mobile-internal body .national-head {
    display:none!important;
  }
  html.achei-mobile-internal body .achei-app-pagebar {
    box-sizing:border-box!important;display:grid!important;
    grid-template-columns:44px minmax(0,1fr) 44px!important;
    align-items:center!important;min-height:50px!important;height:50px!important;
    padding:0 9px!important;margin:0!important;width:100%!important;
    position:sticky!important;top:0!important;z-index:180!important;
    background:var(--purple,#673AB8)!important;color:#fff!important;
    font-family:'Space Grotesk',system-ui,sans-serif!important;
    box-shadow:0 2px 8px rgba(26,9,41,.11)!important;
    animation:acheiHeadSlide2013 .20s ease-out both;
  }
  html.achei-mobile-internal body .achei-app-pagebar button,
  html.achei-mobile-internal body .achei-app-pagebar a {
    box-sizing:border-box!important;display:flex!important;
    align-items:center!important;justify-content:center!important;
    min-width:40px!important;width:40px!important;height:40px!important;
    background:transparent!important;color:inherit!important;border:0!important;
    border-radius:9px!important;text-decoration:none!important;
    cursor:pointer!important;padding:0!important;
  }
  html.achei-mobile-internal body .achei-app-pagebar svg {
    width:22px!important;height:22px!important;fill:none!important;
    stroke:currentColor!important;stroke-width:2!important;
    stroke-linecap:round!important;stroke-linejoin:round!important;
  }
  html.achei-mobile-internal body .achei-app-pagebar .achei-app-page-title {
    display:block!important;min-width:0!important;max-width:100%!important;
    font-size:15px!important;line-height:1.2!important;font-weight:700!important;
    text-align:center!important;overflow:hidden!important;
    text-overflow:ellipsis!important;white-space:nowrap!important;
  }
  html.achei-mobile-internal body .app-shell .app-content {
    border-radius:0!important;margin-top:0!important;
  }
  @keyframes acheiHeadSlide2013{from{transform:translateY(-6px);opacity:.65}to{transform:translateY(0);opacity:1}}
}
@media (min-width:1025px){html body .achei-app-pagebar{display:none!important}}
@media (prefers-reduced-motion:reduce){html body .achei-app-pagebar{animation:none!important}}

/* V1.9.114 — Cor da franquia e acabamento de ponta a ponta no mobile.
   Nao modifica o desktop nem cria uma segunda barra no aplicativo. */
@media (max-width:1024px) {
  :root {
    --achei-app-primary: var(--purple,#673AB8);
    --achei-app-accent: var(--orange,#FFA01A);
  }
  html,html body { margin:0!important; }
  html body .achei-app-pagebar,
  html.achei-mobile-internal body .achei-app-pagebar {
    background:var(--achei-app-primary)!important;
    color:#fff!important;
    border:0!important;
    border-radius:0!important;
    margin:0!important;
  }
  /* O rodape e a barra superior utilizam a mesma cor configurada pelo guia. */
  html body .bottom-nav {
    box-sizing:border-box!important;
    position:fixed!important;
    bottom:0!important;top:auto!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    width:min(100%,760px)!important;
    min-height:56px!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:var(--achei-app-primary)!important;
    color:#fff!important;
    padding:6px 8px max(6px,env(safe-area-inset-bottom,0px))!important;
    box-shadow:0 -2px 12px rgba(20,9,37,.12)!important;
    align-items:center!important;
    z-index:300!important;
  }
  html body .bottom-nav a,
  html body .bottom-nav button {
    box-sizing:border-box!important;
    min-height:42px!important;
    margin:0!important;
    padding:2px 0!important;
    color:#fff!important;
    justify-content:center!important;
    line-height:1.1!important;
  }
  html body .bottom-nav .active,
  html body .bottom-nav a.active,
  html body .bottom-nav button.active {
    color:var(--achei-app-accent)!important;
  }
  html body .bottom-nav svg { width:21px!important;height:21px!important; }
  /* Reserva APENAS o espaco real do menu: antes havia soma duplicada. */
  html body .app-shell { padding-bottom:calc(57px + env(safe-area-inset-bottom,0px))!important; }
  html body .detail-app { padding-bottom:calc(57px + env(safe-area-inset-bottom,0px))!important; }
  /* Flutter ja fornece SafeArea nativa; no app nao somar inset novamente. */
  html.achei-app body .bottom-nav {padding-bottom:6px!important;min-height:56px!important;}
  html.achei-app body .app-shell,
  html.achei-app body .detail-app {padding-bottom:57px!important;}
  html.achei-app body .app-shell.mobile-only > .app-top {padding-top:6px!important;}
  html.achei-app body .bottom-nav {box-shadow:none!important;}
  @supports (padding:env(safe-area-inset-bottom)) {
    html:not(.achei-app) body .bottom-nav {
      padding-bottom:max(6px,env(safe-area-inset-bottom,0px))!important;
    }
  }
}

/* 2015: o carregamento e o historico devem ser geridos pela WebView, sem sobreposicoes no portal. */
@media(max-width:1024px){html.achei-mobile-internal body .achei-app-pagebar{animation:none!important}html.achei-nav-leave body main{transition:transform .14s ease-out,opacity .14s ease-out;transform:translateX(-12px);opacity:.93;} }
