.property-preferences .purpose-card,
.property-preferences .property-type-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1rem;
  background-color: #ffffff;
  cursor: pointer;
}

.property-preferences .property-type-card {
  min-height: 120px;
}

.property-preferences .purpose-card .material-icons {
  font-size: 1.5rem;
  color: var(--gf-color-primary);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  background-color: rgba(var(--gf-color-primary-rgb), 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.property-preferences .property-type-card .material-icons {
  font-size: 3rem;
  color: var(--gf-color-primary);
  line-height: 1;
}

.property-preferences [data-choice-group] .purpose-card,
.property-preferences [data-choice-group] .property-type-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.property-preferences [data-choice-group] .purpose-card:hover,
.property-preferences [data-choice-group] .property-type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -20px rgba(15, 23, 42, 0.45);
}

.property-preferences [data-choice-group] .purpose-card.selected,
.property-preferences [data-choice-group] .property-type-card.selected {
  border-color: var(--gf-color-primary);
  background-color: rgba(var(--gf-color-primary-rgb), 0.1);
  box-shadow: 0 16px 30px -26px rgba(15, 23, 42, 0.6);
}

.property-preferences .slider-value-current {
  white-space: nowrap;
}

.property-preferences .range-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.property-preferences .property-form-wide {
  max-width: 1600px;
  margin: 0 auto;
}

.property-preferences .property-preferences-card {
  padding: var(--gf-card-padding);
}

.property-preferences .area-unit-toggle {
  color: var(--gf-color-primary) !important;
  border-color: var(--gf-color-primary);
}

.property-preferences .area-unit-toggle:hover,
.property-preferences .area-unit-toggle:focus {
  color: var(--gf-color-primary) !important;
  border-color: var(--gf-color-primary-hover);
  background-color: rgba(var(--gf-color-primary-light-rgb), 0.08);
}

.property-preferences .area-unit-toggle .material-icons {
  color: var(--gf-color-primary);
}

.property-preferences .area-unit-toggle-badge {
  color: var(--gf-color-primary);
  border: 1px solid rgba(var(--gf-color-primary-rgb), 0.25);
}

@media (max-width: 991.98px) {
  .property-preferences .property-preferences-card {
    padding: var(--gf-card-padding-sm);
  }
}

/* ============================================================
   M9 + P2 — Purpose card (Finalidade): 1 card por linha no mobile,
   layout horizontal retangular com icone esquerda + texto direita.
   Padroniza altura dos cards. M2 anterior aplicava stack vertical
   que deixava espaco vazio a direita do icone.
   ============================================================ */
@media (max-width: 575.98px) {
  /* P2: forca 1 coluna na grid de Finalidades (passo 0). row-cols-2
     do Bootstrap eh sobrescrito com !important porque a regra dele
     tambem usa specificity (0,2,0). */
  .wanted-request-wizard [data-step="0"] [data-choice-group].row-cols-2 > .col,
  .wanted-request-wizard [data-step="0"] [data-choice-group].row > .col {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .wanted-request-wizard [data-choice-group] .purpose-card {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    min-height: 4.5rem;
  }

  /* Icone "coluna esquerda": pill compacta com tamanho fixo. Agora
     com mais espaco horizontal (1 card por linha), pode ser um pouco
     maior. */
  .wanted-request-wizard .purpose-card .material-icons {
    font-size: 1.3rem;
    width: 2.4rem;
    height: 2.4rem;
    min-width: 2.4rem;
    border-radius: 0.7rem;
    margin-top: 0 !important;
    flex-shrink: 0;
  }

  /* Texto "coluna direita": flex column dentro do span existente. */
  .wanted-request-wizard .purpose-card > span:not(.material-icons) {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.15rem;
  }

  .wanted-request-wizard .purpose-card .fw-semibold {
    font-size: 0.95rem;
    line-height: 1.25;
    word-break: break-word;
    hyphens: auto;
  }

  .wanted-request-wizard .purpose-card .text-muted {
    font-size: 0.78rem;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ============================================================
     M11 — Property type card (Tipo do imovel): layout vertical com
     icone centralizado GRANDE. M2 anterior aplicava pill 2rem que
     cortava o icone de 3rem. Reset desses estilos para preservar o
     visual de "ilustracao centralizada".
     ============================================================ */
  .wanted-request-wizard [data-choice-group] .property-type-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 0.5rem;
    text-align: center;
  }

  .wanted-request-wizard .property-type-card .material-icons {
    font-size: 2rem;
    width: auto;
    height: auto;
    min-width: 0;
    background-color: transparent;
    border-radius: 0;
    margin: 0;
    line-height: 1;
    color: var(--gf-color-primary);
    flex-shrink: 0;
  }

  .wanted-request-wizard .property-type-card .fw-semibold {
    font-size: 0.78rem;
    line-height: 1.15;
    word-break: break-word;
    hyphens: auto;
  }
}
