/* PATCH 015 - Ajustes finos Inicio */

/* Titulo en una sola linea */
#screen-home .home-live-title{
  margin:0;
  display:flex;
  align-items:baseline;
  gap:.22em;
  white-space:nowrap;
  font-size:clamp(1.55rem, 6.2vw, 2.85rem);
  line-height:1;
  letter-spacing:-.055em;
}

#screen-home .home-live-title .home-title-soft{
  font-size:.82em;
  opacity:.96;
}

/* Ruta del evento: icono fijo + botones + resumen/ruta como ultimo item deslizable */
#screen-home .home-map-toolbar{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  gap:8px;
}

#screen-home .home-map-actions{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:7px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  padding:0 2px 2px 0;
}

#screen-home .home-map-actions::-webkit-scrollbar{
  display:none;
}

#screen-home .home-map-actions button{
  flex:0 0 auto;
  min-height:38px;
  white-space:nowrap;
}

#screen-home #homeRouteSummary.home-route-summary-chip{
  flex:0 0 auto;
  width:auto;
  max-width:280px;
  min-height:38px;
  margin:0;
  padding:0 12px;
  border-radius:13px;
  display:flex;
  align-items:center;
  color:#ddd;
  background:#181818;
  border:1px solid rgba(255,255,255,.11);
  font-size:.7rem;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Evitar que quede tambien ocupando espacio debajo del toolbar */
#screen-home .home-map-panel > #homeRouteSummary:not(.home-route-summary-chip){
  display:none;
}

/* Destacado / Experiencia especial: quitar montajes */
#screen-home .featured-zone{
  overflow:hidden;
  display:block;
}

#screen-home .featured-header{
  margin:0 0 9px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

#screen-home .featured-header small{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  background:rgba(237,17,28,.15);
  color:#ff6871;
  font-size:.58rem;
  font-weight:900;
  letter-spacing:.12em;
  white-space:nowrap;
}

#screen-home .featured-header h2{
  margin:0;
  font-size:1rem;
  line-height:1.05;
  text-align:right;
}

#screen-home .featured-home{
  display:grid;
  gap:8px;
}

#screen-home .featured-home .feature-card{
  min-height:0;
  overflow:hidden;
  position:relative;
  z-index:1;
}

/* Boton superior GPS/mapa: rojo con icono blanco */
.top-map-transmit-btn{
  width:42px;
  height:42px;
  min-width:42px;
  border:0;
  border-radius:50%;
  background:linear-gradient(135deg,var(--red),#b90912);
  color:#fff;
  display:grid;
  place-items:center;
  box-shadow:0 12px 28px rgba(237,17,28,.28);
  padding:0;
}

.top-map-transmit-btn svg{
  width:20px;
  height:20px;
  display:block;
  stroke:#fff;
}

/* Login como circulito de perfil */
#authButton.profile-login-btn{
  width:42px;
  height:42px;
  min-width:42px;
  padding:0;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:#181818;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:none;
  font-size:0;
}

#authButton.profile-login-btn .profile-login-avatar{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:linear-gradient(135deg,#2a2a2a,#111);
}

#authButton.profile-login-btn svg{
  width:22px;
  height:22px;
  stroke:#fff;
}

/* Mobile fino */
@media(max-width:430px){
  #screen-home .home-live-title{
    font-size:clamp(1.38rem, 6.25vw, 1.72rem);
    letter-spacing:-.065em;
  }

  #screen-home .home-map-toolbar{
    grid-template-columns:40px minmax(0,1fr);
    gap:6px;
  }

  #screen-home .home-event-select-btn,
  #screen-home .top-map-transmit-btn,
  #authButton.profile-login-btn{
    width:40px;
    height:40px;
    min-width:40px;
  }

  #screen-home #homeRouteSummary.home-route-summary-chip{
    max-width:240px;
    min-height:36px;
    font-size:.66rem;
  }

  #screen-home .featured-header h2{
    font-size:.92rem;
  }
}

@media(max-width:365px){
  #screen-home .home-live-title{
    font-size:1.24rem;
  }

  #screen-home #homeRouteSummary.home-route-summary-chip{
    max-width:210px;
  }
}




/* Quitar SOLO el icono viejo de satélite/transmisión del header */
.top-transmit-btn{
  display:none !important;
}

/* Mantener visible el botón rojo nuevo del mapa */
#topMapTransmitBtn.top-map-transmit-btn{
  display:grid !important;
}
