/* ==============================================================
   DESIGN SYSTEM & VARIABLES — Imobiliária Canasvieiras Aluguéis
   ============================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Colors */
  --primary-color: #001E4D;       /* Azul Marinho Premium */
  --primary-hover: #00112c;
  --accent-color: #AA7D35;        /* Dourado Accent */
  --accent-hover: #8e6629;
  --accent-light: #F4ECE1;        /* Dourado Claro para fundos/badges */
  --bg-color: #F8F6F2;            /* Fundo Off-white/Areia leve */
  --white: #FFFFFF;
  --black: #1A1C20;
  --gray-dark: #2D3139;           /* Texto principal */
  --gray-medium: #6E7687;         /* Texto secundário/apoio */
  --gray-light: #E2E6EE;          /* Bordas e separadores */
  --gray-bg: #F0F2F6;             /* Fundo de inputs e cards */
  --whatsapp-color: #25D366;      /* Verde do WhatsApp */
  --whatsapp-hover: #1EBE57;
  
  /* Fonts */
  --font-title: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 30, 77, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 30, 77, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 30, 77, 0.12);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --border-radius-lg: 24px;
}

/* ==============================================================
   RESET & BASE STYLES
   ============================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--gray-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--gray-medium);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ==============================================================
   LAYOUT UTILITIES
   ============================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
}

/* ==============================================================
   TYPOGRAPHY SEPARATORS & GRADIENTS
   ============================================================== */
.highlight-gradient {
  background: linear-gradient(135deg, #AA7D35 0%, #E3C564 50%, #AA7D35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
  font-weight: 700;
}

.section-header h2,
.listing-header h1,
.detail-header-info h1,
.why-content h2 {
  position: relative;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem !important;
}

.section-header h2::after,
.listing-header h1::after,
.detail-header-info h1::after,
.why-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 4px;
  background: linear-gradient(135deg, #AA7D35 0%, #E3C564 50%, #AA7D35 100%);
  border-radius: 2px;
}

/* Left-aligned titles adjustment */
.listing-header h1::after,
.detail-header-info h1::after,
.why-content h2::after {
  left: 0;
  transform: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--gray-light);
}

.btn-secondary:hover {
  background-color: var(--gray-bg);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: var(--white);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* ==============================================================
   HEADER / NAVIGATION
   ============================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-light);
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 50px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary-color);
}

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

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

/* Open menu state */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--gray-light);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .nav-actions {
    display: none;
  }
  
  .nav-menu .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 1.5rem;
    gap: 1rem;
  }
}

@media (min-width: 993px) {
  .nav-menu .nav-actions-mobile {
    display: none;
  }
}

/* ==============================================================
   HERO & SEARCH BAR
   ============================================================== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px 0;
  background: linear-gradient(180deg, rgba(0, 30, 77, 0.55) 0%, rgba(0, 17, 50, 0.65) 100%),
              url('hero-canasvieiras.jpg') no-repeat center center;
  background-size: cover;
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content .eyebrow {
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-content .subheadline {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content .subheadline {
    font-size: 1.05rem;
  }
  .hero-ctas {
    flex-direction: column;
    padding: 0 2rem;
  }
}

/* Search Bar Component */
.search-widget {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  color: var(--gray-dark);
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.search-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 0.75rem;
}

.search-tab {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-medium);
  padding: 0.5rem 1rem;
  position: relative;
  cursor: pointer;
}

.search-tab:hover {
  color: var(--primary-color);
}

.search-tab.active {
  color: var(--primary-color);
}

.search-tab.active::after {
  content: "";
  position: absolute;
  bottom: -0.85rem;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 3px;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-field select, .search-field input {
  background-color: var(--gray-bg);
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-dark);
  width: 100%;
  transition: var(--transition-smooth);
}

.search-field select:focus, .search-field input:focus {
  border-color: var(--accent-color);
  background-color: var(--white);
}

@media (max-width: 768px) {
  .search-form {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================
   BARRA DE CONFIANÇA (TRUST BAR)
   ============================================================== */
/* ==============================================================
   DIFERENCIAIS EXCLUSIVOS (TRUST CARDS)
   ============================================================== */
.trust-section {
  background-color: var(--white); /* white background as requested */
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-card {
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
}

.trust-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.trust-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(0, 30, 77, 0.05); /* soft blue/gray badge background */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.trust-card:hover .trust-card-icon {
  background-color: var(--primary-color);
  color: var(--white);
}

.trust-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.trust-card h3::after {
  content: "";
  display: block;
  width: 35px;
  height: 2px;
  background-color: var(--accent-color);
  margin: 0.75rem auto 0 auto;
  border-radius: 2px;
}

.trust-card p {
  font-size: 0.9rem;
  color: var(--gray-medium);
  line-height: 1.6;
}

.trust-section-line {
  width: 50px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 1.2rem auto 0 auto;
  border-radius: 2px;
}

@media (max-width: 992px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==============================================================
   COMO FUNCIONA (HOW IT WORKS) — TIMELINE PREMIUM (LIGHT)
   ============================================================== */
.how-it-works {
  background-color: var(--white);
  color: var(--gray-dark);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-light);
}

.how-it-works .section-header h2 {
  color: var(--primary-color);
}

.how-it-works .section-header p {
  color: var(--gray-medium);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
}

/* Connecting Line (Horizontal on Desktop) */
.steps-grid::before {
  content: "";
  position: absolute;
  top: 25px; /* Half of circle size */
  left: 15%;
  right: 15%;
  height: 2px;
  background-color: var(--gray-light);
  z-index: 1;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--gray-light);
  background-color: var(--white);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  margin: 0 auto 1.5rem auto;
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

/* Brand Blue Active Glow Highlight */
.step-number-circle.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 0 15px rgba(0, 30, 77, 0.3);
}

.step-card h3 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--gray-medium);
}

.step-card p strong {
  color: var(--accent-color);
  font-weight: 600;
}

/* Mobile Timeline Adaptation (Vertical) */
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .steps-grid::before {
    top: 25px;
    bottom: 25px;
    left: 25px;
    right: auto;
    width: 2px;
    height: auto;
  }
  
  .step-card {
    display: flex;
    text-align: left;
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .step-number-circle {
    margin: 0;
    flex-shrink: 0;
  }
}

/* ==============================================================
   CATEGORIAS (CATEGORIES)
   ============================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 250px;
  box-shadow: var(--shadow-sm);
}

.category-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
}

.category-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 30, 77, 0.85) 0%, rgba(0, 30, 77, 0.2) 60%);
  z-index: 1;
}

.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 2;
  color: var(--white);
}

.category-content h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.category-content span {
  font-size: 0.85rem;
  color: var(--accent-light);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.category-card:hover .category-img {
  transform: scale(1.08);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================
   FEATURED CAROUSEL
   ============================================================== */
.carousel-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 1rem 0;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.carousel-track .property-card {
  flex: 0 0 calc(33.333% - 1.333rem); /* 3 cards on desktop */
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .carousel-track .property-card {
    flex: 0 0 calc(50% - 1rem); /* 2 cards on tablet */
  }
}

@media (max-width: 576px) {
  .carousel-track .property-card {
    flex: 0 0 100%; /* 1 card on mobile */
  }
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  user-select: none;
  z-index: 10;
}

.carousel-arrow:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.carousel-arrow.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==============================================================
   PROPERTY CARD / GRID
   ============================================================== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.property-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.property-img-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.property-img {
  width: 100%;
  height: 100%;
  transition: var(--transition-smooth);
}

.property-card:hover .property-img {
  transform: scale(1.05);
}

.property-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-featured {
  background-color: var(--accent-color);
  color: var(--white);
}

.badge-type {
  background-color: rgba(0, 30, 77, 0.85);
  color: var(--white);
}

.badge-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--white);
  color: var(--primary-color);
  font-size: 0.7rem;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.property-info {
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0;
}

.property-location {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.property-title {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.35;
}

.property-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--gray-dark);
  font-weight: 500;
  background: var(--gray-bg);
  border: 1px solid var(--gray-light);
  border-radius: 50px;
  padding: 0.3rem 0.75rem;
}

.spec-pill i {
  color: var(--primary-color);
  font-size: 0.75rem;
}

.property-divider {
  height: 1px;
  background: var(--gray-light);
  margin: 0.75rem 0;
}

.property-comodidades-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.comod-tag {
  background: transparent;
  color: var(--gray-medium);
  border: 1px solid var(--gray-light);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 500;
}

.property-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--gray-light);
}

.property-price-tag {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--gray-medium);
  letter-spacing: 0.06em;
  font-weight: 600;
}

.price-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.btn-card-detail {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-card-detail:hover {
  background: var(--primary-color);
  color: var(--white);
}

@media (max-width: 992px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================
   MORADIA SECTION
   ============================================================== */
.moradia-teaser {
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.moradia-teaser-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 400px;
}

.moradia-teaser-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.moradia-teaser-content h2 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.moradia-teaser-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.moradia-teaser-img {
  background: url('imoveis-site-imobiliaria/fotos e informacoes dos imoveis/Agua Azul 110/WhatsApp Image 2026-06-19 at 19.59.46.jpeg') no-repeat center center;
  background-size: cover;
}

@media (max-width: 992px) {
  .moradia-teaser-grid {
    grid-template-columns: 1fr;
  }
  .moradia-teaser-content {
    padding: 3rem 2rem;
  }
  .moradia-teaser-img {
    height: 250px;
  }
}

/* ==============================================================
   POR QUE CANASVIEIRAS (WHY CANASVIEIRAS)
   ============================================================== */
.why-canasvieiras {
  background-color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.why-img-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.why-img-collage img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  height: 200px;
  width: 100%;
}

.why-img-collage img:nth-child(even) {
  transform: translateY(1.5rem);
}

.why-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.why-content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .why-img-collage img:nth-child(even) {
    transform: none;
  }
}

/* ==============================================================
   TESTIMONIALS (DEPOIMENTOS) — THREE CARDS LAYOUT
   ============================================================== */
.testimonials {
  background-color: var(--white);
}

.testimonials-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 1rem 0;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1.333rem); /* 3 cards on desktop */
  background-color: #F4F6FA;
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 30, 77, 0.03);
  transition: var(--transition-smooth);
  box-sizing: border-box;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 30, 77, 0.1);
}

.testimonial-stars {
  color: #FFC107;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray-dark);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--gray-medium);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 993px) {
  .testimonials-dots {
    display: none; /* Hide dots on desktop as all cards are visible */
  }
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray-light);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.testimonial-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

@media (max-width: 992px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 1rem); /* 2 cards on tablet */
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 100%; /* 1 card on mobile */
  }
}

/* ==============================================================
   CTA SECTION
   ============================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #00112c 100%);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

/* ==============================================================
   FOOTER
   ============================================================== */
footer {
  background-color: var(--primary-color); /* brand blue background */
  color: rgba(255, 255, 255, 0.8);
  padding: 4.5rem 0 2rem 0;
  border-top: 4px solid var(--accent-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h3 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-col-about img {
  height: 48px;
  margin-bottom: 1.25rem;
}

.footer-col-about p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 0.25rem;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact-item i {
  color: var(--accent-color);
  font-size: 1rem;
}

.footer-selo {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--accent-color);
  font-style: italic;
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* ==============================================================
   LISTING PAGE STYLES (imoveis.html)
   ============================================================== */
.listing-wrapper {
  padding-top: 120px;
}

.listing-header {
  margin-bottom: 2rem;
}

.listing-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
}

.listing-header p {
  font-size: 1rem;
}

.listing-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
}

/* Filters Sidebar */
.filters-sidebar {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid var(--gray-light);
  height: fit-content;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}

/* Hide mobile header on desktop */
.mobile-filters-header {
  display: none !important;
}

/* Filter Header Tabs (Zap Style) */
.filter-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-light);
  margin-bottom: 1.5rem;
  gap: 0;
}

.filter-tab {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-medium);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--primary-color);
}

.filter-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--accent-color);
}

.filter-group {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 1.5rem;
}

.filter-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.filter-group h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Button Group Filter Selector */
.btn-group-filter {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-filter-option {
  background-color: var(--white);
  color: var(--gray-dark);
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-width: 48px;
  text-align: center;
  flex-grow: 1;
}

.btn-filter-option:hover {
  background-color: var(--gray-bg);
  border-color: var(--gray-medium);
}

.btn-filter-option.active {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border-color: var(--primary-color) !important;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-color);
  cursor: pointer;
}

.filter-select {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius-sm);
  background-color: var(--gray-bg);
  font-size: 0.85rem;
  color: var(--gray-dark);
}

/* Ordering & Top bar */
/* Listing Search Bar */
.listing-search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.listing-search-bar:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 30, 77, 0.08);
}

.listing-search-bar i {
  color: var(--gray-medium);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.listing-search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--gray-dark);
  width: 100%;
  font-family: var(--font-body);
}

.listing-search-bar input::placeholder {
  color: var(--gray-medium);
}

.listing-search-bar .search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-medium);
  font-size: 1rem;
  flex-shrink: 0;
  padding: 0;
  display: none;
  line-height: 1;
}

.listing-search-bar .search-clear.visible {
  display: block;
}

/* Toolbar */
.listing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.listing-count {
  font-size: 0.9rem;
  font-weight: 500;
}

.order-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.order-selector select {
  padding: 0.5rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius-sm);
  background-color: var(--white);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  border: 1px dashed var(--gray-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-state .btn {
  width: auto;
  display: inline-flex;
  align-self: center;
  margin-top: 0.5rem;
}

.empty-state i {
  font-size: 3rem;
  color: var(--gray-medium);
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.empty-state p {
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto 1.5rem auto;
}

/* Mobile Filter Drawer Trigger */
.btn-mobile-filters {
  display: none;
  width: 100%;
  margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
  .listing-layout {
    grid-template-columns: 1fr;
  }
  
  .filters-sidebar {
    display: none; /* Will toggle or open in modal */
  }
  
  .filters-sidebar.open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    z-index: 2000;
    overflow-y: auto;
    border-radius: 0;
    border: none;
    box-sizing: border-box;
    padding: 1.5rem 1.5rem 3rem 1.5rem;
  }
  
  .mobile-filters-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 1rem;
  }

  #close-filters {
    font-size: 2.25rem !important;
    line-height: 1;
    color: var(--primary-color);
    cursor: pointer;
    display: block !important;
    padding: 0.25rem 0.5rem;
  }
  
  .btn-mobile-filters {
    display: inline-flex;
  }
}

/* ==============================================================
   DETAIL PAGE STYLES (imovel.html)
   ============================================================== */
.detail-wrapper {
  padding-top: 120px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-medium);
  margin-bottom: 1.5rem;
}

.breadcrumb a:hover {
  color: var(--accent-color);
}

/* Premium Zap-Style Header Block */
.prop-detail-header-block {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 30, 77, 0.04);
  border: 1px solid rgba(0, 30, 77, 0.05);
}

.prop-header-info-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prop-tags-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.prop-badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  border: 1px solid transparent;
}

.prop-badge-tag.status-badge {
  background-color: transparent;
  color: var(--accent-color);
  border-color: rgba(170, 125, 53, 0.3);
}

.prop-badge-tag.type-badge {
  background-color: transparent;
  color: var(--primary-color);
  border-color: rgba(0, 30, 77, 0.15);
}

.prop-detail-title {
  font-size: 2.15rem;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.75rem;
}

/* Specs row styled like Zap (New Under-Title Design) */
.prop-specs-grid-zap {
  display: flex;
  gap: 2rem 2.5rem;
  background: transparent;
  padding: 1.25rem 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  border-radius: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.spec-zap-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spec-zap-item i {
  color: var(--primary-color);
  font-size: 1.15rem;
  width: auto;
}

.spec-zap-item .val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.spec-zap-item .lbl {
  font-size: 0.85rem;
  color: var(--gray-medium);
  font-weight: 500;
  margin-left: 0.2rem;
}

/* Location details column inside header */
.prop-header-location-right {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(0, 30, 77, 0.08);
  padding-left: 3rem;
  justify-content: center;
}

.prop-header-location-right h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.location-address-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--gray-dark);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.location-address-row i {
  margin-top: 0.25rem;
}

.mini-map-container-zap {
  width: 100%;
  height: 130px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 30, 77, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.mini-map-container-zap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Detail Page body background override */
body.detail-page-body {
  background-color: var(--white) !important;
}

/* Flat sections integrated into white background */
.prop-flat-section {
  background-color: var(--white);
  padding: 2rem 0;
  border-bottom: 1.5px solid rgba(0, 30, 77, 0.06);
  margin-bottom: 0;
}

.prop-flat-section:last-of-type {
  border-bottom: none;
}

.prop-flat-section h2 {
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--primary-color);
}

.prop-values-panel-zap .val-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.prop-values-panel-zap .val-col:not(:last-child) {
  border-right: 1px solid rgba(0, 30, 77, 0.08);
  padding-right: 1.25rem;
}

.prop-values-panel-zap .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prop-values-panel-zap .value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color);
}

/* Amenities Features list with checks */
.prop-features-list-zap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.feature-zap-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-dark);
  font-weight: 500;
}

.feature-zap-item i {
  color: var(--whatsapp-color); /* Green check style */
  font-size: 1.15rem;
}

@media (max-width: 768px) {
  .prop-detail-header-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .prop-header-location-right {
    border-left: none;
    padding-left: 0;
    border-top: 1.5px solid var(--gray-light);
    padding-top: 2rem;
  }

  .prop-values-panel-zap {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .prop-values-panel-zap .val-col:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 480px) {
  .prop-values-panel-zap {
    grid-template-columns: 1fr;
  }
  
  .prop-values-panel-zap .val-col {
    border-right: none !important;
  }
}

/* Airbnb-Style Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 0.75rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  background-color: var(--gray-bg);
  position: relative;
}

.gallery-item {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.gallery-view-all {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background-color: var(--white);
  color: var(--primary-color);
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  cursor: pointer;
  border: 1px solid var(--gray-light);
}

.gallery-view-all:hover {
  background-color: var(--gray-bg);
}

/* Mobile-only fallback gallery */
.mobile-gallery {
  display: none;
}

@media (max-width: 768px) {
  .gallery-grid {
    display: none;
  }
  .mobile-gallery {
    display: block;
    position: relative;
    margin-bottom: 1.5rem;
  }
  .mobile-gallery-container {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--border-radius);
  }
  .mobile-gallery-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .mobile-gallery-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 1rem;
    pointer-events: none;
  }
  .mobile-gallery-btn {
    pointer-events: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
  }
}

/* Content Layout (Grid info / Sticky CTA) */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.detail-section {
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 2.5rem;
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-header-info h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.detail-location-text {
  font-size: 0.95rem;
  color: var(--gray-medium);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.detail-specs-bar {
  display: flex;
  gap: 2rem;
  background-color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-light);
  margin-top: 1rem;
}

.detail-spec-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-spec-item i {
  color: var(--accent-color);
  font-size: 1.25rem;
}

.detail-spec-val {
  font-weight: 600;
  color: var(--primary-color);
  display: block;
}

.detail-spec-lbl {
  font-size: 0.8rem;
  color: var(--gray-medium);
}

.detail-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.detail-description {
  white-space: pre-line;
  font-size: 1.05rem;
  line-height: 1.7;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.amenity-item i {
  color: var(--accent-color);
  font-size: 1.15rem;
  width: 20px;
  text-align: center;
}

/* Map Widget */
.map-widget {
  height: 350px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  margin-top: 1rem;
}

.map-widget iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Sticky Contact Card */
.sticky-card-container {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sticky-contact-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sticky-card-header {
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 1rem;
}

.sticky-card-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-medium);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.sticky-card-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.sticky-card-body p {
  font-size: 0.9rem;
  color: var(--gray-medium);
  margin-bottom: 1rem;
}

/* Recommendations Section Styles */
.related-properties {
  border-top: 1px solid var(--gray-light);
  padding: 3rem 0;
  margin-top: 1.5rem;
}

.related-properties h2 {
  font-size: 1.65rem;
  margin-bottom: 2rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--primary-color);
}

.carousel-container-outer {
  position: relative;
  width: 100%;
}

#related-grid {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

/* Side navigation arrows desktop position */
#related-prev, #related-next, #featured-prev, #featured-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

#related-prev, #featured-prev {
  left: -2.5rem;
}

#related-next, #featured-next {
  right: -2.5rem;
}

@media (max-width: 992px) {
  .carousel-container-outer {
    overflow: hidden;
  }
  
  #related-prev, #related-next, #featured-prev, #featured-next {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
  
  #related-prev, #featured-prev {
    left: 0.5rem;
  }
  
  #related-next, #featured-next {
    right: 0.5rem;
  }
}

@media (max-width: 992px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .sticky-card-container {
    position: static;
  }
}

/* Modal / Lightbox Gallery */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 10, 30, 0.97);
  z-index: 3000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  color: var(--accent-color);
}

.lightbox-container {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 2rem;
}

.lightbox-btn {
  pointer-events: auto;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: rgba(0,0,0,0.3);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-btn:hover {
  color: var(--accent-color);
  background: rgba(0,0,0,0.5);
}

.lightbox-counter {
  color: var(--white);
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ==============================================================
   ICONS FALLBACK & STYLING
   ============================================================== */
.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* ==============================================================
   MOBILE — FULL WIDTH BUTTONS
   ============================================================== */
@media (max-width: 768px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  /* Exception: empty state WhatsApp button should not be full-width */
  .empty-state .btn {
    width: auto !important;
    display: inline-flex;
    align-self: center;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  /* Stack hero CTA buttons vertically */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  /* Stack inline button groups too */
  .detail-ctas,
  .why-content > a,
  .section-header > a {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
