/* =========================================================
   GHIRALDELLI IMOBILIÁRIA — Folha de Estilos Principal
   Paleta: Azul Navy + Vermelho + Branco
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul:      #0B2545;
  --azul-med:  #163A6B;
  --azul-lt:   #1E4F9E;
  --ouro:      #C9A84C;
  --ouro-lt:   #DFC06A;
  --ouro-dk:   #A88730;
  --branco:    #FFFFFF;
  --off:       #F8F7F2;
  --cinza:     #EFEFEC;
  --cinza-md:  #CCCCCC;
  --txt:       #1C1C1C;
  --txt-m:     #5A5A5A;
  --r:         10px;
  --r-lg:      16px;
  --shadow:    0 4px 20px rgba(0,0,0,.09);
  --shadow-lg: 0 8px 36px rgba(0,0,0,.14);
  --trans:     all .22s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--txt); background: var(--branco); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ── UTILITIES ─────────────────────────────────────────── */
.container { max-width: 100%; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 28px; border-radius: var(--r); font-size: .95rem; font-weight: 600;
  cursor: pointer; border: none; transition: var(--trans); white-space: nowrap;
}
.btn-ouro    { background: var(--ouro);  color: var(--branco); }
.btn-ouro:hover { background: var(--ouro-dk); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,168,76,.4); }
.btn-azul    { background: var(--azul);  color: var(--branco); }
.btn-azul:hover { background: var(--azul-med); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--ouro); color: var(--ouro); }
.btn-outline:hover { background: var(--ouro); color: var(--branco); }
.btn-ghost   { background: transparent; border: 2px solid rgba(255,255,255,.5); color: var(--branco); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--branco); }
.btn-sm { padding: 7px 18px; font-size: .86rem; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

.badge {
  display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: .78rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
}
.badge-venda   { background: rgba(201,168,76,.15); color: var(--ouro-dk); border: 1px solid rgba(201,168,76,.3); }
.badge-aluguel { background: rgba(22,58,107,.1);   color: var(--azul-med); border: 1px solid rgba(22,58,107,.2); }
.badge-destaque { background: var(--ouro); color: var(--branco); }

.section-label {
  display: block; text-align: center; color: var(--ouro); font-size: .8rem;
  font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: .5rem;
}
.section-title { text-align: center; font-size: clamp(1.6rem,3vw,2.2rem); color: var(--azul); margin-bottom: .8rem; }
.section-sub   { text-align: center; color: var(--txt-m); max-width: 560px; margin: 0 auto 3rem; line-height: 1.75; }

/* ── LOGO MARK ──────────────────────────────────────────── */
.logo-mark {
  width: 64px; height: 64px; flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}
.login-logo-mark { width: 58px; height: 58px; }
.sidebar-logo-mark { width: 38px; height: 38px; }

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; width: 100%; z-index: 200;
  background: var(--azul); box-shadow: 0 2px 12px rgba(0,0,0,.25);
  height: 90px; display: flex; align-items: center;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 40px; max-width: 100%; }

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon {
  width: 40px; height: 40px; background: var(--ouro); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.nav-logo-text { color: var(--branco); font-size: 1.15rem; font-weight: 700; line-height: 1.1; }
.nav-logo-text span { color: var(--ouro); display: block; font-size: .72rem; font-weight: 400; letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a { color: #C0CFDE; font-size: 1.05rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ouro); }
.nav-links .btn { padding: 8px 20px; font-size: .88rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--branco); border-radius: 2px; transition: var(--trans); }

/* ── HERO ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh; padding-top: 70px;
  background: linear-gradient(135deg, var(--azul) 0%, #102040 50%, #163A6B 100%);
  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='%23C9A84C' fill-opacity='0.04'%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: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.35);
  color: var(--ouro-lt); border-radius: 20px; padding: 6px 16px;
  font-size: .82rem; letter-spacing: .5px; margin-bottom: 1.4rem;
}
#hero h1 {
  color: var(--branco); font-size: clamp(2.2rem,5vw,3.6rem); line-height: 1.15;
  margin-bottom: 1.2rem; font-weight: 800;
}
#hero h1 em { color: var(--ouro); font-style: normal; }
#hero p { color: #A8C0D8; font-size: 1.1rem; line-height: 1.8; margin-bottom: 2.5rem; max-width: 560px; }

.hero-search {
  background: var(--branco); border-radius: var(--r-lg); padding: 20px 24px;
  box-shadow: var(--shadow-lg); display: flex; gap: 12px; flex-wrap: wrap;
  align-items: flex-end; max-width: 700px;
}
.hero-search-field { flex: 1 1 160px; display: flex; flex-direction: column; gap: 5px; }
.hero-search-field label { font-size: .78rem; font-weight: 600; color: var(--txt-m); text-transform: uppercase; letter-spacing: .5px; }
.hero-search-field select, .hero-search-field input {
  padding: 10px 14px; border: 1.5px solid var(--cinza); border-radius: var(--r);
  font-size: .95rem; color: var(--txt); background: var(--off); outline: none;
  transition: border-color .2s;
}
.hero-search-field select:focus, .hero-search-field input:focus { border-color: var(--ouro); }
.hero-search .btn { flex-shrink: 0; align-self: flex-end; }

.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--ouro); }
.hero-stat span   { font-size: .85rem; color: #8AAAC0; }

/* ── PROPERTY CARD ──────────────────────────────────────── */
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

.property-card {
  background: var(--branco); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--trans); border: 1px solid transparent;
}
.property-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(201,168,76,.25); }

.card-photo {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: linear-gradient(135deg, #1a3a6a, #0b2545);
  display: flex; align-items: center; justify-content: center;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.property-card:hover .card-photo img { transform: scale(1.05); }
.card-photo-placeholder { color: rgba(255,255,255,.15); font-size: 4rem; }

.card-badges {
  position: absolute; top: 12px; left: 12px; display: flex; gap: 6px;
}
/* ── CARD PLACEHOLDER ───────────────────────────────────── */
.card-photo-placeholder {
  width: 100%; height: 100%;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ph-skyline {
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 80%;
  pointer-events: none;
}
.ph-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ph-icon-wrap svg { width: 52px; height: 52px; }
.ph-label {
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.3);
  color: var(--ouro-lt);
  padding: 4px 14px; border-radius: 20px;
  font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}

/* ── WAVE DIVIDERS ──────────────────────────────────────── */
.wave-divider { line-height: 0; overflow: hidden; }
.wave-divider svg { display: block; width: 100%; }
.wave-up   { margin-bottom: -2px; }
.wave-down { margin-top: -2px; }

/* ── HERO DECORATIONS ───────────────────────────────────── */
.hero-skyline {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 220px; pointer-events: none; overflow: hidden;
}
.hero-skyline svg { position: absolute; bottom: 0; width: 100%; }

/* ── SOBRE VISUAL ───────────────────────────────────────── */
.sobre-visual {
  border-radius: var(--r-lg); aspect-ratio: 4/3; overflow: hidden;
  background: linear-gradient(160deg, var(--azul) 0%, #102040 60%, #163A6B 100%);
  display: flex; align-items: flex-end; justify-content: center;
  position: relative;
}
.sobre-visual svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.sobre-visual-badge {
  position: relative; z-index: 1; margin-bottom: 1.8rem;
  background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.35);
  backdrop-filter: blur(6px);
  color: var(--ouro-lt); padding: 10px 24px; border-radius: 50px;
  font-size: .88rem; font-weight: 600; letter-spacing: .5px;
}

.card-fav {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  background: rgba(255,255,255,.9); border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 1rem; cursor: pointer;
  transition: var(--trans);
}
.card-fav:hover { background: var(--branco); transform: scale(1.1); }

.card-body { padding: 18px 20px; }
.card-price { font-size: 1.4rem; font-weight: 800; color: var(--azul); margin-bottom: 4px; }
.card-price small { font-size: .75rem; font-weight: 400; color: var(--txt-m); }
.card-title { font-size: .97rem; font-weight: 600; color: var(--txt); margin-bottom: 6px; line-height: 1.4; }
.card-location { font-size: .85rem; color: var(--txt-m); margin-bottom: 14px; display: flex; align-items: center; gap: 4px; }

.card-specs { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--cinza); margin-bottom: 14px; }
.card-spec { display: flex; align-items: center; gap: 5px; font-size: .83rem; color: var(--txt-m); }
.card-spec strong { color: var(--txt); font-size: .9rem; }

.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; font-size: .85rem; padding: 9px 12px; }
.btn-whatsapp { background: #25D366; color: var(--branco); }
.btn-whatsapp:hover { background: #1ebe5c; transform: translateY(-1px); }

/* ── SECTIONS ───────────────────────────────────────────── */
section { padding: 80px 0; }
#destaques, #sobre { background: var(--off); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--branco); border-radius: var(--r-lg); padding: 2rem 1.6rem;
  text-align: center; box-shadow: var(--shadow); border-bottom: 3px solid transparent;
  transition: var(--trans);
}
.feature-card:hover { border-bottom-color: var(--ouro); transform: translateY(-3px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { color: var(--azul); font-size: 1rem; margin-bottom: .5rem; }
.feature-card p  { color: var(--txt-m); font-size: .9rem; line-height: 1.65; }

/* Sobre */
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; align-items: center; }
.sobre-text .section-label, .sobre-text .section-title { text-align: left; }
.sobre-text p { color: var(--txt-m); line-height: 1.8; margin: 1rem 0; }
.checklist { margin-top: 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.checklist li { font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.checklist li::before { content: '✓'; color: var(--ouro); font-weight: 800; flex-shrink: 0; }

/* CTA WhatsApp */
#cta-whatsapp {
  background: linear-gradient(135deg, var(--azul), var(--azul-med));
  text-align: center; padding: 80px 0;
}
#cta-whatsapp h2 { color: var(--branco); margin-bottom: .8rem; font-size: clamp(1.5rem,3vw,2.2rem); }
#cta-whatsapp p  { color: #A8C0D8; margin-bottom: 2rem; font-size: 1.05rem; }
.btn-whatsapp-lg {
  background: #25D366; color: var(--branco); padding: 16px 40px;
  font-size: 1.1rem; border-radius: 50px; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; transition: var(--trans); box-shadow: 0 4px 16px rgba(37,211,102,.4);
}
.btn-whatsapp-lg:hover { background: #1ebe5c; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,211,102,.5); }

/* WhatsApp Flutuante */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  width: 58px; height: 58px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.5); transition: var(--trans);
  animation: pulse-wpp 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); background: #1ebe5c; }
@keyframes pulse-wpp {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,.5); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,.8); }
}

/* ── FILTROS ────────────────────────────────────────────── */
.page-header {
  background: var(--azul); padding: 110px 0 40px; margin-bottom: 0;
}
.page-header h1 { color: var(--branco); font-size: clamp(1.6rem,3vw,2.2rem); }
.page-header p  { color: #A8C0D8; margin-top: .4rem; }

.listing-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; padding: 2rem 0 4rem; }

.filters-panel {
  background: var(--branco); border-radius: var(--r-lg); padding: 1.5rem;
  box-shadow: var(--shadow); height: fit-content; position: sticky; top: 88px;
}
.filters-panel h3 { font-size: 1rem; color: var(--azul); margin-bottom: 1.2rem; border-bottom: 2px solid var(--ouro); padding-bottom: .6rem; }
.filter-group { margin-bottom: 1.2rem; }
.filter-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--txt-m); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .4rem; }
.filter-group select, .filter-group input {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--cinza); border-radius: var(--r);
  font-size: .92rem; color: var(--txt); outline: none; transition: border-color .2s;
}
.filter-group select:focus, .filter-group input:focus { border-color: var(--ouro); }
.price-range { display: flex; gap: 8px; }
.price-range input { flex: 1; }

.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.results-count { font-size: .9rem; color: var(--txt-m); }
.results-count strong { color: var(--azul); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.page-btn {
  width: 38px; height: 38px; border-radius: 8px; border: 1.5px solid var(--cinza);
  background: var(--branco); cursor: pointer; font-size: .9rem; font-weight: 600;
  color: var(--txt-m); transition: var(--trans); display: flex; align-items: center; justify-content: center;
}
.page-btn:hover, .page-btn.active { background: var(--ouro); border-color: var(--ouro); color: var(--branco); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── DETALHE ────────────────────────────────────────────── */
.detalhe-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 2rem; padding: 2rem 0 4rem; }

.gallery-main {
  border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--azul), var(--azul-lt));
  position: relative; display: flex; align-items: center; justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main-placeholder { font-size: 5rem; color: rgba(255,255,255,.1); }

.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb {
  flex-shrink: 0; width: 80px; height: 60px; border-radius: 8px; overflow: hidden;
  cursor: pointer; opacity: .65; border: 2px solid transparent; transition: var(--trans);
  background: var(--cinza); display: flex; align-items: center; justify-content: center;
}
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border-color: var(--ouro); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detalhe-info { background: var(--branco); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 88px; }
.detalhe-price { font-size: 2rem; font-weight: 800; color: var(--azul); }
.detalhe-price small { font-size: .75rem; font-weight: 400; color: var(--txt-m); display: block; }
.detalhe-title { font-size: 1.2rem; font-weight: 700; margin: .5rem 0; }
.detalhe-location { color: var(--txt-m); font-size: .9rem; margin-bottom: 1.2rem; }

.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 1.2rem 0; border-top: 1px solid var(--cinza); border-bottom: 1px solid var(--cinza); margin-bottom: 1.4rem; }
.spec-item { display: flex; flex-direction: column; gap: 2px; }
.spec-item span:first-child { font-size: .75rem; color: var(--txt-m); text-transform: uppercase; letter-spacing: .5px; }
.spec-item span:last-child  { font-size: 1rem; font-weight: 700; color: var(--azul); }

.detalhe-wpp { width: 100%; justify-content: center; border-radius: 50px; padding: 14px; font-size: 1rem; }
.detalhe-contato { margin-top: .8rem; width: 100%; justify-content: center; }

.descricao-section { padding: 2rem 0; }
.descricao-section h2 { font-size: 1.2rem; color: var(--azul); margin-bottom: 1rem; }
.descricao-section p { color: var(--txt-m); line-height: 1.85; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--azul); color: #8AAAC0; padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand .nav-logo-text { color: var(--branco); font-size: 1.2rem; }
.footer-brand p { color: #7A9AB8; font-size: .9rem; margin-top: .8rem; line-height: 1.7; }
.footer-col h4 { color: var(--branco); font-size: .92rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .5px; }
.footer-col a  { display: block; color: #7A9AB8; font-size: .88rem; margin-bottom: .6rem; transition: color .2s; }
.footer-col a:hover { color: var(--ouro); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.2rem; text-align: center; font-size: .82rem; }
.footer-bottom span { color: var(--ouro); }

/* ── ADMIN LOGIN ────────────────────────────────────────── */
.login-page {
  min-height: 100vh; background: linear-gradient(135deg, var(--azul), #102040);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.login-card {
  background: var(--branco); border-radius: var(--r-lg); padding: 2.5rem 2rem;
  width: 100%; max-width: 400px; box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo-icon {
  width: 60px; height: 60px; background: var(--azul); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  margin: 0 auto 1rem;
}
.login-logo h1 { color: var(--azul); font-size: 1.4rem; }
.login-logo p  { color: var(--txt-m); font-size: .88rem; margin-top: .3rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--txt-m); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .4rem; }
.form-group input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--cinza); border-radius: var(--r);
  font-size: .95rem; outline: none; transition: border-color .2s;
}
.form-group input:focus { border-color: var(--ouro); }
.login-btn { width: 100%; padding: 13px; font-size: 1rem; }
.login-error { color: #d94f4f; font-size: .85rem; text-align: center; margin-top: .8rem; display: none; }

/* ── ADMIN PAINEL ───────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 250px; background: var(--azul); color: var(--branco);
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 100;
}
.sidebar-header { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-logo { display: flex; align-items: center; gap: 10px; }
.sidebar-logo-icon { width: 38px; height: 38px; background: var(--ouro); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.sidebar-logo-text { font-size: 1rem; font-weight: 700; }
.sidebar-logo-text span { display: block; font-size: .7rem; font-weight: 400; color: #7A9AB8; }

.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 20px;
  color: #8AAAC0; font-size: .92rem; transition: var(--trans);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--branco); background: rgba(201,168,76,.12); border-right: 3px solid var(--ouro);
}
.sidebar-nav a .nav-icon { font-size: 1.1rem; }

.sidebar-footer { padding: 1rem 1.2rem; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer a { display: flex; align-items: center; gap: 8px; color: #7A9AB8; font-size: .88rem; padding: 8px; border-radius: var(--r); transition: var(--trans); }
.sidebar-footer a:hover { color: #E07070; background: rgba(224,112,112,.08); }

.admin-main { margin-left: 250px; flex: 1; background: #F0F2F5; min-height: 100vh; }
.admin-topbar {
  background: var(--branco); padding: 0 2rem; height: 64px; display: flex;
  align-items: center; justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 50;
}
.admin-topbar h1 { font-size: 1.1rem; color: var(--azul); font-weight: 700; }
.admin-topbar .topbar-actions { display: flex; align-items: center; gap: 1rem; }

.admin-content { padding: 1.8rem 2rem; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--branco); border-radius: var(--r-lg); padding: 1.5rem;
  box-shadow: var(--shadow); border-left: 4px solid var(--ouro);
}
.stat-card.blue  { border-left-color: var(--azul); }
.stat-card.green { border-left-color: #25D366; }
.stat-card.red   { border-left-color: #E07070; }
.stat-label { font-size: .78rem; color: var(--txt-m); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .3rem; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--azul); }

.admin-card { background: var(--branco); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.admin-card-header {
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--cinza);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-card-header h2 { font-size: 1rem; color: var(--azul); }

table { width: 100%; border-collapse: collapse; }
th { background: var(--off); padding: 11px 14px; text-align: left; font-size: .78rem; font-weight: 700; color: var(--txt-m); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--cinza); }
td { padding: 12px 14px; font-size: .9rem; border-bottom: 1px solid #f0f0ee; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(248,247,242,.8); }

.table-photo { width: 52px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--cinza); }
.table-photo-placeholder { width: 52px; height: 40px; border-radius: 6px; background: linear-gradient(135deg, var(--azul), var(--azul-lt)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

.table-actions { display: flex; gap: 6px; }
.action-btn {
  width: 32px; height: 32px; border-radius: 7px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: var(--trans);
}
.action-btn.edit   { background: rgba(22,58,107,.08); color: var(--azul-med); }
.action-btn.edit:hover  { background: var(--azul); color: var(--branco); }
.action-btn.del    { background: rgba(224,112,112,.08); color: #d94f4f; }
.action-btn.del:hover   { background: #d94f4f; color: var(--branco); }
.action-btn.star   { background: rgba(201,168,76,.1); color: var(--ouro-dk); }
.action-btn.star:hover  { background: var(--ouro); color: var(--branco); }
.action-btn.star.on  { background: var(--ouro); color: var(--branco); }

/* ── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 500;
  display: none; align-items: center; justify-content: center; padding: 1rem;
  backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--branco); border-radius: var(--r-lg); width: 100%;
  max-width: 680px; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--cinza);
  display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--branco); z-index: 1;
}
.modal-header h2 { font-size: 1.1rem; color: var(--azul); }
.modal-close { width: 32px; height: 32px; border-radius: 8px; border: none; background: var(--off); cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: var(--trans); }
.modal-close:hover { background: #E07070; color: var(--branco); }

.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--cinza); display: flex; gap: .8rem; justify-content: flex-end; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-col { display: flex; flex-direction: column; gap: .4rem; }
.form-col.full { grid-column: 1/-1; }
.form-col label { font-size: .78rem; font-weight: 600; color: var(--txt-m); text-transform: uppercase; letter-spacing: .5px; }
.form-col input, .form-col select, .form-col textarea {
  padding: 10px 13px; border: 1.5px solid var(--cinza); border-radius: var(--r);
  font-size: .93rem; outline: none; transition: border-color .2s; color: var(--txt);
}
.form-col input:focus, .form-col select:focus, .form-col textarea:focus { border-color: var(--ouro); }
.form-col textarea { min-height: 100px; resize: vertical; }

.upload-area {
  border: 2px dashed var(--cinza-md); border-radius: var(--r-lg); padding: 2rem;
  text-align: center; cursor: pointer; transition: var(--trans);
}
.upload-area:hover, .upload-area.drag { border-color: var(--ouro); background: rgba(201,168,76,.05); }
.upload-area p { color: var(--txt-m); font-size: .9rem; margin-top: .5rem; }
.upload-area input { display: none; }
.upload-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.upload-preview { position: relative; width: 80px; height: 64px; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.upload-preview .remove-photo {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  background: #d94f4f; color: var(--branco); border-radius: 50%; border: none;
  cursor: pointer; font-size: .7rem; display: flex; align-items: center; justify-content: center;
}
.upload-preview[draggable="true"] { cursor: grab; }
.upload-preview[draggable="true"]:active { cursor: grabbing; }
.upload-preview.dragging { opacity: 0.35; transform: scale(.95); }
.upload-preview.drag-over { outline: 2px dashed var(--ouro); border-radius: 8px; outline-offset: 1px; }
.upload-preview .ordem-badge {
  position: absolute; top: 3px; left: 3px; background: var(--ouro); color: var(--branco);
  font-size: .6rem; padding: 1px 4px; border-radius: 4px; font-weight: 700; pointer-events: none; line-height: 1.4;
}

/* ── CONFIG ─────────────────────────────────────────────── */
.config-card { background: var(--branco); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow); max-width: 520px; }
.config-card h3 { color: var(--azul); margin-bottom: 1.5rem; font-size: 1rem; border-bottom: 2px solid var(--ouro); padding-bottom: .6rem; }

/* ── EMPTY STATE ────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--txt-m); }
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state p { font-size: .95rem; }

/* ── TOAST ──────────────────────────────────────────────── */
.toast-container { position: fixed; top: 80px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--branco); border-radius: var(--r); padding: 12px 18px;
  box-shadow: var(--shadow-lg); border-left: 4px solid var(--ouro);
  font-size: .88rem; min-width: 240px; animation: slideIn .3s ease;
  display: flex; align-items: center; gap: 8px;
}
.toast.success { border-left-color: #25D366; }
.toast.error   { border-left-color: #d94f4f; }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .listing-layout { grid-template-columns: 1fr; }
  .filters-panel  { position: static; }
  .detalhe-grid   { grid-template-columns: 1fr; }
  .detalhe-info   { position: static; }
  .footer-grid    { grid-template-columns: 1fr; gap: 1.5rem; }
  .sobre-grid     { grid-template-columns: 1fr; }
  .sobre-visual   { display: none; }
  .sidebar        { transform: translateX(-100%); transition: transform .3s; }
  .sidebar.open   { transform: translateX(0); }
  .admin-main     { margin-left: 0; }
  .checklist      { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-stats     { gap: 1.5rem; }
  .hero-search    { flex-direction: column; gap: 8px; }
  .hero-search { max-width: 100% !important; padding: 16px !important; flex-direction: column !important; } .hero-search-field { flex: unset; width: 100%; min-height: unset; height: auto; } .hero-search-field select, .hero-search-field input { width: 100%; } .hero-search .btn { width: 100%; align-self: stretch; }
  .nav-links      { display: none; position: absolute; top: 90px; left: 0; right: 0; background: var(--azul); flex-direction: column; gap: 0; padding: .5rem 0; box-shadow: 0 8px 20px rgba(0,0,0,.3); z-index: 199; }
  .nav-links.open { display: flex; }
  .nav-links li   { width: 100%; }
  .nav-links a    { display: block; padding: 13px 24px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links .btn { margin: 10px 24px; width: calc(100% - 48px); justify-content: center; }
  .nav-toggle     { display: flex; }
  .form-row       { grid-template-columns: 1fr; }
  .property-grid  { grid-template-columns: 1fr; }
}
