.rider-app.guest-mode .account-bar {
  display: none !important;
}

.rider-app.guest-mode .map-message,
.rider-app.guest-mode .mobility-map-status {
  display: none !important;
}

.rider-app.guest-mode #map-canvas {
  display: block !important;
}

.rider-app.guest-mode .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guest-login-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.guest-login-button:hover {
  background: #f7f7f7;
}

.rider-app.guest-mode .map-chip {
  background: rgba(255, 255, 255, 0.94);
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.guest-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.guest-auth-modal.hidden {
  display: none !important;
}

.guest-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(7px);
}

.guest-auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  color: #111111;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.guest-auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f7f7f7;
  color: #111111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.guest-auth-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: #111111;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.guest-auth-card h2 {
  margin: 0 48px 8px 0;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.05;
}

.guest-auth-copy {
  margin: 0 0 22px;
  color: #666666;
  line-height: 1.5;
}

.guest-auth-form {
  display: grid;
  gap: 10px;
}

.guest-auth-form + .guest-auth-form,
.guest-auth-form + .guest-auth-secondary,
.guest-auth-secondary + .guest-auth-form {
  margin-top: 12px;
}

.guest-auth-form label {
  font-size: 13px;
  font-weight: 800;
  color: #666666;
}

.guest-auth-form input {
  width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  border: 1px solid #dedede;
  border-radius: 16px;
  padding: 0 16px;
  background: #f7f7f7;
  color: #111111;
  font: inherit;
  outline: none;
}

.guest-auth-form input:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.guest-auth-primary,
.guest-auth-secondary {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.guest-auth-primary {
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
}

.guest-auth-secondary {
  border: 1px solid #dedede;
  background: #ffffff;
  color: #111111;
}

.guest-auth-primary:disabled,
.guest-auth-secondary:disabled {
  opacity: 0.58;
  cursor: wait;
}

.guest-auth-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: #666666;
  font-size: 14px;
  line-height: 1.45;
}

.guest-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: #7a7a7a;
  font-size: 12px;
  font-weight: 750;
}

.guest-auth-divider::before,
.guest-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dedede;
}

.rider-app.guest-mode .booking-mode .form-note.guest-note {
  color: #666666;
}

@media (max-width: 760px) {
  .guest-login-button {
    min-height: 40px;
    padding-inline: 14px;
  }

  .guest-auth-modal {
    place-items: end center;
    padding: 0;
  }

  .guest-auth-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 28px 28px 0 0;
    padding: 26px 20px calc(26px + env(safe-area-inset-bottom));
  }
}

/* Rider is one simple page: a generous map first, booking immediately below, no collapsible panel. */
@media (max-width: 760px) {
  html:has(.rider-map-layout:not(.customer-view-inactive)),
  body.rider-app:has(.rider-map-layout:not(.customer-view-inactive)) {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    background: #ffffff;
  }

  .rider-app .shell {
    position: relative;
    min-height: 100dvh;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .rider-app .topbar {
    position: absolute;
  }

  .rider-map-layout {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    padding: 0;
    overflow: visible !important;
    background: #ffffff;
  }

  .rider-unified-map {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    height: clamp(340px, 50dvh, 430px) !important;
    min-height: 340px !important;
    border-radius: 0;
    overflow: hidden;
  }

  .rider-map-layout > .ride-sheet,
  .rider-map-layout > .ride-sheet.collapsed {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    min-height: 0;
    padding: 14px 14px calc(22px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    overflow: visible !important;
    overscroll-behavior: auto;
    box-shadow: 0 -10px 30px rgba(0,0,0,.11);
  }

  .rider-map-layout .sheet-handle {
    display: none !important;
  }

  .ride-sheet .suggestions {
    top: calc(100% + 5px) !important;
    bottom: auto !important;
    max-height: 240px;
  }

  .ride-sheet .airport-fare-card {
    display: grid !important;
  }
}

@media (max-width: 390px) {
  .rider-unified-map {
    height: clamp(330px, 49dvh, 400px) !important;
    min-height: 330px !important;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .rider-unified-map {
    height: 330px !important;
    min-height: 330px !important;
  }

  .ride-sheet .airport-fare-card {
    display: grid !important;
  }
}
