:root {
  --gold: #EBB548;
  --gold-light: #f5d07a;
  --gold-dark: #c99a2e;
  --gold-featured: #D4A017;
  --navy: #102948;
  --navy-light: #1a3a5c;
  --navy-dark: #0a1a2e;
  --white: #ffffff;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.35);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--navy-dark); color: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.75rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; transition: var(--transition); }
.btn-primary { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(235,181,72,0.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-gold { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy-dark); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-whatsapp { background: #25D366; color: white; border-color: #25D366; padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn-whatsapp:hover { background: #1ebe57; }
.btn-whatsapp-lg { background: #25D366; color: white; border-color: #25D366; padding: 0.9rem 1.5rem; }
.btn-whatsapp-lg:hover { background: #1ebe57; transform: translateY(-2px); }
.btn-whatsapp-card { background: #25D366; color: white; border-color: #25D366; }
.btn-whatsapp-card:hover { background: #1ebe57; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.82rem; }
.btn-full { width: 100%; }
.btn-icon { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--white); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.btn-icon:hover { border-color: var(--gold); color: var(--gold); }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 3000; background: var(--navy); border-top: 1px solid rgba(235,181,72,0.25); padding: 1.15rem 1.5rem; transform: translateY(100%); transition: transform 0.4s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-content { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cookie-content p { font-size: 0.9rem; color: rgba(255,255,255,0.75); flex: 1; min-width: 240px; }
.cookie-content a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(10,26,46,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(235,181,72,0.12); transition: var(--transition); }
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.35); }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 0.75rem; }
.logo-img { height: 56px; width: auto; object-fit: contain; transition: transform 0.3s; }
.logo:hover .logo-img { transform: scale(1.05); }
.nav { display: flex; align-items: center; gap: 1rem; flex: 1; justify-content: center; min-width: 0; }
.nav-list { display: flex; gap: 0.1rem; flex-wrap: nowrap; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.75); padding: 0.5rem 0.85rem; border-radius: 50px; position: relative; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(235,181,72,0.1); }
.nav-search { display: flex; }
.nav-search-form { display: flex; align-items: center; background: var(--navy-dark); border: 1px solid rgba(255,255,255,0.12); border-radius: 50px; overflow: hidden; transition: var(--transition); }
.nav-search-form:focus-within { border-color: var(--gold); }
.nav-search-form input { background: transparent; border: none; outline: none; color: var(--white); padding: 0.5rem 0.85rem; width: 160px; font-size: 0.85rem; }
.nav-search-form button { background: transparent; border: none; color: var(--gold); padding: 0.5rem 0.85rem; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 0.65rem; }
.search-toggle { display: none; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--white); }
.mobile-search { display: none; padding: 0 1.5rem 1rem; }
.mobile-search.open { display: block; }
.mobile-search .nav-search-form { width: 100%; }
.mobile-search input { width: 100%; }

/* Hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; padding-top: 88px; background: linear-gradient(160deg, rgba(10,26,46,0.94) 0%, rgba(16,41,72,0.88) 45%, rgba(10,26,46,0.95) 100%), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80') center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(235,181,72,0.1) 0%, transparent 50%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; padding: 2.5rem 1.5rem 3.5rem; text-align: center; max-width: 900px; margin: 0 auto; overflow: hidden; }
.hero-logo-wrap { margin-bottom: 1.75rem; }
.hero-logo { height: 360px; width: auto; max-width: min(520px, 86vw); max-height: 42vh; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 8px 28px rgba(235,181,72,0.45)); animation: logoFloat 4s ease-in-out infinite; }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-subtitle { font-size: 0.85rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.85rem; }
.hero-title { font-family: var(--font-serif); font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 600; line-height: 1.22; margin-bottom: 1rem; }
.hero-description { font-size: 1.08rem; color: rgba(255,255,255,0.72); margin-bottom: 1.85rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Search strip */
.search-section { margin-top: -32px; position: relative; z-index: 10; padding: 0 0 2rem; }
.search-form { display: grid; grid-template-columns: 1fr 1fr 1.5fr auto; gap: 1rem; background: var(--navy); border: 1px solid rgba(235,181,72,0.22); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-lg); }
.search-group { display: flex; flex-direction: column; gap: 0.3rem; }
.search-group label { font-size: 0.75rem; font-weight: 500; color: var(--gold); display: flex; align-items: center; gap: 0.3rem; }
.search-group select, .search-group input { background: var(--navy-dark); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 0.7rem 0.95rem; color: var(--white); outline: none; }
.search-group select:focus, .search-group input:focus { border-color: var(--gold); }
.search-group select option { background: var(--navy); }

/* Sections */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header-left { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; flex-wrap: wrap; gap: 1.25rem; }
.section-tag { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.section-title { font-family: var(--font-serif); font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 600; margin-bottom: 0.4rem; }
.section-subtitle { font-size: 1rem; color: rgba(255,255,255,0.55); }
.filter-tabs { display: flex; gap: 0.45rem; }
.filter-tab { background: transparent; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.65); padding: 0.45rem 1.05rem; border-radius: 50px; font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: var(--transition); }
.filter-tab:hover { border-color: var(--gold); color: var(--gold); }
.filter-tab.active { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }

/* Properties */
.properties { padding: 4rem 0 4.5rem; background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%); }
.properties-novos { background: var(--navy-dark); padding-bottom: 2rem; }
.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.property-card { background: var(--navy-dark); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.property-card:hover { transform: translateY(-5px); border-color: rgba(235,181,72,0.3); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.property-image { position: relative; height: 230px; overflow: hidden; background: #0a0a0a; }
.property-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.5s; }
.property-card:hover .property-image img { transform: scale(1.04); }
.property-badge { position: absolute; top: 0.85rem; left: 0.85rem; background: var(--gold); color: var(--navy-dark); font-size: 0.7rem; font-weight: 700; padding: 0.3rem 0.65rem; border-radius: 50px; text-transform: uppercase; }
.property-badge.rent { background: #25D366; color: white; }
.property-badge.featured { background: linear-gradient(135deg, #D4A017, #F0C040); color: #1a1200; display: inline-flex; align-items: center; gap: 0.25rem; box-shadow: 0 2px 10px rgba(212,160,23,0.4); }
.property-badge-new { position: absolute; top: 0.85rem; right: 0.85rem; background: #3b82f6; color: white; font-size: 0.68rem; font-weight: 700; padding: 0.28rem 0.6rem; border-radius: 50px; text-transform: uppercase; }
.property-price { position: absolute; bottom: 0.85rem; right: 0.85rem; background: rgba(10,26,46,0.9); color: var(--gold); font-weight: 700; font-size: 1rem; padding: 0.4rem 0.85rem; border-radius: var(--radius-sm); }
.property-body { padding: 1.25rem; }
.property-title { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 0.35rem; transition: color 0.2s; }
.property-title-link:hover .property-title { color: var(--gold); }
.property-location { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.3rem; }
.property-features { display: flex; gap: 1rem; font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-bottom: 1rem; flex-wrap: wrap; }
.property-features i { color: var(--gold); }
.property-actions { display: flex; gap: 0.5rem; }
.property-actions .btn { flex: 1; justify-content: center; }
.properties-cta { text-align: center; }
.cta-text { color: rgba(255,255,255,0.5); margin-bottom: 1.15rem; }

/* Perfil */
.perfil { padding: 5rem 0; background: var(--navy); }
.perfil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.perfil-card { background: var(--navy-dark); border: 1px solid rgba(235,181,72,0.15); border-radius: var(--radius); padding: 1.85rem; transition: var(--transition); }
.perfil-card:hover { border-color: rgba(235,181,72,0.35); transform: translateY(-3px); }
.perfil-header { display: flex; gap: 1.15rem; margin-bottom: 1rem; }
.perfil-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-light), var(--navy-dark)); border: 2.5px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--gold); flex-shrink: 0; }
.perfil-identity h3 { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 0.2rem; }
.perfil-creci { font-size: 0.82rem; color: var(--gold); margin-bottom: 0.4rem; }
.perfil-rating { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.perfil-rating .stars { color: var(--gold); letter-spacing: 1px; }
.rating-value { font-weight: 700; color: var(--gold); }
.rating-count { color: rgba(255,255,255,0.45); font-size: 0.8rem; }
.perfil-bio { font-size: 0.92rem; color: rgba(255,255,255,0.65); margin-bottom: 1.15rem; line-height: 1.65; }
.perfil-stats { display: flex; gap: 1.5rem; margin-bottom: 1.15rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.perfil-stat { text-align: center; }
.perfil-stat strong { display: block; font-size: 1.15rem; color: var(--gold); }
.perfil-stat span { font-size: 0.75rem; color: rgba(255,255,255,0.45); }
.perfil-specialties { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.15rem; }
.specialty-tag { background: rgba(235,181,72,0.12); color: var(--gold); font-size: 0.75rem; padding: 0.25rem 0.65rem; border-radius: 50px; border: 1px solid rgba(235,181,72,0.2); }
.perfil-contacts { margin-bottom: 1.15rem; }
.perfil-contact { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.45rem; }
.perfil-contact i { color: var(--gold); width: 16px; }
.perfil-actions { display: flex; gap: 0.6rem; }

/* About & Services */
.about { padding: 4.5rem 0; background: var(--navy-dark); }
.about-mission { background: linear-gradient(135deg, rgba(235,181,72,0.08), rgba(16,41,72,0.4)); border: 1px solid rgba(235,181,72,0.18); border-radius: var(--radius); padding: 2.25rem; text-align: center; }
.about-mission h3 { font-family: var(--font-serif); font-size: 1.35rem; color: var(--gold); margin-bottom: 0.75rem; }
.about-mission p { max-width: 680px; margin: 0 auto; color: rgba(255,255,255,0.7); }
.services { padding: 4.5rem 0; background: var(--navy); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-card { background: var(--navy-dark); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius); padding: 1.65rem 1.25rem; text-align: center; transition: var(--transition); }
.service-card:hover { border-color: rgba(235,181,72,0.28); transform: translateY(-3px); }
.service-icon { width: 54px; height: 54px; margin: 0 auto 1rem; background: rgba(235,181,72,0.1); border: 1px solid rgba(235,181,72,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--gold); }
.service-card h3 { font-family: var(--font-serif); font-size: 1.08rem; margin-bottom: 0.55rem; }
.service-card p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* CTA */
.cta-section { padding: 4rem 0; background: linear-gradient(135deg, rgba(16,41,72,0.95), rgba(10,26,46,0.97)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600&q=80') center/cover; text-align: center; }
.cta-content h2 { font-family: var(--font-serif); font-size: clamp(1.65rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
.cta-content p { color: rgba(255,255,255,0.65); margin-bottom: 1.65rem; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* Contact */
.contact { padding: 5rem 0; background: var(--navy-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.35rem; }
.contact-item { display: flex; gap: 1rem; }
.contact-icon { width: 44px; height: 44px; background: rgba(235,181,72,0.1); border: 1px solid rgba(235,181,72,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.contact-item h4 { font-size: 0.92rem; margin-bottom: 0.15rem; }
.contact-item p, .contact-item a { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.contact-item a:hover { color: var(--gold); }
.contact-form { background: var(--navy); border: 1px solid rgba(235,181,72,0.12); border-radius: var(--radius); padding: 1.75rem; }
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.6); margin-bottom: 0.3rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--navy-dark); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 0.75rem 0.95rem; color: var(--white); outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 95px; }
.form-check { display: flex; align-items: flex-start; gap: 0.55rem; margin-bottom: 1.15rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.form-check input { margin-top: 0.2rem; accent-color: var(--gold); }
.form-check a { color: var(--gold); text-decoration: underline; }

/* Footer */
.footer { background: #060f1a; border-top: 1px solid rgba(235,181,72,0.12); padding: 3rem 0 0; }
.footer-grid-simple { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { height: 58px; width: auto; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.45); max-width: 280px; }
.footer-contact h4, .footer-legal h4 { font-size: 0.92rem; color: var(--gold); margin-bottom: 0.9rem; }
.footer-contact ul, .footer-legal ul { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-contact li, .footer-legal a { font-size: 0.9rem; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 0.45rem; }
.footer-contact i { color: var(--gold); }
.footer-legal a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 1.25rem 0; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* Property Detail */
.property-detail { padding: 100px 0 3.5rem; min-height: 80vh; }
.back-link { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--gold); font-size: 0.9rem; font-weight: 500; margin-bottom: 1.5rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.25rem; }
.detail-gallery { position: sticky; top: 100px; min-width: 0; max-width: 100%; overflow: hidden; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 0.75rem; background: #000; }
.gallery-main img { display: block; }
.gallery-thumbs { display: flex; gap: 0.5rem; overflow-x: auto; }
.gallery-thumb { flex-shrink: 0; width: 85px; height: 64px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: 0.65; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--gold); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-new { left: auto; right: 0.85rem; top: 0.85rem; }
.detail-header { margin-bottom: 1.25rem; }
.detail-type { font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.detail-header h1 { font-family: var(--font-serif); font-size: 1.75rem; margin: 0.35rem 0 0.4rem; }
.detail-location { font-size: 0.92rem; color: rgba(255,255,255,0.5); margin-bottom: 0.65rem; }
.detail-price { font-size: 1.65rem; font-weight: 700; color: var(--gold); }
.detail-stats { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding: 1.1rem 0; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
.detail-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 4.5rem;
  text-align: center;
}
.detail-stat i { color: var(--gold); font-size: 1.15rem; line-height: 1; }
.detail-stat strong { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.2; color: #fff; }
.detail-stat span { display: block; font-size: 0.72rem; font-weight: 500; color: rgba(255,255,255,0.55); line-height: 1.2; }
.detail-description, .detail-features { margin-bottom: 1.5rem; }
.detail-description h3, .detail-features h3 { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 0.65rem; }
.detail-description p { color: rgba(255,255,255,0.68); line-height: 1.7; }
.detail-features ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.detail-features li { font-size: 0.9rem; color: rgba(255,255,255,0.68); display: flex; align-items: center; gap: 0.4rem; }
.detail-features li i { color: var(--gold); font-size: 0.75rem; }
.detail-agent { display: flex; gap: 1rem; padding: 1.1rem; background: var(--navy); border: 1px solid rgba(235,181,72,0.15); border-radius: var(--radius); margin-bottom: 1.35rem; }
.agent-avatar { width: 48px; height: 48px; border-radius: 50%; background: rgba(235,181,72,0.12); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.agent-info-detail strong { display: block; }
.agent-info-detail > span { font-size: 0.82rem; color: var(--gold); }
.agent-mini-rating { font-size: 0.8rem; color: var(--gold); margin-top: 0.25rem; }
.agent-mini-contacts { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 0.35rem; display: flex; flex-direction: column; gap: 0.15rem; }
.detail-actions-row { display: flex; gap: 0.75rem; }
.detail-actions-row .btn { flex: 1; }
.detail-not-found { text-align: center; padding: 4rem 1rem; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: var(--navy); border: 1px solid rgba(235,181,72,0.2); border-radius: var(--radius); padding: 1.85rem; width: 100%; max-width: 420px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-terms { max-width: 560px; }
.modal-close { position: absolute; top: 0.9rem; right: 1rem; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.45rem; cursor: pointer; }
.modal-title { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 0.3rem; }
.modal-subtitle { font-size: 0.88rem; color: var(--gold); margin-bottom: 1.35rem; }
.terms-body { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 1.35rem; max-height: 50vh; overflow-y: auto; }
.terms-body h4 { color: var(--gold); margin: 1rem 0 0.4rem; font-size: 0.95rem; }
.terms-body p { margin-bottom: 0.5rem; line-height: 1.6; }

/* Chat */
.chat-bubble { position: fixed; bottom: 28px; right: 28px; z-index: 1500; cursor: grab; }
.chat-bubble.hidden { display: none; }
.chat-bubble.dragging { cursor: grabbing; }
.chat-bubble-btn { width: 58px; height: 58px; border-radius: 50%; background: var(--navy); border: 2px solid var(--gold); color: var(--white); font-size: 1.4rem; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.4); position: relative; transition: var(--transition); }
.chat-bubble-btn:hover { background: var(--navy-light); transform: scale(1.08); }
.chat-badge { position: absolute; top: -4px; right: -4px; background: var(--gold); color: var(--navy-dark); font-size: 0.68rem; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.chat-panel { position: fixed; bottom: 100px; right: 28px; width: 350px; max-height: 460px; background: var(--navy); border: 1px solid rgba(235,181,72,0.25); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 1499; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--transition); }
.chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 0.95rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.chat-panel-header h3 { font-size: 0.95rem; display: flex; align-items: center; gap: 0.45rem; }
.chat-panel-header h3 i { color: var(--gold); }
.chat-close { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.35rem; cursor: pointer; }
.chat-list { overflow-y: auto; flex: 1; max-height: 360px; }
.chat-list-item { display: flex; align-items: center; gap: 0.8rem; width: 100%; padding: 0.85rem 1.1rem; background: none; border: none; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--white); cursor: pointer; text-align: left; }
.chat-list-item:hover { background: rgba(235,181,72,0.08); }
.chat-list-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(235,181,72,0.12); display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.chat-list-info { flex: 1; min-width: 0; }
.chat-list-info strong { display: block; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list-info span { font-size: 0.75rem; color: rgba(255,255,255,0.45); }
.chat-active { display: flex; flex-direction: column; flex: 1; max-height: 400px; }
.chat-active-header { display: flex; align-items: center; gap: 0.65rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.chat-back { background: none; border: none; color: var(--gold); cursor: pointer; }
.chat-active-info strong { display: block; font-size: 0.88rem; }
.chat-active-info span { font-size: 0.72rem; color: rgba(255,255,255,0.45); }
.chat-messages { flex: 1; overflow-y: auto; padding: 0.95rem; display: flex; flex-direction: column; gap: 0.65rem; min-height: 180px; max-height: 260px; }
.chat-msg { display: flex; flex-direction: column; max-width: 85%; }
.chat-msg.user { align-self: flex-end; align-items: flex-end; }
.chat-msg.agent { align-self: flex-start; }
.chat-msg-bubble { padding: 0.6rem 0.85rem; border-radius: 14px; font-size: 0.85rem; line-height: 1.4; }
.chat-msg.user .chat-msg-bubble { background: var(--gold); color: var(--navy-dark); border-bottom-right-radius: 4px; }
.chat-msg.agent .chat-msg-bubble { background: var(--navy-light); border-bottom-left-radius: 4px; }
.chat-msg-time { font-size: 0.65rem; color: rgba(255,255,255,0.3); margin-top: 0.15rem; }
.chat-send-form { display: flex; gap: 0.45rem; padding: 0.7rem 0.95rem; border-top: 1px solid rgba(255,255,255,0.08); }
.chat-send-form input { flex: 1; background: var(--navy-dark); border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; padding: 0.55rem 0.95rem; color: var(--white); outline: none; }
.chat-send-form button { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); border: none; color: var(--navy-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Responsive */
@media (max-width: 1024px) {
  .nav-search { display: none; }
  .search-toggle { display: flex; }
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .search-form { grid-template-columns: 1fr 1fr; }
  .search-form .btn-search { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-gallery { position: static; }
  .perfil-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { position: fixed; top: 88px; left: 0; right: 0; background: var(--navy-dark); border-bottom: 1px solid rgba(235,181,72,0.12); padding: 1.25rem; flex-direction: column; transform: translateY(-150%); opacity: 0; pointer-events: none; transition: var(--transition); }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-list { flex-direction: column; gap: 0.35rem; width: 100%; text-align: center; }
  .menu-toggle { display: flex; }
  .header-actions .btn-whatsapp span { display: none; }
  .properties-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid-simple { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 0 auto; }
  .footer-contact li { justify-content: center; }
  .search-form { grid-template-columns: 1fr; }
  .section-header-left { flex-direction: column; align-items: flex-start; }
  .chat-panel { width: calc(100vw - 24px); right: 12px; bottom: 90px; }
  .detail-actions-row { flex-direction: column; }
  .hero-logo { height: 140px; }
  .cookie-content { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .property-actions { flex-direction: column; }
}

/* ===== Official updates ===== */
.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  margin-right: 0.85rem;
  max-width: 260px;
}
.logo-img {
  height: 70px !important;
  width: auto;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2px;
  line-height: 1.2;
  max-width: 150px;
}
@media (max-width: 900px) {
  .logo-text { display: none; }
}

.header-actions {
  margin-left: auto;
  padding-left: 1rem;
}

/* Nav hover effect */
.nav-link {
  position: relative;
  overflow: hidden;
}
.nav-link::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::before,
.nav-link.active::before {
  width: 70%;
}
.nav-link:hover {
  color: var(--gold);
  background: rgba(235,181,72,0.08);
  transform: translateY(-1px);
}

/* Hero lighter */
.hero {
  background:
    linear-gradient(160deg, rgba(10,26,46,0.72) 0%, rgba(16,41,72,0.65) 45%, rgba(10,26,46,0.78) 100%),
    url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80') center/cover no-repeat !important;
}

/* Slightly larger property cards */
.property-image { height: 230px !important; }
.property-body { padding: 1.4rem 1.35rem !important; }
.property-title { font-size: 1.18rem !important; }
.properties-grid { gap: 1.75rem !important; }

/* Favorite button */
.btn-fav {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  top: auto;
  right: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10,26,46,0.42);
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
}
.btn-fav:hover, .btn-fav.active {
  background: rgba(235,181,72,0.95);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-fav.active i { font-weight: 900; }
.property-badge-new { right: 3.2rem !important; }

/* Filter button */
.filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--navy-dark);
  border: 1px solid rgba(235,181,72,0.35);
  color: var(--gold);
  padding: 0.55rem 1.15rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-trigger:hover {
  background: rgba(235,181,72,0.12);
  box-shadow: 0 4px 16px rgba(235,181,72,0.2);
}
.filter-panel {
  display: none;
  background: var(--navy);
  border: 1px solid rgba(235,181,72,0.2);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-bottom: 1.75rem;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.filter-panel.open { display: grid; }
.filter-panel .search-group label { margin-bottom: 0.35rem; }
.filter-panel-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Contact dual options */
.contact-choice {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.contact-choice .btn { width: 100%; }

/* Video player */
.video-player-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  margin-bottom: 0.85rem;
}
.video-player-wrap video {
  width: 100%;
  max-height: 420px;
  display: block;
  background: #000;
}
.vp-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 1.5rem 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.video-player-wrap:hover .vp-controls,
.video-player-wrap.playing .vp-controls { opacity: 1; }
.vp-progress {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.25);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.vp-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  width: 0%;
}
.vp-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: white;
  font-size: 0.85rem;
}
.vp-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  transition: color 0.2s;
}
.vp-btn:hover { color: var(--gold); }
.vp-time { font-size: 0.78rem; opacity: 0.85; min-width: 90px; }
.vp-spacer { flex: 1; }
.vp-quality {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.gallery-media-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.gallery-media-tabs button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  cursor: pointer;
}
.gallery-media-tabs button.active {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

@media (max-width: 768px) {
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .logo-img { height: 58px !important; }
}

/* ===== Gallery & Detail fixes ===== */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}
.detail-gallery,
.gallery-main-wrap,
.gallery-strips,
.gallery-strip,
.gallery-thumbs {
  min-width: 0;
  max-width: 100%;
}
.detail-info {
  min-width: 0;
  overflow-wrap: break-word;
}
.detail-description p {
  white-space: pre-wrap;
  word-break: break-word;
}
.detail-features ul {
  grid-template-columns: 1fr 1fr;
}

.gallery-main-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(16,41,72,0.92);
  border: 1px solid rgba(235,181,72,0.45);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-prev { left: 0.55rem; }
.gallery-next { right: 0.55rem; }
.gallery-main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: none;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.gallery-main img,
.gallery-main #gallery-main-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  cursor: zoom-in;
  background: #000;
  display: block;
  margin: 0;
}
.gallery-nav {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(16,41,72,0.9);
  border: 1px solid rgba(235,181,72,0.35);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 5;
}
.gallery-nav:hover {
  background: var(--gold);
  color: var(--navy-dark);
}
.gallery-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.75);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  z-index: 4;
}
.btn-fav-detail {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.28);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
  font-size: 1.1rem;
}
.btn-fav-detail:hover { background: rgba(220,38,38,0.85); border-color: #dc2626; }
.btn-fav-detail.active {
  background: #dc2626;
  border-color: #dc2626;
  color: white;
}

/* Strips */
.gallery-strips { margin-top: 0.85rem; display: flex; flex-direction: column; gap: 0.65rem; }
.gallery-strip {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.strip-icon {
  flex-shrink: 0;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(235,181,72,0.12);
  border: 1px solid rgba(235,181,72,0.25);
  border-radius: 8px;
  color: var(--gold);
  font-size: 0.95rem;
}
.gallery-thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.gallery-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 66px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: transform 0.25s ease, opacity 0.25s, border-color 0.25s, box-shadow 0.25s;
  background: #111;
  padding: 0;
  position: relative;
}
.gallery-thumb img,
.gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb:hover {
  opacity: 1;
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(235,181,72,0.3);
  border-color: rgba(235,181,72,0.5);
}
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.video-thumb .thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: white;
  font-size: 1.1rem;
  z-index: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  width: auto !important;
  height: auto !important;
  max-width: min(860px, 90vw) !important;
  max-height: 80vh !important;
  object-fit: contain !important;
  border-radius: 4px;
}
.lb-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.lb-nav:hover { background: rgba(235,181,72,0.85); color: #0a1a2e; }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }
.lb-bottom {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lb-counter {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(0,0,0,0.5);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}
.lb-nav-center { display: flex; gap: 1rem; }
.lb-nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lb-nav-btn:hover { background: var(--gold); color: #0a1a2e; }

/* Card fav - red when active */
.btn-fav.active {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: white !important;
}
.btn-fav.active:hover { background: #b91c1c !important; }

/* Header social */
.btn-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 1.05rem;
  transition: var(--transition);
  cursor: default;
}
.btn-social.facebook { background: #1877F2; color: white; }
.btn-social.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}
.btn-social:hover { transform: translateY(-2px); opacity: 0.9; }

/* Hero logo center large */
.hero-logo-wrap { margin-bottom: 1.5rem; }
.hero-logo {
  height: 360px !important;
  width: auto;
  max-width: min(520px, 86vw);
  max-height: 42vh;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 28px rgba(235,181,72,0.45));
}
.hero-subtitle { margin-top: 0.5rem; font-size: 0.82rem; }

/* Favorites section */
.favorites-section {
  padding: 4rem 0;
  background: var(--navy-dark);
  border-top: 1px solid rgba(235,181,72,0.1);
}
.favorites-empty {
  text-align: center;
  padding: 2.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
}

.agent-role {
  display: block;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin: 0.15rem 0;
}

@media (max-width: 1024px) {
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .gallery-nav { width: 36px; height: 36px; }
  .hero-logo { height: 220px !important; max-height: 32vh; }
  .lb-nav { display: none; }
}

.gallery-main-wrap {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.gallery-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 6 !important;
}
.gallery-nav.gallery-prev { left: 0.55rem; position: absolute; }
.gallery-nav.gallery-next { right: 0.55rem; position: absolute; }
.gallery-main,
.gallery-main-wrap .gallery-main {
  position: relative !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  background: #000 !important;
  display: block !important;
}
.gallery-main img,
#gallery-main-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}
.property-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
}

.gallery-video {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 3;
}
.gallery-video[hidden] { display: none !important; }
.gallery-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
  display: block;
}
.gallery-video .vp-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
  padding: 1.4rem 0.85rem 0.7rem;
}
.gallery-main:has(.gallery-video:not([hidden])) .gallery-counter,
.gallery-main:has(.gallery-video:not([hidden])) .btn-fav-detail {
  z-index: 4;
}
@media (max-width: 1024px) {
  .gallery-main,
  .gallery-main-wrap .gallery-main { height: auto !important; max-height: none !important; }
  #gallery-main-img { max-height: none !important; }
}
@media (max-width: 768px) {
  .gallery-main,
  .gallery-main-wrap .gallery-main { height: auto !important; max-height: none !important; }
  #gallery-main-img { max-height: none !important; }
}




/* Property extras */
.detail-kicker { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.detail-code {
  font-size: 0.75rem;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
}
.detail-share { display: flex; gap: 0.5rem; margin: 0 0 1.35rem; }
.share-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  cursor: pointer;
}
.share-btn:hover { border-color: var(--gold); color: var(--gold); }
.detail-map-section { margin-top: 2.5rem; }
.detail-map-section h3 { font-family: var(--font-serif); margin-bottom: 0.35rem; }
.detail-map-section p { color: rgba(255,255,255,0.55); margin-bottom: 0.85rem; font-size: 0.92rem; }
.detail-map { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.08); height: 280px; }
.detail-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.2) contrast(1.05); }
.detail-similar { margin-top: 2.75rem; }
.detail-similar h3 { font-family: var(--font-serif); margin-bottom: 1rem; }
#detail-content { display: block; }

/* ===== Combined layout: large hero + separated header brand ===== */
.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 84px;
  gap: 2.25rem;
  max-width: 1360px;
}
.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 0 0 auto;
  flex-shrink: 0;
  max-width: none;
  margin-right: 0;
  padding-right: 2.25rem;
  border-right: 1px solid rgba(235, 181, 72, 0.4);
}
.logo-img {
  height: 54px !important;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
  max-width: none;
  line-height: 1.15;
  font-family: var(--font-serif);
  color: var(--gold);
}
.logo-text-main {
  font-size: 0.98rem;
  font-weight: 600;
}
.logo-text-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
  margin-left: 0.25rem;
}
.header-actions {
  margin-left: auto;
  flex: 0 0 auto;
  padding-left: 1rem;
}

.hero-content {
  max-width: none;
  width: 100%;
  overflow: visible;
  padding: 1.4rem 1.5rem 2.6rem;
}
.hero-logo-wrap {
  width: min(1180px, 94vw);
  margin: 0 auto 0.7rem;
}
.hero-logo,
.hero .hero-logo {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: min(56vh, 560px) !important;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
  animation: none;
}
@media (max-width: 1100px) {
  .nav-search { display: none; }
  .search-toggle { display: flex; }
  .logo-brand { padding-right: 1.5rem; }
  .header-container { gap: 1.25rem; }
}
@media (max-width: 900px) {
  .logo-text { display: none; }
  .logo-brand { padding-right: 0; border-right: none; margin-right: 0; }
  .hero-logo, .hero .hero-logo { max-height: min(36vh, 280px) !important; }
}
@media (max-width: 640px) {
  .hero-logo, .hero .hero-logo { max-height: min(28vh, 200px) !important; }
}
/* Preferences: language + theme */
.prefs-actions{display:flex;gap:.45rem;align-items:center}.pref-top-btn{height:40px;min-width:40px;padding:0 .7rem;border:1px solid rgba(212,175,55,.45);border-radius:10px;background:rgba(255,255,255,.05);color:var(--white);display:flex;align-items:center;justify-content:center;gap:.35rem;cursor:pointer;transition:.2s}.pref-top-btn:hover{border-color:var(--gold);background:rgba(212,175,55,.12)}.settings-card{max-width:480px}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.1rem 0;border-bottom:1px solid rgba(255,255,255,.1)}.settings-row:last-child{border:0}.settings-row div{display:flex;flex-direction:column}.settings-row small{opacity:.65}.settings-row select{min-width:145px;padding:.7rem;border-radius:9px;background:var(--navy-dark);color:var(--white);border:1px solid rgba(212,175,55,.4)}
html[data-theme="light"] body{background:#f6f4ef;color:#182233}html[data-theme="light"] .header{background:rgba(255,255,255,.96)!important;border-color:#ded8ca!important}html[data-theme="light"] .nav-link,html[data-theme="light"] .logo-text-main,html[data-theme="light"] .logo-text-sub,html[data-theme="light"] .pref-top-btn{color:#172234!important}html[data-theme="light"] .pref-top-btn{background:#fff}html[data-theme="light"] .properties,html[data-theme="light"] .property-detail,html[data-theme="light"] .detail-map-section,html[data-theme="light"] .detail-similar{background:#f6f4ef!important;color:#182233}html[data-theme="light"] .property-card,html[data-theme="light"] .detail-info,html[data-theme="light"] .detail-gallery,html[data-theme="light"] .modal,html[data-theme="light"] .simulator-card{background:#fff!important;color:#182233!important;box-shadow:0 10px 35px rgba(20,30,45,.1)}html[data-theme="light"] .section-title,html[data-theme="light"] .detail-info h1,html[data-theme="light"] .detail-description h3,html[data-theme="light"] .detail-features h3,html[data-theme="light"] .modal-title{color:#182233!important}html[data-theme="light"] .settings-row select,html[data-theme="light"] .sim-field input,html[data-theme="light"] .sim-field select{background:#fff;color:#182233;border-color:#d7d0c1}html[data-theme="light"] .terms-body{color:#475569}
/* Property financial simulator */
.simulator-section{margin:2.2rem 0}.simulator-card{background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.025));border:1px solid rgba(212,175,55,.24);border-radius:18px;padding:1.6rem}.simulator-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1.25rem}.simulator-head h3{margin:0;color:var(--gold);font-size:1.35rem}.simulator-head p{margin:.25rem 0 0;opacity:.72;font-size:.9rem}.sim-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.sim-field{display:flex;flex-direction:column;gap:.4rem}.sim-field label{font-size:.82rem;font-weight:600;opacity:.8}.sim-field input,.sim-field select{width:100%;padding:.78rem .85rem;border-radius:9px;border:1px solid rgba(255,255,255,.16);background:rgba(0,0,0,.16);color:var(--white);font:inherit}.sim-actions{margin-top:1rem;display:flex;align-items:center;gap:1rem}.sim-results{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin-top:1.3rem}.sim-result{padding:1rem;border-radius:12px;background:rgba(212,175,55,.08);border:1px solid rgba(212,175,55,.16)}.sim-result small{display:block;opacity:.65;margin-bottom:.2rem}.sim-result strong{font-size:1.12rem;color:var(--gold)}.sim-disclaimer{font-size:.76rem;opacity:.6;margin:1rem 0 0}.btn-simulate{border:1px solid var(--gold)!important;color:var(--gold)!important;background:transparent!important}.btn-simulate:hover{background:var(--gold)!important;color:#111!important}@media(max-width:900px){.sim-grid{grid-template-columns:1fr 1fr}.sim-results{grid-template-columns:1fr 1fr}}@media(max-width:600px){.prefs-actions{gap:.25rem}.pref-top-btn{padding:0 .5rem}.sim-grid,.sim-results{grid-template-columns:1fr}.simulator-card{padding:1.1rem}.settings-row{align-items:flex-start;flex-direction:column}.settings-row select{width:100%}}


/* ===== Ajustes 16/09/2026 ===== */
/* Evita sobreposição entre busca, preferências e botões sociais no cabeçalho. */
@media (max-width: 1500px) {
  .header .nav-search { display: none !important; }
  .header .search-toggle { display: flex !important; }
}
.header-container { column-gap: .8rem; }
.header-actions { display:flex; align-items:center; gap:.65rem; min-width:max-content; }
.prefs-actions { flex:0 0 auto; }
.pref-top-btn.pref-disabled { opacity:.48; cursor:not-allowed; filter:grayscale(.35); }
.pref-top-btn.pref-disabled:hover { border-color:rgba(212,175,55,.45); background:rgba(255,255,255,.05); }

/* Logo principal: mantém presença sem ocupar quase toda a área do banner. */
.hero-logo-wrap { width:min(860px, 72vw) !important; margin:0 auto .9rem !important; }
.hero-logo, .hero .hero-logo { width:100% !important; max-width:860px !important; max-height:360px !important; height:auto !important; }
@media (max-width:900px){ .hero-logo-wrap{width:min(680px,84vw)!important}.hero-logo,.hero .hero-logo{max-height:280px!important} }
@media (max-width:640px){ .hero-logo-wrap{width:88vw!important}.hero-logo,.hero .hero-logo{max-height:200px!important} }

/* Simulador: as caixas nunca ultrapassam a borda do cartão. */
.simulator-card { min-width:0; overflow:hidden; }
.sim-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.sim-results { grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
.sim-result { min-width:0; overflow:hidden; }
.sim-result small,.sim-result strong { overflow-wrap:anywhere; word-break:normal; }
.sim-result strong { display:block; font-size:1.05rem; line-height:1.25; }
@media (min-width:1200px){ .sim-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sim-results{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:600px){ .sim-grid,.sim-results{grid-template-columns:1fr} }

/* Configurações ainda em desenvolvimento. */
.settings-disabled { opacity:.72; }
.settings-disabled select { cursor:not-allowed; opacity:.6; }
.dev-badge { display:inline-flex; width:max-content; margin-top:.45rem; padding:.2rem .55rem; border:1px solid rgba(212,175,55,.38); border-radius:999px; color:var(--gold); font-size:.72rem; font-weight:700; }
.settings-dev-note { margin-top:1rem; padding:.85rem 1rem; border-radius:10px; background:rgba(212,175,55,.08); color:rgba(255,255,255,.72); font-size:.82rem; line-height:1.5; }

/* ===== Ajuste do cabeçalho solicitado 16/09/2026 - organização final ===== */
/* Usa toda a largura útil do topo: a marca vai para o espaço vazio da esquerda. */
.header .header-container {
  width: 100%;
  max-width: none;
  padding-left: 18px;
  padding-right: 18px;
  gap: 1rem;
}
.header .logo-brand {
  margin-left: 0;
  padding-right: 1.25rem;
  gap: .55rem;
}
.header .logo-img { height: 50px !important; }
.header .logo-text-main { font-size: .9rem; }
.header .logo-text-sub { font-size: .64rem; }

/* Dá prioridade ao menu e evita que a busca invada os botões da direita. */
.header .nav { gap: .6rem; }
@media (max-width: 1750px) {
  .header .nav-search { display: none !important; }
  .header .search-toggle { display: flex !important; }
}

/* Grupo da direita: todos os atalhos ficam compactos e alinhados. */
.header .header-actions {
  margin-left: auto;
  padding-left: .35rem;
  gap: .55rem;
  white-space: nowrap;
}
.header .prefs-actions { gap: .55rem; }

/* WhatsApp passa a ter exatamente o mesmo formato circular das outras redes. */
.header .btn-whatsapp {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
}
.header .btn-whatsapp span { display: none !important; }
.header .btn-social { flex: 0 0 40px; }

@media (max-width: 1200px) {
  .header .logo-text { display: none; }
  .header .logo-brand { padding-right: .8rem; }
}
