:root {
  --navy: #0f172a;
  --green: #0f6b4e;
  --bright-green: #15a36e;
  --gold: #d9a441;
  --mist: #f6f8f7;
  --border: #e2e8f0;
  --danger: #dc2626;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--mist);
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) 430px;
}

.map-pane {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #dce7df;
}

.map-grid {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(2, 1fr);
  opacity: 0.92;
  background:
    linear-gradient(105deg, rgba(15, 107, 78, 0.12) 0 14%, transparent 14% 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.85), transparent 24%),
    radial-gradient(circle at 78% 72%, rgba(217, 164, 65, 0.20), transparent 22%),
    linear-gradient(135deg, #dbe9df, #eef4ef 48%, #d8e7dc);
}

.map-grid div {
  border: 1px solid rgba(15, 107, 78, 0.08);
  background:
    linear-gradient(30deg, transparent 0 43%, rgba(255, 255, 255, 0.6) 43% 46%, transparent 46% 100%),
    linear-gradient(120deg, transparent 0 58%, rgba(15, 107, 78, 0.12) 58% 60%, transparent 60% 100%);
}

.map-roads {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.road {
  position: absolute;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(15, 107, 78, 0.09);
}

.road-one {
  left: 6%;
  top: 34%;
  width: 82%;
  transform: rotate(-16deg);
}

.road-two {
  left: 18%;
  top: 18%;
  width: 58%;
  transform: rotate(38deg);
}

.road-three {
  left: 24%;
  top: 66%;
  width: 70%;
  transform: rotate(22deg);
}

.road-four {
  left: 42%;
  top: 10%;
  width: 64%;
  transform: rotate(88deg);
}

.district {
  position: absolute;
  max-width: 170px;
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.18;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.district-one {
  left: 54%;
  top: 22%;
}

.district-two {
  left: 24%;
  top: 60%;
}

.district-three {
  left: 30%;
  top: 18%;
}

.route-line {
  position: absolute;
  left: 32%;
  top: 28%;
  width: 34%;
  height: 44%;
  border-right: 5px solid var(--green);
  border-bottom: 5px solid var(--green);
  border-radius: 0 0 90px 0;
  box-shadow: 0 0 0 6px rgba(15, 107, 78, 0.14);
}

.pin {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--green);
  box-shadow: var(--shadow);
}

.pin span {
  position: absolute;
  left: 9px;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
}

.pin-pickup {
  left: 29%;
  top: 25%;
}

.pin-dropoff {
  left: 64%;
  top: 70%;
  background: var(--gold);
}

.map-attribution {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  color: #334155;
}

.booking-pane {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -20px 0 50px rgba(15, 23, 42, 0.12);
}

.brand-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 320px;
  font-size: 27px;
  line-height: 1.08;
}

.city-strip,
.provider-section,
.event-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.city-strip {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.city-strip span,
.section-header span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.city-strip button {
  border-radius: 8px;
  padding: 10px 12px;
  background: #e9f5ef;
  color: var(--green);
  font-weight: 800;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--navy);
  font-weight: 800;
}

.map-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.map-stack span {
  min-width: 0;
  border: 1px solid rgba(15, 107, 78, 0.16);
  border-radius: 8px;
  padding: 8px 7px;
  background: #f8fbfa;
  color: #26415f;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.location-form {
  display: grid;
  gap: 12px;
}

.location-field {
  position: relative;
}

label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--navy);
  background: var(--mist);
  font-size: 16px;
}

.check-prices-button {
  width: 100%;
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--green);
  color: white;
  font-weight: 900;
}

.poi-panel {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.poi-panel.open {
  display: grid;
}

.poi-panel button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  background: white;
  color: var(--navy);
  text-align: left;
}

.poi-panel button:hover {
  background: #e9f5ef;
}

.poi-panel .typed-place {
  background: #f8fbfa;
}

.poi-panel button:last-child {
  border-bottom: 0;
}

.poi-panel strong {
  font-size: 13px;
}

.poi-panel span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.location-hint {
  margin-top: -4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.fare-band,
.status-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.fare-note {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.fare-band span,
.status-card span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.fare-band strong,
.status-card strong {
  font-size: 16px;
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--mist);
}

.brand-bar + .service-tabs {
  margin-top: -6px;
}

.brand-bar + .map-stack {
  margin-top: -8px;
}

.service-tabs button {
  border-radius: 7px;
  padding: 10px 8px;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.service-tabs button.active {
  background: white;
  color: var(--green);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.service-panel {
  display: none;
  gap: 12px;
}

.service-panel.active {
  display: grid;
}

.option-list {
  display: grid;
  gap: 12px;
}

.quote-console {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed rgba(15, 107, 78, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 107, 78, 0.06), rgba(217, 164, 65, 0.08));
}

.quote-console strong {
  color: var(--navy);
  font-size: 15px;
}

.quote-console p {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.38;
}

.quote-console-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.quote-console-grid span {
  border-radius: 8px;
  padding: 8px 7px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.provider-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-chip {
  display: grid;
  gap: 3px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--mist);
  color: var(--navy);
}

.provider-chip strong {
  font-size: 13px;
}

.provider-chip span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.event-list {
  display: grid;
  gap: 8px;
}

.hire-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.hire-list {
  display: grid;
  gap: 10px;
}

.hire-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--mist);
}

.hire-card strong,
.hire-card span {
  display: block;
}

.hire-card span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.hire-price strong {
  color: var(--green);
  font-size: 14px;
}

.event-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--mist);
}

.event-item strong,
.event-item span {
  display: block;
}

.event-item strong {
  font-size: 14px;
}

.event-item span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.event-item button {
  border-radius: 8px;
  padding: 10px 11px;
  background: #e9f5ef;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.ride-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: border-color 140ms ease, transform 140ms ease;
}

.ride-card:hover,
.ride-card.selected {
  border-color: var(--green);
  transform: translateY(-1px);
}

.ride-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 8px;
  background: rgba(15, 107, 78, 0.1);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.ride-card h2 {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.25;
}

.ride-card p {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.booking-mode {
  margin-top: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tags span {
  border-radius: 8px;
  padding: 5px 8px;
  background: var(--mist);
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.status-card {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.status-card button,
.action-row button,
.quick-prompts button {
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr 86px;
  gap: 10px;
  margin-top: auto;
}

.action-row button {
  background: #e9f5ef;
  color: var(--green);
}

.action-row .danger {
  background: var(--danger);
  color: white;
}

.assistant-panel {
  position: fixed;
  right: 28px;
  bottom: 28px;
  display: none;
  width: min(390px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  padding: 18px;
}

.assistant-panel.open {
  display: block;
}

.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.assistant-header h2 {
  font-size: 18px;
}

.assistant-messages {
  margin: 16px 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--mist);
  color: #334155;
  line-height: 1.45;
}

.conversation-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.conversation-tools[hidden] {
  display: none;
}

.conversation-tools textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--navy);
  background: white;
  font: inherit;
}

.voice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.voice-actions button {
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-prompts button {
  background: #e9f5ef;
  color: var(--green);
}

.setup-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(10px);
}

.setup-panel.hidden {
  display: none;
}

.setup-card {
  width: min(460px, 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.setup-card h2 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.15;
}

.setup-card p:not(.eyebrow) {
  margin-bottom: 18px;
  color: #475569;
  line-height: 1.45;
}

.setup-step {
  display: none;
  gap: 10px;
}

.setup-step.active {
  display: grid;
}

.choice-button {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--mist);
  color: var(--navy);
  text-align: left;
  font-weight: 800;
}

.choice-button:hover {
  border-color: var(--green);
  background: #e9f5ef;
}

@media (max-width: 880px) {
  .app-shell {
    display: block;
  }

  .map-pane {
    min-height: 32vh;
  }

  .booking-pane {
    min-height: 62vh;
    padding: 20px;
    box-shadow: none;
  }

  h1 {
    max-width: 280px;
    font-size: 24px;
  }

  .fare-band {
    grid-template-columns: 1fr;
  }

  .action-row {
    grid-template-columns: 1fr 1fr 78px;
  }
}

@media (max-width: 480px) {
  .map-pane {
    min-height: 28vh;
  }

  .booking-pane {
    padding: 16px;
  }

  .map-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ride-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .ride-icon {
    width: 48px;
    height: 48px;
    font-size: 11px;
  }

  .status-card {
    grid-template-columns: 1fr;
  }

  .status-card button {
    width: 100%;
  }
}
