/* ===========================
   BASE / RESET
   =========================== */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
}

/* ===========================
   TOPBAR (CABEÇALHO)
   =========================== */
.topbar {
  display: flex;
  align-items: center;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
}

.toggle-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  margin-right: 8px;
}

.title {
  font-weight: 700;
  font-size: 16px;
}

/* ===========================
   LAYOUT PRINCIPAL (SIDEBAR + MAPA)
   =========================== */
.layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: calc(100vh - 48px);
  transition: grid-template-columns .35s ease;
}

.layout.collapsed {
  grid-template-columns: 0 1fr;
}

/* ===========================
   SIDEBAR
   =========================== */
.sidebar {
  background: #fff;
  border-right: 1px solid #e5e7eb;
  padding: 20px;
  overflow-y: auto;
}

/* ===========================
   MAPA
   =========================== */
#map {
  width: 100%;
  height: calc(100vh - 48px);
  background: #e5e7eb;
}

/* ===========================
   CAMPOS / CONTROLES
   =========================== */
.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 6px;
  box-sizing: border-box;
}

.sidebar #address.input {
  width: 100%;
}

.btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  font-weight: 700;
  cursor: pointer;
}

.divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}

/* ===========================
   RESPONSIVO (MOBILE)
   =========================== */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .layout.collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: absolute;
    top: 48px;
    left: 0;
    bottom: 0;
    width: 90%;
    max-width: 420px;
    z-index: 1000;
    display: none;
  }

  .sidebar.show {
    display: block;
  }
}
/* address inline group + locate button */
.address-group{display:flex; align-items:center; gap:8px;}
.address-group #address.input{flex:1 1 auto;}
.locate-btn{background:#2563eb;border:none;color:#fff;padding:10px 12px;border-radius:10px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;}
.locate-btn:hover{background:#1d4ed8;}
/* width 93% on desktop as requested earlier */
.sidebar #address.input{width:93%;}
@media (max-width: 900px){
  .sidebar #address.input{width:100%;}
}
