@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables - RPO Imóveis Design System */
:root {
  /* Background & Surface */
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;
  
  /* Cards & Popovers */
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  
  /* Primary - Pantone 296 C (#011229) */
  --primary: 218 95% 8%;
  --primary-foreground: 0 0% 98%;
  
  /* Secondary - light neutral from palette */
  --secondary: 213 12% 96%;
  --secondary-foreground: 218 95% 8%;
  
  /* Accent - Pantone 7463 C (#002B49) */
  --accent: 204 100% 14%;
  --accent-foreground: 0 0% 100%;
  
  /* Muted */
  --muted: 213 12% 96%;
  --muted-foreground: 213 10% 40%;
  
  /* Destructive */
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  
  /* Borders & Inputs */
  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 204 100% 14%;
  
  --radius: 0.75rem;
  
  /* Custom Colors */
  --gold: 213 8% 68%;       /* Pantone 429 C (#A8AEB5) */
  --gold-light: 213 10% 76%;
  --gold-dark: 213 8% 58%;
  --navy: 218 95% 8%;
  --navy-light: 204 100% 14%;
  --navy-dark: 218 95% 8%;
  --slate-warm: 220 14% 96%;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 hsl(222 47% 11% / 0.05);
  --shadow-md: 0 4px 6px -1px hsl(222 47% 11% / 0.1), 0 2px 4px -2px hsl(222 47% 11% / 0.1);
  --shadow-lg: 0 10px 15px -3px hsl(222 47% 11% / 0.1), 0 4px 6px -4px hsl(222 47% 11% / 0.1);
  --shadow-xl: 0 20px 25px -5px hsl(222 47% 11% / 0.1), 0 8px 10px -6px hsl(222 47% 11% / 0.1);
  --shadow-gold: 0 4px 14px 0 hsl(204 100% 14% / 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  font-family: 'Inter', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility Classes */
.text-gradient-gold {
  background: linear-gradient(135deg, hsl(38 60% 50%) 0%, hsl(38 60% 65%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-gold {
  box-shadow: var(--shadow-gold);
}

.shadow-elegant {
  box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Header Styles */
header {
  width: 100%;
  background-color: hsl(var(--card));
  box-shadow: var(--shadow-elegant);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  background-color: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
}

.header-top-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

@media (min-width: 768px) {
  .header-top-content {
    flex-direction: row;
  }
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-wrapper {
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.logo-wrapper img {
  max-height: 50px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logo-wrapper img {
    height: 50px;
  }
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.contact-link:hover {
  color: hsl(var(--accent));
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: hsl(var(--accent) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.contact-link:hover .contact-icon {
  background-color: hsl(var(--accent) / 0.2);
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--accent));
}

.contact-text {
  text-align: left;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.contact-number {
  font-weight: 700;
  color: hsl(var(--foreground));
}

.social-favorites {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-link {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: hsl(var(--primary-foreground));
  transition: background-color 0.3s;
}

.social-link:hover {
  background-color: hsl(var(--navy-light));
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

.favorites-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: hsl(var(--accent));
  transition: color 0.3s;
}

.favorites-link:hover {
  color: hsl(var(--gold-dark));
}

.favorites-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.favorites-link:hover .favorites-icon {
  background-color: hsl(var(--accent) / 0.1);
}

.favorites-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.favorites-text {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Navigation */
.nav-bar {
  background-color: hsl(var(--primary));
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  font-weight: 500;
  text-decoration: none;
  color: hsl(var(--primary-foreground));
  transition: color 0.3s;
}

.nav-link:hover {
  color: hsl(var(--accent));
}

.nav-link.active {
  color: hsl(var(--gold));
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: hsl(var(--gold));
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: hsl(var(--card));
  box-shadow: var(--shadow-xl);
  border-radius: 0 0 0.5rem 0.5rem;
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 50;
  display: none;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 0.75rem 1.25rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.dropdown-link:hover {
  background-color: hsl(var(--secondary));
  color: hsl(var(--accent));
}

.mobile-menu-btn {
  display: block;
  padding: 0.75rem;
  color: hsl(var(--primary-foreground));
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

#boletos-btn {
  display: none;
}

@media (min-width: 1024px) {
  #boletos-btn {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    font-weight: 500;
    text-decoration: none;
    color: hsl(var(--primary-foreground));
    transition: color 0.3s;
  }
  
  #boletos-btn:hover {
    color: hsl(var(--accent));
  }
  
  #boletos-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.mobile-menu {
  display: none;
  background-color: hsl(var(--primary));
  border-top: 1px solid hsl(var(--primary-foreground) / 0.2);
}

.mobile-menu.active {
  display: block;
}

.mobile-nav {
  padding: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  color: hsl(var(--primary-foreground));
  transition: background-color 0.3s;
  margin-bottom: 0.5rem;
}

.mobile-nav-link:hover {
  background-color: hsl(var(--primary-foreground) / 0.1);
}

.mobile-nav-link.active {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent, rgba(0, 0, 0, 0.4));
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-bottom: 2rem;
}

.search-container {
  max-width: fit-content;
}

.search-tabs {
  display: flex;
  flex-wrap: wrap;
}

.search-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
}

.search-tab:hover {
  background-color: hsl(var(--secondary));
}

.search-tab.active {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.search-tab svg {
  width: 1.25rem;
  height: 1.25rem;
}

.search-tab span {
  display: none;
}

@media (min-width: 640px) {
  .search-tab span {
    display: inline;
  }
}

.search-box {
  background-color: hsl(var(--card));
  border-radius: 0 0 0.875rem 0.875rem;
  border-top-right-radius: 0.875rem;
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
}

.search-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

@media (min-width: 1024px) {
  .search-filters {
    flex-direction: row;
    grid-template-columns: repeat(3, 1fr);
    display: grid;
  }
}

.filter-group {
  position: relative;
}

.filter-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.filter-select {
  width: 100%;
  appearance: none;
  background-color: hsl(var(--card));
  border: none;
  border-bottom: 2px solid hsl(var(--border));
  padding: 0.75rem 2.5rem 0.75rem 0.5rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: border-color 0.3s;
}

.filter-select:focus {
  outline: none;
  border-color: hsl(var(--accent));
}

.filter-chevron {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--accent));
  pointer-events: none;
}

.search-box > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .search-box > div:first-child {
    flex-direction: row;
    align-items: flex-end;
  }
}

.search-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .search-buttons {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .search-buttons {
    margin-top: 0;
    margin-left: 1rem;
  }
}

.search-btn {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-gold);
  min-width: 140px;
}

.search-btn:hover {
  background-color: hsl(var(--gold-dark));
  box-shadow: var(--shadow-xl);
}

.map-btn {
  background-color: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.map-btn:hover {
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}

.map-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.map-btn span {
  display: none;
}

@media (min-width: 640px) {
  .map-btn span {
    display: inline;
  }
}

.advanced-search {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.advanced-search-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.advanced-search-link:hover {
  color: hsl(var(--accent));
}

.advanced-search-link svg {
  width: 1rem;
  height: 1rem;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.section-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.mobile-view-more {
  display: block;
  margin-top: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .mobile-view-more {
    display: none;
  }
}

.mobile-view-more .section-link {
  display: inline-flex;
}

.section-divider {
  width: 4px;
  height: 3rem;
  background-color: hsl(var(--accent));
  border-radius: 9999px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

/* Contato page */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .contato-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contato-info .about-text {
  margin-bottom: 1.5rem;
}

.contato-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contato-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contato-item-block {
  align-items: flex-start;
}

.contato-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--accent));
  flex-shrink: 0;
}

.contato-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.25rem 0;
}

.contato-valor {
  color: hsl(var(--foreground));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.contato-valor:hover {
  color: hsl(var(--accent));
}

.contato-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contato-form input,
.contato-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: hsl(var(--foreground));
  background-color: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.contato-form input::placeholder,
.contato-form textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

.contato-form input:focus,
.contato-form textarea:focus {
  outline: none;
  border-color: hsl(var(--accent));
}

.contato-form textarea {
  resize: vertical;
  min-height: 120px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.section-title .accent {
  color: hsl(var(--accent));
}

.section-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--accent));
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.section-header .section-link {
  display: none;
}

@media (min-width: 768px) {
  .section-header .section-link {
    display: flex;
  }
}

.section-link:hover {
  color: hsl(var(--gold-dark));
}

.section-link svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s;
}

.section-link:hover svg {
  transform: translateX(4px);
}

/* Property Grid */
.property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .property-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.property-card {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-elegant);
  cursor: pointer;
  transition: all 0.5s;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.property-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.property-card:hover .property-image img {
  transform: scale(1.1);
}

.property-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--navy-dark) / 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.property-card:hover .property-overlay {
  opacity: 1;
}

.property-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.property-favorite {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: hsl(var(--card) / 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.property-favorite:hover {
  color: hsl(var(--accent));
  background-color: hsl(var(--card));
}

.property-favorite svg {
  width: 1.25rem;
  height: 1.25rem;
}

.property-code-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: hsl(var(--primary-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
}

.property-card:hover .property-code-overlay {
  opacity: 1;
}

.property-content {
  padding: 1.25rem;
}

.property-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.property-code {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.property-type {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.property-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.property-address svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--accent));
  margin-top: 2px;
  flex-shrink: 0;
}

.property-address-text {
  font-weight: 500;
  color: hsl(var(--foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-location {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.property-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
}

.property-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
}

.property-feature svg {
  width: 1rem;
  height: 1rem;
}

.property-feature span {
  font-size: 0.875rem;
}

.property-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.property-price-label {
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.property-price-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--accent));
}

/* Footer */
footer {
  background-color: hsl(var(--primary));
  background-image:
    linear-gradient(
      hsl(var(--primary) / 0.9),
      hsl(var(--primary) / 0.92)
    ),
    url('../assets/bg-maringa.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: hsl(var(--primary-foreground));
}

.footer-main {
  padding: 4rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  max-height: 50px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.footer-text {
  color: hsl(var(--primary-foreground) / 0.8);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: hsl(var(--primary-foreground) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: hsl(var(--primary-foreground));
  transition: all 0.3s;
}

.footer-social-link:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.footer-social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: hsl(var(--gold));
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: hsl(var(--primary-foreground) / 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: hsl(var(--gold));
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--gold));
  flex-shrink: 0;
}

.footer-contact-label {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.6);
}

.footer-contact-value {
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact-value:hover {
  color: hsl(var(--gold));
}

.footer-bottom {
  border-top: 1px solid hsl(var(--primary-foreground) / 0.1);
  padding: 1.5rem 1rem;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.6);
}

@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: all 0.3s;
  z-index: 50;
}

.whatsapp-float:hover {
  background-color: #20BA5A;
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Launches Section */
.launches-section {
  padding: 5rem 0;
  background: linear-gradient(to bottom right, hsl(222 47% 11%), hsl(222 47% 18%), hsl(222 47% 11%));
  position: relative;
  overflow: hidden;
}

.launches-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.launches-bg-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 24rem;
  height: 24rem;
  background-color: hsl(var(--gold-light));
  border-radius: 50%;
  filter: blur(80px);
  transform: translate(-50%, -50%);
}

.launches-bg-2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20rem;
  height: 20rem;
  background-color: hsl(var(--gold));
  border-radius: 50%;
  filter: blur(80px);
  transform: translate(33%, 33%);
}

.launches-container {
  position: relative;
  z-index: 10;
}

.launches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .launches-grid {
    grid-template-columns: 3fr 9fr;
  }
}

.launches-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.launches-title-card {
  background: linear-gradient(to bottom right, hsl(38 60% 60%), hsl(38 60% 50%));
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
}

.launches-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--navy-dark));
  line-height: 1.2;
}

@media (min-width: 768px) {
  .launches-title {
    font-size: 3rem;
  }
}

.launches-brand-card {
  background-color: hsl(222 35% 25% / 0.5);
  backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--gold) / 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.launches-brand-logo {
  font-size: 3.75rem;
  font-weight: 700;
  color: hsl(var(--gold-light));
  margin-bottom: 0.5rem;
}

.launches-brand-text {
  color: hsl(var(--gold-light) / 0.8);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.launches-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.launch-control-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid hsl(var(--gold) / 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--gold-light));
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.launch-control-btn:hover:not(:disabled) {
  background-color: hsl(var(--gold));
  color: hsl(var(--navy-dark));
}

.launch-control-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.launch-control-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.launch-dots {
  display: flex;
  gap: 0.5rem;
}

.launch-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: hsl(var(--gold-light) / 0.3);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}

.launch-dot:hover {
  background-color: hsl(var(--gold-light) / 0.5);
}

.launch-dot.active {
  background-color: hsl(var(--gold-light));
  transform: scale(1.1);
}

.launches-carousel {
  overflow: hidden;
}

.launches-carousel-inner {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease-out;
}

.launch-card {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

/* Carrossel com 4 cards: mostrar 2 por vez */
.launches-carousel-inner .launch-card {
  flex: 0 0 calc(50% - 0.75rem);
}

.launch-card-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.launch-image-container {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.launch-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.launch-card:hover .launch-image-container img {
  transform: scale(1.1);
}

.launch-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(222 47% 11% / 0.9), hsl(222 47% 11% / 0.2), transparent);
}

.launch-status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background-color: hsl(var(--gold));
  color: hsl(var(--navy-dark));
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: var(--shadow-lg);
}

.launch-hover-overlay {
  position: absolute;
  inset: 0;
  background-color: hsl(222 47% 11% / 0.6);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.launch-card:hover .launch-hover-overlay {
  opacity: 1;
}

.launch-cta {
  padding: 0.75rem 1.5rem;
  background-color: hsl(var(--gold));
  color: hsl(var(--navy-dark));
  border-radius: 9999px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s;
}

.launch-card:hover .launch-cta {
  opacity: 1;
  transform: translateY(0);
}

.launch-info {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0 0 1rem 1rem;
}

.launch-info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--navy-dark));
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.launch-card:hover .launch-info-title {
  color: hsl(var(--gold-dark));
}

.launch-info-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.launch-info-location svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--gold));
}

.launch-info-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(222 47% 30%);
  font-size: 0.875rem;
}

.launch-info-type svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--gold));
}

.launch-view-all {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.launch-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid hsl(var(--gold));
  color: hsl(var(--gold-light));
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.launch-view-all-btn:hover {
  background-color: hsl(var(--gold));
  color: hsl(var(--navy-dark));
}

.launch-view-all-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s;
}

.launch-view-all-btn:hover svg {
  transform: translateX(4px);
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background-color: hsl(var(--secondary) / 0.3);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-image-wrapper {
  position: relative;
}

.about-image-card {
  background-color: hsl(var(--card));
  padding: 0;
  border-radius: 1rem;
  box-shadow: var(--shadow-elegant);
}

.about-logo-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.about-logo-wrapper img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;border-radius: 1rem;
}

.about-stats-card {
  position: absolute;
  bottom: -2rem;
  right: 1rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .about-stats-card {
    right: 2rem;
  }
}

.about-stats-number {
  font-size: 3rem;
  font-weight: 700;
  color: hsl(var(--gold));
  text-align: center;
}

@media (min-width: 768px) {
  .about-stats-number {
    font-size: 3.75rem;
  }
}

.about-stats-label {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  text-align: center;
}

.about-stats-sublabel {
  font-size: 0.75rem;
  opacity: 0.8;
  text-align: center;
}

.about-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .about-title {
    font-size: 2rem;
  }
}

.about-title .accent {
  color: hsl(var(--accent));
}

.about-text {
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Painel do Cliente */
.portal-card {
  max-width: 780px;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.portal-title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.portal-subtitle {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.portal-alert {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
}

.portal-alert-error {
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
  border: 1px solid hsl(var(--destructive) / 0.2);
}

.portal-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .portal-form {
    grid-template-columns: 1fr 1fr;
  }
}

.portal-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portal-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.portal-field input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 2px solid hsl(var(--border));
  border-radius: 0.5rem;
  font-size: 1rem;
}

.portal-field input:focus {
  outline: none;
  border-color: hsl(var(--accent));
}

.portal-btn {
  grid-column: 1 / -1;
  padding: 0.875rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.portal-btn:hover {
  background: hsl(var(--gold-dark));
}

.portal-help {
  margin-top: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
}

.portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.portal-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  text-decoration: none;
  color: hsl(var(--foreground));
  font-weight: 600;
}

.portal-logout:hover {
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}

.portal-section-title {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.125rem;
}

.portal-contracts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.portal-contract-item {
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  background: hsl(var(--secondary) / 0.5);
}

.portal-contract-item p {
  margin: 0 0 0.35rem;
}

.portal-contract-item p:last-child {
  margin-bottom: 0;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.about-feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: hsl(var(--accent) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--accent));
}

.about-feature-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.about-feature-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .section {
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
}

/* Busca avançada – painel lateral */
.busca-avancada-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s;
}

.busca-avancada-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}

.busca-avancada-backdrop {
  position: absolute;
  inset: 0;
  background: hsl(222 47% 18% / 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}

.busca-avancada-overlay.is-open .busca-avancada-backdrop {
  opacity: 1;
}

.busca-avancada-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: hsl(var(--card));
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

.busca-avancada-overlay.is-open .busca-avancada-panel {
  transform: translateX(0);
}

.busca-avancada-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
  flex-shrink: 0;
}

.busca-avancada-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--accent));
  margin: 0;
}

.busca-avancada-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.busca-avancada-close:hover {
  background: hsl(var(--muted));
  color: hsl(var(--accent));
}

.busca-avancada-form {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.busca-avancada-tabs {
  display: flex;
  gap: 0.5rem;
}

.busca-avancada-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.busca-avancada-tab.active {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
}

.busca-avancada-tab:hover:not(.active) {
  border-color: hsl(var(--accent) / 0.5);
  color: hsl(var(--foreground));
}

.busca-avancada-tab svg {
  width: 1.25rem;
  height: 1.25rem;
}

.busca-avancada-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.busca-avancada-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.busca-avancada-grid .busca-avancada-field {
  grid-column: span 1;
}

.busca-avancada-field:not(.busca-avancada-grid .busca-avancada-field) {
  grid-column: 1 / -1;
}

.busca-avancada-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.busca-avancada-select,
.busca-avancada-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.busca-avancada-select:focus,
.busca-avancada-input:focus {
  outline: none;
  border-color: hsl(var(--accent));
}

.busca-avancada-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.busca-avancada-chip {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 2px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.busca-avancada-chip.active {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
}

.busca-avancada-chip:hover:not(.active) {
  border-color: hsl(var(--accent) / 0.5);
}

.busca-avancada-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 0.5rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: auto;
}

.busca-avancada-submit:hover {
  background: hsl(var(--gold-dark));
  box-shadow: var(--shadow-xl);
}

.busca-avancada-submit svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 480px) {
  .busca-avancada-panel {
    max-width: 100%;
  }
  .busca-avancada-grid {
    grid-template-columns: 1fr;
  }
}

/* Avalie seu imóvel – formulário em etapas */
.avaliar-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem;
  background: hsl(var(--card));
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
}

.avaliar-intro {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--accent));
  margin: 0 0 1.25rem 0;
  text-align: center;
}

.avaliar-progress {
  margin-bottom: 2rem;
}

.avaliar-progress-line {
  display: block;
  height: 4px;
  background: hsl(var(--muted));
  border-radius: 2px;
  overflow: hidden;
}

.avaliar-progress-fill {
  display: block;
  height: 100%;
  width: 33.33%;
  background: hsl(var(--accent));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.avaliar-progress-dots {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding: 0 0.25rem;
}

.avaliar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: hsl(var(--muted));
  transition: background 0.3s;
}

.avaliar-dot.active {
  background: hsl(var(--accent));
}

.avaliar-form {
  position: relative;
}

.avaliar-step {
  display: none;
}

.avaliar-step.active {
  display: block;
}

.avaliar-step-title {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 1.25rem 0;
}

.avaliar-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .avaliar-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.avaliar-fields-contact {
  max-width: 100%;
}

.avaliar-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.avaliar-field-small {
  grid-column: span 1;
}

.avaliar-field-inline .avaliar-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.avaliar-input-group .avaliar-input {
  flex: 1;
}

.avaliar-suffix {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.avaliar-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.avaliar-input,
.avaliar-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.avaliar-input:focus,
.avaliar-select:focus {
  outline: none;
  border-color: hsl(var(--accent));
}

.avaliar-field-checkbox {
  grid-column: 1 / -1;
}

.avaliar-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}

.avaliar-checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.125rem;
  height: 1.125rem;
  accent-color: hsl(var(--accent));
}

.avaliar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

.avaliar-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.avaliar-btn-prev {
  background: transparent;
  border: 2px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.avaliar-btn-prev:hover:not(:disabled) {
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}

.avaliar-btn-prev:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.avaliar-btn-next,
.avaliar-btn-submit {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border: none;
  box-shadow: var(--shadow-gold);
}

.avaliar-btn-next:hover,
.avaliar-btn-submit:hover {
  background: hsl(var(--gold-dark));
  box-shadow: var(--shadow-xl);
}

.avaliar-btn-submit {
  display: none;
}

.avaliar-actions .avaliar-btn-submit.avaliar-btn-visible {
  display: inline-block;
}

.avaliar-actions .avaliar-btn-next.avaliar-btn-hidden {
  display: none;
}

/* Barra de filtros – listagem venda/locação */
.listing-filters-wrap {
  padding: 0 0 1.5rem 0;
}

.listing-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.listing-filters-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.listing-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: hsl(var(--accent-foreground));
  background: hsl(var(--accent));
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: background 0.2s, box-shadow 0.2s;
}

.listing-filter-btn:hover {
  background: hsl(var(--gold-dark));
  box-shadow: var(--shadow-xl);
}

.listing-filter-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.listing-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: 0.5rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.listing-map-btn:hover {
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}

.listing-map-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.listing-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

@media (min-width: 640px) {
  .listing-search-row {
    flex: 1;
    min-width: 280px;
  }
}

.listing-search-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  background: hsl(var(--background));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.listing-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: hsl(var(--foreground));
  background: transparent;
  border: none;
}

.listing-search-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.listing-search-input:focus {
  outline: none;
}

.listing-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: hsl(var(--accent));
  cursor: pointer;
  transition: color 0.2s;
}

.listing-search-btn:hover {
  color: hsl(var(--gold-dark));
}

.listing-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.listing-sort-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}

.listing-sort-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  cursor: pointer;
}

.listing-view-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.listing-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: 2px solid hsl(var(--border));
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s;
}

.listing-view-btn:hover {
  border-color: hsl(var(--accent) / 0.5);
  color: hsl(var(--foreground));
}

.listing-view-btn.active {
  background: hsl(var(--accent) / 0.15);
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}

.listing-count {
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsl(var(--accent));
  margin: 0;
}

/* Listagem em lista (alternativa à grade) */
.property-grid.listing-list-view {
  grid-template-columns: 1fr;
}

.property-grid.listing-list-view .property-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  max-width: 100%;
}

.property-grid.listing-list-view .property-image {
  aspect-ratio: 1;
  min-height: 200px;
}

@media (max-width: 640px) {
  .property-grid.listing-list-view .property-card {
    grid-template-columns: 1fr;
  }
}

/* Página Imóveis no mapa */
.mapa-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 130px);
  min-height: 450px;
}

.mapa-header {
  flex-shrink: 0;
  padding: 1rem 0;
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
}

.mapa-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.mapa-close-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
  border: 2px solid hsl(var(--border));
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
}

.mapa-close-btn:hover {
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}

.mapa-container {
  flex: 1;
  min-height: 350px;
  width: 100%;
  background: hsl(var(--muted));
}

#main-content:has(.mapa-page) {
  padding: 0;
  max-width: none;
}

.leaflet-popup-content-wrapper {
  border-radius: 0.75rem;
  box-shadow: var(--shadow-xl);
  padding: 0;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0;
  min-width: 280px;
  max-width: 320px;
}

.mapa-popup-card {
  display: block;
}

.mapa-popup-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: hsl(var(--muted));
}

.mapa-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mapa-popup-body {
  padding: 1rem;
}

.mapa-popup-code {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.25rem 0;
}

.mapa-popup-type {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 0.5rem 0;
}

.mapa-popup-address,
.mapa-popup-cep {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.mapa-popup-price {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--accent));
  margin: 0.75rem 0 0.5rem 0;
}

.mapa-popup-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--accent));
  text-decoration: none;
  transition: color 0.2s;
}

.mapa-popup-link:hover {
  color: hsl(var(--gold-dark));
}

.mapa-marker {
  background: none !important;
  border: none !important;
}

.mapa-marker-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: var(--shadow-gold);
}

.mapa-marker-icon svg {
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
}

.mapa-cluster-wrap {
  background: none !important;
  border: none !important;
}

.mapa-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  border: 3px solid hsl(var(--card));
  box-shadow: var(--shadow-lg);
}

/* Página individual do imóvel */
.imovel-breadcrumb {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.imovel-breadcrumb a {
  color: hsl(var(--accent));
  text-decoration: none;
}

.imovel-breadcrumb a:hover {
  text-decoration: underline;
}

.imovel-breadcrumb span:last-child {
  color: hsl(var(--foreground));
}

.imovel-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .imovel-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .imovel-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

.imovel-image-main {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--muted));
}

.imovel-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imovel-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-radius: 0.375rem;
}

.imovel-header {
  margin-bottom: 1rem;
}

.imovel-code {
  display: block;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.imovel-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
}

@media (min-width: 768px) {
  .imovel-title {
    font-size: 1.75rem;
  }
}

.imovel-price {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.imovel-price-label {
  display: block;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.imovel-price-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: hsl(var(--accent));
}

.imovel-address {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.imovel-address svg {
  flex-shrink: 0;
  color: hsl(var(--accent));
}

.imovel-address-street,
.imovel-address-city {
  margin: 0 0 0.25rem 0;
  color: hsl(var(--foreground));
}

.imovel-cep {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.imovel-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.imovel-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}

.imovel-feature svg {
  color: hsl(var(--accent));
}

.imovel-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.75rem 0;
}

.imovel-description {
  margin-bottom: 1.5rem;
}

.imovel-description p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.imovel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.imovel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.imovel-btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.imovel-btn-whatsapp:hover {
  background: #20bd5a;
  color: #fff;
}

.imovel-btn-phone {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.imovel-btn-phone:hover {
  background: hsl(var(--gold-dark));
}

a.property-card {
  display: block;
}

a.property-card:hover {
  color: inherit;
}
