/* ============================================
   CARD DE IMÓVEL - DESIGN PREMIUM MODERNO
   ============================================ */

:root {
  --primary: #ff0090;
  --primary-dark: #ca0073;
  --secondary: #00a699;
  --text-primary: #222222;
  --text-secondary: #717171;
  --text-muted: #b0b0b0;
  --border: #ebebeb;
  --bg-light: #f7f7f7;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.16);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.padding-card {
  padding: 7px;
}

/* ============================================
   CARD PRINCIPAL
   ============================================ */
.property-card {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  position: relative;
  height: 450.98px;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* ============================================
   IMAGEM E MEDIA
   ============================================ */
.property-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.property-card__link {
  display: block;
  text-decoration: none;
}

.property-card__image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* Proporção 3:2 */
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.property-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .property-card__image {
  transform: scale(1.08);
}

.property-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.02) 50%,
    rgba(0,0,0,0.08) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.property-card:hover .property-card__overlay {
  opacity: 1;
}

/* ============================================
   BADGE MOBILIADO
   ============================================ */
.property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 2;
  transition: var(--transition);
}

.property-badge--furnished {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.property-badge--semi {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.property-badge svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   AÇÕES RÁPIDAS (HOVER)
   ============================================ */
.property-card__actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.property-card:hover .property-card__actions {
  opacity: 1;
  transform: translateY(0);
}

.property-action {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: var(--transition);
}

.property-action:hover {
  transform: scale(1.1);
  background: white;
  color: var(--cor-site-1);
}

.property-action--whatsapp:hover {
  color: #25d366;
}

/* ============================================
   CONTEÚDO DO CARD
   ============================================ */
.property-card__content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.property-card__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.property-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--cor-site-1);
  background: rgb(255 56 56 / 17%);
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}

.property-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.property-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.property-title a:hover {
  color: var(--cor-site-1);
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.property-location svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

/* ============================================
   FEATURES (CARACTERÍSTICAS)
   ============================================ */
.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.property-feature {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.property-feature svg {
  flex-shrink: 0;
  fill: var(--text-primary);
}

/* ============================================
   FOOTER (PREÇO E CÓDIGO)
   ============================================ */
.property-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.property-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.property-price__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.property-price__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--cor-site-1);
  line-height: 1;
  letter-spacing: -0.5px;
}

.property-price__extra {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.property-code {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  background: var(--bg-light);
  border-radius: 6px;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
  .padding-card {
    padding: 8px;
  }

  .property-card__content {
    padding: 14px;
  }

  .property-title {
    font-size: 16px;
  }

  .property-price__value {
    font-size: 20px;
  }

  .property-card__actions {
    opacity: 1;
    transform: translateY(0);
  }

  .property-action {
    width: 38px;
    height: 38px;
  }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.property-card {
  animation: fadeInUp 0.5s ease-out;
}