/* =========================================================================
   css/layout-map-desktop.css - Template de Tela Cheia Desktop para Mapeamento
   ========================================================================= */

/* Por padrão, em qualquer tela não-fullscreen ou mobile, o template fica oculto */
#map-desktop-fullscreen-template {
  display: none !important;
}

/* Ativação exclusiva para Desktop (>= 768px) no Modo Tela Cheia */
@media (min-width: 768px) {
  body.map-device-fullscreen #map-desktop-fullscreen-template,
  #mapeamento-root-container.map-is-fullscreen #map-desktop-fullscreen-template {
    display: flex !important;
  }

  /* Oculta os controles flutuantes móveis e o bottom sheet de celular quando em tela cheia no desktop */
  body.map-device-fullscreen #mapeamento-root-container [data-purpose="floating-top-controls"],
  body.map-device-fullscreen #mapeamento-root-container #map-bottom-sheet,
  body.map-device-fullscreen #mapeamento-root-container [data-purpose="map-zoom-controls"],
  #mapeamento-root-container.map-is-fullscreen [data-purpose="floating-top-controls"],
  #mapeamento-root-container.map-is-fullscreen #map-bottom-sheet,
  #mapeamento-root-container.map-is-fullscreen [data-purpose="map-zoom-controls"] {
    display: none !important;
  }

  /* Posicionamento e altura do Modo Desenho abaixo do campo de seleção de território */
  #map-drawing-banner-fs {
    position: fixed !important;
    top: 72px !important;
    left: 16px !important;
    height: 52px !important;
    box-sizing: border-box !important;
    z-index: 40 !important;
  }

  /* Largura 50% maior para o campo de seleção de território no Desktop */
  #custom-select-territorio-fs-wrapper {
    width: 450px !important;
    min-width: 380px !important;
    max-width: calc(100vw - 420px) !important;
  }

  /* Campo de Status alinhado à esquerda e separado do campo de informações */
  #map-desktop-status-legend-fs {
    position: fixed !important;
    bottom: 20px !important;
    left: 16px !important;
    z-index: 30 !important;
  }

  /* Campo de Informações do Território centralizado inferior */
  #map-desktop-info-card-fs {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 30 !important;
  }
}

