/* assets/style/layout.css */
#app{
    height:100%;
    min-height: 100vh;
    min-height: 100dvh;
    width:100%;
    position:relative;
}

.topbar{
    position: relative;
    padding: calc(env(safe-area-inset-top) + 14px) 14px 14px;
}

body.searchFull .topbar{
    padding: calc(env(safe-area-inset-top) + 2px) 14px 0;
}

.topbar::before{
    content: '';
    display: block;
    width: 110%;
    height: 100%;
    background: var(--gold);
    position: absolute;
    top: 0;
    left: 0;
    min-height: 34vh;
    border-radius: 20%;
    transform: translateY(-50%) translateX(-5%);
}

.content-app{
    padding: 0 14px;
    min-height: calc(100vh - 50px);
    position: relative;
}

body.searchFull .content-app{
    padding: 0;
}

#map{
    width: 100%;
    height: auto;
    min-height: 250px;
    border-radius: 20px;
    transition: height .22s ease, border-radius .22s ease;
    will-change: height;
}

body.searchFull #map{
    border-radius: 0;
}

.panel{
    position: relative;
    background: white;
    margin-top: -35px;
    z-index: 990;
    border-radius: 20px;
    padding: 20px 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
    width: 100%;
    bottom: 0;
    overflow: visible;
}

.panel.panelAnimating{
    overflow: hidden;
    will-change: height;
}

body.searchFull .panel{
    /* position: absolute; */
}

.panel::before{
    content:"";
    display:block;
    width: 46px;
    height: 5px;
    border-radius: 999px;
    background: rgba(11,15,25,.18);
    margin: 2px auto 10px;
}

.panel h3{
    margin:0 0 8px 0;
    font-size: 16px;
    font-weight: 950;
}

.request-action{
    display: none;
    flex-direction: column;
    align-items: center;
}

body.searchFull .request-action{
    display: flex;
}

@media (min-width: 1024px){
    .panel{
        left: 50%;
        transform: translateX(-50%);
        width: min(720px, calc(100% - 24px));
        border-radius: var(--r22);
        border-bottom: 1px solid var(--sheetBorder);
        bottom: 12px;
    }
}

/* Botão flutuante "voltar" no mapa (pré-corrida) */
.mapBackBtn{
  position: absolute;
  left: 12px;
  top: calc(env(safe-area-inset-top) + 14px);
  z-index: 900; /* acima do leaflet */
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  place-items: center;
  cursor: pointer;
  user-select: none;
}

body:not(.searchFull) .mapBackBtn{
    display: none;
}

body.searchFull .mapBackBtn{
    display: grid;
}

.mapBackBtn:active{ transform: translateY(1px); }

.mapBackBtn .mbIco{
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  color: rgba(0,0,0,.85);
}

.devModeNotice{
  margin: calc(env(safe-area-inset-top) + 8px) 14px 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  border: 1px solid transparent;
  position: relative;
  z-index: 1100;
}

.devModeNotice.isAdminDev{
  background: #fff8dc;
  border-color: #f0cd47;
  color: #5c4900;
}

.devModeNotice.isAuthWarn{
  background: #fff0f0;
  border-color: #f2abab;
  color: #7b1f1f;
}
