.abertura { position: relative; padding-bottom: 8px; }

.abertura-foto { position: relative; display: block; }
.abertura-foto img { width: 100%; height: 400px; object-fit: cover; object-position: 50% 40%; }

.abertura-foto::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 31, 0) 25%, rgba(20, 24, 31, .62) 82%);
}

.abertura-dentro { position: relative; margin-top: -232px; }

.abertura-texto { color: #fff; padding: 0 2px; }
.abertura-texto h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; max-width: 12ch; }
.abertura-texto p { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .88); max-width: 30ch; }

.busca-rapida {
  margin-top: 20px;
  padding: 14px;
  border-radius: var(--raio-g);
  background: var(--branco);
  box-shadow: 0 0 0 1px var(--linha), var(--sombra-alta);
}

.busca-rapida .segmento { display: grid; width: 100%; }
.busca-rapida-campos { display: grid; gap: 10px; margin-top: 12px; }

.campo {
  position: relative;
  display: block;
}

.campo span {
  position: absolute;
  top: 8px;
  left: 15px;
  color: var(--tinta-3);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  pointer-events: none;
}

.campo select { min-height: 56px; padding-top: 18px; font-size: 15.5px; font-weight: 600; }
.busca-rapida .botao { min-height: 52px; font-size: 16px; }

.secao { margin-top: 48px; }

.secao-topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.secao-topo h2 { font-size: 23px; font-weight: 800; letter-spacing: -0.025em; }
.secao-topo p { margin-top: 4px; color: var(--tinta-3); font-size: 14.5px; }

.ver-todos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  flex: none;
  color: var(--terracota-forte);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
}

.ver-todos .ico { width: 18px; height: 18px; transition: transform .2s var(--suave); }
.ver-todos:hover .ico { transform: translateX(3px); }

.pagina-home .secao:first-of-type { margin-top: 0; }

.atalhos {
  display: flex;
  gap: 10px;
  margin: 28px calc(var(--lado) * -1) 0;
  padding: 2px var(--lado) 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.atalhos::-webkit-scrollbar { display: none; }
.atalhos li { flex: none; scroll-snap-align: start; }

.atalho {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-width: 190px;
  padding: 14px 16px;
  border-radius: var(--raio);
  background: var(--branco);
  box-shadow: 0 0 0 1px var(--linha);
  text-decoration: none;
  transition: box-shadow .2s var(--suave);
}

.atalho:hover { box-shadow: 0 0 0 1px var(--tinta-3), var(--sombra); }

.atalho-icone {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--terracota-suave);
  color: var(--terracota-forte);
}

.atalho-nome { font-size: 15px; font-weight: 700; }
.atalho-total { color: var(--tinta-3); font-size: 13px; white-space: nowrap; }


.bairros {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
  gap: 12px;
  margin: 0 calc(var(--lado) * -1);
  padding: 2px var(--lado) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--lado);
  scrollbar-width: none;
}

.bairros::-webkit-scrollbar { display: none; }
.bairros li { scroll-snap-align: start; }

.bairro {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--raio);
  background: var(--branco);
  box-shadow: 0 0 0 1px var(--linha);
  text-decoration: none;
  transition: box-shadow .2s var(--suave);
}

.bairro:hover { box-shadow: 0 0 0 1px var(--tinta-3), var(--sombra); }

.bairro-mapa {
  position: relative;
  display: block;
  overflow: hidden;
  background: #F3EEE5;
  aspect-ratio: 46 / 30;
}

.bairro-mapa .mapa-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.bairro-ponto {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--terracota-forte);
  box-shadow: 0 0 0 8px rgba(217, 88, 43, .18), 0 2px 6px rgba(20, 24, 31, .25);
}

.bairro-texto { display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 16px; }
.bairro-nome { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.bairro-total { color: var(--terracota-forte); font-size: 13px; font-weight: 700; }
.bairro-sobre { margin-top: 4px; color: var(--tinta-2); font-size: 13px; line-height: 1.45; }
.bairro-faixa { margin-top: 6px; color: var(--tinta-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.bairro-faixa + .bairro-faixa { margin-top: 2px; }
.bairro-faixa b { margin-right: 4px; color: var(--tinta); font-weight: 700; }

.bairro-todos .bairro-mapa { display: grid; place-items: center; background: var(--terracota-suave); color: var(--terracota-forte); }
.bairro-todos .bairro-mapa .ico { width: 30px; height: 30px; }

.anunciar {
  display: grid;
  gap: 28px;
  padding: 28px 22px;
  border-radius: var(--raio-g);
  background: var(--areia);
}

.anunciar-sobre { color: var(--terracota-forte); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.anunciar-texto h2 { margin-top: 8px; font-size: 26px; font-weight: 800; letter-spacing: -0.025em; }
.anunciar-texto p:not(.anunciar-sobre) { margin-top: 10px; color: var(--tinta-2); max-width: 40ch; }
.anunciar-texto .botao { margin-top: 20px; }

.passos { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.passos li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: var(--raio);
  background: var(--fundo);
}

.passo-icone { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--branco); color: var(--terracota-forte); }
.passos h3 { font-size: 15.5px; }
.passos p { margin-top: 3px; color: var(--tinta-2); font-size: 14px; }

@media (min-width: 720px) {
  .abertura-foto img { height: 520px; object-position: 50% 55%; }
  .abertura-dentro { margin-top: -380px; }
  .abertura-texto h1 { font-size: 46px; max-width: 16ch; }
  .abertura-texto p { font-size: 18px; max-width: 40ch; }
  .busca-rapida { margin-top: 28px; padding: 16px; }
  .busca-rapida .segmento { display: inline-grid; width: auto; }
  .busca-rapida-campos { grid-template-columns: 1.2fr 1.2fr 1fr auto; }
  .busca-rapida .botao { padding: 0 32px; min-height: 56px; }
  .bairros { grid-auto-columns: 44%; }
  .anunciar { padding: 40px; }
}

@media (min-width: 1040px) {
  .abertura-foto img { height: 560px; }
  .abertura-dentro { margin-top: -400px; }
  .abertura-texto h1 { font-size: 56px; }
  .secao { margin-top: 72px; }
  .secao-topo h2 { font-size: 30px; }
  .atalhos { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 40px 0 0; padding: 0; overflow: visible; }
  .atalho { height: 100%; min-width: 0; grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 2px; padding: 18px; }
  .atalho-icone { grid-row: auto; margin-bottom: 10px; }
  .atalho-total { white-space: normal; }
  .bairros { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; overflow: visible; }
  .anunciar { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; padding: 56px; }
  .anunciar-texto h2 { font-size: 36px; }
}
