@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg-hero: #0f1923;
  --bg: #f7f8fa;
  --bg2: #ffffff;
  --bg3: #f0f2f5;
  --card: #ffffff;
  --border: #e4e7ec;
  --cyan: #00b894;
  --green: #00cba1;
  --purple: #6c63ff;
  --pink: #e84393;
  --text: #1a1f2e;
  --muted: #6b7280;
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.6; min-height: 100vh; }
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; font-weight: 800; line-height: 1.1; }
a { color: var(--cyan); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; height: 64px; background: rgba(15,25,35,.92); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,.08); }
.navbar-brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; background: linear-gradient(90deg, var(--cyan), var(--green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.navbar-links { display: flex; align-items: center; gap: 2rem; }
.navbar-links a { color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 500; transition: color .2s; }
.navbar-links a:hover { color: #fff; opacity: 1; }
.navbar-actions { display: flex; gap: .75rem; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.4rem; border-radius: 50px; font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: .9rem; cursor: pointer; border: none; transition: all .2s; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--green)); color: #fff; font-weight: 700; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,184,148,.35); opacity: 1; color: #fff; }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); opacity: 1; }
.btn-outline-dark { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline-dark:hover { border-color: var(--cyan); color: var(--cyan); opacity: 1; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.2); opacity: 1; }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.page-wrap { padding-top: 64px; min-height: 100vh; }

.hero { position: relative; padding: 7rem 0 5rem; text-align: center; overflow: hidden; background: var(--bg-hero); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,184,148,.15) 0%, transparent 70%); pointer-events: none; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem 1rem; background: rgba(0,184,148,.12); border: 1px solid rgba(0,184,148,.3); border-radius: 50px; font-size: .82rem; color: var(--cyan); margin-bottom: 2rem; }
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); margin-bottom: 1.5rem; letter-spacing: -2px; color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--cyan), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.65); max-width: 520px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.search-bar { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 3rem 0 2rem; backdrop-filter: blur(10px); }
.search-field { display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 150px; }
.search-field label { font-size: .75rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .05em; }
.search-field select, .search-field input { background: transparent; border: none; color: #fff; font-family: 'DM Sans', sans-serif; font-size: .95rem; outline: none; width: 100%; }
.search-field select option { background: #1a2535; color: #fff; }
.search-field input::placeholder { color: rgba(255,255,255,.4); }
.search-divider { width: 1px; height: 36px; background: rgba(255,255,255,.12); }

.stats { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0; }
.stat-item { text-align: center; }
.stat-value { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2rem; color: var(--cyan); }
.stat-label { font-size: .82rem; color: rgba(255,255,255,.5); margin-top: .2rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.card-img { width: 100%; height: 210px; background: var(--bg3); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-tag { display: inline-block; padding: .2rem .7rem; border-radius: 50px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; margin-right: .3rem; }
.tag-permuta { background: rgba(108,99,255,.1); color: var(--purple); border: 1px solid rgba(108,99,255,.2); }
.tag-venda { background: rgba(0,184,148,.1); color: var(--cyan); border: 1px solid rgba(0,184,148,.2); }
.tag-venda_permuta { background: rgba(0,203,161,.1); color: var(--green); border: 1px solid rgba(0,203,161,.2); }
.tag-destaque { background: rgba(232,67,147,.1); color: var(--pink); border: 1px solid rgba(232,67,147,.2); }
.card-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: .4rem; color: var(--text); }
.card-location { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; }
.card-price { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--cyan); }
.card-meta { display: flex; gap: 1rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.card-meta-item { display: flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--muted); }

.section { padding: 4rem 0; }
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .5rem; color: var(--text); }
.section-header p { color: var(--muted); }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.form-control { width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem 1rem; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: .95rem; transition: border-color .2s; outline: none; }
.form-control:focus { border-color: var(--cyan); background: #fff; }
.form-control::placeholder { color: var(--muted); }
select.form-control option { background: #fff; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

#mapa, #mapa-cadastro { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

.detail-header { padding: 2rem 0 1rem; }
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: .75rem; border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery .gallery-main { height: 400px; }
.detail-gallery .gallery-side { display: grid; gap: .75rem; }
.detail-gallery .gallery-side img { height: 194px; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
.detail-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.spec-item { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; text-align: center; }
.spec-value { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--text); }
.spec-label { font-size: .75rem; color: var(--muted); margin-top: .2rem; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 80px; box-shadow: 0 4px 24px rgba(0,0,0,.06); }

.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg3); }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 420px; box-shadow: 0 8px 40px rgba(0,0,0,.08); }
.auth-card h1 { font-size: 1.8rem; margin-bottom: .5rem; color: var(--text); }
.auth-card p { color: var(--muted); margin-bottom: 2rem; font-size: .9rem; }
.auth-divider { text-align: center; color: var(--muted); font-size: .82rem; margin: 1.25rem 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.alert-error { background: #fff0f5; border: 1px solid #ffd6e7; border-radius: var(--radius-sm); padding: .75rem 1rem; color: #c0143c; font-size: .88rem; margin-bottom: 1.25rem; }
.alert-success { background: #f0fdf9; border: 1px solid #b3f0e0; border-radius: var(--radius-sm); padding: .75rem 1rem; color: #00804f; font-size: .88rem; margin-bottom: 1.25rem; }

.painel-header { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.painel-header h1 { font-size: 1.8rem; color: var(--text); }

footer { background: var(--bg-hero); border-top: 1px solid rgba(255,255,255,.08); padding: 3rem 0 2rem; margin-top: 0; color: rgba(255,255,255,.5); font-size: .85rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.2rem; background: linear-gradient(90deg, var(--cyan), var(--green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: .75rem; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-links a:hover { color: #fff; opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; gap: .5rem; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .5s ease forwards; }
.fade-up-2 { animation: fadeUp .5s .1s ease both; }
.fade-up-3 { animation: fadeUp .5s .2s ease both; }

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-gallery { grid-template-columns: 1fr; }
  .detail-gallery .gallery-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .search-divider { display: none; }
}
