/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Animations and transitions */
.filter-btn {
  @apply text-slate-500;
}

.filter-btn.active {
  @apply bg-white text-indigo-600 shadow-sm;
}

.property-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.property-card:hover {
  transform: translateY(-8px);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .hero-section {
    padding-top: 6rem;   /* reduz altura do topo no mobile */
    padding-bottom: 2.5rem;
  }

  .main-section {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .newsletter-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* Modais em tela cheia no smartphone para melhor uso do espaço */
  #property-modal > div {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
  }

  #modal-content {
    max-height: calc(100vh - 80px);
  }

  #admin-modal > div {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
  }
}
