html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Map fills the entire background */
#map {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Gray bar across the top with title pushed to the right */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(40, 40, 40, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  z-index: 1010;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.brand-title {
  color: white;
  font-weight: bold;
  font-size: 24px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

#search {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: 24px;
  font-size: 18px;
}

/* Big Red Report Button fixed at bottom center */
#report-btn {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 56px;
  background: #ff3b30;
  color: white;
  border: none;
  border-radius: 28px;
  font-size: 16px;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 6px 16px rgba(255, 59, 48, 0.4);
  cursor: pointer;
}

#report-btn:active {
  transform: translateX(-50%) scale(0.96);
}

/* Bottom Sheet Styling (hidden by default until opened) */
#sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  max-height: 40vh;
  overflow-y: auto;
}

#sheet.open {
  transform: translateY(0);
}
/* Report markers */
.marker {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 3px solid;
  border-radius: 50%;
  background: #fff;
  font: bold 16px sans-serif;
}
.marker.impassable { border-color: #d32f2f; }
.marker.passable { border-color: #f9a825; }

/* Address suggestions */
#results {
  position: fixed;
  top: 76px;
  left: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 1010;
}
#results:empty { display: none; }
#results div {
  padding: 14px 16px;
  font-size: 18px;
  cursor: pointer;
}
#results div + div { border-top: 1px solid #eee; }

/* Trip time and distance */
#route-card {
  position: fixed;
  bottom: 105px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  font-size: 20px;
  font-weight: bold;
  z-index: 1000;
}
#route-card:empty { display: none; }
#route-card button {
  margin-left: 16px;
  height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 24px;
  background: #eee;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

#submit-report:disabled { opacity: 0.4; }

#settings-btn {
  position: fixed;
  bottom: 35px;
  left: 20px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: white;
  font-size: 28px;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  cursor: pointer;
}
#sheet .panel p { margin: 8px 0; font-size: 18px; }
#sheet .panel .verified { color: #2e7d32; font-weight: bold; }
#sheet .panel #detail-error { color: #d32f2f; }
#sheet .vote-btn { width: 48%; height: 52px; margin-top: 8px; border: 2px solid #ccc; border-radius: 12px; background: white; font-size: 18px; font-weight: bold; cursor: pointer; }
#sheet .panel h2 { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 20px; }
#sheet .panel h2 button { background: none; border: none; font-size: 20px; cursor: pointer; }
#sheet .panel h3 { margin: 16px 0 4px; font-size: 16px; }
#sheet .panel label { display: block; padding: 10px 0; font-size: 18px; text-transform: capitalize; }
#sheet .panel input[type=checkbox] { width: 22px; height: 22px; margin-right: 10px; vertical-align: middle; }
