:root {
  --azul: #1E3A5F;
  --laranja: #FF7A00;
  --gelo: #EAF3FB;
  --cinza: #555;
  --bg: #F5F7FA;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI';
}

body {
  background: var(--bg);
}

/* HEADER */
.topbar {
  background: var(--azul);
  padding: 14px;
  border-radius: 0 0 20px 20px;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 180px;
  padding: 4px;
  border-radius: 8px;
}

.logo-text {
  color: white;
  font-weight: bold;
}

.top-link {
  color: white;
  font-size: 14px;
  text-decoration:none !important;
}

.top-link li a{
  text-decoration:none !important;
}

/* SEARCH */
.search-wrapper {
  margin-top: 12px;
}

.search-wrapper input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px;
  margin-top:-50px;
}

/* TITLE */
.section-title {
  margin: 20px 0 14px;
  font-weight: 600;
}

/* GRID (AJUSTE FINO) */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

/* TABLET */
@media(min-width:768px){
  .grid {
    grid-template-columns: repeat(2,1fr);
  }
}

/* DESKTOP */
@media(min-width:1024px){
  .grid {
    grid-template-columns: repeat(3,1fr);
  }
}

/* CARD (REFINADO) */
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card-img img {
  width: 100%;
  height: 140px; /* ðŸ”¥ menor pra nÃ£o ficar gigante */
  object-fit: cover;
}

.card-content {
  padding: 12px;
}

.card-content h3 {
  font-size: 14px;
  margin-bottom: 6px;
}

.price {
  color: var(--laranja);
  font-weight: bold;
  margin-bottom: 4px;
}

.city {
  font-size: 12px;
  color: #777;
}

/* BUTTON */
.btn {
  display: block;
  margin-top: 10px;
  background: var(--laranja);
  color: white;
  text-align: center;
  padding: 9px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.btn-outline {
  border: 1px solid var(--laranja);
  color: var(--laranja);
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  display: block;
  margin-top: 6px;
  text-align: center;
}

/* PROFILE */
.profile-box {
  background: white;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* FORM */
.form-box {
  background: white;
  padding: 16px;
  border-radius: 12px;
}

.form-box input,
.form-box textarea,
.form-box select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}

/* VIEW */
.view-box {
  max-width: 600px;
  margin: auto;
  background: white;
  padding: 16px;
  border-radius: 12px;
}

/* HEADER NOVO */
.header {
  background: #1E3A5F;
  padding: 10px 0;
}

.header-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
}

.logo-area img {
  width: 180px;
}

.search-box {
  flex: 1;
}

.search-box input {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: none;
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav a {
  color: white;
  text-decoration:none;
}

.btn-nav {
  background: #FF7A00;
  padding: 6px 12px;
  border-radius: 6px;
}

/* ANUNCIO PAGE */
.anuncio-page {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 260px; /* ðŸ”¥ reduz altura */
  object-fit: cover;
  border-radius: 12px;
}

.anuncio-info {
  background: white;
  padding: 16px;
  border-radius: 12px;
}

.anuncio-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.box-contato,
.box-outros {
  background: white;
  padding: 14px;
  border-radius: 12px;
}

.mini-card {
  display: block;
  padding: 8px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
}

/* MOBILE */
@media(max-width:768px){
  .anuncio-page {
    grid-template-columns: 1fr;
  }

  .logo-area img {
    width: 150px;
  }
}

/* AUTH (LOGIN PERFEITO) */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* FOOTER FIX */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


/* 🔥 BOTÃO FIXO WHATSAPP MOBILE */
.whatsapp-fixo {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: #25D366;
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  z-index: 999;
}

/* ❌ NÃO APARECE NO DESKTOP */
@media(min-width: 768px){
  .whatsapp-fixo {
    display: none;
  }
}

/* 🔥 REMOVE SCROLL HORIZONTAL */
html, body {
  overflow-x: hidden;
}


/* 🔥 MOBILE FULL WIDTH */
@media(max-width:768px){

  .container {
    padding: 10px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    width: 100%;
  }

}

/* 🔥 MENU MOBILE */
.menu-toggle {
  display: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
}


@media(max-width:768px){

  .search-box form {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .search-box input,
  .search-box select {
    width: 100%;
  }

}

@media(max-width:768px){

  .anuncio-page {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }

  .gallery img {
    height: 220px;
  }

  .anuncio-sidebar {
    margin-top: 15px;
  }

}

@media(max-width:768px){

  .header-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  /* linha de cima */
  .logo-area {
    flex: 1;
  }

  .menu-toggle {
    display: block;
  }

  /* 🔥 SEARCH VAI PRA BAIXO */
  .search-box {
    width: 100%;
    order: 3;
  }

  .search-box form {
    display: flex;
    gap: 6px;
  }

  .search-box input {
    flex: 1;
  }

  .search-box select {
    width: 120px;
  }

}

@media(max-width:768px){

  .grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .card {
    width: 100%;
    margin: 0;
  }

  .card-img img {
    height: 180px;
  }

  .card-content {
    padding: 5px;
  }

}

@media(max-width:768px){

  .container {
    padding: 5px;
  }

}


.search-box input,
.search-box select {
  padding: 10px;
  border-radius: 8px;
  border: none;
}

@media(max-width:768px){

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--azul);
    padding: 10px;
    border-radius: 10px;
  }

  .nav.active {
    display: flex;
  }

}

@media(max-width:768px){

  .header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  /* 🔹 linha de cima */
  .logo-area {
    flex: 1;
  }

  .menu-toggle {
    display: block;
  }

  /* 🔥 SEARCH SEMPRE VISÍVEL */
  .search-box {
    width: 100%;
    order: 3;
  }

  .search-box form {
    display: flex;
    gap: 6px;
  }

  .search-box input {
    flex: 1;
  }

  .search-box select {
    width: 110px;
  }

  /* 🔥 MENU ESCONDIDO (SÓ NAV) */
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--azul);
    padding: 10px;
    border-radius: 10px;
  }

  .nav.active {
    display: flex;
  }

}

/* 🔥 MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  background: white;
  width: 85%;
  max-width: 320px;
  height: 100%;
  padding: 20px;
  box-shadow: 5px 0 20px rgba(0,0,0,0.2);
}

/* SEARCH MOBILE */
.mobile-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.mobile-search input,
.mobile-search select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* NAV MOBILE */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* 🔥 ESCONDE SEARCH ORIGINAL NO MOBILE */
@media(max-width:768px){
  .search-box {
    display: none;
  }
}


/* 🔥 MENU MOBILE */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  background: white;
  width: 85%;
  max-width: 320px;
  height: 100%;
  padding: 20px;
  box-shadow: 5px 0 20px rgba(0,0,0,0.2);
}

/* SEARCH */
.mobile-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.mobile-search input,
.mobile-search select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* LINKS */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav a {
  text-decoration: none;
  color: #333;
}

/* 🔥 DESKTOP VS MOBILE */
.menu-toggle {
  display: none;
}

.nav-desktop {
  margin-left: auto;
}

@media(max-width:768px){

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
    color: white;
    font-size: 24px;
    cursor: pointer;
  }

}

/* 🔥 SEARCH DESKTOP */
.search-desktop {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 700px;
}

.search-desktop input {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: none;
}

.search-desktop select {
  padding: 8px;
  border-radius: 8px;
  border: none;
}

/* 🔥 ESPAÇO DO MENU */
.menu-toggle {
  margin-left: 10px;
  margin-right: 5px;
}

/* 🔥 MOBILE */
@media(max-width:768px){

  .search-desktop {
    display: none;
  }

  .menu-toggle {
    margin-right: 10px;
  }

}

/* =========================
   AUTH PREMIUM (LOGIN / CADASTRO)
========================= */

/* WRAPPER CENTRAL */
.auth-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f5f7fb;
}

/* CARD */
.auth-card {
  background: #fff;
  padding: 35px;
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: 0.3s;
}

/* HOVER SUAVE */
.auth-card:hover {
  transform: translateY(-3px);
}

/* TITULO */
.auth-card h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1E3A5F;
}

/* INPUT GROUP */
.input-group {
  margin-bottom: 18px;
}

/* LABEL */
.input-group label {
  font-size: 13px;
  color: #666;
  display: block;
  margin-bottom: 6px;
}

/* INPUT */
.input-group input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.2s;
}

/* FOCUS */
.input-group input:focus {
  border-color: #1E3A5F;
  outline: none;
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}

/* BOTÃO PADRÃO (SOBRESCREVE O ANTIGO) */
.auth-card .btn {
  width: 100%;
  background: #FF7A00;
  color: white;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  transition: 0.2s;
}

/* HOVER BOTÃO */
.auth-card .btn:hover {
  background: #e96d00;
}

/* LINK */
.auth-link {
  margin-top: 15px;
  font-size: 13px;
  color: #666;
}

.auth-link a {
  color: #1E3A5F;
  text-decoration: none;
  font-weight: 600;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* MOBILE */
@media(max-width:768px){

  .auth-card {
    padding: 25px;
  }

}

/* =========================
   PERFIL - MEUS ANÚNCIOS (UX PREMIUM)
========================= */

/* CONTAINER GERAL */
.meus-anuncios {
  margin-top: 20px;
}

/* GRID */
.meus-anuncios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* CARD */
.meus-anuncios .card {
  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  transition: 0.2s;
  background: white;
}

/* HOVER */
.meus-anuncios .card:hover {
  transform: translateY(-3px);
}

/* IMAGEM */
.meus-anuncios .card-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* CONTEÚDO */
.meus-anuncios .card-content {
  padding: 18px;
}

/* TITULO */
.meus-anuncios h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

/* PREÇO */
.meus-anuncios .price {
  font-size: 20px;
  font-weight: bold;
  color: #FF7A00;
  margin-bottom: 6px;
}

/* CIDADE */
.meus-anuncios .city {
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
}

/* BOTÕES */
.meus-anuncios .btn {
  width: 100%;
  margin-bottom: 8px;
}

/* BOTÕES SECUNDÁRIOS */
.meus-anuncios .btn-outline {
  width: 100%;
  border: 1px solid #ddd;
  background: transparent;
  color: #555;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  display: block;
  margin-bottom: 8px;
  transition: 0.2s;
}

.meus-anuncios .btn-outline:hover {
  background: #f5f5f5;
}

/* DESKTOP */
@media(min-width:768px){

  .meus-anuncios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* DESKTOP GRANDE */
@media(min-width:1100px){

  .meus-anuncios-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

/* =========================
   GRID HOME - 5 COLUNAS FIXO
========================= */

.grid {
  display: grid;
  gap: 16px;
}

/* MOBILE */
@media(max-width:768px){
  .grid {
    grid-template-columns: 1fr;
  }
}

/* TABLET */
@media(min-width:769px){
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* DESKTOP + NOTEBOOK */
@media(min-width:1024px){
  .grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* AJUSTE PARA 5 COLUNAS */
.card-img img {
  height: 140px;
  object-fit: cover;
}

.card-content h3 {
  font-size: 14px;
  line-height: 1.3;
}

.card-content .price {
  font-size: 14px;
  font-weight: bold;
}

.card-content .city {
  font-size: 12px;
}

.card .btn {
  font-size: 12px;
  padding: 8px;
}


/* =========================
   SLIDER HOME
========================= */

.slider {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  margin: 15px 0;
}

.slides {
  display: flex;
  width: 300%;
  animation: slideAnim 12s infinite;
}

.slide {
  width: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* DESKTOP */
@media(min-width:768px){
  .slide img {
    height: 280px;
  }
}

/* ANIMAÇÃO */
@keyframes slideAnim {
  0% { transform: translateX(0); }
  30% { transform: translateX(0); }

  33% { transform: translateX(-100%); }
  63% { transform: translateX(-100%); }

  66% { transform: translateX(-200%); }
  96% { transform: translateX(-200%); }

  100% { transform: translateX(0); }
}

/* SLIDER */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin: 15px 0;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* DESKTOP */
@media(min-width:768px){
  .slide img {
    height: 300px;
  }
}

/* BOTÕES */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider-btn:hover {
  background: rgba(0,0,0,0.6);
}

/* =========================
   SLIDER FINAL (JS CONTROLADO)
========================= */

/* CONTAINER */
.slider {
  max-width: 1200px;
  margin: 25px auto;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

/* TRACK */
.slides {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease;
}

/* SLIDE */
.slide {
  min-width: 100%;
}

/* IMAGEM */
.slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* DESKTOP */
@media(min-width:768px){
  .slide img {
    height: 320px;
  }
}

/* BOTÕES */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 42px;
  height: 42px;

  border-radius: 50%;
  border: none;

  background: rgba(0,0,0,0.5);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  cursor: pointer;

  transition: 0.2s;
}

/* POSIÇÕES */
.slider-btn.prev {
  left: 15px;
}

.slider-btn.next {
  right: 15px;
}

/* HOVER */
.slider-btn:hover {
  background: rgba(0,0,0,0.7);
}

/* MOBILE */
@media(max-width:768px){

  .slider {
    margin: 15px 10px;
  }

  .slide img {
    height: 180px;
  }

  .slider-btn {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

}

/* SLIDER FINAL */

.slider {
  max-width: 1200px;
  margin: 25px auto;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media(min-width:768px){
  .slide img {
    height: 320px;
  }
}

/* BOTÕES */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 42px;
  height: 42px;

  border-radius: 50%;
  border: none;

  background: rgba(0,0,0,0.5);
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  cursor: pointer;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }



/* SLIDER FINAL */

.slider {
  max-width: 1200px;
  margin: 25px auto;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media(min-width:768px){
  .slide img {
    height: 320px;
  }
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 42px;
  height: 42px;

  border-radius: 50%;
  border: none;

  background: rgba(0,0,0,0.5);
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  cursor: pointer;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider {
 
  min-height: 250px !important;
}

/* IMAGEM SEM CORTE */
.slide img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: #000; /* fundo para preencher espaço */
}

/* IMAGEM PREENCHENDO TOTAL */
.slide img {
  width: 100%;
  height: 220px;
  object-fit: cover; /* 🔥 ESSA LINHA RESOLVE */
  
}

/* =========================
   FIX SLIDER MOBILE
========================= */

@media(max-width:768px){

  .slider {
    overflow: hidden;
  }

  .slides {
    display: flex !important;
    flex-wrap: nowrap !important; /* 🔥 impede quebrar */
  }

  .slide {
    min-width: 100% !important; /* 🔥 cada slide ocupa tela inteira */
    flex-shrink: 0;
  }

  .slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

}

/* =========================
   CARDS MOBILE FULL WIDTH
========================= */

@media(max-width:768px){

  .container {
    padding: 10px !important; /* reduz margem lateral */
  }

  .grid {
    display: grid;
    grid-template-columns: 1fr !important; /* 🔥 1 coluna */
    gap: 15px;
  }

  .card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 14px;
    overflow: hidden;
  }

  .card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .card-content {
    padding: 12px;
  }

  .card-content h3 {
    font-size: 16px;
  }

  .price {
    font-size: 18px;
    font-weight: bold;
  }

  .btn {
    width: 100%; /* 🔥 botão ocupa tudo */
    text-align: center;
  }

}

/* =========================
   SLIDER MOBILE PREMIUM
========================= */

@media(max-width:768px){

  .slider {
    margin: 10px 10px 2px 2px; /* 🔥 aproxima do header */
    border-radius: 16px;
    overflow: hidden;
  }

  .slide img {
    width: 100%;
    height: 200px; /* 🔥 menor = mais elegante */
    object-fit: cover;
  }

  /* BOTÕES MAIS LIMPOS */
  .slider-btn {
    width: 34px;
    height: 34px;
    font-size: 16px;
    background: rgba(0,0,0,0.35);
  }

}

/* =========================
   FLOW ENTRE SLIDER E LISTA
========================= */

@media(max-width:768px){

  .container {
    margin-top: -60px !important; /* 🔥 remove espaço feio */
    padding-top: 0 !important;
  }

  .section-title {
    margin-top: 15px;
    margin-bottom: 10px;
    padding-left: 5px;
  }

}

/* =========================
   MICRO AJUSTE VISUAL
========================= */

@media(max-width:768px){

  body {
    background: #f4f6f8;
  }

  .card {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }

}


/* =========================
   SLIDER MARGEM PERFEITA MOBILE
========================= */

@media(max-width:768px){

  .slider {
    margin: 10px auto; /* 🔥 centraliza */
    width: calc(100% - 20px); /* 🔥 cria margem lateral igual */
    border-radius: 16px;
    overflow: hidden;
  }

}

/* =========================
   SLIDER ADMIN PREMIUM
========================= */

.admin-list-slider {
  display: grid;
  gap: 20px;
}

.admin-card-slider {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.admin-card-slider img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.admin-actions-slider {
  padding: 12px 15px;
  display: flex;
  justify-content: flex-end;
}

.admin-actions-slider .btn-delete {
  background: #374151;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  text-decoration: none;
}

/* =========================
   FORM AJUSTE
========================= */

.admin-form input[type="file"] {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  background: #f9fafb;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

  .admin-card-slider img {
    height: 150px;
  }

}

/* =========================
   GALERIA ANÚNCIO PREMIUM
========================= */

.gallery-main {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  display: block;
}

/* MINIATURAS */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.gallery-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.2s;
}

.gallery-thumbs img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* MOBILE */
@media(max-width:768px){

  .gallery-main {
    height: 220px;
  }

  .gallery-thumbs img {
    width: 60px;
    height: 60px;
  }

}

/* GALERIA */
.gallery-main {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.gallery-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
}

.gallery-thumbs img.active {
  opacity: 1;
  border: 2px solid #1E3A5F;
}

.gallery-thumbs img:hover {
  opacity: 1;
}

/* MOBILE */
@media(max-width:768px){
  .gallery-main {
    height: 220px;
  }

  .gallery-thumbs img {
    width: 60px;
    height: 60px;
  }
}

/* =========================
   GALERIA - SCROLL PREMIUM
========================= */

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;

  /* 🔥 remove scrollbar feio */
  scrollbar-width: none;
  -ms-overflow-style: none;

  /* 🔥 suavidade */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

/* MINIATURAS */
.gallery-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
  flex-shrink: 0; /* 🔥 evita quebrar layout */
}

/* ATIVA */
.gallery-thumbs img.active {
  opacity: 1;
  border: 2px solid #1E3A5F;
}

/* HOVER */
.gallery-thumbs img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* MOBILE */
@media(max-width:768px){
  .gallery-thumbs img {
    width: 60px;
    height: 60px;
  }
}

@media(max-width:768px){

  /* 🔥 garante layout correto da galeria */
  .gallery {
    display: block;
  }

  /* 🔥 imagem principal */
  .gallery-main {
    width: 100% !important;
    height: 220px;
    object-fit: cover;
    display: block;
  }

  /* 🔥 container miniaturas */
  .gallery-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 8px;
    margin-top: 10px;
  }

  /* 🔥 corrige miniaturas (ESSENCIAL) */
  .gallery-thumbs img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    flex-shrink: 0;
  }

}