.home {
  --home-pad: clamp(28px, 4cqw, 72px);
  min-height: 100%;
  background: #F4F5F3;
  color: var(--ap-ink);
  font-size: 15px;
}
.home-header {
  height: 84px;
  padding: 0 var(--home-pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #ECE7E3;
  background: #FDFEFC;
}
.home-logo { width: 184px; }
.home-nav-pill { justify-self: center; display: flex; align-items: center; padding: 4px; border: 1px solid #E5E0DC; border-radius: 999px; background: #fff; }
.home-nav-pill a { min-height: 38px; padding: 0 20px; border-radius: 999px; color: #4F474F; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 14px; font-weight: 400; }
.home-nav-pill a.is-active { background: #F3F0EE; color: var(--ap-ink); }
.home-header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.home-account, .home-visit, .home-menu { min-height: 44px; border-radius: 999px; font-size: 14px; font-weight: 450; }
.home-account { padding: 0 17px; border: 1px solid #E1DCD8; background: #fff; }
.home-visit { padding: 0 19px; border: 1px solid var(--ap-orange); background: var(--ap-orange); color: #fff; }
.home-menu { display: none; width: 42px; border: 1px solid #E1DCD8; background: #fff; place-items: center; }
.home-menu .ap-icon { width: 18px; }
.home-location-note { min-height: 36px; margin: 14px var(--home-pad) 0; padding: 0 16px; display: flex; align-items: center; gap: 10px; border: 1px solid #E7E2DF; border-radius: 14px; background: #fff; color: #696168; font-size: 13px; }
.home-location-note .ap-icon { width: 18px; color: var(--ap-violet); }

.home-main { max-width:1680px; margin-inline:auto; padding: 80px var(--home-pad) 72px; }
.home-title-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.home-title-row > p { width: 280px; flex-shrink:0; margin: 0 0 3px; color: var(--ap-muted); font-size: 14px; line-height: 1.7; }
.home-hero-title { margin: 0; font-size: clamp(36px, 3.3cqw, 54px); line-height: 1.14; letter-spacing: -.045em; font-weight: 400; text-wrap:balance; }

.neighborhood-grid { display: grid; grid-template-columns: 1.55fr repeat(3, 1fr); gap: 18px; }
.neighborhood-card { position: relative; height: 246px; overflow: hidden; padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ap-ink); text-align: left; }
.neighborhood-card img { width: 100%; height: 174px; object-fit: cover; filter: saturate(.9); transition: transform 240ms ease; }
.neighborhood-card:hover img { transform: scale(1.025); }
.neighborhood-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; min-height: 72px; padding: 16px 20px; border-radius: 0; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.neighborhood-copy strong, .neighborhood-copy small { display: block; }
.neighborhood-copy strong { font-size: 17px; line-height: 1.2; letter-spacing: -.025em; font-weight: 450; }
.neighborhood-copy small { margin-top: 4px; color: var(--ap-muted); font-size: 12px; }
.neighborhood-copy .ap-icon { width: 17px; }

.home-search-surface { margin-top: 24px; overflow: hidden; border: 1px solid #fff; border-radius: 24px; background: #fff; }
.home-search { min-height: 84px; padding: 12px; display: grid; grid-template-columns: 1.15fr 1fr .85fr .8fr auto; align-items: stretch; }
.home-search .ap-field-wrap { min-width: 0; padding: 5px 22px; justify-content: stretch; text-align: left; border-right: 1px solid #EEEAE7; }
.home-search .ap-field-wrap label { font-size: 12px; color:var(--ap-muted); }
.home-search .ap-field-wrap:focus-within { background:#FAF8FC; border-radius:12px; }
.home-search .ap-field { min-height: 26px; padding: 0 24px 0 0; border: 0; border-radius: 0; background: transparent; font-size: 14px; }
.home-search .ap-field:focus { box-shadow: none; }
.home-search .ap-field-wrap .ap-icon { left: 22px; bottom: 10px; width: 15px; }
.home-search .ap-field-wrap .ap-icon + .ap-field { padding-left: 24px; }
.home-search .ap-button { align-self: center; min-width: 174px; min-height: 48px; margin-left: 8px; font-size: 13px; }
.home-mobile-tools { display: none; }

.home-lifestyles { margin-top: 24px; display: flex; align-items: center; gap: 24px; }
.home-lifestyles h2 { margin: 0; max-width: 210px; font-size: 13px; line-height: 1.6; font-weight: 400; color:var(--ap-muted); }
.home-shortcuts { display: flex; flex: 1; gap: 10px; }
.home-shortcut { min-height: 44px; padding: 0 18px; border: 1px solid #E3E5E1; border-radius: 999px; background: transparent; display: flex; align-items: center; gap: 10px; color: #514A52; text-align: left; font-size: 13px; font-weight: 400; }
.home-shortcut:last-child { border-right: 1px solid #E3E5E1; }
.home-shortcut:hover { background: #F8F5F2; }
.home-shortcut .ap-icon:first-child { width: 18px; color: var(--ap-orange); }
.home-shortcut .ap-icon:last-child { display: none; }

.home-section { margin-top: 56px; }
.home-section-head { min-height: 55px; margin-bottom: 22px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px; }
.home-section-head h2 { margin: 0; font-size: 32px; line-height: 1.25; letter-spacing: -.04em; font-weight: 400; text-wrap:balance; }
.home-section-head p { margin: 8px 0 0; color: var(--ap-muted); font-size: 13px; }
.home-section-link { align-self: center; min-height: 36px; padding: 0; border: 0; background: transparent; color: #6610B5; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.home-section-link .ap-icon { width: 15px; }
.home-results-tabs { display: none; }

.results-layout { min-height: 560px; align-items: start; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.property-list { min-width: 0; min-height: 0; overflow: visible; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; align-content: start; align-items: start; gap: 20px; scrollbar-width: thin; }
.property-card { min-width: 0; padding: 0; display: flex; flex-direction: column; position: relative; }
.property-media { position: relative; display: block; flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 1.4; overflow: hidden; background: #EEE9E5; }
.property-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.property-card:hover .property-media > img { transform: scale(1.02); }
.property-tag { position: absolute; top: 13px; left: 13px; min-height: 28px; padding: 0 12px; border-radius: 999px; background: #FFFFFFEE; color: #383635; display: inline-flex; align-items: center; font-size: 11px; font-weight: 400; }
.property-heart { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.94); color: #665E66; display: grid; place-items: center; }
.property-heart .ap-icon { width: 18px; }
.property-copy { min-height: 240px; padding: 22px; display: flex; flex: 1; flex-direction: column; }
.property-neighborhood { color: var(--ap-muted); font-size: 12px; }
.property-copy h3 { margin: 8px 0 16px; min-height: 50px; font-size: 18px; line-height: 1.4; letter-spacing: -.025em; font-weight: 450; }
.property-meta { display: flex; align-items: center; flex-wrap:wrap; gap: 12px; color: var(--ap-muted); font-size: 13px; }
.property-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.property-meta .ap-icon { width: 15px; height: 15px; }
.property-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ap-line-soft); display: grid; gap: 12px; }
.property-meta { padding-bottom:20px; }
.property-price { font-size: 23px; line-height: 1; letter-spacing: -.035em; font-weight: 500; font-variant-numeric: tabular-nums; }
.property-link { color: var(--ap-orange); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12px; font-weight: 550; }
.property-link .ap-icon { width: 14px; }

.home-map { position: sticky; top: 24px; height: 620px; min-width: 0; overflow: hidden; border: 1px solid #E4DFDB; border-radius: 22px; background: #EEEAE7; }
.home-map > img { width: 100%; height: 100%; object-fit: cover; opacity: .96; }
.map-label { position: absolute; color: rgba(45,11,56,.78); font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.map-label--moema { left: 22%; top: 26%; }
.map-label--campo { left: 35%; top: 65%; }
.map-label--judas { right: 16%; top: 67%; }
.home-marker { position: absolute; width: 30px; height: 30px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--ap-violet); color: #fff; display: grid; place-items: center; box-shadow: 0 5px 14px rgba(45,11,56,.18); }
.home-marker .ap-icon { width: 13px; height: 13px; }
.home-marker[aria-pressed="true"] { width: 36px; height: 36px; background: var(--ap-orange); color:var(--ap-ink); transform: translate(-3px, -3px); }
.home-marker[data-property-id="moema"] { left: 37%; top: 30%; }
.home-marker[data-property-id="campo-belo"] { left: 51%; top: 60%; }
.home-marker[data-property-id="sao-judas"] { right: 18%; top: 47%; }
.map-summary { position: absolute; left: 50%; top: 42%; width: 220px; min-height: 68px; padding: 8px; transform: translate(-18%, -50%); border: 1px solid #E4DFDB; border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgba(45,11,56,.12); display: grid; grid-template-columns: 68px 1fr; gap: 9px; align-items: center; }
.map-summary img { width: 68px; height: 50px; object-fit: cover; border-radius: 9px; }
.map-summary strong, .map-summary span { display: block; }
.map-summary strong { font-size: 12px; font-weight: 650; }
.map-summary span span { margin-top: 3px; color: var(--ap-muted); font-size: 12px; }
.map-tabs { position: absolute; z-index: 2; top: 12px; right: 12px; }
.map-tabs .ap-tab { min-height: 28px; font-size: 12px; }

.filter-dialog { display: none; }
.home-empty { grid-column: 1 / -1; min-height: 300px; padding: 36px; border: 1px solid var(--ap-line-soft); background:#fff; border-radius: 24px; display: grid; place-items: center; text-align: center; }
.home-empty > .ap-icon { width: 30px; height: 30px; color: var(--ap-violet); }
.home-empty h3 { margin: 10px 0 4px; font-size: 17px; }
.home-empty p { margin: 0 0 14px; color: var(--ap-muted); font-size: 12px; }


@media (max-width: 760px) {
  .home { --home-pad: 16px; }
}

/* Responsive page mode is unscaled; device presets keep their logical viewport. */
.studio-device { container-type: inline-size; }
.neighborhood-card > img { position: absolute; top: 0; left: 0; }
.home-location-note { display: none; }
.home-section::after { content: "Localização aproximada por bairro. Imagens e imóveis demonstrativos nesta prévia."; display: block; margin-top: 20px; font-size: 12px; color: #717573; }
@container (max-width: 1200px) {
 .home-title-row { display: block; }
 .home-title-row > p { width: auto; max-width:48ch; margin-top: 16px; }
 .home-lifestyles { gap: 14px; }
 .home-shortcut { padding-inline: 12px; font-size: 12px; }
 .property-list { grid-template-columns: 1fr; }
 .property-card { flex-direction: row; }
 .property-media { width: 43%; flex: 0 0 43%; aspect-ratio: auto; }
 .property-copy { min-width: 0; padding: 20px; min-height: 230px; }
 .property-copy h3 { font-size: 18px; }
 .property-footer { align-items: start; gap: 12px; flex-direction: column; }
 .home-map { height: 730px; }
}
@container (max-width: 600px) {
 .property-card { flex-direction: column; }
 .property-media { width: 100%; flex-basis: auto; aspect-ratio: 1.4; }
 .property-footer { flex-direction: row; align-items: center; }
 .home-hero-title { font-weight: 400; }
}

@container (max-width: 600px) {
 .home { --home-pad: 16px; font-size: 14px; }
 .home .ap-button { min-height: 44px; }
 .home-header { height: 66px; padding-top: 4px; grid-template-columns: 1fr auto; }
 .home-logo { width: 116px; }
 .home-nav-pill, .home-header-actions { display: none; }
 .home-menu { display: grid; }
 .home-location-note { min-height: 50px; margin-top: 10px; padding-block: 8px; font-size: 12px; line-height: 1.4; }
 .home-main { padding-top: 22px; padding-bottom: 36px; }
 .home-title-row { display: block; margin-bottom: 13px; }
 .home-title-row > p { display: none; }
 .home-hero-title { max-width: 350px; font-size: 32px; line-height: 1.06; }
 .neighborhood-grid { margin-right: -16px; padding-right: 16px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
 .neighborhood-card { width: 132px; min-width: 132px; height: 164px; scroll-snap-align: start; }
 .neighborhood-card.is-featured { width: 210px; min-width: 210px; }
 .neighborhood-copy { left: 0; right: 0; bottom: 0; padding: 10px 12px; min-height: 54px; }
 .neighborhood-copy strong { font-size: 14px; }
 .home-search-surface { display: none; }
 .home-mobile-tools { margin-top: 10px; display: grid; grid-template-columns: 1fr 48px; gap: 8px; }
 .home-lifestyles { margin-top: 20px; display: block; }
 .home-lifestyles h2 { max-width: none; margin-bottom: 12px; font-size: 14px; }
 .home-shortcuts { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; border-bottom: 0; }
 .home-shortcut { min-width: 0; border-bottom: 1px solid #E7E2DE; }
 .home-shortcut:nth-child(n+3) { display: none; }
 .home-section { margin-top: 30px; }
 .home-section-head { grid-template-columns: 1fr auto; }
 .home-section-head h2 { font-size: 23px; }
 .home-section-link { display: none; }
 .home-results-tabs { display: inline-flex; align-self: center; }
 .results-layout { height: auto; display: block; }
 .property-list { max-height: none; overflow: visible; padding: 0 1px 20px; grid-template-columns: 1fr; gap: 14px; }
 .property-media { flex-basis: auto; height: auto; aspect-ratio: 1.4; }
 .property-copy { min-height: 188px; flex-basis: 188px; padding: 17px 18px; }
 .property-copy h3 { min-height: 0; font-size: 19px; }
 .property-price { font-size: 23px; }
 .home-map { display: none; height: 570px; }
 .results-layout[data-view="map"] .property-list { display: none; }
 .results-layout[data-view="map"] .home-map { display: block; }
 .filter-dialog { position: fixed; z-index: 60; inset: 0; padding: 16px; background: rgba(33,22,38,.22); align-items: end; }
 .filter-dialog.is-open { display: flex; }
 .filter-sheet { width: 100%; padding: 20px; border-radius: 22px; background: #fff; box-shadow: 0 18px 60px rgba(33,22,38,.18); }
 .filter-sheet-head { display: flex; align-items: center; justify-content: space-between; }
 .filter-sheet-head h3 { margin: 0; font-size: 20px; }
 .filter-sheet-fields { margin-top: 18px; display: grid; gap: 14px; }
 .filter-sheet-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
 .neighborhood-card:not(.is-featured) { width: 156px; min-width: 156px; }
 .home-logo { width: 150px; }
 .neighborhood-card img { height: 110px; }
 .home-shortcuts { gap: 8px; border: 0; }
 .home-shortcut { border: 1px solid #E3E5E1; padding: 0 12px; }
 .home-map { position: relative; top: 0; }
}
