/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: Arial, sans-serif;
}

/* Header como flexbox */
.site-header {
  display: flex;
  align-items: center;
  background: #333;          /* escuro */
  color: #fff;               /* texto branco */
  padding: 10px 20px;
}

/* Logo no header */
.site-logo {
  height: 40px;
  width: auto;
  margin-right: 15px;
}

/* Título ao lado do logo */
.site-title {
  font-size: 1.5rem;
  color: #fff;               /* garante texto visível */
}

/* Main e painel lateral */
main {
  display: flex;
  height: calc(100% - 60px);
}

/* Mapa ocupa a maior parte */
#map {
  flex: 1;
  height: 100%;
}

/* Painel lateral */
#info-panel {
  width: 300px;
  background: #f4f4f4;
  padding: 10px;
  border-left: 1px solid #ccc;
  display: flex;
  flex-direction: column;
}
#info-panel p {
  margin-bottom: 10px;
  font-weight: bold;
}
#info-panel button {
  padding: 10px;
  background: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-bottom: 5px;
}
#info-panel button:hover {
  background: #555;
}

/* Container de logs */
#log-container {
  flex: 1;
  overflow: auto;
  margin-top: 5px;
  border: 1px solid #ccc;
  background: #fff;
  transition: max-height 0.3s ease;
}
#log-container.collapsed {
  max-height: 0;
  padding: 0 5px;
}
#log-container.expanded {
  max-height: 200px;
  padding: 5px;
}
#log {
  font-size: 0.9em;
  line-height: 1.2;
}

/* Responsividade */
@media (max-width: 600px) {
  main {
    flex-direction: column;
  }
  #info-panel {
    width: 100%;
    height: 40%;
    border-left: none;
    border-top: 1px solid #ccc;
  }
  #map {
    height: 60%;
  }
}
