.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand--logo-only {
  width: 100%;
}

.brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand__logo--full {
  width: 130px;
  height: auto;
  max-width: 100%;
  display: block;
  padding-left:20px;
}
@media (max-width: 700px) {
  .brand__logo--full {
    padding-left:0px;
    width:80px;
  }
}

.home-flow-block{
  margin-top:28px;
}

.brand__name {
  font-weight: 700;
}

.brand__tagline {
  font-size: 12px;
  color: #667085;
}

.btn {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #101828;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-primary {
  background: #198FF2;
  color: #fff;
  border-color: #198FF2;
}

.btn--ghost {
  background: transparent;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  margin-bottom: 12px;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #eef2f6;
}

.pill--online {
  background: #dcfce7;
}

.pill--offline {
  background: #fee2e2;
}

.login-page {
  width: 100%;
  min-height: calc(100vh - 140px);
  padding: 24px;
  box-sizing: border-box;
}

.login-layout {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.login-media {
  width: 100%;
  min-height: 620px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(10, 18, 34, 0.08) 0%, rgba(10, 18, 34, 0.35) 100%),
    url("/frontend/public/assets/img/santo-domingo.png") center center / cover no-repeat;
  border: 1px solid #e5e7eb;
}

.login-card {
  width: 100%;
  min-height: 620px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 36px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card .btn {
  width: 100%;
  margin-bottom: 12px;
}

.login-card .btn:last-child {
  margin-bottom: 0;
}

.login-status {
  margin-top: 12px;
  font-size: 14px;
  color: #475467;
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .login-media,
  .login-card {
    min-height: 520px;
  }
}

@media (max-width: 700px) {
  .login-page {
    padding: 14px;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-media {
    min-height: 240px;
  }

  .login-card {
    min-height: auto;
    padding: 24px;
  }
}

.login-status {
  margin-top: 12px;
  font-size: 14px;
  color: #475467;
}


.login-features {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eaecf0;
  display: grid;
  gap: 14px;
}

.login-feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-feature strong {
  font-size: 15px;
  color: #101828;
}

.login-feature span {
  font-size: 14px;
  color: #667085;
  line-height: 1.5;
}


.menu-warning {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f04438;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.page-title {
  margin: 0 0 6px;
  font-size: 28px;
}

.page-subtitle {
  margin: 0;
  color: #667085;
}

.profile-page {
  padding: 19px;
  width: 100%;
}

.profile-shell {
  max-width: 100%;
}

.profile-header-card,
.profile-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
}

.profile-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-completion-badge {
    padding: 10px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 600;
    white-space: nowrap;
    font-size: 13px;
}

.profile-completion-badge.is-warning {
  background: #ff0000;
  color: #fff;
}

.profile-completion-badge.is-success {
    padding: 10px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 600;
    white-space: nowrap;
    font-size: 13px;
}

.profile-section h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #344054;
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.role-card {
  border: 1px solid #d0d5dd;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.role-card.is-selected {
  border-color: #101828;
  box-shadow: 0 0 0 2px rgba(16, 24, 40, 0.08);
}

.role-card__icon {
  font-size: 28px;
}

.role-card__title {
  font-weight: 700;
  text-align:center;
}

.role-card__desc {
  font-size: 14px;
  color: #667085;
  text-align:center;
}

.profile-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom:10px;
}

.profile-status {
  margin-top: 14px;
  color: #475467;
  font-size: 14px;
}

@media (max-width: 700px) {
  .form-grid,
  .role-cards {
    grid-template-columns: 1fr;
  }

  .profile-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Pills UI ===== */

.btn,
button,
input,
select,
textarea {
  border-radius: 999px;
}

.btn-pill {
  border-radius: 999px !important;
}

.app-footer__right button#btnLogout {
    color: #fff;
    border-color: #fff;
}

.side-nav__item {
  border-radius: 999px;
  min-height: 52px;
  padding: 12px 16px;
}

.side-nav__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
}

.side-nav__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.menu-warning {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f04438;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.input,
select.input,
textarea.input {
  border-radius: 999px;
  min-height: 48px;
  padding-left: 16px;
  padding-right: 16px;
}

.profile-completion-badge {
  border-radius: 999px;
}

.role-card {
  border-radius: 999px;
  min-height: 96px;
  justify-content: center;
}

.role-card__icon svg,
.role-card__icon i,
.role-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-actions .btn,
.profile-actions button {
  border-radius: 999px;
  min-height: 48px;
  padding: 0 20px;
}

.profile-avatar-row {
  margin-bottom: 20px;
}

.avatar-upload {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #d0d5dd;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 96px;
}

.profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8fafc;
}

.profile-avatar-fallback[hidden],
.profile-avatar-image[hidden] {
  display: none !important;
}

.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
}

.profile-avatar-fallback svg {
  width: 34px;
  height: 34px;
  stroke-width: 2;
}

.avatar-upload__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sidebar-user__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user__avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  background: #f2f4f7;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
}

.sidebar-user__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user__avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
}

.sidebar-user__avatar-fallback svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.sidebar-user__info {
  min-width: 0;
}


.wallet-page {
  padding: 20px;
  width:100%;
}

.wallet-shell {
  max-width: 100%;
}

.wallet-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

section.wallet-hero {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
}

.wallet-summary-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  min-width: min(680px, 100%);
}

.wallet-balance-card {
  min-width: 0;
  padding: 12px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a 0%, #111827 55%, #020617 100%);
  color: #fff;
}

.wallet-balance-card--bonus {
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 45%, #020617 100%);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.18);
}

.wallet-balance-card__label {
  font-size: 14px;
  opacity: 0.8;
}

.wallet-balance-card__amount {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}

.wallet-balance-card__hint {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.85;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.wallet-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
}

.wallet-panel__header h2 {
  margin: 0 0 6px;
}

.wallet-panel__header p {
  margin: 0 0 18px;
  color: #667085;
}

.wallet-form__actions {
  margin-top: 18px;
}

.wallet-status {
  margin-top: 14px;
  font-size: 14px;
  color: #475467;
}

.wallet-transactions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  background: #fcfcfd;
}

.wallet-transaction-item__title {
  font-weight: 600;
  color: #101828;
}

.wallet-transaction-item__meta {
  margin-top: 4px;
  font-size: 13px;
  color: #667085;
}

.wallet-transaction-item__amount {
  white-space: nowrap;
  font-weight: 800;
}

.wallet-transaction-item__amount.is-in {
  color: #067647;
}

.wallet-transaction-item__amount.is-out {
  color: #b42318;
}

.wallet-empty {
  padding: 16px;
  border: 1px dashed #d0d5dd;
  border-radius: 16px;
  color: #667085;
  text-align: center;
}

.form-grid__full {
  grid-column: 1 / -1;
}

@media (max-width: 960px) {
  .wallet-hero {
    flex-direction: column;
  }

  .wallet-summary-cards {
    grid-template-columns: 1fr;
    min-width: 100%;
  }

  .wallet-balance-card {
    min-width: 100%;
  }

  .wallet-grid {
    grid-template-columns: 1fr;
  }
}



.ride-page {
  padding: 19px;
  width:100%;
}

.ride-shell {
  max-width: 100%;
}

.ride-hero-card,
.ride-map-panel,
.ride-request-panel,
.ride-history-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
}

.ride-hero-card {
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

}

.ride-hero-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 600;
  white-space: nowrap;
  font-size:13px;
}

.ride-layout {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.ride-map-panel,
.ride-request-panel,
.ride-history-panel {
  padding: 20px;
}

.ride-map-panel__header h2,
.ride-request-panel__header h2,
.ride-history-panel__header h2 {
  margin: 0 0 6px;
}

.ride-map-panel__header p,
.ride-request-panel__header p,
.ride-history-panel__header p {
  margin: 0 0 18px;
  color: #667085;
}

.ride-map-placeholder {
  min-height: 380px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.ride-map-placeholder__icon {
  color: #475467;
  margin-bottom: 12px;
}

.ride-map-placeholder__icon svg {
  width: 36px;
  height: 36px;
}

.ride-map-placeholder__title {
  font-size: 18px;
  font-weight: 700;
  color: #101828;
}

.ride-map-placeholder__desc {
  margin-top: 8px;
  max-width: 320px;
  color: #667085;
}

.ride-estimate-card {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
}

.ride-estimate-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ride-estimate-card__row strong {
  font-size: 20px;
}

.ride-estimate-card__hint {
  margin-top: 8px;
  color: #667085;
  font-size: 14px;
}

.ride-request-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.ride-request-status {
  margin-top: 14px;
  font-size: 14px;
  color: #475467;
}

.ride-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ride-history-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  background: #fcfcfd;
}

.ride-history-item__route {
  font-weight: 700;
  color: #101828;
}

.ride-history-item__meta {
  margin-top: 6px;
  color: #667085;
  font-size: 14px;
}

.ride-history-item__side {
  text-align: right;
  white-space: nowrap;
}

.ride-history-item__price {
  font-weight: 800;
  color: #101828;
}

.ride-history-item__status {
  margin-top: 6px;
  color: #475467;
  font-size: 14px;
  text-transform: capitalize;
}

.ride-empty-state {
  padding: 18px;
  border: 1px dashed #d0d5dd;
  border-radius: 16px;
  text-align: center;
  color: #667085;
}

@media (max-width: 960px) {
  .ride-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .ride-layout {
    grid-template-columns: 1fr;
  }
}


.ride-search-results[hidden] {
  display: none !important;
}


.ride-map-fullscreen-shell {
  position: fixed;
  top: 80px;
  right: 0;
  bottom: 0;
  left: 280px;
  z-index: 60;
  overflow: hidden;
}

.ride-search-results {
  position: relative;
  z-index: 50;
}

.ride-map-controls {
  position: static;
}

.ride-map-controls__toggle {
  display: none;
}

.ride-map-controls__panel {
  position: static;
}

.ride-map-topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 401;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
}

.ride-map-topbar__estimate {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.ride-map-topbar__label { font-size: 14px; color: #667085; }
.ride-map-topbar__estimate strong { font-size: 34px; line-height: 1; color: #101828; }
.ride-map-topbar__meta { grid-column: 1 / -1; color: #475467; font-size: 14px; }
.ride-map-topbar__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.ride-map-canvas-wrap--fullscreen { position: absolute; inset: 0; width: 100%; height: 100%; }
.ride-map-canvas--fullscreen { width: 100%; height: 100%; min-height: 100%; border-radius: 0; }

.ride-vehicle-carousel-shell {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 401;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: auto;
  padding: 0;
  background: rgba(255,255,255,0.06);
  box-shadow: none;
  border: 0;
}

.custom-driver-cluster .custom-driver-cluster__inner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(15,23,42,.22);
}

.ride-vehicle-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 2px;
}

.ride-vehicle-carousel::-webkit-scrollbar {
  display: none;
}

.option-card--carousel {
  flex: 0 0 min(320px, 72vw);
  min-height: 112px;
  padding: 18px;
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
}

.option-card--carousel:hover {
  background: rgba(255, 255, 255, 0.24);
}

.option-card--carousel.is-selected {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(132, 202, 255, 0.9);
}

.option-card--carousel .option-card__title,
.option-card--carousel .option-card__desc {
  color: #0f172a;
}

.ride-carousel-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

.ride-carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
}

.ride-results-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #ffffff;
}

.ride-results-card__header {
  margin-bottom: 14px;
}

.ride-results-card__header h3 {
  margin: 0;
  font-size: 18px;
  color: #101828;
}

.ride-results-card__header p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 14px;
}

.option-list--compact {
  gap: 10px;
}

.option-card--compact {
  padding: 14px;
}

.ride-estimate-card--results {
  margin-top: 16px;
}

.custom-driver-pin--standard .custom-driver-pin__inner {
  background: #2563eb;
}

.custom-driver-pin--comfort .custom-driver-pin__inner {
  background: #7c3aed;
}

.custom-driver-pin--suv .custom-driver-pin__inner {
  background: #059669;
}

.custom-driver-pin--moto .custom-driver-pin__inner {
  background: #ea580c;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d0d5dd;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.option-card:hover {
  border-color: #98a2b3;
  background: #fcfcfd;
}

.option-card.is-selected {
  border-color: #84caff;
  background: #eff8ff;
  box-shadow: 0 0 0 3px rgba(43, 133, 255, 0.08);
}

.option-card__radio {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #fff;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.option-card.is-selected .option-card__radio {
  border-color: #2b85ff;
  background: #2b85ff;
}

.option-card.is-selected .option-card__radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 999px;
}

.option-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.option-card__title {
  font-weight: 700;
  color: #101828;
}

.option-card__desc {
  font-size: 14px;
  color: #667085;
}



.ride-map-canvas-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ride-map-canvas {
  width: 100%;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #d0d5dd;
}

.ride-map-actions {
  display: flex;
  justify-content: flex-start;
}

.custom-driver-pin,
.custom-pickup-pin {
  background: transparent;
  border: 0;
}

.custom-driver-pin__inner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.custom-pickup-pin__inner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #2b85ff;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 14px rgba(43, 133, 255, 0.3);
}


/* ===== Home page ===== */
.home-page {
  padding: 30px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 460px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.home-hero__content,
.home-search-card,
.home-panel,
.home-step-card,
.home-feature-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.06);
}

.home-hero__content {
  border-radius: 32px;
  padding: 32px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title-row h2 {
  margin: 0;
}

.section-title-row .menu-warning {
  width: 18px;
  height: 18px;
  font-size: 11px;
  flex: 0 0 18px;
}

.home-badge,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1497e8;
  font-size: 13px;
  font-weight: 700;
}

.home-badge, .section-eyebrow{
  margin-left:-12px;
}
.home-title {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.home-subtitle {
  margin: 0;
  max-width: 760px;
  color: #667085;
  font-size: 18px;
  line-height: 1.6;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.home-stat-card {
  padding: 16px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-stat-card strong {
  font-size: 15px;
}

.home-stat-card span {
  font-size: 14px;
  color: #667085;
}


.home-visual {
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  gap: 16px;
}

.home-visual__photo {
  position: relative;
  min-height: 320px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background:
    linear-gradient(180deg, rgba(10, 18, 34, 0.08) 0%, rgba(10, 18, 34, 0.58) 100%),
    url("/frontend/public/assets/img/santo-domingo.png") center/cover no-repeat;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.12);
  display: flex;
  align-items: flex-end;
}

.home-visual__overlay {
  padding: 24px;
  color: #ffffff;
}

.home-visual__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-visual__overlay h2 {
  margin: 14px 0 8px;
  font-size: 28px;
  line-height: 1.1;
}

.home-visual__overlay p {
  margin: 0;
  max-width: 420px;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}

.home-search-card {
  border-radius: 32px;
  padding: 28px;
}

.home-search-card__header h2,
.section-heading h2,
.home-panel h2 {
  margin: 10px 0 8px;
  font-size: 30px;
}

.home-search-card__header p,
.home-panel__text,
.section-heading p {
  margin: 0;
  color: #667085;
  line-height: 1.6;
}

.home-search-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.home-search-form__submit {
  margin-top: 4px;
}

.home-search-status {
  min-height: 22px;
  color: #475467;
  font-size: 14px;
}

.home-section {
  margin-top: 24px;
}

.section-heading {
  margin-bottom: 18px;
}

.home-steps,
.home-features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-step-card,
.home-feature-card {
  border-radius: 28px;
  padding: 24px;
}

.home-step-card__number {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #101828;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 16px;
}

.home-step-card h3,
.home-feature-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.home-step-card p,
.home-feature-card p {
  margin: 0;
  color: #667085;
  line-height: 1.6;
}

.home-section--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-panel {
  border-radius: 32px;
  padding: 28px;
}

.home-panel--accent {
  background: linear-gradient(135deg, #101828 0%, #1d2939 100%);
  color: #ffffff;
}

.home-panel--accent .section-eyebrow {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

.home-panel--accent .home-panel__text,
.home-panel--accent .home-feature-list li {
  color: rgba(255,255,255,0.82);
}

.home-feature-list {
  margin: 18px 0 22px;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.home-feature-list li {
  color: #475467;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .home-hero,
  .home-section--split,
  .home-steps,
  .home-features-grid,
  .home-stats {
    grid-template-columns: 1fr 1fr;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {


  .home-page {
    padding: 14px;
  }

  .home-hero__content,
  .home-search-card,
  .home-panel,
  .home-step-card,
  .home-feature-card {
    border-radius: 24px;
    padding: 20px;
  }

  .home-visual__photo {
    min-height: 260px;
    border-radius: 24px;
  }

  .home-stats,
  .home-section--split,
  .home-steps,
  .home-features-grid {
    grid-template-columns: 1fr;
  }

  .home-title {
    font-size: 34px;
  }

  .home-search-card__header h2,
  .section-heading h2,
  .home-panel h2 {
    font-size: 24px;
  }
}


.info-page {
  padding: 30px;
  width:100%;
}

.info-page__hero {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.06);
}

.info-page__hero h1 {
  margin: 12px 0 10px;
  font-size: 36px;
}

.info-page__hero p {
  margin: 0;
  color: #667085;
  line-height: 1.6;
}

.info-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.06);
}

.info-card__number {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #101828;
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

.info-card h3 {
  margin: 0 0 10px;
}

.info-card p {
  margin: 0;
  color: #667085;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .info-page {
    padding: 14px;
  }

  .info-page__grid {
    grid-template-columns: 1fr;
  }

  .info-page__hero {
    padding: 20px;
    border-radius: 24px;
  }

  .info-card {
    padding: 20px;
    border-radius: 20px;
  }
}

.login-social {
  margin-top: 0px;
}

.login-social__divider {
    position: relative;
    text-align: left;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-left: -10px;
}
.login-social__divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #eaecf0;
  transform: translateY(-50%);
}

.login-social__divider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: #fff;
  color: #667085;
  font-size: 14px;
}

.login-social__actions {
  display: grid;
  gap: 12px;
}

#googleSignInWrap {
  display: flex;
  justify-content: start;
}

.login-google-placeholder {
  width: 100%;
  text-align: center;
  padding: 14px 16px;
  border: 1px dashed #d0d5dd;
  border-radius: 999px;
  color: #667085;
  font-size: 14px;
}

.login-features {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eaecf0;
  display: grid;
  gap: 14px;
}

.login-feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-feature strong {
  font-size: 15px;
  color: #101828;
}

.login-feature span {
  font-size: 14px;
  color: #667085;
  line-height: 1.5;
}



.driver-page {
  padding: 24px;
}

.driver-shell {
  max-width: 100%;
}

.driver-hero-card,
.driver-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
}

.driver-hero-card {
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.driver-online-badge {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.driver-online-badge.is-online {
  background: #dcfce7;
  color: #166534;
}

.driver-online-badge.is-offline {
  background: #fee2e2;
  color: #991b1b;
}

.driver-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.driver-panel {
  padding: 20px;
  margin-bottom: 20px;
}

.driver-panel__header h2 {
  margin: 0 0 6px;
}

.driver-panel__header p {
  margin: 0 0 18px;
  color: #667085;
}

.driver-status-card {
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
}

.driver-status-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.driver-status-card__actions {
  margin-top: 16px;
}

.driver-status-message {
  margin-top: 12px;
  font-size: 14px;
  color: #475467;
}

.driver-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.driver-stat-card {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fcfcfd;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.driver-stat-card span {
  font-size: 14px;
  color: #667085;
}

.driver-stat-card strong {
  font-size: 24px;
  color: #101828;
}

.driver-requests-list,
.driver-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.driver-request-item,
.driver-history-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  background: #fcfcfd;
}

.driver-request-item__route,
.driver-history-item__route {
  font-weight: 700;
  color: #101828;
}

.driver-request-item__meta,
.driver-history-item__meta {
  margin-top: 6px;
  color: #667085;
  font-size: 14px;
}

.driver-request-item__side,
.driver-history-item__side {
  text-align: right;
  white-space: nowrap;
}

.driver-request-item__price,
.driver-history-item__price {
  font-weight: 800;
  color: #101828;
}

.driver-history-item__status {
  margin-top: 6px;
  font-size: 14px;
  color: #475467;
  text-transform: capitalize;
}

.driver-accept-btn {
  margin-top: 10px;
}

.driver-empty-state {
  padding: 18px;
  border: 1px dashed #d0d5dd;
  border-radius: 16px;
  text-align: center;
  color: #667085;
}

@media (max-width: 960px) {
  .driver-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .driver-grid {
    grid-template-columns: 1fr;
  }

  .driver-request-item,
  .driver-history-item {
    flex-direction: column;
  }

  .driver-request-item__side,
  .driver-history-item__side {
    text-align: left;
  }
}


.documents-page {
  padding: 24px;
}

.documents-shell {
  max-width: 100%;
}

.documents-hero-card,
.documents-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
}

.documents-hero-card {
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.documents-completion-badge {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.documents-completion-badge.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.documents-completion-badge.is-success {
  background: #dcfce7;
  color: #166534;
}

.documents-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.documents-panel {
  padding: 20px;
}

.documents-panel__header h2 {
  margin: 0 0 6px;
}

.documents-panel__header p {
  margin: 0 0 18px;
  color: #667085;
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.document-upload-card {
  padding: 16px;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  background: #fcfcfd;
}

.document-upload-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.document-upload-card__title {
  font-weight: 700;
  color: #101828;
}

.document-upload-card__desc {
  margin-top: 4px;
  font-size: 14px;
  color: #667085;
}

.document-upload-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.document-upload-card__meta {
  margin-top: 12px;
  font-size: 14px;
  color: #475467;
}

.document-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.document-status-pill.is-missing {
  background: #fee2e2;
  color: #991b1b;
}

.document-status-pill.is-uploaded {
  background: #dcfce7;
  color: #166534;
}

.documents-status {
  margin-top: 16px;
  font-size: 14px;
  color: #475467;
}

.documents-summary-card {
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
}

.documents-summary-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.documents-summary-card__row strong {
  font-size: 22px;
}

.documents-summary-card__hint {
  margin-top: 8px;
  font-size: 14px;
  color: #667085;
}

.documents-preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.documents-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  background: #fcfcfd;
}

.documents-preview-item strong.is-ok {
  color: #166534;
}

.documents-preview-item strong.is-missing {
  color: #991b1b;
}

.admin-page {
  display: grid;
  gap: 24px;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.admin-shell {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.admin-hero-card,
.admin-panel,
.admin-stat-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  min-width: 0;
  max-width: 100%;
}

.admin-hero-card,
.admin-panel {
  padding: 24px;
}

.admin-hero-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.admin-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #115e59;
  font-weight: 700;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-stat-card {
  padding: 18px 20px;
  display: grid;
  gap: 8px;
}

.admin-stat-card span {
  color: #667085;
  font-size: 0.95rem;
}

.admin-stat-card strong {
  font-size: 1.8rem;
  color: #101828;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.admin-panel__header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-panel__header h2,
.admin-subsection__header h3 {
  margin: 0;
}

.admin-panel__header p {
  margin: 0;
  color: #667085;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-checkbox,
.admin-mini-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #344054;
}

.admin-subsection {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

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

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

.admin-dynamic-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}


.admin-dynamic-header {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  background: #eef2f6;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-dynamic-header--pricing {
  grid-template-columns: repeat(12, minmax(110px, 1fr));
}

.admin-dynamic-row--pricing {
  grid-template-columns: repeat(12, minmax(110px, 1fr));
}

.admin-dynamic-header--surcharge,
.admin-dynamic-row--surcharge {
  grid-template-columns: minmax(140px, 1fr) minmax(130px, 0.9fr) minmax(180px, 1.2fr) minmax(130px, 0.9fr) minmax(120px, 0.8fr) minmax(110px, 0.8fr) minmax(90px, 0.6fr) minmax(100px, 0.7fr);
}

.admin-dynamic-header--maintenance {
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.admin-dynamic-row[data-row-type="maintenance"] {
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.admin-dynamic-header--field {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.admin-dynamic-header--document,
.admin-dynamic-row[data-row-type="document"] {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.admin-dynamic-list {
  overflow-x: auto;
  padding-bottom: 4px;
}


.admin-users-table {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.admin-users-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 0.9fr)) minmax(0, 0.8fr) minmax(110px, auto);
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #f8fafc;
  min-width: 0;
  max-width: 100%;
}

.admin-users-table__header {
  background: #eef2f6;
  color: #667085;
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-user-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-user-main strong,
.admin-user-main small,
.admin-user-balance {
  color: #667085;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-user-main strong {
  color: #101828;
}

.admin-centers-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.admin-center-card {
  padding: 16px;
  border-radius: 22px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 12px;
}

.admin-center-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-center-card__meta,
.admin-center-card__body {
  color: #667085;
}

.admin-center-card__actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.custom-service-center-pin {
  background: transparent;
  border: 0;
}

.admin-panel,
.admin-form,
.form-grid,
.admin-subsection,
.admin-dynamic-list,
.admin-centers-list {
  min-width: 0;
}

.admin-users-table__row > *,
.admin-dynamic-row > * {
  min-width: 0;
}

.admin-users-table__header span {
  white-space: normal;
}

.custom-service-center-pin__inner {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

@media (max-width: 1200px) {
  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-users-table__row {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }

  .admin-users-table__header {
    display: none;
  }

  .admin-user-balance,
  .admin-save-user-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .documents-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .document-upload-card__top {
    flex-direction: column;
  }

  .admin-summary-grid,
  .admin-layout,
  .admin-centers-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .profile-page,
  .wallet-page,
  .ride-page,
  .driver-page,
  .documents-page,
  .admin-page {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  .admin-dynamic-row,
  .admin-dynamic-header,
  .admin-users-table__row {
    grid-template-columns: 1fr;
  }

  .admin-dynamic-header {
    display: none;
  }

  .admin-hero-card,
  .admin-subsection__header,
  .admin-center-card__top {
    flex-direction: column;
    align-items: stretch;
  }
}


@media (max-width: 960px) {
  .ride-map-fullscreen-shell {
    left: 0;
  }

  .ride-map-topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
  }

  .ride-map-topbar__estimate {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ride-map-topbar__estimate strong {
    font-size: 28px;
  }

  .ride-map-topbar__meta,
  .ride-map-topbar__actions {
    grid-column: auto;
    grid-row: auto;
  }

  .ride-map-topbar__actions {
    flex-wrap: wrap;
  }

  .ride-map-canvas--fullscreen {
    min-height: 100%;
  }

  .ride-vehicle-carousel-shell {
    gap: 8px;
  }

  .ride-carousel-arrow {
    width: 42px;
    height: 42px;
  }

  .option-card--carousel {
    flex-basis: 78vw;
    min-height: 104px;
  }
}


@media (max-width: 768px) {
  .ride-map-fullscreen-shell {
    top: 82px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 0;
  }

  .ride-map-controls {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 401;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    pointer-events: none;
  }

  .ride-map-controls__toggle {
    pointer-events: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    align-items: center;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.18);
    color: #101828;
    text-align: left;
  }

  .ride-map-controls__toggle-label {
    font-size: 15px;
    font-weight: 800;
  }

  .ride-map-controls__toggle-summary {
    grid-column: 1 / 2;
    font-size: 13px;
    color: #667085;
  }

  .ride-map-controls__toggle-icon {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.24s ease;
  }

  .ride-map-controls__panel {
    pointer-events: auto;
    display: none;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.2);
  }

  .ride-map-controls.is-expanded .ride-map-controls__panel {
    display: grid;
    gap: 12px;
  }

  .ride-map-controls.is-expanded .ride-map-controls__toggle-icon {
    transform: rotate(180deg);
  }

  .ride-map-topbar,
  .ride-vehicle-carousel-shell {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .ride-map-topbar {
    display: grid;
    gap: 12px;
  }

  .ride-map-topbar__estimate {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ride-map-topbar__estimate strong {
    font-size: 30px;
  }

  .ride-map-topbar__actions {
    grid-column: auto;
    grid-row: auto;
    flex-wrap: wrap;
  }

  .ride-vehicle-carousel-shell {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }

  .option-card--carousel {
    flex-basis: 72vw;
    min-height: 96px;
    border-color: rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    box-shadow: none;
  }

  .option-card--carousel:hover,
  .option-card--carousel.is-selected {
    background: #eff8ff;
  }
}

.ride-navigation-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d0d5dd;
  border-radius: 20px;
  background: #f8fafc;
}

.ride-navigation-card__actions,
.driver-request-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.referrals-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.referrals-actions { flex-wrap:wrap; gap:10px; }
.referrals-qr-section { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.referrals-qr-image { width:220px; max-width:100%; border:1px solid #e5e7eb; border-radius:18px; background:#fff; padding:12px; }
@media (max-width: 768px) { .referrals-grid { grid-template-columns:1fr; } .referrals-qr-section { flex-direction:column; align-items:flex-start; } }

/* Desktop popup panel for ride map */
@media (min-width: 769px) {
  .ride-map-controls {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 401;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    pointer-events: none;
  }

  .ride-map-controls__toggle {
    pointer-events: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    align-items: center;
    min-width: 360px;
    max-width: 560px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    color: #101828;
    text-align: left;
  }

  .ride-map-controls__panel {
    pointer-events: auto;
    display: none;
    width: min(860px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.2);
  }

  .ride-map-controls.is-expanded .ride-map-controls__panel {
    display: grid;
    gap: 12px;
  }

  .ride-map-controls.is-expanded .ride-map-controls__toggle-icon {
    transform: rotate(180deg);
  }

  .ride-map-topbar,
  .ride-vehicle-carousel-shell {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    margin: 0;
  }
}

/* Ride map controls refinements */
.ride-map-controls__toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ride-map-controls__toggle-label,
.ride-map-controls__toggle-summary {
  min-width: 0;
}

.ride-map-controls__toggle-summary {
  flex: 1 1 auto;
}

.ride-map-controls__toggle-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  margin-left: auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  transition: transform 0.24s ease, background 0.2s ease;
}

.ride-map-controls__toggle:hover .ride-map-controls__toggle-icon {
  background: rgba(37, 99, 235, 0.12);
}

.ride-map-controls__toggle-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ride-map-controls.is-expanded .ride-map-controls__toggle-icon {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .ride-map-controls__toggle {
    display: flex;
    flex-wrap: nowrap;
  }

  .ride-map-controls__toggle-label,
  .ride-map-controls__toggle-summary {
    white-space: nowrap;
  }

  .ride-map-controls__toggle-summary {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ride-map-topbar__actions {
    justify-content: flex-start;
  }
}

@media (min-width: 769px) {
  .ride-map-controls__toggle {
    display: inline-flex;
    width: auto;
    max-width: min(860px, calc(100vw - 32px));
  }

  .ride-map-topbar__actions {
    justify-content: flex-start;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.modal-card {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.admin-user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}



/* ==== Home / Header / Footer restyling RD ==== */
:root {
  --fd-brand: #4f46e5;
  --fd-brand-dark: #3e38c8;
  --fd-brand-soft: #eef2ff;
  --fd-text-strong: #141b34;
  --fd-surface-soft: #f8f8ff;
}

body {
  background: #f5f6fb;
  color: var(--fd-text-strong);
}

.brand__link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-pill {
  border-radius: 999px;
  font-weight: 700;
  padding: 12px 18px;
}

.btn {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 44, 97, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, var(--fd-brand) 0%, #6258f3 100%);
  border-color: transparent;
  color: #fff;
}

.btn--ghost {
  background: rgba(255,255,255,0.72);
  border-color: rgba(79, 70, 229, 0.16);
  color: var(--fd-text-strong);
}

.home-page {
  padding: 32px;
  max-width: 1440px;
  margin: 0 auto;
}

.home-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.home-hero__content,
.home-search-card,
.home-panel,
.home-step-card,
.home-feature-card {
  border: none;
  box-shadow: 0 18px 45px rgba(27, 36, 94, 0.08);
}

.home-search-card__header h2{
  background: linear-gradient(90deg, #198FF2 0%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.home-search-card__header h2,
.home-panel:not(.home-panel--accent) h2 {
  background: linear-gradient(90deg, #198FF2 0%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.home-search-card__header h2,
.home-panel:not(.home-panel--accent) h2,
.section-heading h2 {
  background: linear-gradient(90deg, #198FF2 0%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
button.btn.btn-primary.btn-pill.home-search-form__submit {
  background: linear-gradient(90deg, #198FF2 0%, #000000 100%) !important;
  border: none !important;
  color: #ffffff !important;
}


.home-hero__content--dominicana {
  min-height: 100%;
  border-radius: 36px;
  padding: 40px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.26), rgba(255,255,255,0) 35%),
    linear-gradient(135deg, #4f46e5 0%, #5f53f2 52%, #4338ca 100%);
  color: #fff;
}

.home-badge {
  background: rgba(255,255,255,0.14);
  color: #fff;
  margin-left: 0;
  backdrop-filter: blur(10px);
}

.section-eyebrow {
  margin-left: 0;
}

.home-title {
  margin: 22px 0 14px;
  font-size: clamp(52px, 6vw, 84px);
  line-height: .95;
  letter-spacing: -0.05em;
  color: #fff;
}

.home-subtitle {
  max-width: 780px;
  color: rgba(255,255,255,0.84);
}

.home-stats {
  margin-top: 30px;
}

.home-stat-card {
  min-height: 118px;
  justify-content: start;
  border-radius: 26px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}

.home-stat-card span {
  color: rgba(255,255,255,0.74);
}

.home-flow-block {
  margin-top: 28px;
}

.home-flow-block h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  margin: 14px 0 0;
}

.home-steps--inside {
  margin-top: 20px;
}

.home-step-card {
  border-radius: 28px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  box-shadow: none;
}

.home-step-card p {
  color: rgba(255,255,255,0.78);
}

.home-step-card__number {
  background: #fff;
  color: var(--fd-brand);
}

.home-visual--stack {
  height: 100%;
  grid-template-rows: minmax(320px, 1fr) auto;
}

.home-visual__photo {
  min-height: 360px;
  border-radius: 36px;
  border: 1px solid rgba(79, 70, 229, 0.1);
  background:
    linear-gradient(180deg, rgba(25, 21, 87, 0.18) 0%, rgba(25, 21, 87, 0.65) 100%),
    url("/frontend/public/assets/img/santo-domingo.png") center/cover no-repeat;
}

.home-visual__eyebrow {
  background: rgba(255,255,255,0.18);
}

.home-search-card {
  border-radius: 36px;
  padding: 30px;
  background: #fff;
}

.home-search-card__header h2,
.section-heading h2,
.home-panel h2 {
  font-size: clamp(30px, 3vw, 44px);
  color: var(--fd-text-strong);
}

.home-search-card__header p,
.home-panel__text,
.section-heading p,
.home-feature-card p,
.home-feature-list li {
  color: #667085;
}

.label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--fd-text-strong);
}

.input {
  min-height: 54px;
  margin-bottom: 10px;
  border-radius: 99px;
  border-color: #e6e7f0;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(16,24,40,0.02);
}

.home-search-form {
  gap: 14px;
}

.home-later-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-search-status {
  min-height: 22px;
  color: var(--fd-brand-dark);
  font-weight: 600;
}

.home-section {
  margin-top: 22px;
}

.home-section--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.home-panel {
  border-radius: 36px;
  padding: 30px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.home-panel > .btn {
  margin-top: auto;
  align-self: flex-start;
}

.home-panel--accent {
  background: linear-gradient(135deg, #11162a 0%, #1a2242 100%);
}

.home-panel--accent h2,
.home-panel--accent .btn--ghost,
.home-panel--accent .section-eyebrow {
  color: #fff;
}

.home-panel--accent .home-panel__text,
.home-panel--accent .home-feature-list li {
  color: rgba(255,255,255,0.8);
}

.home-feature-list {
  margin: 18px 0 24px;
}

.home-features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-feature-card {
  border-radius: 30px;
  padding: 28px;
  background: linear-gradient(180deg, #fff 0%, #fafaff 100%);
}

.home-feature-card h3 {
  color: var(--fd-text-strong);
}

@media (max-width: 1100px) {
  .home-hero,
  .home-section--split,
  .home-features-grid {
    grid-template-columns: 1fr;
  }

  .home-visual--stack {
    grid-template-rows: auto auto;
  }
}

@media (max-width: 768px) {
  .home-page {
    padding: 16px;
  }

  .home-hero__content--dominicana,
  .home-search-card,
  .home-panel,
  .home-feature-card {
    padding: 22px;
    border-radius: 28px;
  }

  .home-title {
    font-size: clamp(40px, 13vw, 66px);
  }

  .home-stats,
  .home-later-fields,
  .home-steps,
  .home-features-grid {
    grid-template-columns: 1fr;
  }

  .home-visual__photo {
    min-height: 280px;
  }
}



/* ==== Typography update: Poppins titles/buttons + Lato body ==== */
:root {
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Lato', system-ui, sans-serif;
}

body,
p,
span,
label,
input,
select,
textarea,
small,
li,
a,
.home-subtitle,
.home-panel__text,
.home-feature-card p,
.home-step-card p,
.home-feature-list li,
.home-search-card__header p,
.home-search-status {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6,
.home-title,
.home-panel h2,
.home-search-card__header h2,
.section-heading h2,
.home-feature-card h3,
.home-step-card h3,
.home-flow-block h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: normal;
}

.btn,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: normal;
}

/* ==== UX: make search one of the first and more prominent items on home ==== */
.home-hero__content--dominicana {
  display: flex;
  flex-direction: column;
}

.home-search-card {
  order: 2;
  margin-top: 24px;
  margin-bottom: 8px;
}

.home-hero__actions {
  order: 3;
}

.home-stats {
  order: 4;
}

.home-flow-block {
  order: 5;
}

.home-search-card {
  border-radius: 34px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(27, 36, 94, 0.12);
}

.home-search-card__header h2 {
  margin-top: 0;
}

.home-search-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.home-search-form > div,
.home-search-form > button,
.home-search-form > .home-search-status {
  min-width: 0;
}

.home-search-form__submit,
.home-search-status,
.home-later-fields {
  grid-column: 1 / -1;
}

.home-later-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .home-search-form,
  .home-later-fields {
    grid-template-columns: 1fr;
  }
}





/* ==== Final tweaks: badge width by content + single-column hero ==== */
.home-badge,
.section-eyebrow {
  width: fit-content;
  max-width: 100%;
}

.home-hero {
  grid-template-columns: 1fr !important;
}


/* ==== Final visual bundle overrides ==== */
:root {
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Lato', system-ui, sans-serif;
  --fd-brand: #1da1f2;
  --fd-brand-dark: #0f8bdc;
  --fd-brand-soft: #e8f6ff;
}

body,
p,
span,
label,
input,
select,
textarea,
small,
li,
a,
.home-subtitle,
.home-panel__text,
.home-feature-card p,
.home-step-card p,
.home-feature-list li,
.home-search-card__header p,
.home-search-status,
.login-media__overlay p {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6,
.home-title,
.home-panel h2,
.home-search-card__header h2,
.section-heading h2,
.home-feature-card h3,
.home-step-card h3,
.home-flow-block h2,
.login-media__overlay h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: normal;
}

.btn,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.login-media__badge {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: normal;
}

.home-badge,
.section-eyebrow {
  width: fit-content;
  max-width: 100%;
}

.home-hero {
  grid-template-columns: 1fr !important;
}

.home-hero__content--dominicana {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.26), rgba(255,255,255,0) 35%),
    linear-gradient(135deg, #1da1f2 0%, #36b3ff 52%, #0f8bdc 100%);
}

.home-search-card {
  order: 2;
  margin-top: 24px;
  margin-bottom: 8px;
  border-radius: 34px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(27, 36, 94, 0.12);
}

.home-hero__actions { order: 3; }
.home-stats { order: 4; }
.home-flow-block { order: 5; }

.home-search-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.home-search-form > div,
.home-search-form > button,
.home-search-form > .home-search-status {
  min-width: 0;
}

.home-search-form__submit,
.home-search-status,
.home-later-fields {
  grid-column: 1 / -1;
}

.home-later-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-visual {
  gap: 0 !important;
}

.home-panel--accent {
  background: linear-gradient(135deg, #1497e8 0%, #0f8bdc 100%);
}

.login-media {
  width: 100%;
  min-height: 620px;
  border-radius: 36px;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
  background: #dbeafe;
}

.login-media__slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 4s ease;
}

.login-media__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 161, 242, 0.10) 0%, rgba(15, 139, 220, 0.38) 100%);
}

.login-media__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.login-media__overlay {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: #fff;
}

.login-media__badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  margin-bottom: 14px;
}

.login-media__overlay h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.05;
}

.login-media__overlay p {
  margin: 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

@media (max-width: 900px) {
  .home-search-form,
  .home-later-fields {
    grid-template-columns: 1fr;
  }
}


/* ==== Latest tweaks ==== */
.home-stat-card {
  gap: 0 !important;
  min-height: auto !important;
}

.btn,
.btn-primary {
  background: #1da1f2 !important;
  border-color: #1da1f2 !important;
  color: #ffffff !important;
}

.btn--ghost {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #1da1f2 !important;
}

.home-hero__actions {
  margin-top: 20px;
}


@media (max-width: 700px) {
  .login-page {
    padding: 14px;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-media {
    min-height: 240px;
    max-height: 310px;
    height: 310px;
  }

  .login-card {
    min-height: auto;
    padding: 24px;
  }
}
/* ==== Internal page title colors aligned with home ==== */
#app.app--internal .route-view h1,
#app.app--internal .route-view h2,
#app.app--internal .page-title {
  background: linear-gradient(90deg, #198FF2 0%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

#app.app--internal .route-view .btn h1,
#app.app--internal .route-view .btn h2,
#app.app--internal .route-view .option-card h2 {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: inherit;
}

/* With the internal header removed, the fullscreen ride map starts at the top. */
#app.app--internal .ride-map-fullscreen-shell {
  top: 0 !important;
}

@media (max-width: 768px) {
  #app.app--internal .ride-map-fullscreen-shell {
    top: 0 !important;
  }
}


/* FamilyDrivers fixes: ride controls layout and mobile toggle */
.ride-map-controls__toggle {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
}

.ride-map-controls__toggle-label,
.ride-map-controls__toggle-summary {
  display: inline-block;
  white-space: nowrap;
}

.ride-map-controls__toggle-summary {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ride-map-controls__toggle-icon {
  margin-left: auto !important;
  flex: 0 0 34px;
}

.ride-map-topbar {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 22px !important;
  align-items: center;
}

.ride-map-topbar__estimate {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.ride-map-topbar__meta {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

.ride-map-topbar__actions {
  grid-column: 2 !important;
  grid-row: 2;
  justify-content: flex-start !important;
}

@media (max-width: 768px) {
  .ride-map-topbar {
    grid-template-columns: 1fr;
  }

  .ride-map-topbar__estimate,
  .ride-map-topbar__meta,
  .ride-map-topbar__actions {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

/* v9: open passenger requests are shown immediately after requesting a ride. */
.ride-history-panel--open {
  border-color: rgba(14, 165, 233, 0.28);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.ride-history-item--open {
  border-color: rgba(14, 165, 233, 0.22);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.admin-panel--demo-bots {
  margin: 24px 0;
}

.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.admin-demo-bots-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

/* v13: marker cluster fix */
.custom-driver-cluster,
.custom-driver-pin {
  background: transparent !important;
  border: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.custom-driver-cluster__inner {
  width: 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  border: 4px solid #fff;
  font-size: 17px;
  font-weight: 800;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .24);
}
.custom-driver-pin__inner {
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border: 4px solid #fff;
  font-size: 13px;
  font-weight: 800;
  box-sizing: border-box;
}

/* Passenger map request panel spacing */
section#openRideRequestsPanel {
  margin-bottom: 20px;
}

/* Link-style action buttons requested for passenger map */
#btnMapBack,
#btnCancelRideSearch,
#btnUseCurrentLocation,
#btnRequestRide,
.ride-history-open-btn {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #0ea5e9 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  min-height: 0;
  height: auto;
  border-radius: 0;
}

#btnMapBack:hover,
#btnCancelRideSearch:hover,
#btnUseCurrentLocation:hover,
#btnRequestRide:hover,
.ride-history-open-btn:hover {
  background: transparent !important;
  color: #0284c7 !important;
}

/* Vehicle type options on passenger map: same visual language as profile role cards */
.ride-vehicle-options-section {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 401;
  width: auto;
  max-height: min(48vh, 430px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
}

.ride-vehicle-options-section .section-title-row {
  margin-bottom: 12px;
}

.ride-vehicle-options-section .section-title-row h2 {
  margin: 0;
  font-size: 18px;
}

.ride-vehicle-options-section .option-list {
  gap: 10px;
}

.ride-vehicle-options-section .option-card {
  min-height: 0;
  padding: 14px 16px;
}

.ride-vehicle-options-section .option-card__desc {
  font-size: 13px;
}

@media (max-width: 768px) {
  .ride-vehicle-options-section {
    position: static;
    width: 100%;
    max-height: none;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: none;
  }
}

/* Passenger map controls: keep vehicle option cards inside the scrollable controls panel */
.ride-map-fullscreen-shell .ride-map-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: auto;
  z-index: 401;
  display: block;
  max-height: calc(100% - 32px);
  overflow: visible;
  pointer-events: none;
}

.ride-map-fullscreen-shell .ride-map-controls__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-height: calc(100vh - 132px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  pointer-events: auto;
}

.ride-map-fullscreen-shell .ride-map-topbar {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  z-index: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.ride-map-fullscreen-shell .ride-vehicle-options-section {
  position: static !important;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  width: 100%;
  max-height: none;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.ride-map-fullscreen-shell .ride-vehicle-options-section .option-list {
  display: grid;
  gap: 10px;
}

@media (max-width: 768px) {
  .ride-map-fullscreen-shell .ride-map-controls {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-height: min(78vh, calc(100% - 20px));
    padding: 0;
  }

  .ride-map-fullscreen-shell .ride-map-controls__toggle {
    display: flex;
    pointer-events: auto;
  }

  .ride-map-fullscreen-shell .ride-map-controls__panel {
    display: none;
    max-height: calc(78vh - 78px);
    padding: 14px;
    border-radius: 22px;
  }

  .ride-map-fullscreen-shell .ride-map-controls.is-expanded .ride-map-controls__panel {
    display: grid;
  }
}

/* Fix: ride map controls must remain a collapsible popup/sheet.
   Keep the vehicle option-card list inside the panel, but hide/show the whole
   panel only through the .is-expanded state on #rideMapControls. */
.ride-map-fullscreen-shell .ride-map-controls {
  pointer-events: none;
}

.ride-map-fullscreen-shell .ride-map-controls__toggle {
  pointer-events: auto;
}

.ride-map-fullscreen-shell .ride-map-controls__panel {
  display: none !important;
  pointer-events: auto;
}

.ride-map-fullscreen-shell .ride-map-controls.is-expanded .ride-map-controls__panel {
  display: grid !important;
}

.ride-map-fullscreen-shell .ride-vehicle-options-section {
  position: static !important;
  width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
}

.ride-map-fullscreen-shell .ride-map-controls.is-expanded .ride-map-controls__panel {
  max-height: min(72vh, calc(100vh - 170px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .ride-map-fullscreen-shell .ride-map-controls.is-expanded .ride-map-controls__panel {
    max-height: calc(78vh - 78px);
  }
}

/* Requested: the passenger map itself must have square corners. */
.ride-map-canvas-wrap,
.ride-map-canvas,
.ride-map-canvas-wrap--fullscreen,
.ride-map-canvas--fullscreen {
  border-radius: 0 !important;
}

/* Selecting a vehicle option closes the popup panel and reveals the map underneath. */
.ride-map-fullscreen-shell .ride-map-controls:not(.is-expanded) .ride-map-controls__panel {
  display: none !important;
}

/* Requested spacing for the ride map popup panel. */
@media (min-width: 769px) {
  div#rideMapControlsPanel {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  div#rideMapControlsPanel {
    margin-top: 10px;
  }
}

/* Passenger map quick actions: circular icons on top-right of map with hover tooltips. */
.ride-map-floating-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 410;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}

.ride-map-floating-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(15,23,42,.18);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.ride-map-floating-action svg {
  width: 19px;
  height: 19px;
}

.ride-map-floating-action--primary {
  color: #ffffff;
  background: #0ea5e9;
  border-color: rgba(14,165,233,.45);
}

.ride-map-floating-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15,23,42,.22);
}

.ride-map-floating-action::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  transform: translateY(-50%);
  width: max-content;
  max-width: 180px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.94);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.ride-map-floating-action:hover::after,
.ride-map-floating-action:focus-visible::after {
  opacity: 1;
  transform: translate(-2px, -50%);
}

@media (max-width: 768px) {
  .ride-map-floating-actions {
    top: 12px;
    right: 12px;
    gap: 8px;
  }

  .ride-map-floating-action {
    width: 40px;
    height: 40px;
  }
}

/* Family Drivers logo inside the internal sidebar above the user block. */
.sidebar-brand-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 12px 10px 18px 0;
}

.sidebar-brand-logo img {
  display: block;
  max-width: 168px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* v25 controlled patch: clearable inputs, vehicle icons, driver map and mobile map header fix */
.input-clear-wrap {
  position: relative;
  display: block;
}
.input--with-clear {
  padding-right: 46px !important;
}
.input-clear-btn {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.input-clear-btn:hover {
  color: #101828;
  background: #f2f4f7;
}
.option-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef7ff;
  color: #1d9bf0;
  flex: 0 0 auto;
}
.option-card__icon svg,
.option-card__icon i {
  width: 19px;
  height: 19px;
}
.option-card.is-selected .option-card__icon {
  background: #1d9bf0;
  color: #fff;
}
.ride-map-controls__toggle {
  min-width: 0;
}
.ride-map-controls__toggle-label,
.ride-map-controls__toggle-summary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.driver-map-panel {
  margin-bottom: 24px;
}
.driver-map-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
  background: #e9f4ff;
}
.driver-map-canvas {
  width: 100%;
  height: 420px;
  min-height: 360px;
}
.driver-map-actions {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 402;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 16px 42px rgba(15,23,42,.18);
}
@media (max-width: 760px) {
  .ride-map-controls__toggle {
    display: grid !important;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
  }
  .ride-map-controls__toggle-label {
    font-size: 16px;
  }
  .ride-map-controls__toggle-summary {
    font-size: 13px;
  }
  .driver-map-canvas {
    height: 56vh;
  }
  .driver-map-actions {
    justify-content: flex-start;
    overflow-x: auto;
  }
}

/* v26: clear buttons visibility and mobile trip-details sheet overlap fix */
.input-clear-btn[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  body.ride-map-open .ride-map-floating-actions {
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
    gap: 8px;
    z-index: 460;
  }

  body.ride-map-open .ride-map-controls {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    z-index: 450;
  }

  body.ride-map-open .ride-map-controls__toggle {
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .22);
  }

  body.ride-map-open .ride-map-controls__panel {
    max-height: min(66vh, calc(100dvh - 178px)) !important;
    margin-top: 8px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  body.ride-map-open .ride-map-topbar__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.ride-map-open .ride-map-topbar__actions .btn {
    width: 100%;
    min-height: 40px;
    padding-inline: 10px;
    white-space: normal;
  }
}

.ride-customization-card {
  margin-top: 4px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  padding: 12px 14px;
}
.ride-customization-card summary {
  cursor: pointer;
  font-weight: 800;
  color: #101828;
}
.ride-customization-card summary span {
  color: #667085;
  font-weight: 600;
  margin-left: 6px;
}
.ride-customization-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 720px) { .ride-customization-grid { grid-template-columns: 1fr; } }

section#passengerCallPanel {
  margin-bottom: 20px;
}

.section-title-row__muted {
  color: #667085;
  font-weight: 700;
  margin-left: 10px;
}

.ride-customization-section {
  margin-top: 18px;
}

.ride-customization-card summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ride-customization-card summary::-webkit-details-marker {
  display: none;
}

.ride-customization-card .ride-map-controls__toggle-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #101828;
  transition: transform .18s ease, background .18s ease;
}

.ride-customization-card[open] .ride-map-controls__toggle-icon {
  transform: rotate(180deg);
}

.fd-pagination {
  display: flex;
  align-items: center;
  justify-content: start;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.fd-pagination[hidden] {
  display: none !important;
}

.fd-pagination__btn {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  color: #101828;
  font-weight: 700;
  cursor: pointer;
  padding: 0 12px;
}

.fd-pagination__btn.is-active {
  border-color: #1d9bf0;
  background: #1d9bf0;
  color: #fff;
}

.fd-pagination__btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.btn--danger,
.ride-map-floating-action--danger {
  background: #fee4e2;
  color: #b42318;
  border-color: #fecdca;
}

.ride-map-floating-action--danger:hover,
.btn--danger:hover {
  background: #fecdca;
  color: #912018;
}

.driver-negotiate-form,
.trip-feedback-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

.trip-feedback-form .label,
.driver-negotiate-form .label {
  gap: 6px;
}

/* v33: evita overflow en Actividad reciente y formularios del conductor */
.driver-request-item,
.driver-history-item,
.driver-request-item__main,
.driver-history-item > div,
.driver-request-item__side,
.driver-history-item__side {
  min-width: 0;
}

.driver-request-item__side,
.driver-history-item__side {
  white-space: normal;
}

.driver-negotiate-form,
.trip-feedback-form {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.driver-negotiate-form .input,
.trip-feedback-form .input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .driver-request-item,
  .driver-history-item {
    overflow: hidden;
  }
}

/* v34: mappa operativa admin/superadmin */
.admin-live-map-panel {
  overflow: hidden;
}

.admin-live-map-header {
  align-items: flex-start;
  gap: 16px;
}

.admin-live-map-filters {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.admin-live-map {
  width: 100%;
  min-height: 620px;
  height: min(70vh, 760px);
  border: 1px solid var(--border-color, #d8dee8);
  border-radius: 28px;
  overflow: hidden;
  background: #eef6ff;
}

.admin-live-map-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.admin-live-map-counters {
  color: var(--text-muted, #637083);
  font-weight: 700;
}

.admin-live-map-marker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
  font-size: 16px;
}

.admin-live-map-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
  max-height: 260px;
  overflow: auto;
}

.admin-live-map-list-item {
  border: 1px solid var(--border-color, #d8dee8);
  border-radius: 18px;
  padding: 12px 14px;
  background: #fff;
  display: grid;
  gap: 4px;
}

.admin-live-map-list-item strong,
.admin-live-map-list-item span,
.admin-live-map-list-item small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-live-map-list-item small {
  color: var(--text-muted, #637083);
}

@media (max-width: 980px) {
  .admin-live-map-filters {
    grid-template-columns: 1fr 1fr;
  }

  .admin-live-map-filters input[type="search"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .admin-live-map-filters {
    grid-template-columns: 1fr;
  }

  .admin-live-map {
    min-height: 520px;
    height: 68vh;
    border-radius: 22px;
  }
}


/* Requested z-index so the ride map controls stay above map layers. */
div#rideMapControls {
  z-index: 2000;
}

.ride-map-topbar__actions--icons {
  gap: 8px;
}

.ride-map-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15,23,42,.10);
  cursor: pointer;
}

.ride-map-action-icon svg {
  width: 18px;
  height: 18px;
}

.ride-map-action-icon--danger {
  color: #ffffff;
  background: #dc2626;
  border-color: #dc2626;
}

.ride-map-action-icon--primary {
  color: #ffffff;
  background: #0ea5e9;
  border-color: #0ea5e9;
}

.notifications-page {
  padding: 20px;
}

.visually-hidden-camera {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.driver-request-card {
  border-radius: 28px;
  background: #171717;
  color: #f8fafc;
  padding: 18px;
  box-shadow: 0 22px 50px rgba(15,23,42,.22);
  display: grid;
  gap: 14px;
}

.driver-request-card__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.driver-request-card__avatar {
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 999px;
  background: #d9f99d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0f172a;
}

.driver-request-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.driver-request-card__passenger {
  font-size: 1rem;
  font-weight: 800;
}

.driver-request-card__rating,
.driver-request-card__meta,
.driver-request-card__offers span {
  color: rgba(248,250,252,.68);
  font-size: .88rem;
}

.driver-request-card__price {
  font-size: 1.55rem;
  font-weight: 900;
}

.driver-request-card__route {
  display: grid;
  gap: 10px;
}

.driver-request-card__route > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.route-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-weight: 900;
  color: #fff;
}

.route-dot--a { background: #3b82f6; }
.route-dot--b { background: #22c55e; }

.driver-request-card__accept {
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: #b7ff00;
  color: #111827;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 16px;
  cursor: pointer;
}

.driver-request-card__offers {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.driver-request-card__offers span {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.05rem;
}

.driver-request-card__offers input {
  min-width: 0;
  border: 0;
  border-radius: 16px;
  background: rgba(255,255,255,.14);
  color: #fff;
  padding: 12px 14px;
}

.driver-request-card__offers input::placeholder {
  color: rgba(255,255,255,.55);
}

@media (max-width: 640px) {
  .notifications-page {
    padding: 16px;
  }

  .driver-request-card__offers {
    grid-template-columns: 1fr;
  }
}


/* v35: Spanish messages, compact pagination and mobile icon-row fixes */
.fd-pagination__ellipsis {
  min-width: 24px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  font-weight: 800;
}

.notification-item {
  background: #ffffff;
}

.section-title-row__muted {
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 700;
  color: #667085;
}

body.ride-map-open .ride-map-topbar__actions,
.ride-map-fullscreen-shell .ride-map-topbar__actions--icons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

body.ride-map-open .ride-map-topbar__actions .ride-map-action-icon,
.ride-map-fullscreen-shell .ride-map-topbar__actions--icons .ride-map-action-icon {
  flex: 0 0 40px;
}

@media (max-width: 768px) {
  body.ride-map-open .ride-map-topbar__actions {
    grid-template-columns: none !important;
  }

  .ride-map-fullscreen-shell .ride-map-topbar__actions--icons {
    margin-top: 2px;
  }
}

/* v36: sidebar logo left, active-trip camera controls, stronger icon rows */
.sidebar-brand-logo { justify-content: flex-start !important; text-align: left !important; padding-left: 0 !important; }
.sidebar-brand-logo img { margin-left: 0 !important; margin-right: auto !important; }
.ride-trip-recording-inline { display: grid; gap: 8px; margin-top: 12px; }
.ride-trip-recording-inline[hidden], .ride-map-floating-action[hidden], .ride-map-action-icon[hidden] { display: none !important; }
.ride-map-floating-action--recording, .ride-map-action-icon--recording { color: #0f172a; background: #fef3c7; border-color: #f59e0b; }
body.ride-map-open .ride-map-topbar__actions, .ride-map-fullscreen-shell .ride-map-topbar__actions--icons { display: flex !important; flex-flow: row nowrap !important; }

/* v37: passenger ride panel refinements */
.ride-customization-section .section-title-row__muted {
  font-size: 12px !important;
  line-height: 1.1;
  font-weight: 700;
}

#btnRequestRide[hidden],
#btnRequestRideIcon[hidden] {
  display: none !important;
}


/* v38: confirmación modal, mensajes y panel viaje */
.fd-confirm-modal__card h3 {
  margin: 0 0 10px;
  color: #0f172a;
}
.fd-confirm-modal__card p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}
.fd-confirm-modal__actions {
  justify-content: flex-end;
  margin-top: 18px;
}
#rideMapControls .ride-customization-section .section-title-row__muted,
.ride-customization-section .section-title-row > .section-title-row__muted {
  font-size: 12px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  align-self: center;
}

/* v39: opcional mucho más pequeño en personalización */
#rideMapControls .ride-customization-section .section-title-row__muted,
.ride-customization-section .section-title-row > .section-title-row__muted {
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
}

/* Internal mobile-app skin: only logged-in pages. Public/home/sidebar/mobile menu stay unchanged. */
#app.app--internal .app-content {
  background: #f4f7fb !important;
  color: #102033;
  overflow-x: hidden;
}

#app.app--internal .route-view {
  max-width: 100%;
  min-width: 0;
}

#app.app--internal .ride-map-panel,
#app.app--internal .ride-request-panel,
#app.app--internal .ride-history-panel,
#app.app--internal .wallet-panel,
#app.app--internal .driver-panel,
#app.app--internal .admin-panel,
#app.app--internal .documents-panel,
#app.app--internal .profile-section,
#app.app--internal .profile-header-card,
#app.app--internal .notifications-panel,
#app.app--internal .notifications-page section,
#app.app--internal .wallet-balance-card,
#app.app--internal .wallet-transaction-item,
#app.app--internal .driver-request-item,
#app.app--internal .driver-history-item,
#app.app--internal .ride-history-item,
#app.app--internal .ride-open-item,
#app.app--internal .recent-request-item,
#app.app--internal .notification-item,
#app.app--internal .ride-customization-card,
#app.app--internal .ride-map-controls__panel,
#app.app--internal .vehicle-option,
#app.app--internal .ride-vehicle-option,
#app.app--internal .ride-map-vehicle-option {
  border-radius: 18px !important;
  border-color: rgba(15, 37, 64, .08) !important;
  box-shadow: 0 10px 26px rgba(15, 37, 64, .08) !important;
}

#app.app--internal .route-view h1,
#app.app--internal .route-view h2,
#app.app--internal .route-view h3,
#app.app--internal .ride-map-panel__header h2,
#app.app--internal .ride-request-panel__header h2,
#app.app--internal .ride-history-panel__header h2,
#app.app--internal .wallet-panel__header h2,
#app.app--internal .driver-panel__header h2,
#app.app--internal .admin-panel__header h2,
#app.app--internal .notifications-page h1,
#app.app--internal .notifications-page h2,
#app.app--internal .section-title-row h2 {
  font-weight: 550 !important;
  letter-spacing: -0.015em;
  color: #0f4f8f !important;
}

#app.app--internal .route-view p,
#app.app--internal .route-view small,
#app.app--internal .wallet-panel__header p,
#app.app--internal .driver-panel__header p,
#app.app--internal .ride-history-panel__header p,
#app.app--internal .ride-request-panel__header p,
#app.app--internal .ride-map-panel__header p,
#app.app--internal .notifications-page p {
  color: #667085;
  font-weight: 400;
}

#app.app--internal .btn,
#app.app--internal button.btn,
#app.app--internal .fd-pagination__btn,
#app.app--internal .ride-map-action-icon,
#app.app--internal .ride-map-floating-action {
  border-radius: 999px !important;
  font-weight: 500 !important;
}

#app.app--internal .btn-primary,
#app.app--internal .btn--primary,
#app.app--internal .btn--success,
#app.app--internal .fd-pagination__btn.is-active,
#app.app--internal .ride-map-floating-action--primary,
#app.app--internal .ride-map-action-icon--primary {
  background: #1677c9 !important;
  border-color: #1677c9 !important;
  color: #fff !important;
  box-shadow: 0 10px 18px rgba(22, 119, 201, .18) !important;
}

#app.app--internal .vehicle-option.is-selected,
#app.app--internal .ride-vehicle-option.is-selected,
#app.app--internal .ride-map-vehicle-option.is-selected {
  border-color: rgba(22, 119, 201, .55) !important;
  background: #edf6ff !important;
}

#app.app--internal .wallet-page,
#app.app--internal .ride-page,
#app.app--internal .driver-page,
#app.app--internal .profile-page,
#app.app--internal .documents-page,
#app.app--internal .admin-page,
#app.app--internal .notifications-page,
#app.app--internal .wallet-shell,
#app.app--internal .ride-shell,
#app.app--internal .driver-shell,
#app.app--internal .wallet-grid,
#app.app--internal .driver-dashboard-grid,
#app.app--internal .driver-summary-grid,
#app.app--internal .wallet-summary-cards,
#app.app--internal .form-grid,
#app.app--internal .input,
#app.app--internal select,
#app.app--internal textarea,
#app.app--internal button,
#app.app--internal .wallet-transaction-item,
#app.app--internal .driver-request-item,
#app.app--internal .driver-history-item,
#app.app--internal .ride-history-item,
#app.app--internal .ride-open-item,
#app.app--internal .recent-request-item,
#app.app--internal .notification-item {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#app.app--internal .wallet-transaction-item__title,
#app.app--internal .wallet-transaction-item__meta,
#app.app--internal .wallet-transaction-item__amount,
#app.app--internal .driver-history-item,
#app.app--internal .driver-request-item,
#app.app--internal .ride-history-item,
#app.app--internal .ride-open-item,
#app.app--internal .recent-request-item,
#app.app--internal .notification-item,
#app.app--internal .wallet-balance-card__amount,
#app.app--internal .wallet-balance-card__hint {
  overflow-wrap: anywhere;
}

#app.app--internal #rideMapControls .ride-customization-section .section-title-row__muted,
#app.app--internal .ride-customization-section .section-title-row > .section-title-row__muted {
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  color: #667085 !important;
}

@media (max-width: 768px) {
  #app.app--internal .wallet-summary-cards,
  #app.app--internal .wallet-grid,
  #app.app--internal .driver-dashboard-grid,
  #app.app--internal .driver-summary-grid,
  #app.app--internal .documents-grid,
  #app.app--internal .admin-summary-grid,
  #app.app--internal .admin-layout,
  #app.app--internal .admin-centers-layout {
    grid-template-columns: 1fr !important;
  }

  #app.app--internal .wallet-transaction-item,
  #app.app--internal .driver-history-item,
  #app.app--internal .driver-request-item,
  #app.app--internal .ride-history-item,
  #app.app--internal .ride-open-item,
  #app.app--internal .recent-request-item {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  #app.app--internal .wallet-transaction-item__amount,
  #app.app--internal .driver-history-item__price,
  #app.app--internal .driver-request-item__price,
  #app.app--internal .ride-history-item__price,
  #app.app--internal .ride-open-item__price,
  #app.app--internal .recent-request-item__price {
    text-align: left !important;
    white-space: normal !important;
  }

  #app.app--internal .wallet-balance-card__amount {
    font-size: clamp(22px, 7vw, 30px) !important;
  }
}

/* Internal driver map fixes: app-like controls, fullscreen and overflow-safe stats */
.driver-map-toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 403;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}
.driver-map-toolbar .btn,
.driver-map-actions .btn {
  pointer-events: auto;
  white-space: nowrap;
  min-width: 0;
}
.driver-map-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: #eaf4ff;
}
.driver-map-shell:fullscreen .driver-map-canvas,
.driver-map-shell.is-driver-map-expanded .driver-map-canvas {
  height: 100vh;
  min-height: 100vh;
}
.driver-map-shell.is-driver-map-expanded {
  position: fixed;
  inset: 0;
  z-index: 9999;
  border-radius: 0;
}
.driver-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.driver-stat-card,
.driver-history-item,
.driver-request-card,
.wallet-panel,
.ride-navigation-card {
  min-width: 0;
}
.driver-stat-card strong,
.driver-history-item__price,
.driver-request-card__price,
.wallet-balance-card__amount,
.wallet-transaction-card__amount {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.12;
}
.driver-stat-card strong {
  font-size: clamp(22px, 7vw, 34px);
}
.driver-stat-card--wide {
  grid-column: span 2;
}
@media (max-width: 760px) {
  .driver-map-shell {
    min-height: 440px;
  }
  .driver-map-canvas {
    height: 62vh;
    min-height: 430px;
  }
  .driver-map-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .driver-map-actions {
    left: 12px;
    right: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  .driver-map-actions .btn {
    width: 100%;
    padding-inline: 12px;
  }
  .driver-stat-card--wide {
    grid-column: auto;
  }
  .driver-stat-card strong {
    font-size: clamp(20px, 6.2vw, 28px);
  }
}

/* Driver map controls and full-screen ride request notification */
.driver-map-toolbar {
  align-items: center;
}
.driver-map-toolbar .btn,
.driver-map-actions .btn {
  min-height: 42px;
  border-radius: 999px;
}
.driver-map-toolbar #driverMapSosBtn {
  box-shadow: 0 10px 24px rgba(220, 38, 38, .22);
}
.driver-map-actions {
  max-width: calc(100% - 24px);
}
.driver-map-shell:fullscreen .driver-map-toolbar,
.driver-map-shell.is-driver-map-expanded .driver-map-toolbar {
  top: calc(14px + env(safe-area-inset-top));
}
.driver-map-shell:fullscreen .driver-map-actions,
.driver-map-shell.is-driver-map-expanded .driver-map-actions {
  bottom: calc(14px + env(safe-area-inset-bottom));
}
.driver-fullscreen-request {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  background: #eef6ff;
  color: #111827;
}
.driver-fullscreen-request__map {
  min-height: 100vh;
  background: #dbeafe;
}
.driver-fullscreen-request__card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: calc(22px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  box-shadow: -18px 0 45px rgba(15, 23, 42, .14);
  overflow-y: auto;
}
.driver-fullscreen-request__header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.driver-fullscreen-request__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #1d9bf0;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.driver-fullscreen-request__header h3 {
  margin: 0;
  font-size: clamp(32px, 8vw, 46px);
  line-height: 1;
  color: #0f172a;
  overflow-wrap: anywhere;
}
.driver-fullscreen-request__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.driver-fullscreen-request__summary > div,
.driver-fullscreen-request__route,
.driver-fullscreen-request__offer {
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}
.driver-fullscreen-request__summary > div {
  min-width: 0;
  padding: 14px;
}
.driver-fullscreen-request__summary span,
.driver-fullscreen-request__offer label {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 4px;
}
.driver-fullscreen-request__summary strong {
  display: block;
  min-width: 0;
  font-size: 20px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.driver-fullscreen-request__route {
  padding: 14px;
  display: grid;
  gap: 12px;
}
.driver-fullscreen-request__route > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.driver-fullscreen-request__route p {
  margin: 0;
  min-width: 0;
  font-weight: 700;
  color: #0f172a;
  overflow-wrap: anywhere;
}
.driver-fullscreen-request__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 10px;
}
.driver-fullscreen-request__actions .btn {
  width: 100%;
  min-height: 54px;
  font-size: 18px;
}
.driver-fullscreen-request__offer {
  padding: 14px;
  display: grid;
  gap: 10px;
}
.driver-fullscreen-request__offer > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.driver-fullscreen-request__offer input {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 999px;
  padding: 12px 14px;
  font: inherit;
}
.driver-stat-card--wide strong,
#driverEarningsValue {
  font-size: clamp(20px, 5.4vw, 28px) !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
@media (max-width: 760px) {
  .driver-map-toolbar {
    right: 10px;
    left: 10px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .driver-map-toolbar::-webkit-scrollbar { display: none; }
  .driver-map-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 38vh;
    overflow-y: auto;
  }
  .driver-fullscreen-request {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(38vh, 1fr) auto;
  }
  .driver-fullscreen-request__map {
    min-height: 42vh;
  }
  .driver-fullscreen-request__card {
    max-height: 58vh;
    border-radius: 28px 28px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -18px 45px rgba(15, 23, 42, .18);
  }
  .driver-fullscreen-request__header {
    align-items: stretch;
    flex-direction: column;
  }
  .driver-fullscreen-request__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .driver-fullscreen-request__summary strong {
    font-size: 17px;
  }
  .driver-fullscreen-request__offer > div,
  .driver-fullscreen-request__actions {
    grid-template-columns: 1fr;
  }
}

/* Driver map: readable controls and Google/Waze navigation choice */
.driver-map-shell {
  overflow: hidden;
}
.driver-map-toolbar {
  top: 10px !important;
  left: 10px !important;
  right: 10px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px !important;
  align-items: stretch !important;
  pointer-events: none;
}
.driver-map-toolbar .btn {
  width: 100%;
  min-height: 34px !important;
  padding: 7px 9px !important;
  border-radius: 14px !important;
  font-size: 12px !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .10);
}
.driver-map-toolbar #driverMapSosBtn {
  color: #fff !important;
  background: #dc2626 !important;
}
.driver-map-provider-label {
  pointer-events: none;
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #0f355d;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(15,23,42,.08);
}
.driver-map-actions {
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
  padding: 10px !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .14);
}
.driver-map-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 38px !important;
  padding: 8px 10px !important;
  border-radius: 16px !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  white-space: normal !important;
}
.driver-map-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: inherit;
  padding: 22px;
  text-align: center;
  color: #526176;
  background: #eef7ff;
}
@media (max-width: 760px) {
  .driver-map-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .driver-map-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 40%;
    overflow-y: auto;
  }
}
@media (max-width: 420px) {
  .driver-map-toolbar .btn,
  .driver-map-actions .btn {
    font-size: 12px !important;
    padding-inline: 7px !important;
  }
}
