/* ===== Base ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
}

/* ===== Mapa ===== */
.map-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #e4e7eb;
}

#map {
  width: 100%;
  height: 100%;
  background-color: #e4e7eb;
}

/* ===== Painel de Conteúdo ===== */
.content-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background-color: #fff;
  border-radius: 10px 10px 0 0;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
  z-index: 1;
  transition: bottom 0.3s ease-in-out;
}

/* ===== Drag-handle ===== */
.drag-handle {
  width: 50px;
  height: 5px;
  background-color: #ccc;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 10px;
}

/* ===== Mobile Header, Logo e Menu ===== */
.mobile-header {
  position: relative;
  display: flex;
  flex-direction: column;  /* Coloca o drag-handle acima da logo */
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.logo-container {
  text-align: center;
  margin-bottom: 10px;
}

.logo-container img {
  max-width: 200px;
  height: auto;
}

/* Botão de Menu Mobile */
.mobile-menu-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1rem;
  color: #6c757d;
  cursor: pointer;
  display: none;
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: block;
  }
}

/* ===== Navbar ===== */
.top-navbar {
  display: block;
}

@media (max-width: 767px) {
  .top-navbar {
    display: none;
  }
}

/* ===== Formulários e Inputs ===== */
.form-control {
  border-radius: 5px;
  border: 1px solid #ccc;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group label {
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ===== Botões ===== */
.btn {
  width: 100%;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
}

.btn-primary {
  background-color: #007bff;
  border: none;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
  border: none;
  transition: background-color 0.3s;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

#solicitar-button {
  display: none;
  margin-top: 20px;
}

#paradas input {
  margin-bottom: 10px;
}

/* ===== Anúncios ===== */
.anuncios-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-top: 20px;
}

.anuncio {
  width: calc(33% - 20px);
  border: 1px solid #ddd;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.anuncio a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.anuncio-imagem {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .anuncio {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* ===== Menu Mobile Overlay ===== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(100, 100, 100, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 9999;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-overlay .close-menu {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.mobile-menu-overlay ul {
  list-style: none;
  padding: 0;
  margin-top: 100px;
  text-align: center;
}

.mobile-menu-overlay li {
  margin: 20px 0;
}

.mobile-menu-overlay a {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
}

/* ===== Ajustes para dispositivos móveis ===== */
@media (max-width: 767px) {
  .content-container {
    max-height: 70%;
  }
}
