@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta de cores premium e sofisticada */
  --primary: #0a0e27;
  --primary-light: #1a1f3a;
  --primary-dark: #050711;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --danger: #ef4444;

  /* Sombras mais sofisticadas e profundas */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 24px 48px -8px rgba(0, 0, 0, 0.2);
  --shadow-2xl: 0 32px 64px -12px rgba(0, 0, 0, 0.25);

  /* Bordas arredondadas mais modernas */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Transições mais suaves e naturais */
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background-color: var(--bg-secondary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header com glassmorphism e efeito de elevação */
.header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

/* Logo com gradiente e animação */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition);
  position: relative;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: var(--transition);
  border-radius: 2px;
}

.logo:hover::after {
  width: 100%;
}

.nav {
  display: flex;
  gap: 3rem;
  align-items: center;
}

/* Links de navegação com animação de underline */
.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition);
  padding: 0.625rem 0;
  position: relative;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::before {
  width: 100%;
}

/* Hero section com gradiente animado e padrão de fundo */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e293b 40%, var(--accent) 100%);
  color: white;
  padding: 7rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
    url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="60" height="60" fill="url(%23grid)"/></svg>');
  animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(60px);
  }
}

/* Título hero com animação de gradiente */
.hero-title {
  font-size: 3.75rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.5rem;
  opacity: 0.95;
  font-weight: 400;
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Seção de filtros com design mais limpo */
.filters-section {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-secondary) 100%);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-width: 180px;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Inputs com efeitos de foco mais elegantes */
.filter-select,
.filter-input {
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  background-color: var(--bg);
  transition: var(--transition);
  font-family: inherit;
  font-weight: 500;
  color: var(--text);
}

.filter-select:hover,
.filter-input:hover {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 4px 12px rgba(99, 102, 241, 0.15);
  transform: translateY(-1px);
}

.properties-section {
  padding: 5rem 0;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 3rem;
}

/* Cards premium com efeitos de hover sofisticados */
.property-card {
  background-color: var(--bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-light);
  position: relative;
}

.property-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(245, 158, 11, 0.05) 100%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  z-index: 1;
}

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

.property-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: var(--accent-light);
}

/* Imagem com overlay gradiente e zoom suave */
.property-image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.property-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  transition: var(--transition);
  position: relative;
}

.property-card:hover .property-image {
  transform: scale(1.1);
}

/* Badge contador de fotos */
.property-image-count {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.property-image-count svg {
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

.property-content {
  padding: 2.25rem;
  position: relative;
  z-index: 2;
}

/* Badge com gradiente e sombra */
.property-type {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  position: relative;
}

.property-type::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.property-title {
  font-size: 1.625rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-location {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
}

.property-location svg {
  color: var(--accent);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
}

/* Features com ícones coloridos e espaçamento melhor */
.property-features {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 1.5rem 0;
  border-top: 2px solid var(--border-light);
  border-bottom: 2px solid var(--border-light);
  flex-wrap: wrap;
}

.property-feature {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  color: var(--text);
}

.property-feature svg {
  color: var(--accent);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.15));
}

/* Preço com gradiente animado e destaque */
.property-price {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.375rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.property-price::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
  opacity: 0.3;
}

.property-transaction {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.no-results {
  text-align: center;
  padding: 6rem 0;
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-weight: 500;
}

/* Footer com gradiente escuro e padrão */
.footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
  margin-top: 6rem;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="1"/></pattern></defs><rect width="60" height="60" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.footer p {
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

/* Responsividade aprimorada */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .filters {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .properties-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .nav {
    gap: 2rem;
  }

  .container {
    padding: 0 20px;
  }

  .property-content {
    padding: 1.75rem;
  }

  .property-title {
    font-size: 1.375rem;
  }

  .property-price {
    font-size: 1.875rem;
  }

  .hero {
    padding: 5rem 0;
  }
}

/* Botões primários e secundários com design mais profissional */
.btn-primary,
.btn-secondary {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.btn-primary::before,
.btn-secondary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  color: var(--text);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
}

.btn-secondary:active {
  transform: translateY(-1px) scale(0.98);
}
