/* Maafushi taxi booking UI (visitor) — dark theme to match the map page */
.taxi-fab {
  position: absolute;
  left: 12px;
  bottom: 34px;
  z-index: 1200;
  border-radius: 999px;
  border: 1px solid #1e2b23;
  background: #14532d;
  color: #eafff2;
  font: 700 16px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 15px 20px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.taxi-fab:hover { background: #166534; transform: scale(1.04); }

.taxi-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  background: #0c120e;
  color: #e9f2ec;
  border: 1px solid #1e2b23;
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-sizing: border-box;
}
.taxi-sheet[hidden] { display: none; }
.taxi-handle { width: 44px; height: 5px; border-radius: 3px; background: #24352b; margin: 2px auto 12px; }
.taxi-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.taxi-head h2 { font-size: 19px; margin: 0; font-weight: 700; letter-spacing: 0.01em; }
.taxi-close { background: none; border: none; color: #8fa596; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.taxi-sub { color: #9db3a5; font-size: 13px; margin: 0 0 14px; }

.taxi-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #7d9384; margin: 14px 0 6px; }
.taxi-labelline { display: flex; align-items: center; justify-content: space-between; }
.taxi-change { background: none; border: none; color: #34d399; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }

.taxi-seg { display: flex; gap: 8px; }
.taxi-btn {
  flex: 1;
  border: 1px solid #274435;
  background: #122117;
  color: #d7e8dc;
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.taxi-btn:hover { background: #173021; }
.taxi-btn.primary { background: #16a34a; border-color: #22c55e; color: #f0fff5; font-size: 16px; padding: 13px 8px; }
.taxi-btn.primary:hover { background: #22c55e; }
.taxi-btn.primary:disabled { background: #1d3527; border-color: #274435; color: #617a6a; cursor: not-allowed; }
.taxi-btn.ghost { flex: 0 0 auto; padding: 10px 14px; }

.taxi-pickset { background: #101a13; border: 1px solid #223428; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.taxi-pickset b { color: #34d399; }
.taxi-pickset small { display: block; color: #7d9384; margin-top: 2px; }

.taxi-input, .taxi-sheet input[type="text"], .taxi-sheet input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  background: #101a13;
  border: 1px solid #223428;
  border-radius: 10px;
  color: #e9f2ec;
  padding: 11px 12px;
  font-size: 15px;
  outline: none;
}
.taxi-input:focus, .taxi-sheet input:focus { border-color: #22c55e; }
.taxi-sheet input::placeholder { color: #5f7366; }

.taxi-drop { position: relative; }
.taxi-drop-list {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 4px);
  background: #101a13;
  border: 1px solid #274435;
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 5;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}
.taxi-drop-list[hidden] { display: none; }
.taxi-drop-item { padding: 9px 12px; cursor: pointer; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.taxi-drop-item:hover, .taxi-drop-item.active { background: #173021; }
.taxi-drop-item small { color: #7d9384; flex: 0 0 auto; }
.taxi-drop-empty { padding: 10px 12px; color: #7d9384; font-size: 13px; }

.taxi-fareline {
  margin: 16px 0 4px;
  padding: 12px 14px;
  background: #0f2417;
  border: 1px solid #1f4530;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.taxi-fareline span { color: #9db3a5; font-size: 13px; }
.taxi-fareline b { color: #4ade80; font-size: 22px; }
.taxi-fareline small { display: block; color: #617a6a; font-size: 11px; margin-top: 2px; }

.taxi-error { color: #f87171; font-size: 13px; margin: 10px 0 0; min-height: 18px; }

.taxi-paxrow { display: flex; align-items: center; gap: 12px; background: #101a13; border: 1px solid #223428; border-radius: 10px; padding: 8px 12px; }
.taxi-paxbtn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #274435;
  background: #173021;
  color: #4ade80;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.taxi-paxbtn:disabled { opacity: 0.35; cursor: not-allowed; }
.taxi-paxrow b { color: #4ade80; font-size: 22px; min-width: 26px; text-align: center; }
.taxi-paxrow small { color: #7d9384; font-size: 12px; margin-left: auto; text-align: right; max-width: 140px; }

.taxi-destpin {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 30px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}
#taxi-dest-map { width: 100%; margin-top: 8px; }

.taxi-slim {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 10000;
  background: #0c120e;
  border: 1px solid #22c55e;
  color: #d7e8dc;
  border-radius: 999px;
  padding: 10px 18px;
  font: 600 14px/1.3 system-ui, sans-serif;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
.taxi-slim[hidden] { display: none; }
.taxi-slim button { background: none; border: none; color: #f87171; font-size: 13px; font-weight: 700; cursor: pointer; }

.taxi-done { text-align: center; padding: 12px 4px 4px; }
.taxi-code { font-size: 34px; font-weight: 800; letter-spacing: 0.06em; color: #4ade80; margin: 6px 0 2px; }
.taxi-done .fare { color: #9db3a5; font-size: 14px; margin-bottom: 14px; }
.taxi-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #101a13;
  border: 1px solid #223428;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.taxi-status .dot { width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; animation: taxi-pulse 1.2s infinite; }
.taxi-status.claimed .dot { background: #22c55e; animation: none; }
.taxi-status.done .dot { background: #38bdf8; animation: none; }
@keyframes taxi-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.taxi-done .taxi-btn { margin-top: 16px; }

.taxi-share {
  margin: 12px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #0f2417;
  border: 1px solid #1f4530;
  color: #9db3a5;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
}
.taxi-share[hidden] { display: none; }

.taxi-drv-icon {
  background: none;
  border: none;
  font-size: 27px;
  line-height: 30px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

@media (max-width: 620px) {
  .taxi-fab { left: 10px; bottom: 26px; padding: 13px 16px; font-size: 15px; }
}

/* ride type select */
select.taxi-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2322c55e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}
select.taxi-input option { color: #111827; background: #ffffff; }
