/* style.css */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #111;
  overflow: hidden;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: 1;
}

/* =========================
   TOP BAR
========================= */

#topBar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

#brand {
  background: #ff7a00;
  color: #000;
  font-size: 24px;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

#topBar button {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 14px;
  font-size: 26px;
  background: #ff7a00;
  color: #000;
  font-weight: bold;
}

/* =========================
   SEARCH PANEL
========================= */

#searchPanel {
  position: absolute;
  top: 80px;
  left: 10px;
  right: 10px;
  z-index: 1000;

  background: rgba(0,0,0,.88);
  color: #fff;
  padding: 14px;
  border-radius: 16px;
}

#searchPanel input[type="text"],
#searchPanel input:not([type]),
#searchPanel input[type="range"] {
  width: 100%;
  box-sizing: border-box;
}

#searchPanel input {
  margin-bottom: 10px;
}

#startInput,
#endInput {
  height: 52px;
  font-size: 20px;
  border-radius: 12px;
  border: none;
  padding: 0 12px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  flex-wrap: wrap;
}

.row label {
  font-size: 18px;
}

.row input[type="range"] {
  flex: 1;
  min-width: 120px;
}

.row button {
  flex: 1;
  min-width: 140px;
}

/* =========================
   ROUTE CARDS
========================= */

#routesPanel {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 86px;
  max-height: 34%;
  overflow-y: auto;
  z-index: 1000;
}

.routeCard {
  background: rgba(0,0,0,.9);
  color: #fff;
  padding: 12px;
  border-radius: 14px;
  margin-top: 10px;
  border-left: 6px solid #ff7a00;
}

.routeTitle {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 6px;
}

.routeMeta {
  font-size: 17px;
  margin-bottom: 10px;
}

.routeCard button {
  width: 100%;
}

/* =========================
   BOTTOM BAR
========================= */

#bottomBar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1000;

  display: flex;
  gap: 10px;
}

#bottomBar button,
button {
  height: 56px;
  border: none;
  border-radius: 14px;
  background: #ff7a00;
  color: #000;
  font-size: 18px;
  font-weight: bold;
  padding: 0 16px;
}

#bottomBar button {
  flex: 1;
}

/* =========================
   MOBILE OPTIMIZE
========================= */

@media (max-width: 600px) {

  #brand {
    font-size: 20px;
    padding: 10px 14px;
  }

  #startInput,
  #endInput {
    font-size: 18px;
  }

  .row label {
    font-size: 16px;
  }

  button,
  #bottomBar button {
    font-size: 16px;
    height: 54px;
  }

  .routeTitle {
    font-size: 18px;
  }

  .routeMeta {
    font-size: 15px;
  }
}