/* Satha Platform 1.3.2 — professional responsive themes, mobile containment and live experience */
:root {
  --surface: #ffffff;
  --surface-2: #f3f6f8;
  --surface-3: #e8eef2;
  --page-bg: #ffffff;
  --page-text: #233443;
  --heading: #0a1724;
  --border: #dce3e8;
  --accent: #f4a000;
  --accent-2: #ffbf3e;
  --accent-text: #111111;
  --glass: rgba(255, 255, 255, .86);
  --rgb-a: rgba(0, 199, 255, .18);
  --rgb-b: rgba(151, 71, 255, .16);
  --rgb-c: rgba(255, 65, 145, .13);
}

html[data-theme="dark"] {
  --surface: #111c27;
  --surface-2: #0b151f;
  --surface-3: #1b2a38;
  --page-bg: #07111a;
  --page-text: #d8e4ec;
  --heading: #f7fbff;
  --border: #2c3c4b;
  --accent: #ffad14;
  --accent-2: #ffd06b;
  --accent-text: #111;
  --glass: rgba(11, 21, 31, .88);
  --rgb-a: rgba(0, 196, 255, .14);
  --rgb-b: rgba(147, 87, 255, .14);
  --rgb-c: rgba(255, 73, 143, .10);
}

html[data-theme="aurora"] {
  --surface: rgba(255, 255, 255, .91);
  --surface-2: rgba(242, 251, 255, .91);
  --surface-3: rgba(224, 242, 250, .9);
  --page-bg: #eafaff;
  --page-text: #123248;
  --heading: #071e32;
  --border: rgba(34, 126, 159, .22);
  --accent: #00d0a3;
  --accent-2: #59efc9;
  --accent-text: #05251f;
  --glass: rgba(244, 255, 255, .82);
  --rgb-a: rgba(0, 229, 255, .36);
  --rgb-b: rgba(127, 74, 255, .28);
  --rgb-c: rgba(0, 255, 170, .29);
}

html[data-theme="sunset"] {
  --surface: rgba(255, 252, 247, .93);
  --surface-2: rgba(255, 241, 230, .93);
  --surface-3: rgba(255, 225, 206, .9);
  --page-bg: #fff5ed;
  --page-text: #4b2d36;
  --heading: #321621;
  --border: rgba(166, 76, 62, .22);
  --accent: #ff7a18;
  --accent-2: #ffb347;
  --accent-text: #251006;
  --glass: rgba(255, 248, 242, .84);
  --rgb-a: rgba(255, 69, 99, .30);
  --rgb-b: rgba(255, 145, 0, .29);
  --rgb-c: rgba(157, 76, 255, .22);
}

html[data-theme="ocean"] {
  --surface: rgba(248, 254, 255, .93);
  --surface-2: rgba(232, 248, 252, .93);
  --surface-3: rgba(211, 238, 245, .9);
  --page-bg: #e8f8fc;
  --page-text: #143949;
  --heading: #062838;
  --border: rgba(16, 112, 143, .22);
  --accent: #00a7d4;
  --accent-2: #44d4f2;
  --accent-text: #031f28;
  --glass: rgba(243, 253, 255, .84);
  --rgb-a: rgba(0, 176, 255, .29);
  --rgb-b: rgba(0, 224, 198, .23);
  --rgb-c: rgba(75, 105, 255, .18);
}

html, body { min-height: 100%; }
body {
  color: var(--page-text);
  background: var(--page-bg);
  transition: color .25s ease, background-color .25s ease;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 18% 22%, var(--rgb-a), transparent 30%),
    radial-gradient(circle at 82% 18%, var(--rgb-b), transparent 30%),
    radial-gradient(circle at 60% 82%, var(--rgb-c), transparent 36%);
  filter: blur(18px) saturate(125%);
  transform: translate3d(0, 0, 0);
}
html[data-animated-theme="1"][data-theme="aurora"] body::before,
html[data-animated-theme="1"][data-theme="sunset"] body::before,
html[data-animated-theme="1"][data-theme="ocean"] body::before {
  opacity: 1;
  animation: sathaRgbDrift 16s ease-in-out infinite alternate;
}
@keyframes sathaRgbDrift {
  0% { transform: translate3d(-4%, -2%, 0) rotate(-2deg) scale(1); }
  50% { transform: translate3d(4%, 2%, 0) rotate(2deg) scale(1.08); }
  100% { transform: translate3d(-1%, 5%, 0) rotate(-1deg) scale(1.03); }
}

.site-header,
.admin-topbar,
.driver-header {
  background: var(--glass) !important;
  border-color: var(--border) !important;
}
.card,
.stats-grid,
.service-card,
.step,
.metric,
.auth-card,
.admin-topbar,
.driver-header,
.nav-links,
.theme-menu {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--page-text);
}
.muted,
.admin-body,
.driver-body,
.success-page,
input,
select,
textarea,
.business-details,
.location-box,
th {
  background: var(--surface-2) !important;
  color: var(--page-text);
  border-color: var(--border) !important;
}
input,
select,
textarea { background: var(--surface) !important; }
.brand,
.card h1,
.card h2,
.card h3,
.section-heading h2,
.split h2,
.driver-welcome h1,
.admin-heading h1,
label,
.order-summary dt,
.details-list dt,
.metric strong,
.stat strong,
.service-card h3,
.step h3 {
  color: var(--heading) !important;
}
.btn-primary,
.progress span,
.step > span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: var(--accent-text) !important;
}
.btn-secondary { background: var(--surface-3) !important; color: var(--heading) !important; }
.page-hero { background: linear-gradient(135deg, #061523, #153750) !important; }
html[data-theme="dark"] .page-hero { background: linear-gradient(135deg, #030b12, #102638) !important; }
.site-footer { background: #06121d !important; }
html[data-theme="dark"] .site-footer { background: #02070c !important; }

/* Theme picker */
.theme-picker { position: relative; flex: 0 0 auto; }
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  white-space: nowrap;
}
.theme-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 190px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 120;
}
.theme-menu.open { display: grid; gap: 4px; }
.theme-menu button {
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  text-align: right;
  cursor: pointer;
  background: transparent;
  color: var(--page-text);
}
.theme-menu button:hover,
.theme-menu button.active { background: var(--surface-3); color: var(--heading); }

/* Compact professional request wizard */
.request-shell { max-width: 980px; }
.request-card { overflow: hidden; padding: 0 !important; }
.request-card-head { padding: 22px 24px 14px; border-bottom: 1px solid var(--border); }
.request-card-head h2 { margin: 0 0 5px; }
.request-card-head p { margin: 0; color: var(--soft); }
.request-stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.request-stepper button {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--page-text);
  border-radius: 12px;
  padding: 9px;
  font-weight: 800;
  cursor: pointer;
}
.request-stepper button.active { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.request-form-body { padding: 22px 24px; }
.request-panel { animation: panelEnter .22s ease; }
.request-panel[hidden] { display: none !important; }
@keyframes panelEnter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.request-panel-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.request-panel-title span { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); }
.request-actions {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.request-actions .btn { min-width: 150px; }
.request-mini-note { color: var(--soft); font-size: .86rem; margin: 0; }
.field-hint { font-size: .82rem; color: var(--soft); font-weight: 400; }

/* Tracking and customer workflow */
.track-code-mini {
  direction: ltr;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-family: Consolas, monospace;
  font-size: .86rem;
  letter-spacing: .4px;
}
.tracking-code { font-size: clamp(1.05rem, 4vw, 1.35rem) !important; padding: 12px 14px !important; }
.live-map-shell { position: relative; min-height: 410px; padding: 0 !important; overflow: hidden; }
#tracking-map { width: 100%; height: 410px; background: var(--surface-2); }
.live-map-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(5, 22, 34, .86);
  color: #fff;
  font-size: .84rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #27e68a; box-shadow: 0 0 0 0 rgba(39,230,138,.65); animation: livePulse 1.7s infinite; }
.live-map-badge.stale .live-dot { background: #ffbd45; animation: none; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px rgba(39,230,138,0); } 100% { box-shadow: 0 0 0 0 rgba(39,230,138,0); } }
.vehicle-marker-wrap { width: 44px; height: 44px; display: grid; place-items: center; }
.vehicle-marker {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid #fff;
  background: linear-gradient(135deg, #ff9f00, #ffca52);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  font-size: 21px;
  transition: transform .8s ease;
}
.map-pin { width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.map-pin span { transform: rotate(45deg); }
.map-pin.pickup { background: #19a76f; }
.map-pin.dropoff { background: #356fe5; }
.track-waiting-card { text-align: center; padding: 28px; }
.waiting-spinner { width: 54px; height: 54px; border: 5px solid var(--surface-3); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 16px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.offer-card { border: 1px solid var(--border); background: linear-gradient(135deg, var(--surface), var(--surface-2)); }
.offer-price { font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 900; color: var(--heading); margin: 8px 0; }
.offer-price small { font-size: .38em; color: var(--soft); }
.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.decision-grid .btn { width: 100%; }
.negotiation-form { display: none; gap: 10px; margin-top: 12px; }
.negotiation-form.open { display: grid; }
.workflow-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: var(--surface-3); font-weight: 800; font-size: .84rem; }
.driver-verified { display: flex; gap: 12px; align-items: center; margin-bottom: 15px; }
.driver-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-weight: 900; font-size: 1.2rem; }
.map-status-text { color: var(--soft); font-size: .86rem; }

/* Admin live notifications */
.admin-topbar { gap: 14px; }
.admin-topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.notification-center { position: relative; }
.notification-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
  position: relative;
  font-size: 1.15rem;
}
.notification-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e52f4b;
  color: #fff;
  font-size: .7rem;
  font-weight: 900;
}
.notification-badge:empty,
.notification-badge[data-count="0"] { display: none; }
.notification-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(390px, calc(100vw - 28px));
  max-height: 520px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  z-index: 200;
}
.notification-panel.open { display: block; }
.notification-panel-head { position: sticky; top: 0; background: var(--surface); padding: 14px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.notification-list { display: grid; }
.notification-item { display: grid; gap: 4px; padding: 13px 15px; border-bottom: 1px solid var(--border); }
.notification-item.unread { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.notification-item small { color: var(--soft); }
.notification-empty { padding: 28px; text-align: center; color: var(--soft); }
.toast-stack { position: fixed; left: 18px; top: 88px; z-index: 500; display: grid; gap: 10px; width: min(360px, calc(100vw - 36px)); }
.admin-toast { background: var(--surface); color: var(--page-text); border: 1px solid var(--border); border-right: 5px solid var(--accent); box-shadow: var(--shadow); border-radius: 14px; padding: 14px; animation: toastIn .25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-15px); } to { opacity: 1; transform: none; } }

/* Driver flow */
.driver-response-card { border: 2px solid color-mix(in srgb, var(--accent) 50%, var(--border)); }
.driver-response-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.driver-location-control { position: sticky; bottom: 12px; z-index: 20; }
.tracking-active { box-shadow: 0 0 0 4px rgba(39,230,138,.16); }

/* Leaflet theme tweaks */
.leaflet-container { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
html[data-theme="dark"] .leaflet-tile-pane { filter: brightness(.72) contrast(1.15) saturate(.78); }
html[data-theme="aurora"] .leaflet-tile-pane { filter: saturate(1.1) hue-rotate(5deg); }
html[data-theme="sunset"] .leaflet-tile-pane { filter: sepia(.12) saturate(1.15); }

@media (max-width: 900px) {
  .theme-toggle span { display: none; }
  .theme-toggle { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .theme-menu { left: auto; right: 0; }
  .request-shell { width: min(calc(100% - 18px), 980px); }
}

@media (max-width: 700px) {
  .page-hero { padding: 28px 0 !important; }
  .page-hero h1 { font-size: 1.75rem !important; }
  .page-hero p { font-size: .94rem !important; margin-bottom: 0; }
  .section { padding: 34px 0 !important; }
  .request-card-head { padding: 16px 15px 10px; }
  .request-form-body { padding: 14px 15px; }
  .request-stepper { gap: 5px; }
  .request-stepper button { padding: 7px 3px; font-size: .78rem; }
  .request-actions { padding: 11px 14px calc(11px + env(safe-area-inset-bottom)); }
  .request-actions .btn { min-width: 0; flex: 1; padding: 11px 9px; }
  .form-grid { gap: 11px !important; }
  label { gap: 4px !important; font-size: .9rem; }
  input, select, textarea { padding: 10px 11px !important; border-radius: 10px !important; }
  textarea { min-height: 72px !important; }
  .location-box { padding: 10px !important; gap: 8px !important; }
  .location-box .btn { width: 100%; }
  .side-info { display: none; }
  .live-map-shell, #tracking-map { min-height: 330px; height: 330px; }
  .decision-grid { grid-template-columns: 1fr; }
  .tracking-layout { gap: 12px !important; }
  .tracking-layout .card { margin-bottom: 12px !important; }
  .progress-card { padding: 15px !important; }
  .progress-meta { gap: 4px !important; }
  .driver-response-actions { grid-template-columns: 1fr; }
  .admin-topbar { padding: 0 12px !important; }
  .admin-topbar > div:last-child { display: none; }
  .notification-panel { left: -8px; }
  .floating-actions a { min-width: 46px !important; height: 46px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
.check-row { display:flex; align-items:center; gap:9px; font-weight:700; }
.check-row input { width:auto; }
.link-button { border:0; background:transparent; color:var(--accent); cursor:pointer; padding:0; font-weight:800; font-size:.78rem; }
.notification-panel-head .actions { display:flex; gap:10px; }


/* 1.3.2 — hard mobile containment for the request page */
html, body { width: 100%; max-width: 100%; overflow-x: clip; }
main, .site-header, .site-footer, .request-page-section, .request-page-hero { width: 100%; max-width: 100%; }
.request-shell,
.request-shell > *,
.request-card,
.request-card-head,
.request-form-body,
.request-panel,
.request-panel .form-grid,
.request-panel label,
.request-actions { min-width: 0; max-width: 100%; }
.request-shell { grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr); }
.request-card input,
.request-card select,
.request-card textarea,
.request-card input[type="file"] { min-width: 0; max-width: 100%; }
.request-card input[type="file"] { overflow: hidden; }
.request-stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.request-stepper button { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Driver contact becomes the primary customer contact after driver acceptance */
.driver-phone-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.driver-phone-line a { color: var(--heading); font-weight: 900; }
.driver-contact-grid,
.offer-driver-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.floating-actions.driver-contact-active .float-call {
  box-shadow: 0 0 0 4px rgba(244,160,0,.2), var(--shadow);
}
.floating-actions.driver-contact-active .float-whatsapp {
  box-shadow: 0 0 0 4px rgba(32,186,105,.18), var(--shadow);
}

@media (max-width: 1050px) {
  .request-shell { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  html, body { overflow-x: hidden; }
  .request-page-hero { padding: 18px 0 !important; }
  .request-page-hero .container { width: calc(100% - 24px) !important; }
  .request-page-hero .eyebrow { font-size: .76rem; padding: 3px 9px; }
  .request-page-hero h1 { font-size: 1.35rem !important; margin: .25rem 0 !important; }
  .request-page-hero p { font-size: .82rem !important; line-height: 1.55; }
  .request-page-section { padding: 14px 0 26px !important; }
  .request-shell.container {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 10px;
    margin: 0 auto;
    display: block;
  }
  .request-card { width: 100%; border-radius: 15px; }
  .request-card-head { padding: 14px 13px 9px; }
  .request-card-head h2 { font-size: 1.18rem; }
  .request-card-head p { font-size: .78rem; line-height: 1.5; }
  .request-form-body { padding: 12px 13px; }
  .request-panel-title { margin-bottom: 11px; align-items: flex-start; }
  .request-panel-title span { width: 31px; height: 31px; border-radius: 10px; flex: 0 0 31px; }
  .request-panel-title h3 { font-size: 1rem; margin: 0; }
  .request-mini-note { font-size: .76rem; line-height: 1.45; }
  .request-stepper { margin-top: 11px; }
  .request-stepper button { font-size: .7rem; padding: 7px 2px; border-radius: 9px; }
  .request-actions { width: 100%; left: 0; right: 0; }
  .request-card input[type="file"] { font-size: .78rem; }
  .driver-contact-grid,
  .offer-driver-contact { grid-template-columns: 1fr; }
  .driver-phone-line { align-items: flex-start; flex-direction: column; }
}

@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

/* 1.3.3 — coordinate-first location picker for reliable Arabic locations */
.route-location-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.route-location-card.location-is-set {
  border-color: color-mix(in srgb, #19a76f 65%, var(--border));
  box-shadow: 0 0 0 3px rgba(25,167,111,.09);
}
.route-location-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.route-location-head > div { display: grid; gap: 4px; }
.route-location-head strong { color: var(--heading); font-size: 1rem; }
.route-location-head span:not(.location-required):not(.location-optional) { color: var(--soft); font-size: .8rem; line-height: 1.5; }
.location-required,
.location-optional { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 900; }
.location-required { background: rgba(229,47,75,.11); color: #c92743; }
.location-optional { background: var(--surface-3); color: var(--soft); }
.route-location-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.route-location-actions .btn { width: 100%; }
.route-location-status { margin: 0; color: var(--soft); font-size: .82rem; }
.route-location-status.is-set { color: #14865a; font-weight: 800; }
.route-accuracy-note {
  padding: 12px 14px;
  border-radius: 14px;
  border-right: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--page-text);
  font-size: .84rem;
  line-height: 1.7;
}
.route-accuracy-note strong { color: var(--heading); }

.location-map-modal[hidden] { display: none !important; }
.location-map-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 18px; direction: rtl; }
.location-map-backdrop { position: absolute; inset: 0; background: rgba(4,12,20,.72); backdrop-filter: blur(4px); }
.location-map-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(330px, 62dvh) auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0,0,0,.38);
}
.location-map-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.location-map-dialog h2 { margin: 0 0 4px; font-size: 1.2rem; color: var(--heading); }
.location-map-dialog p { margin: 0; color: var(--soft); font-size: .84rem; }
.location-map-close { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--heading); cursor: pointer; font-size: 1.55rem; line-height: 1; }
.location-map-canvas { width: 100%; min-height: 330px; background: var(--surface-3); }
.location-map-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.location-map-footer > span { color: var(--soft); font-size: .82rem; direction: ltr; text-align: left; }
.location-map-footer > div { display: flex; gap: 9px; }
body.location-map-open { overflow: hidden; }

@media (max-width: 700px) {
  .route-location-card { padding: 12px; border-radius: 13px; }
  .route-location-head { gap: 8px; }
  .route-location-actions { grid-template-columns: 1fr; }
  .location-map-modal { padding: 0; align-items: end; }
  .location-map-dialog {
    width: 100%;
    max-height: 94dvh;
    border-radius: 20px 20px 0 0;
    grid-template-rows: auto minmax(350px, 63dvh) auto;
  }
  .location-map-dialog > header { padding: 13px 14px; }
  .location-map-dialog h2 { font-size: 1.05rem; }
  .location-map-footer { display: grid; gap: 9px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .location-map-footer > div { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .location-map-footer .btn { width: 100%; }
}

/* v1.3.4 realtime notifications */
.push-enable-button[data-push-state="enabled"],
[data-enable-push][data-push-state="enabled"] {
  border-color: rgba(34, 197, 94, .55);
  background: rgba(34, 197, 94, .12);
}
.push-enable-button[data-push-state="loading"],
[data-enable-push][data-push-state="loading"] {
  opacity: .72;
  pointer-events: none;
}
.push-enable-button[data-push-state="error"],
[data-enable-push][data-push-state="error"] {
  border-color: rgba(239, 68, 68, .45);
}
@media (max-width: 720px) {
  .driver-header .push-enable-button {
    order: 3;
    width: 100%;
    min-height: 44px;
  }
  .driver-header .nav-wrap {
    flex-wrap: wrap;
  }
}
