/* ============================================================
   InfoImóveis - Design System
   Aesthetic: Modern Brazilian Real Estate Portal
   Font: Syne (display) + DM Sans (body)
   ============================================================ */

:root {
  --primary:       #E8322E;
  --primary-dark:  #C42B27;
  --primary-light: #FF5350;
  --secondary:     #1a1a2e;
  --accent:        #F5A623;
  --success:       #27ae60;
  --info:          #2980b9;
  --danger:        #e74c3c;

  --text-primary:  #1a1a1a;
  --text-secondary:#555;
  --text-muted:    #888;
  --text-light:    #bbb;

  --bg:            #f5f5f0;
  --bg-card:       #ffffff;
  --bg-dark:       #0e0e1a;
  --bg-section:    #f8f8f5;

  --border:        #e8e8e0;
  --border-dark:   #d0d0c8;

  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     32px;

  --shadow-sm:     0 1px 4px rgba(0,0,0,.06);
  --shadow:        0 4px 20px rgba(0,0,0,.08);
  --shadow-md:     0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.16);
  --shadow-card:   0 2px 12px rgba(0,0,0,.07);

  --transition:    all .2s ease;
  --transition-slow: all .4s cubic-bezier(.25,.8,.25,1);

  --header-h:      72px;
  --container:     1280px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }

/* ---- Layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-title { margin-bottom: 8px; }
.section-subtitle { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: .9rem;
  border: 2px solid transparent; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,50,46,.35); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-dark { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-dark:hover { background: #2d2d4e; }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: #f0f0f0; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--radius); }
.btn-full { width: 100%; justify-content: center; }

/* ---- Header ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-slow);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 100%; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { width: 38px; height: 38px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; }
.logo-text { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.5px; }
.logo-text strong { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a { padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 500; font-size: .9rem; color: var(--text-secondary); transition: var(--transition); }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: rgba(232,50,46,.06); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

.mobile-nav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
  background: #fff; padding: 16px; box-shadow: var(--shadow-md); z-index: 999;
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; color: var(--text-secondary); }
.mobile-nav a:hover { color: var(--primary); background: rgba(232,50,46,.06); }
.mobile-nav hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

.site-main { padding-top: var(--header-h); }

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(135deg, #0e0e1a 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 600px; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(232,50,46,.2); border: 1px solid rgba(232,50,46,.3); border-radius: 100px; padding: 6px 16px; font-size: .82rem; font-weight: 600; color: #ff8a87; margin-bottom: 24px; letter-spacing: .5px; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 16px; line-height: 1.1; }
.hero h1 span { color: var(--primary); }
.hero p { color: rgba(255,255,255,.65); font-size: 1.15rem; margin-bottom: 40px; max-width: 560px; }

/* Search Box */
.search-box {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.search-tabs { display: flex; border-bottom: 1px solid var(--border); }
.search-tab { flex: 1; padding: 14px; background: none; border: none; font-family: 'Syne', sans-serif; font-weight: 600; font-size: .9rem; color: var(--text-muted); cursor: pointer; transition: var(--transition); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.search-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.search-tab:hover { color: var(--primary); background: rgba(232,50,46,.04); }

.search-form { padding: 20px; }
.search-row { display: grid; grid-template-columns: 1fr 160px 160px auto; gap: 12px; align-items: end; }
.search-group label { display: block; font-size: .78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.search-group input,
.search-group select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .95rem; background: var(--bg); transition: var(--transition); }
.search-group input:focus,
.search-group select:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(232,50,46,.1); }

/* ---- Stats Bar ---- */
.stats-bar { background: var(--primary); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 28px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.15); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: #fff; display: block; }
.stat-label { font-size: .82rem; color: rgba(255,255,255,.75); font-weight: 500; margin-top: 2px; }

/* ---- Property Cards ---- */
.properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.property-card {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: var(--transition-slow);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.property-card:hover .card-img img { transform: scale(1.06); }
.card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e8e8e0, #d0d0c8); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 3rem; }

.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff;
  padding: 4px 12px; border-radius: 100px;
  font-size: .75rem; font-weight: 700; font-family: 'Syne', sans-serif;
  text-transform: uppercase; letter-spacing: .5px;
}
.card-badge.aluguel { background: var(--info); }
.card-badge.lancamento { background: var(--success); }
.card-badge.temporada { background: var(--accent); color: #333; }

.card-favorite {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  border: none; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.card-favorite:hover, .card-favorite.active { color: var(--primary); background: #fff; }

.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-price { font-family: 'Syne', sans-serif; font-size: 1.35rem; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.card-price-cond { font-size: .78rem; color: var(--text-muted); margin-bottom: 10px; }
.card-title { font-size: .95rem; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-location { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.card-location i { color: var(--primary); font-size: .75rem; }

.card-specs { display: flex; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.spec-item { display: flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--text-secondary); font-weight: 500; }
.spec-item i { color: var(--primary); font-size: .75rem; }

.card-footer { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.card-footer .btn { flex: 1; }

/* ---- Destaque (Featured) ---- */
.featured-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 1.4fr 1fr;
  border: 1px solid var(--border); transition: var(--transition-slow);
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-img { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured-card:hover .featured-img img { transform: scale(1.04); }
.featured-body { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.featured-tag { font-size: .72rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.featured-body h3 { font-size: 1.3rem; margin-bottom: 12px; }
.featured-body .card-price { font-size: 1.6rem; }
.featured-specs { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; }

/* ---- Tipos de Imóvel ---- */
.tipos-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tipo-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px;
  text-align: center; cursor: pointer; transition: var(--transition);
  text-decoration: none; color: var(--text-primary);
}
.tipo-card:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tipo-icon { width: 52px; height: 52px; margin: 0 auto 12px; background: rgba(232,50,46,.08); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--primary); transition: var(--transition); }
.tipo-card:hover .tipo-icon { background: var(--primary); color: #fff; }
.tipo-card span { font-family: 'Syne', sans-serif; font-weight: 600; font-size: .85rem; }

/* ---- Cidades ---- */
.cidades-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cidade-card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 16/9; cursor: pointer;
  box-shadow: var(--shadow-card); transition: var(--transition-slow);
}
.cidade-card:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.cidade-bg {
  width: 100%; height: 100%; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, #2c3e50, #3498db);
  position: relative;
}
.cidade-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); }
.cidade-info { position: relative; z-index: 1; padding: 20px; color: #fff; }
.cidade-info h3 { font-size: 1.2rem; }
.cidade-info span { font-size: .82rem; opacity: .8; }

/* ---- Busca (Results Page) ---- */
.busca-layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.filtros-sidebar { background: var(--bg-card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); position: sticky; top: calc(var(--header-h) + 20px); }
.filtro-titulo { font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 20px; font-size: 1.1rem; }
.filtro-grupo { margin-bottom: 22px; }
.filtro-label { font-size: .78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; display: block; }
.filtro-input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; background: var(--bg); transition: var(--transition); }
.filtro-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,50,46,.08); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.results-count { font-size: .9rem; color: var(--text-secondary); }
.results-count strong { color: var(--text-primary); }
.results-sort { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.results-sort select { padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); font-size: .88rem; cursor: pointer; }

/* Chips filtros */
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(232,50,46,.08); border: 1px solid rgba(232,50,46,.2); color: var(--primary); border-radius: 100px; font-size: .8rem; font-weight: 600; }
.chip button { background: none; border: none; color: inherit; cursor: pointer; font-size: .9rem; display: flex; }

/* Quartos filter buttons */
.qtd-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.qtd-btn { padding: 6px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); font-size: .85rem; font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--text-secondary); }
.qtd-btn.active, .qtd-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(232,50,46,.06); }

/* ---- Property Detail ---- */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.detail-gallery { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.gallery-main { aspect-ratio: 16/9; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.gallery-thumb { aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; opacity: .7; transition: var(--transition); }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; outline: 2px solid var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-title { margin-bottom: 8px; }
.detail-price { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.detail-extras { display: flex; gap: 16px; margin-bottom: 20px; }
.detail-extra { font-size: .85rem; color: var(--text-secondary); }

.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px; background: var(--bg-section); border-radius: var(--radius); margin: 24px 0; }
.spec-box { text-align: center; }
.spec-box .spec-value { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.spec-box .spec-key { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.spec-box i { font-size: 1.1rem; color: var(--primary); margin-bottom: 6px; }

.amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.amenity-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--text-secondary); padding: 10px; background: var(--bg-section); border-radius: var(--radius-sm); }
.amenity-item i { color: var(--primary); font-size: .9rem; width: 20px; text-align: center; }

/* Sticky Contact Card */
.contact-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-md); position: sticky; top: calc(var(--header-h) + 20px); }
.contact-card h4 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-form-group { margin-bottom: 14px; }
.contact-form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.contact-form-group input,
.contact-form-group textarea,
.contact-form-group select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; resize: none; transition: var(--transition); background: var(--bg); }
.contact-form-group input:focus,
.contact-form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,50,46,.08); background: #fff; }

/* ---- Painel Admin ---- */
.admin-layout { display: flex; min-height: calc(100vh - var(--header-h)); }
.admin-sidebar { width: 260px; background: var(--secondary); flex-shrink: 0; }
.admin-sidebar-inner { padding: 24px 0; }
.admin-menu-item { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: rgba(255,255,255,.6); font-weight: 500; font-size: .9rem; transition: var(--transition); cursor: pointer; text-decoration: none; }
.admin-menu-item:hover, .admin-menu-item.active { color: #fff; background: rgba(255,255,255,.08); border-left: 3px solid var(--primary); }
.admin-menu-item i { width: 20px; font-size: .9rem; }
.admin-content { flex: 1; padding: 32px; background: var(--bg); overflow: auto; }
.admin-header { margin-bottom: 28px; }
.admin-header h1 { font-size: 1.6rem; }

/* Dashboard Cards */
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.dash-card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.dash-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.dash-icon.red { background: rgba(232,50,46,.1); color: var(--primary); }
.dash-icon.blue { background: rgba(41,128,185,.1); color: var(--info); }
.dash-icon.green { background: rgba(39,174,96,.1); color: var(--success); }
.dash-icon.orange { background: rgba(245,166,35,.1); color: var(--accent); }
.dash-value { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; }
.dash-label { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }

/* ---- Tables ---- */
.table-wrap { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.table-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--bg-section); padding: 12px 16px; text-align: left; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(0,0,0,.01); }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 100px; font-size: .72rem; font-weight: 700; }
.badge-green { background: rgba(39,174,96,.12); color: #27ae60; }
.badge-red { background: rgba(232,50,46,.12); color: var(--primary); }
.badge-blue { background: rgba(41,128,185,.12); color: var(--info); }
.badge-gray { background: rgba(0,0,0,.06); color: var(--text-muted); }
.badge-orange { background: rgba(245,166,35,.12); color: #e67e22; }

/* ---- Forms ---- */
.form-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--border); }
.form-section { margin-bottom: 32px; }
.form-section-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 10px; }
.form-section-title i { color: var(--primary); }
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .92rem; background: var(--bg); transition: var(--transition); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,50,46,.08); background: #fff; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }

/* Checkbox grid */
.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check-item { display: flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; }
.check-item input { accent-color: var(--primary); width: 15px; height: 15px; }

/* ---- Paginação ---- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 32px 0; }
.page-btn { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 600; font-size: .9rem; border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-secondary); cursor: pointer; transition: var(--transition); text-decoration: none; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ---- Alerts / Flash ---- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.alert-success { background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.25); color: #27ae60; }
.alert-error { background: rgba(232,50,46,.08); border: 1px solid rgba(232,50,46,.2); color: var(--primary); }
.alert-info { background: rgba(41,128,185,.1); border: 1px solid rgba(41,128,185,.25); color: var(--info); }

/* ---- Footer ---- */
.site-footer { background: var(--bg-dark); padding: 60px 0 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.45); font-size: .88rem; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: .85rem; transition: var(--transition); }
.social-links a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: .95rem; color: #fff; margin-bottom: 16px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.45); font-size: .88rem; transition: var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .82rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.35); font-size: .82rem; transition: var(--transition); }
.footer-links a:hover { color: rgba(255,255,255,.7); }

/* ---- Login ---- */
.auth-page { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: var(--bg-card); border-radius: var(--radius-xl); padding: 48px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-card h2 { text-align: center; margin-bottom: 6px; }
.auth-card .subtitle { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .tipos-grid { grid-template-columns: repeat(4, 1fr); }
  .detail-layout { grid-template-columns: 1fr 320px; }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .busca-layout { grid-template-columns: 1fr; }
  .filtros-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-card { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav, .header-actions { display: none; }
  .hamburger { display: flex; }
  h1 { font-size: 2rem; }
  .tipos-grid { grid-template-columns: repeat(3, 1fr); }
  .cidades-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .search-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row.cols-2, .form-row.cols-3, .form-row.cols-4 { grid-template-columns: 1fr; }
  .dash-cards { grid-template-columns: 1fr 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .tipos-grid { grid-template-columns: repeat(2, 1fr); }
  .cidades-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .properties-grid { grid-template-columns: 1fr; }
  .dash-cards { grid-template-columns: 1fr; }
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }

/* ---- Animations ---- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.animate-in { animation: fadeIn .4s ease forwards; }

/* Skeleton loading */
.skeleton { background: linear-gradient(90deg, #e8e8e0 25%, #f0f0ea 50%, #e8e8e0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* No results */
.no-results { text-align: center; padding: 80px 20px; }
.no-results-icon { font-size: 4rem; color: var(--text-light); margin-bottom: 20px; }
.no-results h3 { color: var(--text-secondary); font-size: 1.3rem; margin-bottom: 8px; }
.no-results p { color: var(--text-muted); }

/* Map placeholder */
.map-placeholder { background: var(--bg-section); border-radius: var(--radius); height: 300px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: .9rem; border: 1.5px dashed var(--border-dark); }
.map-placeholder i { font-size: 2rem; margin-bottom: 8px; color: var(--primary); }
