/* Galeria de Fotos - estilos do módulo adicional */

.gf-section {
  background: var(--gallery-section, #faf8f4);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.gf-inner {
  margin: 0 auto;
  max-width: 78rem;
  padding: 3.5rem 1.5rem;
}

.gf-head {
  margin-bottom: 1.75rem;
}

.gf-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a08048;
}

.gf-title {
  margin: 0.4rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: inherit;
}

.gf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.gf-item {
  margin: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.gf-img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}

.gf-item:hover .gf-img {
  transform: scale(1.04);
}

.gf-caption {
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Lightbox */
.gf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.85);
  padding: 2rem;
}

.gf-lightbox.is-open {
  display: flex;
}

.gf-lightbox-img {
  max-width: min(94vw, 1100px);
  max-height: 80vh;
  border-radius: 0.5rem;
}

.gf-lightbox-caption {
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}

.gf-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* Admin */
.gf-admin-panel {
  display: none;
  margin-top: 1.5rem;
}

.gf-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.6);
}

.gf-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.gf-hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  opacity: 0.7;
}

.gf-file,
.gf-input {
  display: block;
  width: 100%;
  margin-bottom: 0.65rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  background: #fff;
  color: #111;
  font-size: 0.9rem;
}

.gf-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.gf-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: #111;
  font-size: 0.85rem;
  cursor: pointer;
}

.gf-btn:hover {
  background: #f3f3f3;
}

.gf-btn-primary {
  background: #c9a35c;
  border-color: #c9a35c;
  color: #fff;
}

.gf-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.gf-btn-danger {
  border-color: #d55;
  color: #c33;
}

.gf-status {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.75;
}

.gf-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.gf-admin-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.65rem;
  padding: 0.75rem;
  background: #fff;
}

.gf-admin-item.is-hidden {
  opacity: 0.6;
}

.gf-admin-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.gf-badge {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #eee;
  color: #555;
}

.gf-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 10000;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: #1f1f1f;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.gf-toast.is-error {
  background: #b23b3b;
}


@media (max-width: 900px) {
  .gf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gf-img {
    height: 270px;
  }
}

@media (max-width: 560px) {
  .gf-inner {
    padding: 2.75rem 1rem;
  }

  .gf-grid {
    grid-template-columns: 1fr;
  }

  .gf-img {
    height: 280px;
  }
}


/* === ESTILOS DAS ABAS DE CIDADES E BAIRROS === */
.cb-city-tabs-wrap {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.cb-city-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cb-city-tab {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 18px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: left;
}
.cb-city-tab:hover {
  background-color: rgba(201, 163, 92, 0.12);
  border-color: rgba(201, 163, 92, 0.4);
  color: #ffffff;
}
.cb-city-tab.active {
  background-color: rgba(201, 163, 92, 0.2);
  border-color: #c9a35c;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(201, 163, 92, 0.25);
}
.cb-city-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.cb-city-count {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-top: 3px;
}
.cb-city-tab.active .cb-city-count {
  color: #e5e7eb;
}
.cb-bairros-wrap {
  margin-top: 16px;
  animation: cbFadeIn 0.3s ease;
}
@keyframes cbFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}


/* === ALTO CONTRASTE E LEGIBILIDADE PARA CIDADES E BAIRROS === */
#bairros.cb-section,
#bairros {
  background-color: var(--neighborhoods-section, #12161a) !important;
  color: var(--neighborhoods-text, #ffffff) !important;
}

#bairros .cb-container h2,
#bairros .cb-container h3,
#bairros h2,
#bairros h3 {
  color: var(--neighborhoods-text, #ffffff) !important;
}

#bairros .cb-kicker {
  color: #c9a35c !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
}

#bairros .cb-subtitle {
  color: #d1d5db !important; /* Cinza bem claro, 100% legível */
  opacity: 0.9 !important;
}

#bairros .cb-bairros-header h3 {
  color: var(--neighborhoods-text, #ffffff) !important;
  font-weight: 700 !important;
}

#bairros .cb-bairros-header a {
  color: #c9a35c !important;
  font-weight: 600 !important;
}

/* Abas de cidades */
#bairros .cb-city-tab {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #f3f4f6 !important;
}

#bairros .cb-city-tab.active {
  background: rgba(201, 163, 92, 0.25) !important;
  border-color: #c9a35c !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(201, 163, 92, 0.3) !important;
}

#bairros .cb-city-tab .cb-city-name {
  color: #ffffff !important;
  font-weight: 700 !important;
}

#bairros .cb-city-tab .cb-city-count {
  color: #e5e7eb !important;
  opacity: 0.9 !important;
}

/* Cards de bairros com contraste garantido */
#bairros .cb-bairro-card {
  display: block;
  background: #1c2228 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
  text-decoration: none;
}

#bairros .cb-bairro-card:hover {
  background: #232b33 !important;
  border-color: #c9a35c !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

#bairros .cb-bairro-card.active {
  background: #252e37 !important;
  border-color: #c9a35c !important;
  box-shadow: 0 0 0 2px rgba(201, 163, 92, 0.4);
}

#bairros .cb-bairro-name {
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

#bairros .cb-bairro-count {
  color: #c9a35c !important; /* Dourado nítido para destaque */
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  margin-top: 6px !important;
}

#bairros .cb-bairro-arrow {
  color: #c9a35c !important;
  font-size: 1.25rem !important;
  font-weight: bold !important;
}


/* === CORES DINÂMICAS E INDEPENDENTES DE CIDADES E BAIRROS === */
#bairros {
  background-color: var(--neighborhoods-section, #11161B) !important;
  color: var(--neighborhoods-text, #ffffff) !important;
}

#bairros .cb-city-tab.active {
  background: var(--neighborhoods-btn, #c9a35c) !important;
  border-color: var(--neighborhoods-btn, #c9a35c) !important;
  color: #11161B !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

#bairros .cb-city-tab.active .cb-city-name {
  color: #11161B !important;
}

#bairros .cb-city-tab.active .cb-city-count {
  color: rgba(17, 22, 27, 0.85) !important;
}

#bairros .cb-bairro-card:hover {
  border-color: var(--neighborhoods-btn, #c9a35c) !important;
}

#bairros .cb-bairro-count {
  color: var(--neighborhoods-btn, #c9a35c) !important;
}

#bairros .cb-bairro-arrow {
  color: var(--neighborhoods-btn, #c9a35c) !important;
}
