:root{
 --bg:#f5f7f9;--surface:#fff;--text:#17212b;--muted:#68737d;--line:#dfe5e9;--dark:#111922;--accent:#1f5d6b;--radius:16px;
 --shadow:0 12px 35px rgba(20,35,50,.08);--max:1220px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--text);background:var(--surface);line-height:1.55}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.container{width:min(calc(100% - 40px),var(--max));margin:auto}.narrow{max-width:850px}.center{text-align:center}.topbar{height:76px;display:flex;align-items:center;border-bottom:1px solid var(--line);background:rgba(255,255,255,.97);position:sticky;top:0;z-index:50}.nav-wrap{display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-weight:650;letter-spacing:.08em}.brand-mark{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--dark);color:#fff}.nav{display:flex;align-items:center;gap:26px;font-size:12px;font-weight:600;letter-spacing:.06em}.nav a:hover,.text-link:hover{opacity:.65}.menu-toggle{display:none;border:0;background:none;font-size:25px}.hero{min-height:640px;position:relative;background:linear-gradient(120deg,#17232b,#37525c);display:flex;align-items:center;color:white;overflow:hidden}.hero:after{content:"";position:absolute;width:640px;height:640px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-130px;top:0}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,20,28,.25),transparent)}.hero-content{position:relative;z-index:2}.eyebrow{font-size:11px;letter-spacing:.18em;font-weight:650;color:#7497a0}.hero .eyebrow{color:#bdd0d4}.hero h1,.page-hero h1{font-size:clamp(42px,6vw,76px);line-height:1.02;max-width:820px;margin:.3em 0}.hero p{max-width:670px;font-size:18px;color:#dce5e7}.search-bar{margin-top:36px;background:white;padding:10px;border-radius:14px;display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr auto;gap:8px;box-shadow:var(--shadow)}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:13px 14px;background:#fff;color:var(--text);font:inherit}textarea{resize:vertical}label{font-size:12px;font-weight:600;color:var(--muted)}label input,label textarea{margin-top:6px}.search-bar input,.search-bar select{border:0;background:#f6f8f9}.btn{border:0;border-radius:10px;padding:13px 20px;font-weight:650;font-size:12px;letter-spacing:.06em;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.primary{background:var(--dark);color:#fff}.full{width:100%}.section{padding:82px 0}.soft{background:var(--bg)}.section-head,.split,.admin-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:30px}.section h2,.admin-card h2{font-size:32px;margin:.15em 0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.property-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;transition:.2s}.property-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.property-image{height:245px;display:block;position:relative;background:#edf1f2}.property-image img{width:100%;height:100%;object-fit:cover}.placeholder{height:100%;min-height:220px;display:grid;place-items:center;background:#e9eef0;color:#93a0a6;font-weight:650}.placeholder.large{min-height:480px}.badge{position:absolute;left:14px;top:14px;background:rgba(17,25,34,.9);color:#fff;padding:7px 9px;border-radius:6px;font-size:10px;font-weight:650;letter-spacing:.12em}.property-body{padding:20px}.property-body small{color:var(--muted);font-weight:600}.property-body h3{margin:7px 0;font-size:21px}.property-body p{margin:0;color:var(--muted)}.features{display:flex;gap:14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin:16px 0;font-size:12px;color:var(--muted)}.price{font-size:20px}.footer{background:var(--dark);color:#c9d0d5;padding:55px 0 20px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:50px}.footer-brand{color:white}.copyright{border-top:1px solid rgba(255,255,255,.1);padding-top:18px;margin-top:40px;font-size:12px}.whatsapp{position:fixed;right:22px;bottom:22px;z-index:40;background:#1f2933;color:white;border-radius:999px;padding:13px 18px;font-weight:650;box-shadow:var(--shadow)}.page-hero{padding:70px 0 55px;background:var(--bg)}.page-hero h1{font-size:54px;margin-bottom:10px}.filter-panel{display:grid;grid-template-columns:2fr repeat(4,1fr) auto;gap:9px;padding:14px;background:var(--bg);border-radius:14px}.result-count{color:var(--muted);margin:25px 0}.property-title{display:flex;justify-content:space-between;align-items:end;gap:25px;margin:25px 0}.property-title h1{font-size:44px;margin:7px 0}.property-price{font-size:30px;font-weight:600}.gallery{display:grid;grid-template-columns:2fr 1fr;gap:8px;max-height:620px;overflow:hidden;border-radius:var(--radius)}.gallery img{width:100%;height:305px;object-fit:cover}.gallery img:first-child{grid-row:span 2;height:618px}.detail-grid{display:grid;grid-template-columns:2fr .9fr;gap:60px;margin-top:50px}.metric-row{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--line);border-radius:14px;margin-bottom:40px}.metric-row div{padding:18px;border-right:1px solid var(--line)}.metric-row div:last-child{border:0}.metric-row b{display:block;font-size:22px}.metric-row span{font-size:11px;color:var(--muted)}.lead-box,.form-card,.admin-card{border:1px solid var(--line);border-radius:var(--radius);padding:28px;background:#fff}.lead-box{position:sticky;top:100px;height:max-content}.lead-box form,.form-card{display:grid;gap:12px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.prose{font-size:17px;color:#44505b}.empty{grid-column:1/-1;padding:40px;border:1px dashed var(--line);border-radius:14px;color:var(--muted)}.login-body{min-height:100vh;display:grid;place-items:center;background:var(--bg)}.login-card{width:min(440px,calc(100% - 30px));padding:38px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);display:grid;gap:13px}.login-card h1{margin:16px 0 0}.login-card p{margin:0 0 12px;color:var(--muted)}.alert{background:#fff1f1;color:#a52727;padding:10px;border-radius:8px}.success{background:#edf9f2;color:#266740;padding:12px 15px;border-radius:10px;margin-bottom:18px}.admin-body{background:var(--bg);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:245px;background:var(--dark);color:#d7dee2;padding:25px}.sidebar .brand{color:#fff;margin-bottom:35px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{padding:11px 12px;border-radius:8px;font-size:13px}.sidebar nav a:hover{background:rgba(255,255,255,.07)}.admin-main{margin-left:245px;padding:38px;max-width:1500px}.admin-head{align-items:center}.admin-head h1{margin:3px 0;font-size:38px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:25px}.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:23px}.stat span{font-size:11px;font-weight:650;color:var(--muted);letter-spacing:.08em}.stat b{display:block;font-size:38px;margin-top:8px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:10px;letter-spacing:.08em;color:var(--muted)}.admin-card{margin-bottom:24px}.admin-card>input,.admin-card>textarea,.admin-card>label{margin-bottom:12px}.check-row{display:flex;gap:25px;margin:18px 0}.admin-photos{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:18px 0}.admin-photos img{height:110px;width:100%;object-fit:cover;border-radius:8px}
@media(max-width:900px){.nav{display:none;position:absolute;top:76px;left:0;right:0;background:#fff;padding:20px;flex-direction:column;border-bottom:1px solid var(--line)}.nav.open{display:flex}.menu-toggle{display:block}.hero{min-height:700px}.search-bar,.filter-panel{grid-template-columns:1fr 1fr}.cards{grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr}.gallery{grid-template-columns:1fr 1fr}.gallery img:first-child{height:400px}.gallery img{height:195px}.sidebar{position:static;width:100%;height:auto}.sidebar nav{grid-template-columns:repeat(3,1fr)}.admin-main{margin:0;padding:25px}.stat-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.container{width:min(calc(100% - 24px),var(--max))}.hero h1{font-size:45px}.search-bar,.filter-panel,.form-grid{grid-template-columns:1fr}.cards{grid-template-columns:1fr}.section{padding:58px 0}.section-head,.split,.property-title{align-items:flex-start;flex-direction:column}.footer-grid{grid-template-columns:1fr}.gallery{display:block;max-height:none}.gallery img,.gallery img:first-child{height:280px;margin-bottom:7px}.metric-row{grid-template-columns:1fr 1fr}.metric-row div{border-bottom:1px solid var(--line)}.sidebar nav{grid-template-columns:1fr 1fr}.stat-grid{grid-template-columns:1fr}.admin-main{padding:18px}}

/* MCI FIX2 — tipografia mais leve e visual clean */
body{
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}
.topbar{
  height: 78px;
  background: rgba(255,255,255,.98);
}
.brand{
  font-weight: 600;
  letter-spacing: .02em;
  font-size: 15px;
}
.brand-mark{
  font-weight: 600;
}
.nav{
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .035em;
  gap: 24px;
}
.eyebrow{
  font-weight: 600;
  letter-spacing: .14em;
}
.hero h1,.page-hero h1,.property-title h1,.admin-head h1{
  font-weight: 500;
  letter-spacing: -.025em;
}
.section h2,.admin-card h2{
  font-weight: 500;
  letter-spacing: -.015em;
}
.property-body h3{
  font-weight: 500;
}
.property-body small,
.stat span,
label,
th{
  font-weight: 500;
}
.price,
.property-price,
.stat b{
  font-weight: 600;
}
.btn{
  font-weight: 600;
  letter-spacing: .035em;
}
.text-link{
  font-weight: 500;
}
.footer strong{
  font-weight: 500;
  letter-spacing: .04em;
}


/* MCI FIX3 — título principal em uma linha no desktop */
.hero h1{
  white-space: nowrap;
  max-width: none;
  font-size: clamp(34px, 4.6vw, 66px);
}

@media(max-width: 760px){
  .hero h1{
    white-space: normal;
    font-size: 42px;
  }
}


/* MCI FIX4 — título principal em linha única */
.hero h1{
  white-space: nowrap !important;
  max-width: none !important;
  font-size: clamp(32px, 4.25vw, 62px);
  font-weight: 500;
}
@media (max-width: 760px){
  .hero h1{
    white-space: normal !important;
    font-size: 40px;
  }
}


/* MCI FIX5 — CMS administrativo */
.admin-subtitle{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.cms-form{
  max-width: 1100px;
}
.cms-section{
  margin-bottom: 22px;
}
.cms-section-head{
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cms-section-head h2{
  margin: 0;
  font-size: 24px;
}
.full-field{
  grid-column: 1 / -1;
}
.cms-actions{
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 10px 0 30px;
}
.btn.secondary{
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.admin-quick{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
}
.admin-quick h2{
  margin:4px 0 6px;
}
.admin-quick p{
  margin:0;
  color:var(--muted);
}
@media(max-width:700px){
  .admin-quick{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* MCI FIX7 — página de contato */
.contact-hero p{
  max-width: 700px;
  color: var(--muted);
  font-size: 17px;
  margin-top: 10px;
}

.contact-layout{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 46px;
  align-items: start;
}

.contact-intro h2,
.contact-form-head h2{
  margin: 6px 0 8px;
  font-size: 30px;
  font-weight: 500;
}

.contact-intro p,
.contact-form-head p{
  margin: 0;
  color: var(--muted);
}

.contact-cards{
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
  display: flex;
  gap: 16px;
  min-height: 160px;
}

.contact-icon{
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--dark);
}

.contact-card small{
  display: block;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-card strong{
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-card p{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-link{
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
}

.contact-form-wrap{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  padding: 28px;
  position: sticky;
  top: 100px;
}

.contact-form{
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.contact-form label{
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea{
  margin-top: 6px;
  background: #fff;
}

@media(max-width:900px){
  .contact-layout{
    grid-template-columns: 1fr;
  }

  .contact-form-wrap{
    position: static;
  }
}

@media(max-width:600px){
  .contact-cards{
    grid-template-columns: 1fr;
  }

  .contact-card{
    min-height: auto;
  }
}


/* FIX11 — fundo da Home com imagem opcional */
.hero{
  position: relative;
  background:
    linear-gradient(120deg, #0b2130 0%, #173445 55%, #27475b 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-content{
  position: relative;
  z-index: 2;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 95% 48%, rgba(255,255,255,.08) 0, rgba(255,255,255,.04) 28%, transparent 28.3%);
  pointer-events: none;
}

.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}

.hero h1{
  white-space: nowrap;
}

@media(max-width:760px){
  .hero h1{
    white-space: normal;
  }
}

/* FIX11 — botão flutuante WhatsApp com ícone */
.whatsapp{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: #1f2c3a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
  z-index: 60;
  padding: 0;
  font-size: 0;
  text-decoration: none;
}

.whatsapp svg{
  width: 30px;
  height: 30px;
  display: block;
}

.whatsapp svg circle{
  fill: #25D366;
}

.whatsapp svg .wa-mark{
  fill: #ffffff;
}

.whatsapp:hover{
  transform: translateY(-2px);
}

/* FIX11 — rodapé */
.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}

.footer-bottom .ga-credit{
  margin-left:auto;
  text-align:right;
}

.footer-bottom .ga-credit a{
  color:inherit;
  text-decoration:none;
}

.footer-bottom .ga-credit a:hover{
  opacity:.75;
}

/* FIX11 — upload da imagem da Home */
.visual-upload-box{
  display:block;
}

.upload-help{
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hero-preview{
  width: 100%;
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  margin: 10px 0 12px;
}

.hero-preview img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.check-inline{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

@media(max-width:700px){
  .footer-bottom{
    justify-content:center;
    text-align:center;
  }

  .footer-bottom .ga-credit{
    margin-left:0;
    text-align:center;
    width:100%;
  }

  .whatsapp{
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .whatsapp svg{
    width: 28px;
    height: 28px;
  }
}


/* FIX12 — ícone do WhatsApp administrável */
.whatsapp-custom-icon{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
  border-radius:999px;
}

.wa-admin-preview{
  width:90px;
  height:90px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  display:grid;
  place-items:center;
  padding:10px;
  margin:10px 0 12px;
}

.wa-admin-preview img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
}


/* FIX13 — editor visual de textos no CMS */
.rich-field{
  display:block;
}

.rich-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  align-items:center;
  border:1px solid var(--line);
  border-bottom:0;
  background:#f7f9fa;
  padding:8px;
  border-radius:10px 10px 0 0;
  margin-top:7px;
}

.rich-toolbar button{
  min-width:34px;
  height:32px;
  border:1px solid transparent;
  background:transparent;
  border-radius:6px;
  color:var(--text);
  font-size:12px;
  cursor:pointer;
  padding:0 9px;
}

.rich-toolbar button:hover{
  background:#fff;
  border-color:var(--line);
}

.toolbar-sep{
  width:1px;
  height:22px;
  background:var(--line);
  margin:0 3px;
}

.rich-editor{
  min-height:150px;
  border:1px solid var(--line);
  border-radius:0 0 10px 10px;
  background:#fff;
  padding:15px 16px;
  outline:none;
  color:var(--text);
  font-size:14px;
  line-height:1.7;
}

.rich-editor:focus{
  border-color:#9baab3;
  box-shadow:0 0 0 3px rgba(31,93,107,.06);
}

.rich-editor p{
  margin:.4em 0 .8em;
}

.rich-editor ul,
.rich-editor ol{
  padding-left:24px;
}

.rich-output,
.hero-rich-text,
.section-rich-text,
.footer-rich-text{
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
}

.rich-output p,
.hero-rich-text p,
.section-rich-text p,
.footer-rich-text p{
  margin:.35em 0 .75em;
}

.rich-output ul,
.rich-output ol,
.section-rich-text ul,
.hero-rich-text ul{
  display:inline-block;
  text-align:left;
  padding-left:22px;
}

.hero-rich-text{
  max-width:670px;
  font-size:18px;
  color:#dce5e7;
}

.section-rich-text{
  color:var(--muted);
  line-height:1.7;
}

.footer-rich-text{
  color:inherit;
  line-height:1.65;
}

.institutional-text.rich-output{
  text-align:center;
}

.institutional-text.rich-output p{
  text-align:inherit;
}

@media(max-width:600px){
  .rich-toolbar{
    gap:3px;
  }

  .rich-toolbar button{
    min-width:31px;
    padding:0 7px;
  }
}


/* FIX14 — imagem de fundo da Home vinda do painel */
.hero.hero-has-image{
  background-image:
    linear-gradient(rgba(8,24,35,.58), rgba(18,48,63,.44)),
    var(--hero-bg-image) !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}

/* FIX14 — todas as fotos do imóvel visíveis */
.property-gallery{
  width:100%;
  margin-top:24px;
}

.property-gallery-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.gallery-item{
  position:relative;
  width:100%;
  height:240px;
  padding:0;
  border:0;
  background:#edf1f2;
  border-radius:14px;
  overflow:hidden;
  cursor:pointer;
}

.gallery-item.gallery-main{
  grid-column:span 2;
  grid-row:span 2;
  height:490px;
}

.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  transition:transform .25s ease;
}

.gallery-item:hover img{
  transform:scale(1.02);
}

.gallery-count{
  position:absolute;
  right:16px;
  bottom:16px;
  padding:9px 13px;
  border-radius:999px;
  background:rgba(17,25,34,.88);
  color:#fff;
  font-size:12px;
  font-weight:600;
}

/* Lightbox */
body.gallery-open{
  overflow:hidden;
}

.gallery-lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(7,12,17,.94);
  display:none;
  align-items:center;
  justify-content:center;
  padding:34px 80px 120px;
}

.gallery-lightbox.open{
  display:flex;
}

.gallery-lightbox-stage{
  width:min(1180px, 100%);
  height:min(76vh, 760px);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.gallery-lightbox-stage > img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
  border-radius:8px;
}

.gallery-lightbox-counter{
  position:absolute;
  bottom:12px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(0,0,0,.62);
  color:#fff;
  padding:7px 11px;
  border-radius:999px;
  font-size:12px;
}

.gallery-close,
.gallery-nav{
  position:absolute;
  border:0;
  background:rgba(255,255,255,.12);
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:2;
}

.gallery-close{
  top:20px;
  right:24px;
  width:44px;
  height:44px;
  border-radius:999px;
  font-size:30px;
  line-height:1;
}

.gallery-nav{
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:70px;
  border-radius:12px;
  font-size:42px;
}

.gallery-prev{left:18px}
.gallery-next{right:18px}

.gallery-lightbox-thumbs{
  position:absolute;
  left:50%;
  bottom:22px;
  transform:translateX(-50%);
  width:min(900px, calc(100% - 40px));
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:5px;
}

.gallery-lightbox-thumbs button{
  flex:0 0 82px;
  height:62px;
  padding:0;
  border:2px solid transparent;
  border-radius:8px;
  overflow:hidden;
  opacity:.55;
  background:#111;
  cursor:pointer;
}

.gallery-lightbox-thumbs button.active{
  opacity:1;
  border-color:#fff;
}

.gallery-lightbox-thumbs img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

@media(max-width:900px){
  .property-gallery-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .gallery-item,
  .gallery-item.gallery-main{
    grid-column:auto;
    grid-row:auto;
    height:260px;
  }

  .gallery-item.gallery-main{
    grid-column:1 / -1;
    height:420px;
  }

  .gallery-lightbox{
    padding:60px 18px 110px;
  }

  .gallery-nav{
    width:42px;
    height:58px;
    font-size:34px;
  }
}

@media(max-width:600px){
  .property-gallery-grid{
    grid-template-columns:1fr;
  }

  .gallery-item,
  .gallery-item.gallery-main{
    grid-column:auto;
    height:280px;
  }

  .gallery-lightbox{
    padding:64px 10px 100px;
  }

  .gallery-nav{
    top:auto;
    bottom:104px;
    transform:none;
  }

  .gallery-prev{left:14px}
  .gallery-next{right:14px}

  .gallery-lightbox-thumbs button{
    flex-basis:68px;
    height:52px;
  }
}


/* FIX15 — seleção da imagem principal no painel */
.admin-photo-section{
  margin:18px 0 24px;
}

.photo-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:14px;
}

.photo-section-head h3{
  margin:0 0 4px;
  font-size:18px;
  font-weight:500;
}

.photo-section-head p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.admin-photos.cover-selector{
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:14px;
  margin:0;
}

.admin-photo-card{
  position:relative;
  display:block;
  border:2px solid transparent;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.admin-photo-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}

.admin-photo-card.is-cover{
  border-color:var(--dark);
  box-shadow:0 0 0 3px rgba(17,25,34,.08);
}

.admin-photo-card > input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.admin-photo-card img{
  width:100%;
  height:165px;
  object-fit:cover;
  object-position:center;
  display:block;
  border-radius:0;
}

.photo-cover-badge{
  position:absolute;
  top:10px;
  left:10px;
  z-index:2;
  display:none;
  padding:6px 9px;
  border-radius:999px;
  background:var(--dark);
  color:#fff;
  font-size:9px;
  font-weight:600;
  letter-spacing:.08em;
}

.admin-photo-card.is-cover .photo-cover-badge{
  display:inline-flex;
}

.photo-cover-action{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:46px;
  padding:10px 12px;
  font-size:12px;
  color:var(--muted);
}

.admin-photo-card.is-cover .photo-cover-action{
  color:var(--text);
  font-weight:500;
}

.cover-radio-ui{
  width:16px;
  height:16px;
  flex:0 0 16px;
  border:1.5px solid #9aa5ad;
  border-radius:999px;
  position:relative;
}

.admin-photo-card.is-cover .cover-radio-ui{
  border-color:var(--dark);
}

.admin-photo-card.is-cover .cover-radio-ui::after{
  content:"";
  position:absolute;
  inset:3px;
  border-radius:999px;
  background:var(--dark);
}

@media(max-width:1000px){
  .admin-photos.cover-selector{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
}

@media(max-width:700px){
  .admin-photos.cover-selector{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .admin-photo-card img{
    height:140px;
  }
}

@media(max-width:460px){
  .admin-photos.cover-selector{
    grid-template-columns:1fr;
  }

  .admin-photo-card img{
    height:220px;
  }
}


/* FIX17 — zoom na galeria de fotos */
.gallery-lightbox-stage{
  overflow:visible;
}

.gallery-image-viewport{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:8px;
  cursor:zoom-in;
  touch-action:none;
}

.gallery-image-viewport.is-zoomed{
  cursor:grab;
}

.gallery-image-viewport.is-dragging{
  cursor:grabbing;
}

.gallery-image-viewport > img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
  transform-origin:center center;
  transition:transform .12s ease;
  user-select:none;
  -webkit-user-drag:none;
}

.gallery-image-viewport.is-dragging > img{
  transition:none;
}

.gallery-zoom-controls{
  position:absolute;
  top:14px;
  left:50%;
  transform:translateX(-50%);
  z-index:3;
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px;
  border-radius:12px;
  background:rgba(0,0,0,.58);
  backdrop-filter:blur(8px);
}

.gallery-zoom-controls button{
  min-width:36px;
  height:34px;
  padding:0 10px;
  border:0;
  border-radius:8px;
  background:rgba(255,255,255,.13);
  color:#fff;
  font-size:18px;
  cursor:pointer;
}

.gallery-zoom-controls button:hover{
  background:rgba(255,255,255,.22);
}

.gallery-zoom-controls button:disabled{
  opacity:.35;
  cursor:default;
}

.gallery-zoom-controls [data-gallery-zoom-label]{
  min-width:48px;
  text-align:center;
  color:#fff;
  font-size:11px;
  font-weight:600;
}

.gallery-zoom-controls .gallery-zoom-reset{
  width:auto;
  font-size:11px;
  letter-spacing:.02em;
}

@media(max-width:600px){
  .gallery-zoom-controls{
    top:8px;
  }

  .gallery-zoom-controls button{
    min-width:34px;
    height:32px;
  }
}


/* FIX18 — padronização dos cards de fotos no painel */
.admin-photos.cover-selector{
  align-items:stretch;
}

.admin-photo-card{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:255px;
  overflow:visible;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}

.admin-photo-card.is-cover{
  border:2px solid var(--dark);
}

.admin-photo-card img{
  width:100%;
  height:165px;
  flex:0 0 165px;
  object-fit:cover;
  object-position:center;
  border-radius:12px 12px 0 0;
}

.photo-cover-action{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:46px;
  padding:10px 12px 8px;
  margin:0;
  flex:0 0 auto;
}

.photo-delete-btn{
  display:block;
  width:calc(100% - 20px);
  min-height:38px;
  margin:auto 10px 10px;
  padding:9px 10px;
  box-sizing:border-box;
  flex:0 0 auto;
  position:relative;
  z-index:3;
}

.photo-cover-badge{
  z-index:4;
}

@media(max-width:700px){
  .admin-photo-card{
    min-height:230px;
  }

  .admin-photo-card img{
    height:145px;
    flex-basis:145px;
  }
}

@media(max-width:460px){
  .admin-photo-card{
    min-height:310px;
  }

  .admin-photo-card img{
    height:220px;
    flex-basis:220px;
  }
}


/* FIX19 — botões das fotos no mesmo padrão do administrativo */
.photo-card-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:10px;
  margin-top:auto;
}

.admin-photo-action{
  width:100%;
  min-height:40px;
  border-radius:10px;
  padding:10px 14px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:inherit;
  font-size:12px;
  font-weight:600;
  letter-spacing:.035em;
  line-height:1.2;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}

.admin-photo-action-secondary{
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
}

.admin-photo-card:hover .admin-photo-action-secondary{
  border-color:#cbd3d8;
}

.admin-photo-card.is-cover .admin-photo-action-secondary{
  background:var(--dark);
  border-color:var(--dark);
  color:#fff;
}

.admin-photo-card.is-cover .cover-radio-ui{
  border-color:#fff;
}

.admin-photo-card.is-cover .cover-radio-ui::after{
  background:#fff;
}

.admin-photo-action-danger{
  border:1px solid #e2c9c9;
  background:#fff;
  color:#9c3e3e;
}

.admin-photo-action-danger:hover{
  background:#fff6f6;
  border-color:#d6abab;
}

.photo-delete-btn{
  width:100%;
  min-height:40px;
  margin:0;
  padding:10px 14px;
  position:relative;
  z-index:3;
}

.photo-cover-action{
  min-height:40px;
  padding:10px 14px;
  margin:0;
  flex:0 0 auto;
}

.cover-radio-ui{
  width:15px;
  height:15px;
  flex:0 0 15px;
}

@media(max-width:700px){
  .admin-photo-action{
    min-height:42px;
  }
}


/* FIX20.2 — seleção múltipla de vídeos */
.video-upload-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#f8fafb;
  margin:12px 0 14px;
}

.video-upload-panel strong{
  display:block;
  margin-bottom:4px;
  font-size:14px;
  font-weight:600;
}

.video-upload-panel .admin-help-text{
  margin:0;
}

.video-upload-btn{
  flex:0 0 auto;
  cursor:pointer;
}

.video-upload-btn.is-disabled{
  opacity:.45;
  pointer-events:none;
}

.video-selection-preview{
  display:grid;
  gap:8px;
  margin:0 0 18px;
}

.video-selection-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  font-size:12px;
}

.video-selection-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.video-selection-size{
  flex:0 0 auto;
  color:var(--muted);
}

@media(max-width:700px){
  .video-upload-panel{
    flex-direction:column;
    align-items:flex-start;
  }

  .video-upload-btn{
    width:100%;
  }
}


/* FIX21 — logo administrável no cabeçalho */
.header-brand{
  height:100%;
  min-width:0;
  display:flex;
  align-items:center;
}

.header-logo{
  display:block;
  width:auto;
  height:auto;
  max-height:46px;
  max-width:285px;
  object-fit:contain;
  object-position:left center;
}

.header-logo-admin-preview{
  width:min(420px, 100%);
  height:82px;
  padding:12px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin:10px 0 12px;
}

.header-logo-admin-preview img{
  display:block;
  width:auto;
  height:auto;
  max-height:54px;
  max-width:100%;
  object-fit:contain;
  object-position:left center;
}

@media(max-width:900px){
  .header-logo{
    max-height:42px;
    max-width:230px;
  }
}

@media(max-width:600px){
  .header-logo{
    max-height:38px;
    max-width:190px;
  }
}


/* FIX22 — checkboxes de remoção no padrão do admin */
.check-inline{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  margin:8px 0 14px !important;
  color:var(--text);
  font-size:13px;
  font-weight:500;
  line-height:1.2;
  cursor:pointer;
  white-space:nowrap;
}

.check-inline input[type="checkbox"]{
  width:16px !important;
  height:16px !important;
  margin:0 !important;
  flex:0 0 16px;
  accent-color:#1769d2;
}

.visual-upload-box .check-inline{
  width:auto;
  max-width:100%;
}

@media(max-width:600px){
  .check-inline{
    white-space:normal;
  }
}


/* FIX23 — logo maior e cabeçalho inteligente */
.topbar{
  background:var(--header-bg, #ffffff) !important;
  color:var(--header-text, #17212b);
  transition:background .25s ease, color .25s ease;
}

.topbar .brand,
.topbar .nav a,
.topbar .menu-toggle{
  color:var(--header-text, #17212b);
}

.topbar .brand-mark{
  background:var(--header-text, #17212b);
  color:var(--header-bg, #ffffff);
}

.header-logo{
  max-height:58px;
  max-width:360px;
}

@media(max-width:900px){
  .header-logo{
    max-height:52px;
    max-width:300px;
  }
}

@media(max-width:600px){
  .header-logo{
    max-height:46px;
    max-width:230px;
  }
}

/* FIX23 — aparência do cabeçalho no painel */
.header-mode-field{
  display:block;
}

.header-mode-options{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
  margin-top:8px;
}

.admin-choice{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
}

.admin-choice input[type="radio"]{
  width:16px;
  height:16px;
  margin:2px 0 0;
  flex:0 0 16px;
  accent-color:#1769d2;
}

.admin-choice span{
  display:block;
}

.admin-choice strong{
  display:block;
  color:var(--text);
  font-size:13px;
  font-weight:600;
  margin-bottom:3px;
}

.admin-choice small{
  display:block;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}

.color-field{
  display:block;
}

.color-control{
  display:grid;
  grid-template-columns:52px 1fr;
  gap:8px;
  margin-top:6px;
}

.color-control input[type="color"]{
  width:52px;
  height:44px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  cursor:pointer;
}

.color-control input[type="text"]{
  margin:0;
}

@media(max-width:800px){
  .header-mode-options{
    grid-template-columns:1fr;
  }
}


/* FIX24 — logo em 50% do tamanho original com barra ajustável */
.topbar.has-custom-logo{
  height:auto;
  min-height:430px;
  padding:18px 0;
}

.topbar.has-custom-logo .nav-wrap{
  min-height:390px;
  align-items:center;
}

.topbar.has-custom-logo .header-brand{
  min-height:390px;
  display:flex;
  align-items:center;
}

.topbar.has-custom-logo .header-logo{
  width:auto;
  height:auto;
  max-width:380px;
  max-height:391px;
  object-fit:contain;
  object-position:left center;
}

@media(max-width:1200px){
  .topbar.has-custom-logo{
    min-height:360px;
    padding:14px 0;
  }

  .topbar.has-custom-logo .nav-wrap,
  .topbar.has-custom-logo .header-brand{
    min-height:330px;
  }

  .topbar.has-custom-logo .header-logo{
    max-width:320px;
    max-height:330px;
  }
}

@media(max-width:900px){
  .topbar.has-custom-logo{
    min-height:300px;
  }

  .topbar.has-custom-logo .nav-wrap,
  .topbar.has-custom-logo .header-brand{
    min-height:270px;
  }

  .topbar.has-custom-logo .header-logo{
    max-width:250px;
    max-height:270px;
  }
}

@media(max-width:600px){
  .topbar.has-custom-logo{
    min-height:220px;
  }

  .topbar.has-custom-logo .nav-wrap,
  .topbar.has-custom-logo .header-brand{
    min-height:190px;
  }

  .topbar.has-custom-logo .header-logo{
    max-width:180px;
    max-height:190px;
  }
}


/* FIX24.1 — logo proporcional ao cabeçalho */
.topbar.has-custom-logo{
  min-height:118px;
  height:auto;
  padding:10px 0;
}

.topbar.has-custom-logo .nav-wrap{
  min-height:96px;
  align-items:center;
}

.topbar.has-custom-logo .header-brand{
  min-height:96px;
  display:flex;
  align-items:center;
}

.topbar.has-custom-logo .header-logo{
  width:auto;
  height:auto;
  max-width:150px;
  max-height:96px;
  object-fit:contain;
  object-position:left center;
}

@media(max-width:900px){
  .topbar.has-custom-logo{
    min-height:102px;
    padding:8px 0;
  }

  .topbar.has-custom-logo .nav-wrap,
  .topbar.has-custom-logo .header-brand{
    min-height:84px;
  }

  .topbar.has-custom-logo .header-logo{
    max-width:130px;
    max-height:84px;
  }
}

@media(max-width:600px){
  .topbar.has-custom-logo{
    min-height:88px;
    padding:7px 0;
  }

  .topbar.has-custom-logo .nav-wrap,
  .topbar.has-custom-logo .header-brand{
    min-height:72px;
  }

  .topbar.has-custom-logo .header-logo{
    max-width:110px;
    max-height:72px;
  }
}


/* FIX25 — logo um pouco maior, mantendo proporção equilibrada */
.topbar.has-custom-logo{
  min-height:152px;
  padding:10px 0;
}

.topbar.has-custom-logo .nav-wrap{
  min-height:130px;
}

.topbar.has-custom-logo .header-brand{
  min-height:130px;
}

.topbar.has-custom-logo .header-logo{
  max-width:190px;
  max-height:130px;
}

@media(max-width:900px){
  .topbar.has-custom-logo{
    min-height:132px;
  }

  .topbar.has-custom-logo .nav-wrap,
  .topbar.has-custom-logo .header-brand{
    min-height:112px;
  }

  .topbar.has-custom-logo .header-logo{
    max-width:165px;
    max-height:112px;
  }
}

@media(max-width:600px){
  .topbar.has-custom-logo{
    min-height:108px;
  }

  .topbar.has-custom-logo .nav-wrap,
  .topbar.has-custom-logo .header-brand{
    min-height:90px;
  }

  .topbar.has-custom-logo .header-logo{
    max-width:135px;
    max-height:90px;
  }
}


/* FIX26 — logo 4x maior que o tamanho do FIX25 */
.topbar.has-custom-logo{
  min-height:560px;
  padding:18px 0;
}

.topbar.has-custom-logo .nav-wrap{
  min-height:520px;
  align-items:center;
}

.topbar.has-custom-logo .header-brand{
  min-height:520px;
}

.topbar.has-custom-logo .header-logo{
  max-width:760px;
  max-height:520px;
  width:auto;
  height:auto;
  object-fit:contain;
  object-position:left center;
}

@media(max-width:1200px){
  .topbar.has-custom-logo{
    min-height:470px;
  }

  .topbar.has-custom-logo .nav-wrap,
  .topbar.has-custom-logo .header-brand{
    min-height:430px;
  }

  .topbar.has-custom-logo .header-logo{
    max-width:620px;
    max-height:430px;
  }
}

@media(max-width:900px){
  .topbar.has-custom-logo{
    min-height:360px;
  }

  .topbar.has-custom-logo .nav-wrap,
  .topbar.has-custom-logo .header-brand{
    min-height:325px;
  }

  .topbar.has-custom-logo .header-logo{
    max-width:470px;
    max-height:325px;
  }
}

@media(max-width:600px){
  .topbar.has-custom-logo{
    min-height:240px;
  }

  .topbar.has-custom-logo .nav-wrap,
  .topbar.has-custom-logo .header-brand{
    min-height:210px;
  }

  .topbar.has-custom-logo .header-logo{
    max-width:300px;
    max-height:210px;
  }
}


/* FIX26.1 — força real do tamanho da logo */
.topbar.has-custom-logo{
  min-height:210px !important;
  height:auto !important;
  padding:14px 0 !important;
}

.topbar.has-custom-logo .nav-wrap{
  min-height:180px !important;
  align-items:center !important;
}

.topbar.has-custom-logo .header-brand{
  min-height:180px !important;
  height:auto !important;
  display:flex !important;
  align-items:center !important;
}

.topbar.has-custom-logo .header-logo{
  height:180px !important;
  width:auto !important;
  max-height:none !important;
  max-width:none !important;
  object-fit:contain !important;
  object-position:left center !important;
  display:block !important;
}

@media(max-width:900px){
  .topbar.has-custom-logo{
    min-height:170px !important;
  }

  .topbar.has-custom-logo .nav-wrap,
  .topbar.has-custom-logo .header-brand{
    min-height:145px !important;
  }

  .topbar.has-custom-logo .header-logo{
    height:145px !important;
  }
}

@media(max-width:600px){
  .topbar.has-custom-logo{
    min-height:135px !important;
  }

  .topbar.has-custom-logo .nav-wrap,
  .topbar.has-custom-logo .header-brand{
    min-height:112px !important;
  }

  .topbar.has-custom-logo .header-logo{
    height:112px !important;
  }
}


/* FIX26.2 — aumenta diretamente a logo visível dentro da barra */
.topbar{
  min-height:170px !important;
  height:auto !important;
  padding:10px 0 !important;
}

.topbar .nav-wrap{
  min-height:148px !important;
  align-items:center !important;
}

.topbar .header-brand{
  min-height:148px !important;
  height:auto !important;
  display:flex !important;
  align-items:center !important;
}

.topbar .header-brand img.header-logo{
  height:145px !important;
  width:auto !important;
  max-height:none !important;
  max-width:none !important;
  min-height:145px !important;
  object-fit:contain !important;
  object-position:left center !important;
  display:block !important;
}

@media(max-width:900px){
  .topbar{
    min-height:145px !important;
  }

  .topbar .nav-wrap,
  .topbar .header-brand{
    min-height:124px !important;
  }

  .topbar .header-brand img.header-logo{
    height:120px !important;
    min-height:120px !important;
  }
}

@media(max-width:600px){
  .topbar{
    min-height:115px !important;
  }

  .topbar .nav-wrap,
  .topbar .header-brand{
    min-height:96px !important;
  }

  .topbar .header-brand img.header-logo{
    height:92px !important;
    min-height:92px !important;
  }
}


/* FIX27 — padronização dos campos e localização */
.form-grid input,
.form-grid select,
.form-grid textarea,
.search-bar input,
.search-bar select,
.filter-panel input,
.filter-panel select{
  min-height:44px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--text);
  font:inherit;
}

.location-combo{
  display:grid;
  gap:8px;
}

.location-manual{
  display:none;
}

.location-manual.show{
  display:block;
}

.search-bar.search-bar-location{
  grid-template-columns:1.1fr .72fr 1fr 1fr 1fr auto;
}

.search-bar.search-bar-location select{
  min-width:0;
}

.search-bar select:disabled{
  opacity:.55;
  cursor:not-allowed;
}

/* FIX27 — WhatsApp centralizado e proporcional */
.whatsapp{
  overflow:hidden !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
}

.whatsapp svg,
.whatsapp img.whatsapp-custom-icon{
  width:72% !important;
  height:72% !important;
  max-width:72% !important;
  max-height:72% !important;
  margin:0 !important;
  padding:0 !important;
  object-fit:contain !important;
  object-position:center !important;
  border-radius:0 !important;
}

.whatsapp svg{
  display:block !important;
}

@media(max-width:1050px){
  .search-bar.search-bar-location{
    grid-template-columns:repeat(3,1fr);
  }

  .search-bar.search-bar-location .btn{
    grid-column:auto;
  }
}

@media(max-width:700px){
  .search-bar.search-bar-location{
    grid-template-columns:1fr;
  }
}


/* FIX28 — combos nacionais Estado > Cidade > Bairro */
#admin-cidade-select,
#admin-bairro-select,
#home-cidade,
#home-bairro{
  width:100%;
}

#admin-cidade-select:disabled,
#admin-bairro-select:disabled,
#home-cidade:disabled,
#home-bairro:disabled{
  cursor:wait;
  opacity:.6;
}

.location-manual{
  display:none !important;
}


/* FIX29 — checkbox global padronizado em todas as telas */
input[type="checkbox"]{
  width:16px !important;
  height:16px !important;
  min-width:16px !important;
  min-height:16px !important;
  margin:0 !important;
  padding:0 !important;
  flex:0 0 16px !important;
  vertical-align:middle;
  accent-color:#1769d2;
  cursor:pointer;
}

/* Labels que contêm checkbox */
label:has(input[type="checkbox"]){
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  width:auto !important;
  max-width:100%;
  margin:0 !important;
  line-height:1.2 !important;
  white-space:nowrap;
  cursor:pointer;
  font-size:13px;
  font-weight:500;
  color:var(--text);
}

/* Mantém grupos de checkbox em uma única linha sempre que houver espaço */
.check-row,
.check-inline,
.checkbox-row,
.checkbox-group{
  display:flex !important;
  align-items:center !important;
  gap:22px !important;
  flex-wrap:wrap;
}

/* Remove margens herdadas de inputs dentro dos labels */
label:has(input[type="checkbox"]) input[type="checkbox"]{
  margin:0 !important;
}

/* Evita que textos de checkbox quebrem em duas linhas no desktop */
label:has(input[type="checkbox"]) span,
label:has(input[type="checkbox"]) small{
  display:inline !important;
  white-space:nowrap;
}

/* Admin choices e opções especiais continuam alinhadas */
.admin-choice:has(input[type="checkbox"]){
  display:flex !important;
  align-items:center !important;
}

/* Mobile: permite quebra apenas quando realmente faltar largura */
@media(max-width:600px){
  label:has(input[type="checkbox"]){
    white-space:normal;
  }

  label:has(input[type="checkbox"]) span,
  label:has(input[type="checkbox"]) small{
    white-space:normal;
  }
}


/* FIX30 — localização padronizada em Encontre seu imóvel */
.property-filter-panel{
  grid-template-columns:1.35fr .8fr .9fr 1.05fr 1.05fr 1fr auto;
  align-items:center;
}

.property-filter-panel input,
.property-filter-panel select,
.property-filter-panel .btn{
  min-height:46px;
}

.property-filter-panel select:disabled{
  opacity:.58;
  cursor:wait;
}

@media(max-width:1100px){
  .property-filter-panel{
    grid-template-columns:repeat(3,1fr);
  }
}

@media(max-width:700px){
  .property-filter-panel{
    grid-template-columns:1fr;
  }
}


/* FIX31 — barras de rolagem finas e padronizadas em todo o site */

/* Firefox */
html,
body,
*{
  scrollbar-width:thin;
  scrollbar-color:rgba(70,85,100,.42) transparent;
}

/* Chromium / Edge / Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar{
  width:7px;
  height:7px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track{
  background:transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb{
  background:rgba(70,85,100,.34);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover{
  background:rgba(70,85,100,.55);
  border:2px solid transparent;
  background-clip:padding-box;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner{
  background:transparent;
}

/* Áreas internas com rolagem ficam ainda mais discretas */
.modal,
.lightbox,
.admin-table-wrap,
.table-wrap,
.cards-scroll,
.gallery-thumbs,
textarea,
select{
  scrollbar-width:thin;
}

@media(max-width:700px){
  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  *::-webkit-scrollbar{
    width:5px;
    height:5px;
  }
}


/* FIX34 — diagnóstico do envio de e-mail */
.mail-test-panel{
  margin:14px 0 18px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
}

.mail-test-result{
  flex:1 1 420px;
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  font-size:13px;
}

.mail-test-result.ok{
  border-color:#b8dcc7;
  background:#f2fbf5;
}

.mail-test-result.error{
  border-color:#efc1c1;
  background:#fff5f5;
}

.mail-test-result strong{
  font-size:13px;
}

.mail-test-result span{
  color:var(--muted);
  line-height:1.35;
}


/* FIX35 — aviso sobre mail() e provedores públicos */
.mail-provider-warning{
  margin:0 0 18px;
  padding:12px 14px;
  border:1px solid #ead8a6;
  border-radius:10px;
  background:#fffaf0;
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:13px;
}

.mail-provider-warning strong{
  color:#6b5311;
}

.mail-provider-warning span{
  color:var(--muted);
  line-height:1.4;
}


/* FIX37 — envio simples igual ao fluxo Esqueci minha senha */
.mail-simple-box{
  margin:12px 0;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.mail-simple-box strong{
  font-size:13px;
}

.mail-simple-box span{
  font-size:15px;
  font-weight:600;
  color:var(--text);
}

.mail-simple-box small{
  color:var(--muted);
  line-height:1.4;
}

.mail-provider-warning,
.smtp-technical-box{
  display:none !important;
}


/* FIX38 — detalhes dos anúncios recebidos */
.anuncio-click-row{
  cursor:pointer;
  transition:background .18s ease;
}

.anuncio-click-row:hover{
  background:rgba(30,70,95,.035);
}

.table-action-cell{
  width:1%;
  white-space:nowrap;
}

.empty-table{
  text-align:center;
  color:var(--muted);
  padding:28px 14px !important;
}

.admin-notice{
  margin:0 0 16px;
  padding:11px 14px;
  border-radius:10px;
  border:1px solid var(--line);
  font-size:13px;
}

.admin-notice.success{
  background:#f2fbf5;
  border-color:#b8dcc7;
}

.anuncio-detail-card{
  padding:22px;
}

.anuncio-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}

.anuncio-detail-head h2{
  margin:4px 0 2px;
}

.anuncio-detail-head p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.anuncio-detail-code{
  font-size:11px;
  letter-spacing:.08em;
  color:var(--muted);
}

.anuncio-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  background:#f1f4f6;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  white-space:nowrap;
}

.anuncio-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:20px;
}

.anuncio-detail-section{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}

.anuncio-detail-section h3{
  margin:0;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background:#fafbfc;
  font-size:11px;
  letter-spacing:.08em;
}

.detail-row{
  display:grid;
  grid-template-columns:145px 1fr;
  gap:14px;
  padding:10px 14px;
  border-bottom:1px solid var(--line);
  font-size:13px;
}

.detail-row:last-child{
  border-bottom:0;
}

.detail-row span{
  color:var(--muted);
}

.detail-row strong{
  font-weight:600;
  overflow-wrap:anywhere;
}

.anuncio-detail-observacoes{
  grid-column:1 / -1;
}

.detail-message{
  padding:14px;
  line-height:1.6;
  white-space:normal;
}

.anuncio-detail-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.btn.danger{
  background:#b42318;
  color:#fff;
  border-color:#b42318;
}

.btn.danger:hover{
  opacity:.88;
}

@media(max-width:800px){
  .anuncio-detail-grid{
    grid-template-columns:1fr;
  }

  .anuncio-detail-observacoes{
    grid-column:auto;
  }

  .detail-row{
    grid-template-columns:1fr;
    gap:4px;
  }

  .anuncio-detail-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .anuncio-detail-actions form,
  .anuncio-detail-actions .btn{
    width:100%;
  }
}


/* FIX39/40 — Leads e Imóveis com detalhes e exclusão */

/* Leads */
.lead-click-row,
.imovel-click-row{
  cursor:pointer;
  transition:background .18s ease;
}

.lead-click-row:hover,
.imovel-click-row:hover{
  background:rgba(30,70,95,.035);
}

.lead-message-preview{
  max-width:300px;
  color:var(--muted);
}

.lead-detail-card,
.imovel-detail-card{
  padding:22px;
}

.lead-detail-head,
.imovel-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}

.lead-detail-head h2,
.imovel-detail-head h2{
  margin:4px 0 2px;
}

.lead-detail-head p,
.imovel-detail-head p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.lead-detail-code,
.imovel-detail-code{
  font-size:11px;
  letter-spacing:.08em;
  color:var(--muted);
}

.lead-status,
.imovel-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  background:#f1f4f6;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  white-space:nowrap;
}

.imovel-status.destaque{
  background:#fff7df;
}

.lead-detail-grid,
.imovel-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:20px;
}

.lead-detail-section,
.imovel-detail-section{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}

.lead-detail-section h3,
.imovel-detail-section h3{
  margin:0;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background:#fafbfc;
  font-size:11px;
  letter-spacing:.08em;
}

.lead-detail-message-section,
.imovel-detail-description{
  grid-column:1 / -1;
}

.lead-detail-actions,
.imovel-detail-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.imovel-detail-actions-left,
.admin-head-actions,
.table-inline-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.imovel-detail-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.imovel-detail-cover{
  margin-top:20px;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#f6f7f8;
  max-height:420px;
}

.imovel-detail-cover img{
  width:100%;
  height:420px;
  object-fit:cover;
}

.imovel-media-summary{
  display:flex;
  gap:12px;
  margin-top:18px;
}

.imovel-media-summary > div{
  min-width:100px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fafbfc;
  display:flex;
  align-items:baseline;
  gap:6px;
}

.imovel-media-summary strong{
  font-size:18px;
}

.imovel-media-summary span{
  color:var(--muted);
  font-size:12px;
}

.imovel-admin-thumb-cell{
  width:82px;
}

.imovel-admin-thumb{
  width:64px;
  height:48px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid var(--line);
}

.imovel-admin-thumb.placeholder{
  display:grid;
  place-items:center;
  background:#f4f5f6;
  color:var(--muted);
  font-size:9px;
}

.admin-notice.error{
  background:#fff5f5;
  border-color:#efc1c1;
}

@media(max-width:800px){
  .lead-detail-grid,
  .imovel-detail-grid{
    grid-template-columns:1fr;
  }

  .lead-detail-message-section,
  .imovel-detail-description{
    grid-column:auto;
  }

  .lead-detail-actions,
  .imovel-detail-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .lead-detail-actions form,
  .lead-detail-actions .btn,
  .imovel-detail-actions form,
  .imovel-detail-actions .btn{
    width:100%;
  }

  .imovel-detail-actions-left,
  .admin-head-actions{
    width:100%;
    flex-direction:column;
    align-items:stretch;
  }

  .imovel-detail-cover,
  .imovel-detail-cover img{
    height:260px;
    max-height:260px;
  }
}


/* FIX41 — padronização global de botões de ação */

/* Botões */
.btn,
button.btn,
a.btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:42px;
  padding:10px 16px;
  line-height:1 !important;
  white-space:nowrap;
  vertical-align:middle;
}

.btn.small,
button.btn.small,
a.btn.small{
  min-height:40px !important;
  padding:9px 14px !important;
  min-width:76px;
}

/* Grupos de ações conhecidos — admin e área pública */
.table-inline-actions,
.admin-head-actions,
.anuncio-detail-actions,
.lead-detail-actions,
.imovel-detail-actions,
.imovel-detail-actions-left,
.photo-actions,
.video-actions,
.record-actions,
.form-actions,
.admin-actions,
.card-actions,
.detail-actions,
.gallery-actions,
.lightbox-actions,
.modal-actions{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
}

/* Ações dentro das tabelas */
.table-action-cell{
  white-space:nowrap !important;
}

.table-action-cell > div,
.table-action-cell > span{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
}

.table-action-cell > a.btn,
.table-action-cell > button.btn,
.table-action-cell form,
.table-action-cell form .btn{
  display:inline-flex !important;
  vertical-align:middle !important;
}

.table-action-cell form{
  margin:0 !important;
}

/* Quando botões aparecem diretamente dentro da mesma célula */
td > .btn + .btn,
td > .btn + form,
td > form + .btn,
td > form + form{
  margin-left:8px !important;
}

/* Cabeçalhos e rodapés de cards */
.admin-head{
  gap:12px;
}

.admin-head > .btn,
.admin-head-actions .btn,
.detail-actions .btn,
.form-actions .btn{
  flex:0 0 auto;
}

/* Evita botões visualmente desalinhados */
.btn.primary,
.btn.secondary,
.btn.danger{
  border-width:1px !important;
}

/* Mobile: só quebra quando faltar espaço */
@media(max-width:700px){
  .table-inline-actions,
  .admin-head-actions,
  .anuncio-detail-actions,
  .lead-detail-actions,
  .imovel-detail-actions,
  .imovel-detail-actions-left,
  .photo-actions,
  .video-actions,
  .record-actions,
  .form-actions,
  .admin-actions,
  .card-actions,
  .detail-actions,
  .gallery-actions,
  .lightbox-actions,
  .modal-actions{
    flex-wrap:wrap !important;
  }

  .table-action-cell > div,
  .table-action-cell > span{
    flex-wrap:wrap !important;
  }
}


/* FIX42 — tabelas do admin compactas e premium em notebook */
@media(min-width:901px) and (max-width:1600px){

  .admin-card.table-wrap{
    padding:14px 18px !important;
    border-radius:16px;
  }

  .admin-card.table-wrap table{
    font-size:13px;
  }

  .admin-card.table-wrap th{
    padding:12px 10px !important;
    font-size:10px !important;
    line-height:1.15;
    letter-spacing:.09em;
    font-weight:600;
    color:var(--muted);
  }

  .admin-card.table-wrap td{
    padding:12px 10px !important;
    line-height:1.35;
    vertical-align:middle;
  }

  .admin-card.table-wrap td strong{
    font-size:13px;
    line-height:1.28;
  }

  .admin-card.table-wrap td small{
    font-size:11px;
    line-height:1.25;
  }

  .imovel-admin-thumb-cell{
    width:64px !important;
  }

  .imovel-admin-thumb{
    width:52px !important;
    height:40px !important;
    border-radius:8px !important;
  }

  .imovel-status,
  .lead-status,
  .anuncio-status{
    min-height:24px !important;
    padding:4px 9px !important;
    font-size:9px !important;
    letter-spacing:.045em;
  }

  .table-action-cell{
    width:1%;
    padding-left:8px !important;
    padding-right:8px !important;
  }

  .table-inline-actions{
    gap:6px !important;
  }

  .table-action-cell .btn.small,
  .table-inline-actions .btn.small{
    min-height:34px !important;
    height:34px !important;
    min-width:64px !important;
    padding:7px 11px !important;
    border-radius:9px !important;
    font-size:10px !important;
    font-weight:700;
    letter-spacing:.025em;
  }

  .imoveis-admin-table td:nth-child(2){
    white-space:nowrap;
  }

  .imoveis-admin-table td:nth-child(3){
    max-width:190px;
  }

  .imoveis-admin-table td:nth-child(4){
    max-width:215px;
  }

  .imoveis-admin-table td:nth-child(5){
    white-space:nowrap;
  }

  .imoveis-admin-table td:nth-child(6){
    min-width:105px;
  }

  .imoveis-admin-table td:nth-child(7){
    min-width:142px;
  }
}

/* Notebook menor: ainda mais compacto sem perder leitura */
@media(min-width:901px) and (max-width:1280px){

  .admin-card.table-wrap{
    padding:10px 12px !important;
  }

  .admin-card.table-wrap th,
  .admin-card.table-wrap td{
    padding-left:7px !important;
    padding-right:7px !important;
  }

  .imovel-admin-thumb{
    width:46px !important;
    height:36px !important;
  }

  .table-action-cell .btn.small,
  .table-inline-actions .btn.small{
    min-width:58px !important;
    padding-left:9px !important;
    padding-right:9px !important;
  }
}


/* FIX43 — usuários administrativos e primeiro acesso */
.first-access-login{
  margin-top:12px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f7f9fb;
  display:flex;
  flex-direction:column;
  gap:3px;
  font-size:12px;
  color:var(--muted);
}

.first-access-login strong{
  color:var(--text);
  font-size:10px;
  letter-spacing:.08em;
}

.first-access-login span{
  color:var(--text);
}

.first-access-login small{
  margin-top:3px;
  color:var(--muted);
}

.admin-password-card,
.admin-user-form-card{
  max-width:900px;
}

.admin-password-form,
.admin-user-form{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.admin-password-form > label,
.admin-user-form label:not(.check-inline){
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  color:var(--muted);
}

.admin-password-form input,
.admin-user-form input,
.admin-user-form select{
  min-height:44px;
}

.first-access-notice{
  background:#fffaf0;
  border-color:#ead8a6;
}

.admin-section-title{
  margin-bottom:18px;
}

.admin-section-title h2{
  margin:0 0 4px;
}

.admin-section-title p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.user-active-field{
  display:flex;
  flex-direction:column;
  gap:9px;
  padding-top:1px;
}

.user-active-field > span{
  font-size:12px;
  color:var(--muted);
}

.user-status,
.user-first-access,
.user-access-ok{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:4px 9px;
  border-radius:999px;
  font-size:9px;
  font-weight:700;
  letter-spacing:.045em;
  white-space:nowrap;
}

.user-status.active,
.user-access-ok{
  background:#eef8f2;
}

.user-status.inactive{
  background:#f3f4f5;
  color:var(--muted);
}

.user-first-access{
  background:#fff7df;
}

.current-user-label{
  display:inline-flex;
  margin-left:7px;
  padding:2px 6px;
  border-radius:999px;
  background:#f1f4f6;
  font-size:8px !important;
  letter-spacing:.06em;
}

.admin-users-table form{
  margin:0;
}

@media(max-width:700px){
  .admin-password-card,
  .admin-user-form-card{
    max-width:none;
  }
}


/* FIX44.2 — login premium responsivo + recuperação de senha */
html,
body{
  min-height:100%;
}

.login-body{
  min-height:100vh !important;
  min-height:100dvh !important;
  height:100vh !important;
  height:100dvh !important;
  margin:0 !important;
  padding:20px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  box-sizing:border-box;
}

.login-card{
  width:min(420px,100%) !important;
  max-height:calc(100dvh - 40px) !important;
  margin:0 !important;
  padding:26px 28px !important;
  overflow:visible !important;
  box-sizing:border-box;
}

.login-card h1{
  margin:16px 0 6px !important;
  font-size:30px !important;
  line-height:1.08 !important;
}

.login-card > p{
  margin:0 0 18px !important;
  font-size:14px !important;
  line-height:1.45 !important;
}

.login-field{
  position:relative;
  display:block;
  width:100%;
  margin:0 0 12px;
}

.login-field input{
  width:100% !important;
  min-height:46px !important;
  padding:11px 14px 11px 44px !important;
  border:1px solid var(--line) !important;
  border-radius:10px !important;
  background:#fff !important;
  color:var(--text) !important;
  font:inherit;
  box-sizing:border-box;
}

.login-field input:focus{
  outline:none;
  border-color:#8ea4b1 !important;
  box-shadow:0 0 0 3px rgba(90,120,140,.10);
}

.login-field-icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  color:#7a8792;
  pointer-events:none;
  z-index:2;
}

.login-field-icon svg{
  display:block;
  width:18px;
  height:18px;
  fill:currentColor;
}

.login-helper-row,
.login-back-row{
  display:flex;
  justify-content:flex-end;
  margin:-2px 0 13px;
}

.login-back-row{
  justify-content:center;
  margin:16px 0 0;
}

.login-helper-row a,
.login-back-row a{
  font-size:10px;
  font-weight:700;
  letter-spacing:.06em;
  color:var(--muted);
}

.login-helper-row a:hover,
.login-back-row a:hover{
  color:var(--text);
}

.login-card .btn.full{
  min-height:44px !important;
  width:100%;
}

.login-recovery-form{
  display:flex;
  flex-direction:column;
}

.login-card-recovery{
  text-align:left;
}

.recovery-success-icon{
  width:44px;
  height:44px;
  margin:18px auto 4px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#eef8f2;
  font-size:20px;
  font-weight:700;
}

.login-card .first-access-login{
  margin-top:12px !important;
  padding:10px 12px !important;
}

/* notebook com menor altura */
@media(max-height:760px) and (min-width:701px){
  .login-body{
    padding:12px !important;
  }

  .login-card{
    max-height:calc(100dvh - 24px) !important;
    padding:20px 24px !important;
  }

  .login-card h1{
    margin-top:12px !important;
    font-size:26px !important;
  }

  .login-card > p{
    margin-bottom:14px !important;
    font-size:13px !important;
  }

  .login-field{
    margin-bottom:9px;
  }

  .login-field input,
  .login-card .btn.full{
    min-height:40px !important;
  }

  .login-field-icon,
  .login-field-icon svg{
    width:16px;
    height:16px;
  }

  .login-card .first-access-login{
    margin-top:9px !important;
    padding:8px 10px !important;
    font-size:11px !important;
  }
}

/* telas realmente pequenas */
@media(max-width:700px), (max-height:560px){
  .login-body{
    height:auto !important;
    min-height:100dvh !important;
    overflow-y:auto !important;
    align-items:flex-start !important;
    padding:14px !important;
  }

  .login-card{
    max-height:none !important;
    margin:auto 0 !important;
    padding:20px !important;
  }

  .login-card h1{
    font-size:24px !important;
  }
}


/* FIX44.4 — tela de troca de senha sem scroll em notebook */
.admin-password-card{
  width:min(760px, 100%) !important;
  margin:0 auto !important;
  padding:22px 24px !important;
  box-sizing:border-box;
}

.admin-password-form{
  gap:14px !important;
}

.admin-password-form > label{
  gap:5px !important;
}

.admin-password-form input{
  min-height:42px !important;
}

.admin-password-card .admin-notice{
  margin-bottom:12px !important;
  padding:10px 12px !important;
}

.admin-password-card .form-actions{
  margin-top:2px !important;
}

/* Notebook: mantém tudo dentro da altura útil */
@media(min-width:701px) and (max-height:780px){
  .admin-main,
  .admin-content,
  main.admin-main{
    min-height:calc(100dvh - 72px) !important;
  }

  .admin-head{
    margin-bottom:12px !important;
  }

  .admin-head h1{
    margin-top:2px !important;
    margin-bottom:0 !important;
    font-size:26px !important;
    line-height:1.08 !important;
  }

  .admin-password-card{
    padding:18px 20px !important;
  }

  .admin-password-form{
    gap:10px !important;
  }

  .admin-password-form input{
    min-height:38px !important;
  }

  .admin-password-card .admin-notice{
    margin-bottom:9px !important;
    padding:8px 10px !important;
    font-size:12px !important;
  }

  .admin-password-card .btn{
    min-height:38px !important;
    padding:8px 14px !important;
  }
}

/* Telas muito baixas: compacta ainda mais antes de permitir scroll */
@media(min-width:701px) and (max-height:650px){
  .admin-head{
    margin-bottom:8px !important;
  }

  .admin-head .eyebrow{
    font-size:9px !important;
  }

  .admin-head h1{
    font-size:23px !important;
  }

  .admin-password-card{
    padding:14px 18px !important;
  }

  .admin-password-form{
    gap:8px !important;
  }

  .admin-password-form > label{
    font-size:11px !important;
  }

  .admin-password-form input{
    min-height:36px !important;
  }

  .admin-password-card .form-actions{
    margin-top:0 !important;
  }
}

/* Mobile: permite rolagem apenas quando realmente necessário */
@media(max-width:700px){
  .admin-password-card{
    width:100% !important;
    padding:18px !important;
  }

  .admin-password-card .form-actions{
    flex-wrap:wrap !important;
  }

  .admin-password-card .form-actions .btn{
    width:100%;
  }
}


/* FIX45 — somente tipografia do e-mail no card de contato */
.contact-card-email strong{
  font-size:clamp(12px, 1.05vw, 17px) !important;
  line-height:1.35 !important;
}

/* Notebook / telas intermediárias */
@media(min-width:901px) and (max-width:1500px){
  .contact-card-email strong{
    font-size:clamp(12px, .95vw, 14px) !important;
  }
}

/* Telas mais estreitas */
@media(max-width:1100px){
  .contact-card-email strong{
    font-size:12px !important;
  }
}


/* FIX45.1 — endereço de e-mail sempre em uma única linha */
.contact-card-email strong{
  white-space:nowrap !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  hyphens:none !important;
  font-size:clamp(10px, .88vw, 15px) !important;
  line-height:1.25 !important;
}

/* notebook */
@media(min-width:901px) and (max-width:1500px){
  .contact-card-email strong{
    font-size:clamp(10px, .78vw, 12px) !important;
  }
}

/* notebook menor / tablet horizontal */
@media(min-width:701px) and (max-width:1100px){
  .contact-card-email strong{
    font-size:10px !important;
  }
}

/* mobile */
@media(max-width:700px){
  .contact-card-email strong{
    font-size:clamp(10px, 3vw, 13px) !important;
  }
}


/* FIX46 — vídeo no lightbox respeitando tamanho/proporção original */
.gallery-image-viewport.showing-video{
  cursor:default !important;
}

.gallery-image-viewport.showing-video > video{
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:72vh !important;
  object-fit:contain !important;
  object-position:center center !important;
  flex:none !important;
}

/* Em telas menores mantém a proporção original,
   limitando apenas ao espaço disponível */
@media(max-width:900px){
  .gallery-image-viewport.showing-video > video{
    width:auto !important;
    height:auto !important;
    max-width:100% !important;
    max-height:68vh !important;
  }
}

@media(max-width:600px){
  .gallery-image-viewport.showing-video > video{
    width:auto !important;
    height:auto !important;
    max-width:100% !important;
    max-height:62vh !important;
  }
}


/* FIX51 — Otimizador de imagens do catálogo */
.optimizer-card{
  display:grid;
  gap:18px;
}

.optimizer-intro{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.optimizer-intro h2{
  margin:0 0 7px;
}

.optimizer-intro p{
  max-width:760px;
  margin:0;
  line-height:1.6;
}

.optimizer-status-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.optimizer-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.optimizer-stats article{
  padding:14px 16px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:rgba(255,255,255,.55);
  min-width:0;
}

.optimizer-stats span{
  display:block;
  font-size:11px;
  opacity:.66;
  margin-bottom:5px;
}

.optimizer-stats strong{
  display:block;
  font-size:20px;
  font-weight:600;
  overflow-wrap:anywhere;
}

.optimizer-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.optimizer-current{
  margin-left:4px;
  font-size:12px;
  opacity:.7;
}

.optimizer-progress{
  width:100%;
  height:7px;
  background:rgba(0,0,0,.08);
  border-radius:999px;
  overflow:hidden;
}

.optimizer-progress > div{
  width:0;
  height:100%;
  background:currentColor;
  opacity:.75;
  border-radius:inherit;
  transition:width .22s ease;
}

.optimizer-log-wrap{
  overflow:auto;
  max-height:420px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
}

.optimizer-log{
  width:100%;
  border-collapse:collapse;
}

.optimizer-log th,
.optimizer-log td{
  padding:10px 12px;
  text-align:left;
  border-bottom:1px solid rgba(0,0,0,.06);
  white-space:nowrap;
  font-size:12px;
}

.optimizer-log th{
  position:sticky;
  top:0;
  z-index:1;
  background:#fff;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.optimizer-empty td{
  text-align:center;
  opacity:.62;
  padding:24px;
}

@media(max-width:1000px){
  .optimizer-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px){
  .optimizer-intro{
    display:block;
  }

  .optimizer-status-badges{
    justify-content:flex-start;
    margin-top:12px;
  }

  .optimizer-stats{
    grid-template-columns:1fr;
  }

  .optimizer-actions .btn{
    width:100%;
  }
}


/* FIX52.1 — Mostrar/ocultar senha no login administrativo */
.login-password-field input{
  padding-right:48px !important;
}

.login-password-toggle{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  padding:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#7a8792;
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:3;
  transition:background .18s ease,color .18s ease;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible{
  background:rgba(90,120,140,.08);
  color:var(--text);
  outline:none;
}

.login-password-toggle svg{
  width:19px;
  height:19px;
  display:block;
  fill:currentColor;
}

.login-password-toggle .icon-eye-closed{
  display:none;
}

.login-password-toggle.is-visible .icon-eye-open{
  display:none;
}

.login-password-toggle.is-visible .icon-eye-closed{
  display:block;
}


/* FIX53 — Guia do Imóvel */
.guide-hero{padding:72px 0 42px;background:linear-gradient(180deg,rgba(246,248,249,.95),rgba(255,255,255,1))}
.guide-hero-inner{max-width:900px;text-align:center}
.guide-hero h1{margin:10px auto 14px;max-width:820px;font-size:clamp(32px,4.4vw,58px);line-height:1.06;font-weight:500;letter-spacing:-.035em}
.guide-subtitle{max-width:780px;margin:0 auto;color:var(--muted,#69747c);font-size:clamp(15px,1.35vw,18px);line-height:1.65}
.guide-subtitle p{margin:0}
.guide-section{padding:34px 0 84px}
.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.guide-card{position:relative;overflow:hidden;border:1px solid rgba(23,33,43,.09);border-radius:22px;background:#fff;box-shadow:0 16px 42px rgba(23,33,43,.055)}
.guide-card-media{width:100%;aspect-ratio:16/8.7;overflow:hidden;background:#eef1f3}
.guide-card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.guide-card:hover .guide-card-media img{transform:scale(1.025)}
.guide-card-body{padding:24px 26px 26px}
.guide-card-number{display:inline-block;margin-bottom:14px;font-size:11px;letter-spacing:.12em;color:var(--muted,#69747c)}
.guide-card h2{margin:0 0 12px;font-size:clamp(20px,2vw,28px);line-height:1.2;font-weight:500;letter-spacing:-.02em}
.guide-card-text{color:var(--muted,#69747c);line-height:1.68;overflow-wrap:anywhere}
.guide-card-text p:first-child{margin-top:0}.guide-card-text p:last-child{margin-bottom:0}
.guide-card-link{display:inline-flex;margin-top:20px;text-decoration:none;font-size:12px;font-weight:600;letter-spacing:.07em}
.guide-empty{padding:38px;text-align:center;border:1px solid rgba(23,33,43,.09);border-radius:18px;color:var(--muted,#69747c)}
.guide-admin-editor{margin-top:18px}
.guide-admin-current-image{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.guide-admin-current-image img{width:min(260px,100%);max-height:170px;object-fit:cover;border-radius:12px;border:1px solid rgba(23,33,43,.09)}
.guide-admin-list{display:grid;gap:10px}
.guide-admin-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px;border:1px solid rgba(23,33,43,.08);border-radius:14px;background:#fff}
.guide-admin-row-main{min-width:0;display:flex;align-items:center;gap:14px;flex:1}
.guide-admin-thumb{width:74px;height:58px;flex:0 0 74px;border-radius:10px;object-fit:cover;border:1px solid rgba(23,33,43,.08)}
.guide-admin-thumb.placeholder{display:grid;place-items:center;background:#f3f5f6;color:#8a949b;font-size:11px;letter-spacing:.08em}
.guide-admin-title-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.guide-admin-title-line strong{font-weight:600}
.guide-admin-row-main p{margin:5px 0 0;color:var(--muted,#69747c);font-size:12px;line-height:1.45}
.guide-admin-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.guide-admin-actions form{margin:0}
@media(max-width:1100px){.guide-grid{grid-template-columns:1fr}}
@media(max-width:760px){
  .guide-hero{padding:48px 0 30px}.guide-section{padding:20px 0 58px}.guide-card-body{padding:20px}
  .guide-admin-row{align-items:flex-start;flex-direction:column}.guide-admin-actions{width:100%}
  .guide-admin-actions .btn,.guide-admin-actions form{flex:1}.guide-admin-actions form .btn{width:100%}
}
