/* HOME-MOBILE-1 — Home do estudante abaixo de 900px.
   O desktop não é tocado: tudo fica dentro de max-width:899px, e as classes
   home-* só existem no HTML que R.home gera para o mobile. */
@media (max-width:899px){
  #view.student-home .corpo{padding-bottom:28px}
  #view.student-home .busca > span:first-of-type{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  /* atalhos: cards compactos com ícone; rolam na horizontal se não couberem */
  #view.student-home .home-atalhos{gap:8px;margin-bottom:0;padding-top:3px;padding-bottom:6px}
  .home-atalho{flex:none;display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:8px 13px;
    border:1px solid var(--linha);border-radius:13px;background:var(--papel);color:#4F4338;
    font:inherit;font-size:13px;font-weight:500;line-height:1.2;white-space:nowrap;cursor:pointer;
    box-shadow:0 1px 4px rgba(45,29,16,.04)}
  .home-atalho svg{font-size:18px;color:var(--cinza)}
  .home-atalho.on{background:var(--terracota-fraco);border-color:var(--terracota);color:var(--terracota);font-weight:600}
  .home-atalho.on svg{color:var(--terracota)}
  .home-atalho:active{background:var(--apoio)}
  .home-atalho:focus-visible{outline:3px solid var(--mostarda);outline-offset:1px}

  /* títulos de seção da Home */
  #view.student-home .partner-home-mobile .sec-t h3,
  #view.student-home .home-para-voce h3{font-size:17px;font-weight:700;line-height:1.25}
  #view.student-home .partner-home-mobile .sec-t .partner-see-all,
  #view.student-home .home-para-voce a{font-size:13px;font-weight:500}
  #view.student-home .home-para-voce{align-items:flex-end;gap:12px;margin:22px 0 12px}
  #view.student-home .home-para-voce > div{min-width:0}
  #view.student-home .home-para-voce p{font-size:12.5px;color:var(--cinza);line-height:1.35;margin-top:2px}
  #view.student-home .home-para-voce a{display:inline-flex;align-items:center;gap:2px;flex:none;white-space:nowrap;padding:2px}
  #view.student-home .home-para-voce a svg{width:17px;height:17px}

  /* "Tem um quarto vago?": compacto; botão abaixo do texto em telas estreitas */
  #view.student-home .student-vaga-cta{margin:8px 0 12px!important;padding:14px 15px;border-color:#EFD3A6!important;border-radius:16px;background:#FFFAF3}
  #view.student-home .student-vaga-cta .item-t{display:flex;align-items:center;gap:8px;font-size:14.5px;line-height:1.3;margin-bottom:3px!important}
  #view.student-home .student-vaga-cta .item-t svg{font-size:19px;color:var(--terracota)}
  #view.student-home .student-vaga-cta .item-s{font-size:12.5px;margin-bottom:11px!important}

  /* MOBILE-2 — seletor de cidade (só visitante): discreto, alvo de toque >= 44px; 16px no select evita o zoom do iOS */
  #view.student-home .home-cidade{display:flex;align-items:center;gap:8px;min-height:44px;margin:0 0 10px;padding:0 12px;
    border:1px solid var(--linha);border-radius:13px;background:var(--papel);color:#4F4338;font-size:13px;cursor:pointer}
  #view.student-home .home-cidade svg{font-size:17px;color:var(--terracota);flex:none}
  #view.student-home .home-cidade-rot{color:var(--cinza);flex:none}
  #view.student-home .home-cidade select{flex:1;min-width:0;min-height:42px;border:0;background:transparent;color:var(--tinta);
    font:inherit;font-size:16px;font-weight:600;padding:0;text-overflow:ellipsis;cursor:pointer}
  #view.student-home .home-cidade:focus-within{border-color:var(--terracota)}
  #view.student-home #home-lista-mobile[aria-busy="true"]{opacity:.55;transition:opacity .15s}

  /* MOBILE-2 — Busca sem a faixa de atalhos rápidos (os filtros seguem no painel avançado). O chip "Moradias para
     dividir" é um filtro ATIVO, não um atalho: continua visível para poder ser removido. */
  .busca-atalhos .busca-rapido{display:none}
  .busca-atalhos:not(:has(.busca-filtro-dividir)){display:none}
  .student-filter-button{position:relative}
  .student-filter-button .filtros-ativos{position:absolute;top:-7px;right:-9px;display:inline-flex;align-items:center;justify-content:center;
    min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--terracota);color:#fff;font-size:10.5px;font-weight:700;line-height:1}
}


@media (max-width:359px){
  #view.student-home .busca{gap:8px;font-size:13.5px}
}

@media (min-width:410px) and (max-width:899px){
  #view.student-home .student-vaga-cta{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;align-items:center}
  #view.student-home .student-vaga-cta .item-t,#view.student-home .student-vaga-cta .item-s{grid-column:1}
  #view.student-home .student-vaga-cta .item-s{margin-bottom:0!important}
  #view.student-home .student-vaga-cta > div:last-child{grid-column:2;grid-row:1/3;flex-direction:column}
  #view.student-home .student-vaga-cta .btn{flex:none!important;white-space:nowrap}
}
