/* ============================================================
   AURA IMÃ“VEIS â€” Premium Dark Mode Real Estate CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-elevated: #1a1a2e;
  --accent-gold: #d4a853;
  --accent-gold-light: #e8c87a;
  --accent-gold-gradient: linear-gradient(135deg, #d4a853, #f0d78c);
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --border: rgba(212, 168, 83, 0.15);
  --glass: rgba(18, 18, 26, 0.8);
  --danger: #e74c3c;
  --success: #2ecc71;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-numbers: 'Outfit', 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-gold: 0 4px 20px rgba(212, 168, 83, 0.2);
  --shadow-gold-strong: 0 8px 32px rgba(212, 168, 83, 0.3);
  --transition: 0.3s ease;
  --navbar-height: 80px;
}

/* ============================================================
   2. RESET
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ============================================================
   3. BASE STYLES
   ============================================================ */
body {
  background-color: var(--bg-primary);
  font-family: var(--font-body);
  color: var(--text-primary);
  overflow-x: hidden;
}

::selection {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
}

::-moz-selection {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

h4 {
  font-size: 1.35rem;
  font-weight: 600;
}

h5 {
  font-size: 1.125rem;
  font-weight: 500;
}

h6 {
  font-size: 1rem;
  font-weight: 500;
}

p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.price {
  font-family: var(--font-numbers);
  font-weight: 700;
  color: var(--accent-gold);
}

small {
  font-size: 0.875rem;
  color: var(--text-muted);
}

strong {
  font-weight: 600;
}

/* ============================================================
   5. CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-wide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ============================================================
   6. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: opacity var(--transition);
}

.navbar-logo:hover {
  opacity: 0.85;
}

.navbar-logo img {
  height: 42px;
  width: auto;
}

.navbar-logo .logo-accent {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold-gradient);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 8px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: color var(--transition), transform var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--accent-gold);
  transform: translateX(8px);
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--bg-primary, #0a0a0f);
  transition: background-image 0.5s ease;
}

/* Premium gradient when no background image */
.hero-no-image {
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(212, 168, 83, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 168, 83, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(100, 80, 40, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0d0d14 0%, #111118 30%, #0f0f16 60%, #0a0a0f 100%) !important;
}

.hero-no-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(212, 168, 83, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(212, 168, 83, 0.03) 0%, transparent 35%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroGlow {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 0.5s ease;
  will-change: transform;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.6) 0%,
    rgba(10, 10, 15, 0.75) 50%,
    rgba(10, 10, 15, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-content h1 .gold {
  color: var(--accent-gold);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s 0.2s ease forwards;
  opacity: 0;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 24px;
  max-width: 600px;
  margin: 0 auto 24px;
  animation: fadeInUp 0.8s 0.4s ease forwards;
  opacity: 0;
}

.hero-search input {
  flex: 1;
  background: transparent;
  color: var(--text-primary);
  padding: 14px 12px;
  font-size: 1rem;
}

.hero-search input::placeholder {
  color: var(--text-muted);
}

.hero-search .btn {
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 0.8s 0.6s ease forwards;
  opacity: 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll-indicator span {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(14px); opacity: 0.3; }
}

/* ============================================================
   8. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: none;
  outline: none;
  text-decoration: none;
  line-height: 1.4;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1.0625rem;
}

.btn-primary {
  background: var(--accent-gold-gradient);
  color: var(--bg-primary);
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-gold-strong);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0) scale(1);
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-gold);
}

.btn-outline:active {
  transform: translateY(0) scale(1);
}

.btn-whatsapp {
  background: var(--success);
  color: #fff;
  box-shadow: 0 4px 16px rgba(46, 204, 113, 0.25);
}

.btn-whatsapp:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(46, 204, 113, 0.35);
  filter: brightness(1.08);
}

.btn-whatsapp:active {
  transform: translateY(0) scale(1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 20px;
}

.btn-ghost:hover {
  color: var(--accent-gold);
  background: rgba(212, 168, 83, 0.08);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ============================================================
   9. PROPERTY CARDS
   ============================================================ */
.property-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-gold);
  border-color: rgba(212, 168, 83, 0.35);
}

.property-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-card-image img {
  transform: scale(1.08);
}

.property-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}

.property-card-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  z-index: 2;
}

.property-card-favorite:hover,
.property-card-favorite.active {
  color: var(--danger);
  background: rgba(10, 10, 15, 0.8);
}

.property-card-image-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.property-card-content {
  padding: 20px;
}

.property-card-type {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.property-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-card-location {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.property-card-location i {
  color: var(--accent-gold);
  font-size: 0.8rem;
}

.property-card-price {
  font-family: var(--font-numbers);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.property-card-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.property-card-features {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.property-card-features .feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.property-card-features .feature i {
  color: var(--accent-gold);
  font-size: 0.9rem;
}

/* ============================================================
   10. PROPERTY GRID
   ============================================================ */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.properties-section {
  padding: 80px 0;
}

.properties-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.properties-count {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ============================================================
   11. STATS SECTION
   ============================================================ */
.stats {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 24px 16px;
}

.stat-number {
  font-family: var(--font-numbers);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ============================================================
   12. WHY AURA SECTION
   ============================================================ */
.why-section {
  padding: 100px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.why-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(212, 168, 83, 0.3);
}

.why-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 83, 0.1);
  border-radius: 50%;
  color: var(--accent-gold);
  font-size: 1.75rem;
  transition: background var(--transition), transform var(--transition);
}

.why-card:hover .why-card-icon {
  background: rgba(212, 168, 83, 0.18);
  transform: scale(1.1);
}

.why-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.why-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   13. CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--accent-gold-gradient);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 2.5rem;
  color: var(--bg-primary);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.125rem;
  color: rgba(10, 10, 15, 0.7);
  max-width: 580px;
  margin: 0 auto 36px;
}

.cta-section .btn-primary {
  background: var(--bg-primary);
  color: var(--accent-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-section .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cta-section .btn-outline {
  border-color: var(--bg-primary);
  color: var(--bg-primary);
}

.cta-section .btn-outline:hover {
  background: var(--bg-primary);
  color: var(--accent-gold);
}

/* ============================================================
   14. FILTER PANEL (Premium)
   ============================================================ */
.filter-section {
  padding-top: 0;
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.filter-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.filter-panel-header {
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(212, 168, 83, 0.04);
}

.filter-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin: 0;
}

.filter-panel-title svg {
  flex-shrink: 0;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 28px 28px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-group label svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.filter-group select,
.filter-group input {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
}

.filter-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9A96E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.filter-group select:hover,
.filter-group input:hover {
  border-color: rgba(212, 168, 83, 0.4);
  background: rgba(212, 168, 83, 0.04);
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.12);
  background: rgba(212, 168, 83, 0.06);
}

.filter-group input::placeholder {
  color: var(--text-muted);
}

.filter-group select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Filter action buttons */
.filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.btn-filter-search {
  flex: 1;
  padding: 13px 24px;
  font-size: 0.9rem;
}

.btn-filter-clear {
  padding: 13px 18px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.btn-filter-clear:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(231, 76, 60, 0.08);
}

/* Responsive */
@media (max-width: 1024px) {
  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel-header {
    padding: 14px 20px;
  }
}

/* ============================================================
   15. DETAIL PAGE
   ============================================================ */
.detail-page {
  padding-top: calc(var(--navbar-height) + 24px);
  padding-bottom: 80px;
}

/* Gallery styles moved to section below (.gallery-main, .gallery-thumbs-row) */


.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.detail-breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.detail-breadcrumb a:hover {
  color: var(--accent-gold);
}

.detail-breadcrumb span {
  color: var(--text-muted);
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.detail-location i {
  color: var(--accent-gold);
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-price-main {
  font-family: var(--font-numbers);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.detail-price-condo {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.detail-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.detail-feature-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: border-color var(--transition);
}

.detail-feature-item:hover {
  border-color: rgba(212, 168, 83, 0.3);
}

.detail-feature-item i {
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.detail-feature-item .value {
  font-family: var(--font-numbers);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.detail-feature-item .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.detail-description h3 {
  margin-bottom: 16px;
}

.detail-description p {
  font-size: 1rem;
  line-height: 1.8;
}

.detail-amenities-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.detail-amenity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 10px 0;
}

.detail-amenity i {
  color: var(--accent-gold);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 24px);
}

.detail-sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-sidebar-card h4 {
  text-align: center;
  margin-bottom: 4px;
}

.detail-sidebar-card .btn {
  width: 100%;
}

.detail-agent {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.detail-agent img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.detail-agent-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.detail-agent-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   16. LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  animation: scaleIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
  z-index: 10;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-prev:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) translateX(-3px);
}

.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) translateX(3px);
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-numbers);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ============================================================
   17. ABOUT PAGE
   ============================================================ */
.about-hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 83, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.about-hero h1 {
  margin-bottom: 20px;
}

.about-hero p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.about-content {
  padding: 80px 0;
}

.about-text-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}

.about-text-image.reverse {
  direction: rtl;
}

.about-text-image.reverse > * {
  direction: ltr;
}

.values-section {
  padding: 80px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.value-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.value-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 83, 0.1);
  border-radius: 50%;
  color: var(--accent-gold);
  font-size: 1.5rem;
}

.value-card h4 {
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9375rem;
}

.timeline {
  position: relative;
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 60px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 50px;
  padding-left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 50px;
  padding-right: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--accent-gold);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd)::before {
  right: -8px;
}

.timeline-item:nth-child(even)::before {
  left: -8px;
}

.timeline-year {
  font-family: var(--font-numbers);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.timeline-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.timeline-card h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.timeline-card p {
  font-size: 0.9rem;
}

/* ============================================================
   18. CONTACT PAGE
   ============================================================ */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form h3 {
  margin-bottom: 8px;
}

.contact-form > p {
  margin-bottom: 32px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color var(--transition);
}

.contact-info-card:hover {
  border-color: rgba(212, 168, 83, 0.3);
}

.contact-info-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 83, 0.1);
  border-radius: 50%;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.contact-info-card h5 {
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.contact-info-card a {
  color: var(--accent-gold);
  transition: color var(--transition);
}

.contact-info-card a:hover {
  color: var(--accent-gold-light);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: brightness(0.7) contrast(1.1) saturate(0);
}

/* ============================================================
   19. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .navbar-logo {
  font-size: 1.35rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: rgba(212, 168, 83, 0.08);
  transform: translateY(-3px);
}

.footer-column h5 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column ul li a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}

.footer-column ul li a:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--accent-gold);
}

/* ============================================================
   20. BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  line-height: 1.4;
}

.badge-destaque {
  background: rgba(212, 168, 83, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 168, 83, 0.3);
}

.badge-novo {
  background: rgba(46, 204, 113, 0.15);
  color: var(--success);
  border: 1px solid rgba(46, 204, 113, 0.25);
}

.badge-tipo {
  background: rgba(136, 136, 160, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(136, 136, 160, 0.2);
}

.badge-vendido {
  background: rgba(231, 76, 60, 0.15);
  color: var(--danger);
  border: 1px solid rgba(231, 76, 60, 0.25);
}

/* ============================================================
   21. FEATURE ICONS ROW
   ============================================================ */
.features-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.features-row .feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.features-row .feature-item i {
  color: var(--accent-gold);
  font-size: 1rem;
}

.features-row .feature-item span {
  font-weight: 500;
}

.features-row .feature-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

/* ============================================================
   22. SECTION TITLE
   ============================================================ */
.section-title {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.section-title h2 {
  font-family: var(--font-heading);
  display: inline-block;
  margin-bottom: 16px;
}

.section-title h2 .gold {
  color: var(--accent-gold);
}

.section-title p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-gold-gradient);
  border-radius: 2px;
  margin: 20px auto 0;
}

.section-title-left {
  text-align: left;
}

.section-title-left::after {
  margin-left: 0;
}

/* ============================================================
   23. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-12px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

.animate-on-scroll.delay-1 {
  transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
  transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
  transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
  transition-delay: 0.4s;
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-left.visible {
  opacity: 1;
  transform: none;
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-right.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   24. CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-light);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) var(--bg-primary);
}

/* ============================================================
   25. PAGE HEADER (Inner Pages)
   ============================================================ */
.page-header {
  position: relative;
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.7) 0%,
    rgba(10, 10, 15, 0.85) 100%
  );
}

.page-header-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.page-header-content h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.page-header-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ============================================================
   26. RESPONSIVE
   ============================================================ */

/* Tablet â€” max-width 1024px */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-layout {
    grid-template-columns: 1fr 320px;
    gap: 30px;
  }

  .detail-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-amenities-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .about-text-image {
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Mobile â€” max-width 768px */
@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Navbar mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    padding: 16px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition);
  }

  .nav-links a:hover {
    background: rgba(var(--gold-rgb, 212, 175, 55), 0.1);
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .navbar .container {
    position: relative;
  }

  /* Hero mobile */
  .hero {
    min-height: 100vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 12px;
    gap: 8px;
  }

  .hero-search input {
    padding: 12px;
    text-align: center;
  }

  .hero-search .btn {
    width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-scroll-indicator {
    display: none;
  }

  /* Grid mobile */
  .properties-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Filter bar mobile */
  .filter-bar {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .filter-group {
    min-width: 100%;
  }

  .filter-bar .btn {
    width: 100%;
  }

  /* Detail mobile - old classes removed */


  .detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-sidebar {
    position: static;
  }

  .detail-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .detail-amenities-list {
    grid-template-columns: 1fr;
  }

  .detail-price-main {
    font-size: 1.8rem;
  }

  .detail-title {
    font-size: 1.5rem;
  }

  /* About mobile */
  .about-text-image {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-text-image.reverse {
    direction: ltr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 52px;
    padding-right: 0;
  }

  .timeline-item::before,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 12px;
    right: auto;
  }

  /* Contact mobile */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  /* CTA section mobile */
  .cta-section {
    padding: 60px 0;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  /* Page header mobile */
  .page-header {
    height: 35vh;
    min-height: 240px;
  }

  .page-header-content h1 {
    font-size: 2rem;
  }

  /* Properties header mobile */
  .properties-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Lightbox mobile */
  .lightbox-image {
    max-width: 95%;
    max-height: 75vh;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Small mobile â€” max-width 480px */
@media (max-width: 480px) {
  h1 {
    font-size: 1.65rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .property-card-features {
    gap: 10px;
    flex-wrap: wrap;
  }

  .property-card-price {
    font-size: 1.3rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .features-row {
    gap: 12px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  .btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
  }
}

/* ============================================================
   27. UTILITY CLASSES
   ============================================================ */
.text-gold {
  color: var(--accent-gold);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 48px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mb-4 {
  margin-bottom: 48px;
}

.pt-1 {
  padding-top: 8px;
}

.pt-2 {
  padding-top: 16px;
}

.pt-3 {
  padding-top: 24px;
}

.pt-4 {
  padding-top: 48px;
}

.pb-1 {
  padding-bottom: 8px;
}

.pb-2 {
  padding-bottom: 16px;
}

.pb-3 {
  padding-bottom: 24px;
}

.pb-4 {
  padding-bottom: 48px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 16px;
}

.gap-3 {
  gap: 24px;
}

.w-full {
  width: 100%;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

/* ============================================================
   28. FORM ELEMENTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-group select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 4px;
}

.form-success {
  font-size: 0.875rem;
  color: var(--success);
  padding: 12px 16px;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.2);
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
  width: auto;
  accent-color: var(--accent-gold);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.checkbox-group label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ============================================================
   29. LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    var(--bg-elevated) 40%,
    var(--bg-secondary) 80%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    var(--bg-elevated) 40%,
    var(--bg-secondary) 80%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 0%,
    rgba(26, 26, 46, 0.6) 40%,
    var(--bg-elevated) 80%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-line.medium {
  width: 80%;
}

.skeleton-line.price {
  width: 40%;
  height: 22px;
  margin-top: 4px;
}

.skeleton-features {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.skeleton-feature {
  width: 60px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 0%,
    rgba(26, 26, 46, 0.6) 40%,
    var(--bg-elevated) 80%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}

/* ============================================================
   30. BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--accent-gold-gradient);
  color: var(--bg-primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), box-shadow var(--transition);
  z-index: 900;
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.25);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold-strong);
}

.back-to-top:active {
  transform: translateY(0);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON (bonus)
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 56px;
  height: 56px;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(46, 204, 113, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(46, 204, 113, 0.45);
  animation: none;
}

/* ============================================================
   TOAST NOTIFICATIONS (bonus)
   ============================================================ */
.toast {
  position: fixed;
  top: calc(var(--navbar-height) + 16px);
  right: 24px;
  min-width: 300px;
  max-width: 420px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  z-index: 1100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: slideDown 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.toast.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.85rem;
}

.toast-success .toast-icon {
  background: rgba(46, 204, 113, 0.15);
  color: var(--success);
}

.toast-error .toast-icon {
  background: rgba(231, 76, 60, 0.15);
  color: var(--danger);
}

.toast-info .toast-icon {
  background: rgba(212, 168, 83, 0.15);
  color: var(--accent-gold);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  border: none;
  background: transparent;
}

.toast-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================================
   PAGINATION (bonus)
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-numbers);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.pagination a:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.pagination .active {
  background: var(--accent-gold-gradient);
  color: var(--bg-primary);
  border-color: transparent;
  font-weight: 700;
}

.pagination .disabled {
  opacity: 0.35;
  pointer-events: none;
}

.pagination .dots {
  background: transparent;
  border: none;
  color: var(--text-muted);
  pointer-events: none;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
/* ============================================================
   PROPERTY CARD STYLES (generated by properties.js)
   Classes: .card-image, .card-content, .card-badge, .card-price,
            .card-title, .card-address, .card-features, .card-feature
   ============================================================ */
.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .card-image img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-gold-gradient);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
}

.card-badge.badge-vendido {
  background: var(--danger);
  color: #fff;
  left: auto;
  right: 12px;
}

.property-card.sold {
  opacity: 0.7;
  pointer-events: none;
}

.card-content {
  padding: 20px;
}

.card-price {
  font-family: var(--font-numbers, 'Inter', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 8px;
}

.card-price-disclaimer {
  display: block;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-muted, #999);
  margin-top: -4px;
  margin-bottom: 6px;
}

.detail-price-disclaimer {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted, #999);
  font-weight: 400;
  margin-top: 4px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-address {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.card-address svg {
  flex-shrink: 0;
  color: var(--accent-gold);
}

.card-features {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.card-feature {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.card-feature svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* ============================================================
   DETAIL PAGE STYLES (generated by detail.js)
   ============================================================ */

/* Back button */
.detail-back {
  margin-bottom: 24px;
}

/* Main layout: gallery on top, info below */
.detail-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Gallery — full width */
.detail-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-main {
  position: relative;
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  margin-bottom: 12px;
}

.gallery-main::after {
  content: '🔍 Ampliar';
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 2;
}
.gallery-main:hover::after {
  opacity: 1;
}

.gallery-main .main-image {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-main:hover .main-image {
  transform: scale(1.03);
}

.gallery-thumbs,
.gallery-thumbs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.gallery-thumbs-row::-webkit-scrollbar {
  height: 4px;
}
.gallery-thumbs-row::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 2px;
}
.gallery-thumbs-row::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 2px;
}

.gallery-thumb {
  width: 100px;
  height: 72px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition), opacity var(--transition);
  opacity: 0.6;
  scroll-snap-align: start;
}

.gallery-thumb:hover {
  opacity: 0.9;
}

.gallery-thumb.active {
  border-color: var(--accent-gold);
  opacity: 1;
}

/* Info panel */
.detail-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.detail-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-type-badge {
  display: inline-block;
  background: rgba(212, 168, 83, 0.12);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 8px;
}

.detail-sold-badge {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 4px 0;
}

.detail-address {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.detail-address svg {
  flex-shrink: 0;
  color: var(--accent-gold);
}

.detail-price {
  font-family: var(--font-numbers, 'Inter', sans-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Specs: horizontal 4-column grid */
.detail-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.spec-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  transition: border-color var(--transition);
}

.spec-item:hover {
  border-color: rgba(212, 168, 83, 0.3);
}

.spec-icon {
  color: var(--accent-gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-icon svg {
  width: 22px;
  height: 22px;
}

.spec-value {
  font-family: var(--font-numbers, 'Inter', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Description */
.detail-description h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.detail-description p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Features list */
.detail-features h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
}

.feature-item svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* Video embed */
.detail-video {
  margin-top: 8px;
}
.detail-video h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

/* Horizontal video (YouTube standard) */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Vertical video (Reels, TikTok, Shorts) */
.video-vertical {
  max-width: 360px;
  padding-bottom: 0;
  height: 640px;
}
.video-vertical iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Action buttons */
.detail-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.detail-actions .btn {
  flex: 1;
  min-width: 180px;
  text-align: center;
  justify-content: center;
}

/* ============================================================
   LIGHTBOX (created by detail.js)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* No results */
.no-results {
  text-align: center;
  padding: 80px 20px;
  grid-column: 1 / -1;
}

.no-results svg {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.no-results h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.no-results p {
  color: var(--text-secondary);
}

/* Detail loading */
.detail-loading {
  text-align: center;
  padding: 120px 20px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ============================================================
   RESPONSIVE - DETAIL PAGE
   ============================================================ */
@media (max-width: 900px) {
  .detail-content {
    gap: 24px;
  }

  .detail-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .detail-actions {
    flex-direction: column;
  }

  .detail-actions .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .detail-title {
    font-size: 1.35rem;
  }

  .detail-price {
    font-size: 1.5rem;
  }

  .detail-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .spec-item {
    padding: 12px 8px;
  }


}

/* ============================================================
   RESPONSIVE - PROPERTY CARDS
   ============================================================ */
@media (max-width: 900px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .navbar,
  .hamburger,
  .mobile-menu,
  .back-to-top,
  .whatsapp-float,
  .lightbox,
  .toast {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .property-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  a {
    color: #111;
  }
}

/* ============================================================
   NEW FEATURES â€” VERIFIED, URGENCY, CALCULATOR, QUIZ, NEIGHBORHOOD, ALERTS
   ============================================================ */

/* â”€â”€ Verified Badge â”€â”€ */
.badge-verified {
  background: linear-gradient(135deg, #d4a853, #c19a3e) !important;
  color: #0a0a0f !important;
  font-weight: 600;
}
.badge-urgency {
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  color: #fff !important;
  font-weight: 600;
  bottom: 12px !important; top: auto !important; right: 12px !important; left: auto !important;
  animation: urgencyPulse 2s ease-in-out infinite;
}
@keyframes urgencyPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.detail-verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; background: linear-gradient(135deg, #d4a853, #c19a3e);
  color: #0a0a0f; font-size: 12px; font-weight: 600; border-radius: 20px; margin-left: 8px;
}
.urgency-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(231,76,60,0.15), rgba(231,76,60,0.05));
  border: 1px solid rgba(231,76,60,0.3); border-radius: 12px;
  color: #e74c3c; font-size: 14px; margin-bottom: 20px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CALCULATOR â€” Clean, Simple Layout
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.calc-wrapper { background: var(--bg-card); border-radius: 20px; border: 1px solid var(--border-subtle); overflow: hidden; }

.calc-tabs { display: flex; background: var(--bg-secondary); padding: 6px; border-radius: 0; gap: 4px; }
.calc-tab {
  flex: 1; padding: 14px 12px; border: none; background: transparent;
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  border-radius: 10px; cursor: pointer; transition: all var(--transition);
  text-align: center;
}
.calc-tab.active, .calc-tab[aria-selected="true"] {
  background: var(--accent-gold); color: #0a0a0f; font-weight: 600;
}

.calc-panels { padding: 28px; }
.calc-panel { display: none; }
.calc-panel.active { display: block; }

.calc-section { }
.calc-explain {
  font-size: 15px; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 24px; text-align: center;
}

/* Rent input */
.calc-rent-input-wrapper {
  max-width: 320px;
  margin: 0 auto 28px;
}
.calc-rent-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.calc-rent-input-row {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.calc-rent-input-row:focus-within {
  border-color: var(--accent-gold);
}
.calc-rent-prefix {
  padding: 12px 0 12px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
  flex-shrink: 0;
}
.calc-rent-input {
  flex: 1;
  padding: 12px 16px 12px 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-numbers, var(--font-main));
}
.calc-rent-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Highlight row */
.calc-highlight-row {
  display: flex; align-items: center; gap: 16px;
  justify-content: center; margin-bottom: 32px; flex-wrap: wrap;
}
.calc-highlight-card {
  padding: 20px 28px; background: var(--bg-secondary);
  border-radius: 14px; text-align: center; border: 1px solid var(--border-subtle);
  min-width: 180px;
}
.calc-highlight-gold {
  border-color: var(--accent-gold);
  background: rgba(212, 168, 83, 0.08);
  box-shadow: 0 0 30px rgba(212, 168, 83, 0.1);
}
.calc-highlight-label {
  display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px;
}
.calc-highlight-value {
  display: block; font-size: 22px; font-weight: 700; color: var(--text-primary);
}
.calc-highlight-gold .calc-highlight-value { color: var(--accent-gold); }
.calc-highlight-sub {
  display: block; font-size: 12px; color: var(--accent-gold); margin-top: 4px; font-weight: 500;
}
.calc-highlight-arrow {
  font-size: 24px; color: var(--accent-gold); font-weight: 700;
}

/* Horizontal bar chart */
.calc-simple-chart { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.calc-simple-bar-row { display: flex; align-items: center; gap: 12px; }
.calc-simple-bar-year {
  width: 70px; font-size: 13px; font-weight: 600; color: var(--text-secondary);
  text-align: right; flex-shrink: 0;
}
.calc-simple-bar-track {
  flex: 1; height: 40px; background: var(--bg-secondary); border-radius: 10px; overflow: hidden;
}
.calc-simple-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent-gold), #e8c97a);
  border-radius: 10px; display: flex; align-items: center; padding: 0 14px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.calc-simple-bar-text {
  font-size: 12px; font-weight: 600; color: #0a0a0f; white-space: nowrap;
}
.calc-simple-bar-gain {
  width: 55px; font-size: 13px; font-weight: 600; color: #2ecc71; flex-shrink: 0;
}

/* Info cards grid */
.calc-info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-bottom: 20px;
}
.calc-info-3col { grid-template-columns: repeat(3, 1fr); }
.calc-info-card {
  padding: 20px; background: var(--bg-secondary); border-radius: 14px;
  text-align: center; border: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.calc-info-card-big { border-color: var(--accent-gold); background: rgba(212,168,83,0.06); }
.calc-info-card-red { border-color: rgba(231,76,60,0.3); }
.calc-info-icon { font-size: 28px; margin-bottom: 4px; }
.calc-info-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.calc-info-value { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.calc-info-sub { font-size: 11px; color: var(--accent-gold); }
.calc-green { color: #2ecc71 !important; }
.calc-info-card-red .calc-info-value { color: #e74c3c; }

/* VS Comparison */
.calc-vs-box {
  padding: 24px; background: var(--bg-secondary); border-radius: 16px;
  border: 1px solid var(--border-subtle); margin-bottom: 20px;
}
.calc-vs-title {
  font-size: 16px; font-weight: 600; text-align: center; margin-bottom: 16px;
  color: var(--text-primary);
}
.calc-vs-title small { color: var(--text-muted); font-weight: 400; }
.calc-vs-row { display: flex; align-items: center; gap: 12px; }
.calc-vs-card {
  flex: 1; padding: 16px; background: var(--bg-primary); border-radius: 12px;
  text-align: center; border: 2px solid transparent; transition: all var(--transition);
}
.calc-vs-winner {
  border-color: var(--accent-gold); box-shadow: 0 0 20px rgba(212,168,83,0.12);
}
.calc-vs-name { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.calc-vs-amount { display: block; font-size: 20px; font-weight: 700; color: var(--text-primary); }
.calc-vs-winner .calc-vs-amount { color: var(--accent-gold); }
.calc-vs-sep { font-size: 14px; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.calc-vs-result {
  text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-secondary);
  padding: 12px; background: rgba(212,168,83,0.05); border-radius: 10px;
}

/* Financing controls */
.calc-fin-controls { margin-bottom: 24px; }
.calc-fin-field { margin-bottom: 20px; }
.calc-fin-label { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; display: block; }
.calc-fin-value-display {
  padding: 14px 18px; background: var(--bg-secondary); border-radius: 10px;
  font-size: 18px; font-weight: 600; color: var(--accent-gold);
  border: 1px solid var(--border-subtle);
}

.calc-slider {
  width: 100%; -webkit-appearance: none; height: 8px; border-radius: 4px;
  background: var(--bg-secondary); outline: none; margin-top: 4px;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-gold); cursor: pointer; border: 3px solid var(--bg-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.calc-slider-tips {
  display: flex; justify-content: space-between; font-size: 11px;
  color: var(--text-muted); margin-top: 4px;
}

/* Composition bar */
.calc-comp-bar {
  display: flex; height: 28px; border-radius: 8px; overflow: hidden; margin: 20px 0 8px;
}
.calc-comp-seg {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff; transition: width 0.5s ease;
}
.calc-comp-entrada { background: #3498db; }
.calc-comp-principal { background: var(--accent-gold); color: #0a0a0f; }
.calc-comp-juros { background: #e74c3c; }
.calc-comp-legend {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  font-size: 12px; color: var(--text-muted);
}
.calc-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 4px; vertical-align: middle;
}
.calc-dot-entrada { background: #3498db; }
.calc-dot-principal { background: var(--accent-gold); }
.calc-dot-juros { background: #e74c3c; }

.calc-note {
  font-size: 11px; color: var(--text-muted); text-align: center;
  margin-top: 16px; font-style: italic;
}

/* Disclaimer box */
.calc-disclaimer-box {
  padding: 20px 28px;
  background: rgba(231, 76, 60, 0.04);
  border-top: 1px solid rgba(231, 76, 60, 0.15);
}
.calc-disclaimer-title {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.calc-disclaimer-text {
  font-size: 11px; color: var(--text-muted); line-height: 1.6;
  margin: 0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   QUIZ â€” Redesigned Results
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.quiz-section { background: var(--bg-primary); }
.quiz-cta-wrapper { text-align: center; max-width: 600px; margin: 0 auto; }
.quiz-cta-text { font-size: 16px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }

.quiz-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.quiz-overlay--visible { opacity: 1; pointer-events: all; }

.quiz-modal {
  width: 92%; max-width: 680px; max-height: 90vh;
  background: var(--bg-card); border-radius: 20px; overflow: hidden;
  position: relative; box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
}

.quiz-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  color: var(--text-muted); cursor: pointer; z-index: 5; padding: 8px;
  border-radius: 50%; font-size: 22px; line-height: 1; transition: all var(--transition);
}
.quiz-close:hover { color: var(--text-primary); background: var(--bg-secondary); }

.quiz-progress { padding: 20px 24px 0; }
.quiz-progress-bar { height: 4px; background: var(--bg-secondary); border-radius: 2px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: var(--accent-gold); border-radius: 2px; transition: width 0.4s ease; }
.quiz-progress-text { font-size: 12px; color: var(--text-muted); margin-top: 8px; text-align: right; }

.quiz-body { padding: 24px; overflow-y: auto; flex: 1; }
.quiz-question { position: relative; }
.quiz-question-title { font-size: 20px; font-weight: 600; margin-bottom: 24px; text-align: center; }

.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.quiz-option {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px; border-radius: 12px; border: 2px solid var(--border-subtle);
  background: var(--bg-secondary); cursor: pointer; transition: all var(--transition); text-align: center;
}
.quiz-option:hover { border-color: var(--accent-gold); transform: translateY(-2px); }
.quiz-option--selected { border-color: var(--accent-gold); background: rgba(212,168,83,0.1); box-shadow: 0 0 20px rgba(212,168,83,0.15); }
.quiz-option-icon { font-size: 32px; }
.quiz-option-label { font-size: 14px; font-weight: 500; color: var(--text-primary); }

.quiz-nav { display: flex; justify-content: space-between; padding: 16px 0 0; }
.quiz-btn {
  padding: 10px 24px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 500; transition: all var(--transition);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.quiz-btn--back { background: var(--bg-secondary); color: var(--text-secondary); }
.quiz-btn--primary { background: var(--accent-gold); color: #0a0a0f; }
.quiz-btn--secondary { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border-subtle); }

/* Quiz Results â€” Clean cards */
.quiz-results { padding: 8px 0; }
.quiz-results-title { font-size: 26px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.quiz-results-subtitle { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 24px; }

.quiz-results-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.quiz-result-card {
  display: flex; flex-direction: column;
  background: var(--bg-secondary); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-subtle); transition: all var(--transition);
  animation: quizCardFadeIn 0.5s ease both;
}
.quiz-result-card:hover { border-color: var(--accent-gold); transform: translateY(-2px); }

@keyframes quizCardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-result-rank {
  padding: 8px 16px; font-size: 12px; font-weight: 600;
  background: rgba(212,168,83,0.08); color: var(--accent-gold); text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.quiz-result-image {
  position: relative; width: 100%; height: 180px; overflow: hidden;
}
.quiz-result-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.quiz-result-pct {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: 10px; text-align: center;
}
.quiz-result-pct-number {
  display: block; font-size: 22px; font-weight: 700; color: var(--accent-gold); line-height: 1;
}
.quiz-result-pct-label {
  display: block; font-size: 10px; color: rgba(255,255,255,0.7); margin-top: 2px;
}

.quiz-result-body { padding: 16px 20px; }
.quiz-result-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); }
.quiz-result-price { font-size: 18px; font-weight: 700; color: var(--accent-gold); display: block; margin-bottom: 8px; }
.quiz-result-specs {
  display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px;
  color: var(--text-muted); margin-bottom: 12px;
}
.quiz-result-specs span { white-space: nowrap; }
.quiz-result-btn {
  display: inline-block; padding: 10px 20px; background: var(--accent-gold);
  color: #0a0a0f; border-radius: 8px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all var(--transition); text-align: center;
}
.quiz-result-btn:hover { background: #e8c97a; }

.quiz-results-actions { display: flex; gap: 12px; justify-content: center; }
.quiz-no-matches { text-align: center; padding: 40px; color: var(--text-muted); }

.quiz-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

/* Quiz animations */
.quiz-slide-active { opacity: 1; transform: translateX(0); }
.quiz-slide-enter-next { animation: quizSlideInRight 0.3s ease forwards; }
.quiz-slide-enter-prev { animation: quizSlideInLeft 0.3s ease forwards; }
.quiz-slide-exit-next { animation: quizSlideOutLeft 0.3s ease forwards; }
.quiz-slide-exit-prev { animation: quizSlideOutRight 0.3s ease forwards; }

@keyframes quizSlideInRight { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
@keyframes quizSlideInLeft { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0); } }
@keyframes quizSlideOutLeft { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(-40px); } }
@keyframes quizSlideOutRight { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(40px); } }

/* ── Neighborhood ── */
.nbh-loading { text-align: center; padding: 40px; color: var(--text-muted); }
.nbh-spinner { width: 40px; height: 40px; border: 3px solid var(--border-subtle); border-top-color: var(--accent-gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
.nbh-loading-text { font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

.nbh-root { }
.nbh-title { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 24px; }

.nbh-score-wrapper { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; }
.nbh-score-circle { position: relative; width: 140px; height: 140px; }
.nbh-score-svg { display: block; }
.nbh-score-arc { transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
.nbh-score-value { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; color: var(--accent-gold); }
.nbh-score-label { font-size: 14px; color: var(--text-secondary); margin-top: 8px; font-weight: 500; }

.nbh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.nbh-card { padding: 16px; background: var(--bg-secondary); border-radius: 12px; border: 1px solid var(--border-subtle); transition: all var(--transition); }
.nbh-card:hover { border-color: var(--accent-gold); transform: translateY(-2px); }
.nbh-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nbh-card-icon { font-size: 24px; flex-shrink: 0; }
.nbh-card-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.nbh-card-detail { font-size: 12px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbh-card-count { background: rgba(212,168,83,0.15); color: var(--accent-gold); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.nbh-error { text-align: center; padding: 40px; color: var(--text-muted); font-size: 14px; }

/* â”€â”€ Alert Section â”€â”€ */
.alert-section { background: var(--bg-secondary); }
.alert-desc { text-align: center; color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px; font-size: 16px; }
.alert-form { max-width: 800px; margin: 0 auto; }
.alert-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.alert-form .form-group label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.alert-form .form-group input,
.alert-form .form-group select { width: 100%; padding: 12px 16px; background: var(--bg-primary); border: 1px solid var(--border-subtle); border-radius: 10px; color: var(--text-primary); font-size: 14px; transition: border-color var(--transition); }
.alert-form .form-group input:focus,
.alert-form .form-group select:focus { border-color: var(--accent-gold); outline: none; }
.alert-form .btn { display: flex; align-items: center; gap: 8px; margin: 0 auto; }
.alert-success { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px; text-align: center; color: var(--accent-gold); }
.alert-success h3 { font-size: 22px; }
.alert-success p { color: var(--text-secondary); }

/* â”€â”€ Misc â”€â”€ */
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-secondary); padding: 12px 0; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent-gold, #d4a853); }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 768px) {
  .nbh-grid { grid-template-columns: 1fr 1fr; }
  .nbh-score-wrapper { margin-bottom: 20px; }
  .nbh-score-circle { width: 100px; height: 100px; }
  .nbh-score-value { font-size: 28px; }

  .calc-tabs { flex-direction: column; }
  .calc-highlight-row { flex-direction: column; }
  .calc-highlight-arrow { transform: rotate(90deg); }
  .calc-info-grid { grid-template-columns: 1fr; }
  .calc-info-3col { grid-template-columns: 1fr; }
  .calc-vs-row { flex-direction: column; }
  .calc-vs-sep { transform: rotate(90deg); }
  .calc-simple-bar-year { width: 60px; font-size: 12px; }
  .calc-simple-bar-gain { width: 45px; font-size: 12px; }

  .quiz-modal { width: 96%; max-height: 95vh; }
  .quiz-options { grid-template-columns: repeat(2, 1fr); }
  .quiz-result-image { height: 150px; }
  .quiz-results-actions { flex-direction: column; align-items: stretch; }

  .alert-form-grid { grid-template-columns: 1fr; }
}

