/* V32 — correção final de visibilidade dos indicadores no cabeçalho mobile.
   Escopo restrito: cabeçalho/indicadores. Não altera botões, mapa, QR, navegação ou regras. */

@media (max-width: 720px) {
  .app.map-screen-active {
    grid-template-rows: 136px minmax(0, 1fr) calc(76px + env(safe-area-inset-bottom)) !important;
  }

  .app.map-screen-active .topbar.halloween-topbar {
    box-sizing: border-box !important;
    height: 136px !important;
    min-height: 136px !important;
    grid-template-rows: 78px 50px !important;
    row-gap: 0 !important;
    padding: 4px 8px 4px 0 !important;
    overflow: hidden !important;
    border-bottom: 0 !important;
  }

  .app.map-screen-active .topbar.halloween-topbar::after {
    display: none !important;
  }

  .app.map-screen-active .halloween-wordmark,
  .app.map-screen-active .top-actions {
    height: 78px !important;
    min-height: 78px !important;
  }

  .app.map-screen-active .halloween-wordmark-img,
  .app.map-screen-active .topbar .halloween-wordmark-img {
    height: 74px !important;
    max-height: 74px !important;
  }

  .app.map-screen-active .headline-zone {
    grid-area: headline !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 7px 0 9px !important;
    overflow: visible !important;
    align-self: start !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .app.map-screen-active .map-header-metrics {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    overflow: visible !important;
    align-self: start !important;
  }

  .app.map-screen-active .map-header-metrics > div {
    box-sizing: border-box !important;
    height: 50px !important;
    min-height: 50px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
  }
}

@media (display-mode: standalone) and (max-width: 720px) {
  .app.map-screen-active {
    grid-template-rows: 112px minmax(0, 1fr) calc(82px + env(safe-area-inset-bottom)) !important;
  }

  .app.map-screen-active .topbar.halloween-topbar {
    height: 112px !important;
    min-height: 112px !important;
    grid-template-rows: 62px 46px !important;
    row-gap: 0 !important;
    padding: 2px 7px 2px 0 !important;
    overflow: hidden !important;
  }

  .app.map-screen-active .halloween-wordmark,
  .app.map-screen-active .top-actions {
    height: 62px !important;
    min-height: 62px !important;
  }

  .app.map-screen-active .halloween-wordmark-img,
  .app.map-screen-active .topbar .halloween-wordmark-img {
    height: 60px !important;
    max-height: 60px !important;
  }

  .app.map-screen-active .headline-zone,
  .app.map-screen-active .map-header-metrics,
  .app.map-screen-active .map-header-metrics > div {
    height: 46px !important;
    min-height: 46px !important;
  }
}

@media (max-width: 390px) {
  .app.map-screen-active {
    grid-template-rows: 132px minmax(0, 1fr) calc(72px + env(safe-area-inset-bottom)) !important;
  }

  .app.map-screen-active .topbar.halloween-topbar {
    height: 132px !important;
    min-height: 132px !important;
    grid-template-rows: 74px 50px !important;
    padding: 4px 7px 4px 0 !important;
  }

  .app.map-screen-active .halloween-wordmark,
  .app.map-screen-active .top-actions {
    height: 74px !important;
    min-height: 74px !important;
  }

  .app.map-screen-active .halloween-wordmark-img,
  .app.map-screen-active .topbar .halloween-wordmark-img {
    height: 70px !important;
    max-height: 70px !important;
  }
}

@media (display-mode: standalone) and (max-width: 390px) {
  .app.map-screen-active {
    grid-template-rows: 108px minmax(0, 1fr) calc(82px + env(safe-area-inset-bottom)) !important;
  }

  .app.map-screen-active .topbar.halloween-topbar {
    height: 108px !important;
    min-height: 108px !important;
    grid-template-rows: 60px 44px !important;
    padding: 2px 7px 2px 0 !important;
  }

  .app.map-screen-active .halloween-wordmark,
  .app.map-screen-active .top-actions {
    height: 60px !important;
    min-height: 60px !important;
  }

  .app.map-screen-active .halloween-wordmark-img,
  .app.map-screen-active .topbar .halloween-wordmark-img {
    height: 58px !important;
    max-height: 58px !important;
  }

  .app.map-screen-active .headline-zone,
  .app.map-screen-active .map-header-metrics,
  .app.map-screen-active .map-header-metrics > div {
    height: 44px !important;
    min-height: 44px !important;
  }
}
