/* ===================================================
   🧱 LAYOUT PRINCIPAL
=================================================== */
:root {
  --fonte-padrao: 14px;
  --peso-padrao: normal;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #2c3e50;
  color: #fff;
  padding: 10px 48px 10px 10px;
  text-align: center;
  position: relative;
}

main {
  display: flex;
  flex-grow: 1;
  min-height: 0;
}

#map {
  position: relative;
  flex-grow: 3;
  min-height: 400px;
}

aside {
  flex: 1;
  background: #ecf0f1;
  padding: 10px;
  padding-bottom: 40px;
  scroll-padding-top: 60px;
  overflow: visible;
  -webkit-overflow-scrolling: touch;
  max-height: 100vh;
  box-sizing: border-box;
  position: relative;
  z-index: 1000;
}

footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 8px;
  font-size: var(--fonte-padrao);
  line-height: 1.4;
  opacity: 0.9;
}

/* ===================================================
   📍 BOTÃO LOCALIZAÇÃO DO USUÁRIO
=================================================== */
#btn-localizacao {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 1000;
  background-color: white;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: var(--fonte-padrao);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ===================================================
   🔢 CONTADOR DE VISITAS
=================================================== */
.visit-counter {
  text-align: left;
  margin-top: 10px;
  margin-bottom: 10px;
  opacity: 0.8;
  padding-left: 4px;
}

.visit-counter img {
  max-width: 120px;
  height: auto;
}

/* ===================================================
   🔲 BOTÃO TELA CHEIA
=================================================== */
.btn-fullscreen {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: #2c3e50;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.btn-fullscreen:hover {
  background: rgba(255,255,255,0.25);
}

/* ===================================================
   📂 DROPDOWN MENUS
=================================================== */
.dropdown {
  margin-bottom: 10px;
  position: relative;
}

.dropdown-btn {
  background-color: orange;
  color: white;
  font-weight: var(--peso-padrao);
  font-size: var(--fonte-padrao);
  padding: 10px;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.ufubtn .dropdown-btn {
  background: #3498db;
}
.ufubtn .dropdown-btn:hover {
  background: #2980b9;
}

.publicobtn .dropdown-btn {
  background: #27ae60;
}
.publicobtn .dropdown-btn:hover {
  background: #1e8449;
}

.privadobtn .dropdown-btn {
  background: #e74c3c;
}
.privadobtn .dropdown-btn:hover {
  background: #c0392b;
}

.pontobtn .dropdown-btn {
  background: #9b59b6;
}
.pontobtn .dropdown-btn:hover {
  background: #8e44ad;
}

.categoria-btn .dropdown-btn {
  background: orange;
}
.categoria-btn .dropdown-btn:hover {
  background: #e67e22;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  margin-top: 5px;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  z-index: 999;
}

.dropdown-content a {
  padding: 8px 10px;
  text-decoration: none;
  color: #2c3e50;
  display: block;
  border-bottom: 1px solid #eee;
  font-size: var(--fonte-padrao);
}

.dropdown-content a:hover {
  background: #f1f1f1;
}

.dropdown.active .dropdown-content {
  display: flex;
}

.menu-titulo {
  padding: 6px 10px;
  background-color: #f0f0f0;
  font-weight: var(--peso-padrao);
  border-top: 1px solid #ccc;
  margin: 8px 0 4px 0;
  font-size: var(--fonte-padrao);
  color: #2c3e50;
}

.sobre-icone {
    margin-left: 8px;
    cursor: pointer;
    font-size: var(--fonte-padrao);
    vertical-align: middle;
    cursor: pointer;
  }
  
/* ===================================================
   🎨 ÍCONES NO MENU
=================================================== */
.dropdown-content i {
  margin-right: 6px;
  color: #2c3e50;
}

.custom-icon i {
  font-size: 24px;
  color: #2c3e50;
}

/* ===================================================
   🏷️ RÓTULOS FUTUROS (opcional)
=================================================== */
.bloco-label .label-chip {
  padding: 2px 6px;
  background: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  user-select: none;
  white-space: nowrap;
}

/* ===================================================
   ✍️ BOTÃO DE CADASTRO
=================================================== */
.btn-cadastro {
  display: block;
  background: #8e44ad;
  color: white;
  text-align: left;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: var(--peso-padrao);
  font-size: var(--fonte-padrao);
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
}

.btn-cadastro:hover {
  background: #732d91;
}

/* ===================================================
   📱 RESPONSIVIDADE
=================================================== */
@media (max-width: 768px) {
  main {
    flex-direction: column;
  }

  #map {
    height: 45vh;
    flex: none;
  }

  aside {
    flex: none;
    height: auto;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dropdown-btn {
    font-size: var(--fonte-padrao);
    padding: 8px;
  }

  footer {
    font-size: 12px;
  }

  .sobre-icone:hover {
    color: #3498db;
  }
}

@media (max-width: 600px) {
  header {
    padding: 6px 12px;
    font-size: 17px;
  }

  header h1 {
    font-size: 20px;
    margin: 0;
  }

  aside {
    padding-top: 4px;
    max-height: none;
    overflow-y: auto;
  }
main {
  flex-direction: column;
}

#map {
  height: 60vh; /* ↓ reduzido para liberar espaço pro menu */
  flex: none;
}

aside {
  flex: none;
  height: auto;
  max-height: none;
  overflow-y: auto;
  z-index: 1000;
  position: relative;
}

  aside h2 {
    margin-top: 6px;
    font-size: 18px;
    text-align: center;
  }

  .dropdown {
    margin-top: 8px;
  }

 .dropdown-btn {
  font-size: var(--fonte-padrao);
}

.btn-cadastro {
  margin-top: 8px;
  font-size: var(--fonte-padrao);
}

  .visit-counter {
    margin-top: 6px;
  }
}

@media (min-width: 601px) {
  aside h2 {
    text-align: left;
  }
}
