@media (max-width: 768px) {
  /* Destrava o cabeçalho no celular para não comer 35% da tela ao rolar */
  .sticky-top-master {
    position: relative !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
  }
  .top-services-bar {
    display: none !important;
  }
  .top-broker-bar {
    padding: 0.3rem 0.65rem !important;
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
  }
  .top-broker-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }
  .topbar {
    padding: 0.5rem 0.75rem !important;
    gap: 0.45rem !important;
  }
  .brand {
    font-size: 1.1rem !important;
    gap: 0.35rem !important;
  }
  .creci-badge {
    font-size: 0.62rem !important;
    padding: 0.12rem 0.4rem !important;
  }
  .header-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
  }
  .header-actions a {
    text-align: center !important;
    justify-content: center !important;
    font-size: 0.72rem !important;
    padding: 0.45rem 0.5rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .header-actions a[href="/"] {
    grid-column: 1 / -1 !important;
  }

  /* Hero e Filtros recolhíveis na Home no celular para o 1º imóvel aparecer rápido */
  .hero-header {
    padding: 0.85rem 0.75rem !important;
  }
  .hero-top-flex {
    margin-bottom: 0.75rem !important;
    gap: 0.4rem !important;
  }
  .hero-top-flex > div:last-child {
    display: none !important;
  }
  .hero-title {
    font-size: 1.35rem !important;
  }
  .hero-sub {
    font-size: 0.8rem !important;
    margin-top: 0.2rem !important;
  }
  .quick-search-box {
    padding: 0.75rem !important;
    border-radius: 12px !important;
  }
  .quick-search-box .hz-mtop,
  .quick-search-box #hzRowDt,
  .quick-search-box .hz-abot,
  .quick-search-box .quick-search-grid > .form-group:nth-child(n+2) {
    display: none !important;
  }
  .quick-search-box.hz-mob-open .hz-mtop,
  .quick-search-box.hz-mob-open #hzRowDt,
  .quick-search-box.hz-mob-open .hz-abot {
    display: flex !important;
  }
  .quick-search-box.hz-mob-open #hzRowDt {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .quick-search-box.hz-mob-open .quick-search-grid > .form-group:nth-child(n+2) {
    display: block !important;
  }
  .quick-search-grid {
    gap: 0.55rem !important;
  }
  .hz-mob-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #312e81;
    background: #1e1b4b;
    color: #c7d2fe;
    font-weight: 800;
    font-size: 0.78rem;
    cursor: pointer;
  }

  /* Grade e Cards no celular */
  .catalog-section, main.container {
    padding: 0.85rem 0.75rem 2rem !important;
  }
  .catalog-header h2 {
    font-size: 1.2rem !important;
  }

  /* Página do Imóvel no celular */
  .breadcrumb {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 4px !important;
    margin-bottom: 0.75rem !important;
    font-size: 0.72rem !important;
  }
  .header-prop {
    margin-bottom: 1rem !important;
    padding-bottom: 0.9rem !important;
    gap: 0.5rem !important;
  }
  .prop-title {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
  }
  .prop-price {
    font-size: 1.45rem !important;
  }
  .location-privacy-bar {
    gap: 0.4rem !important;
    font-size: 0.8rem !important;
  }
  .main-photo {
    height: 240px !important;
  }
  .nav-arrow {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }
  .thumb-item {
    width: 68px !important;
    height: 52px !important;
  }
  .specs-bar {
    padding: 0.85rem !important;
    gap: 0.65rem !important;
    margin-bottom: 1.15rem !important;
  }
  .spec-box strong {
    font-size: 1.05rem !important;
  }
  .section-box {
    padding: 1.1rem !important;
    margin-bottom: 1.15rem !important;
  }
  .section-box h2 {
    font-size: 1.05rem !important;
  }
  .lead-card {
    position: static !important;
    padding: 1.15rem !important;
  }
  .amenity-pill {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.6rem !important;
  }

  /* Esconde as abinhas laterais na página do imóvel no celular para não cobrir fotos/botões, e deixa barra discreta na Home */
  body.hz-page-imovel #hzDock {
    display: none !important;
  }
  body:not(.hz-page-imovel) #hzDock {
    top: auto !important;
    bottom: 12px !important;
    right: 12px !important;
    transform: none !important;
    flex-direction: row !important;
    gap: 6px !important;
  }
  body:not(.hz-page-imovel) #hzDock .hz-tab {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    border-radius: 999px !important;
    padding: 9px 13px !important;
    font-size: 0.72rem !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.65) !important;
  }

  /* Dossiê LLM bem discreto no celular */
  #hzLlmBox {
    margin: 12px 10px !important;
    padding: 10px 12px !important;
  }
  #hzLlmBox summary {
    font-size: 0.75rem !important;
  }
}
@media (min-width: 769px) {
  .hz-mob-toggle-btn {
    display: none !important;
  }
}
