/* ==========================================================================
   LnwRod Roadside Customer Styles (customer.css)
   ========================================================================== */

[hidden], .rs-chat-drawer[hidden], .rs-mechanic-card[hidden], .rs-dialog[hidden] {
  display: none !important;
}

/* ==========================================================================
   LNWROD FULLSCREEN MAP APPLICATION (GRAB / UBER / TRACKING APP STYLE)
   ========================================================================== */
.rs-fullscreen-body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: fixed;
  font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
  background: #080b0e;
  color: #f8fafc;
}

.rs-fullscreen-map {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background: #111827;
}

/* Floating Glassmorphic Top Header */
.rs-float-header {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  gap: 12px;
}

.rs-header-left, .rs-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rs-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}
.rs-back-btn:hover {
  background: rgba(255, 100, 30, 0.2);
  border-color: #ff641e;
  color: #ff9a59;
}

.rs-top-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rs-brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.rs-brand-text span { color: #ff641e; }

.rs-live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
}
.rs-live-text-short { display: none; }

.rs-header-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  border-radius: 10px;
  padding: 6px 9px;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  transition: all 0.2s;
}
.rs-header-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.rs-float-header.is-collapsed {
  padding: 4px 10px;
}
.rs-float-header.is-collapsed .rs-top-brand,
.rs-float-header.is-collapsed .rs-header-workshop-link {
  display: none;
}

.rs-pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: rs-pulse 1.8s infinite;
}

@keyframes rs-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.rs-header-jobs-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rs-header-jobs-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.rs-badge {
  background: #ff641e;
  color: #fff;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
}

.rs-header-workshop-link {
  font-size: 12px;
  color: #94a3b8;
  padding: 6px 10px;
  text-decoration: none;
}
.rs-header-workshop-link:hover { color: #fff; }

.rs-header-admin-link {
  background: #0f172a;
  color: #fed7aa;
  border: 1.5px solid #ff641e;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(255, 100, 30, 0.3);
  transition: all 0.2s;
  white-space: nowrap;
}
.rs-header-admin-link:hover {
  background: #ff641e;
  color: #111;
  border-color: #ff641e;
}

.rs-float-demo-banner {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: rgba(65, 41, 25, 0.95);
  backdrop-filter: blur(8px);
  color: #ffd2b9;
  border: 1px solid #865333;
  border-radius: 12px;
  padding: 6px 18px;
  font-size: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.rs-float-demo-banner a { color: #ffb181; font-weight: 700; text-decoration: underline; }

/* Floating Map Controls (Right Side) */
.rs-map-controls {
  position: fixed;
  right: 18px;
  top: 78px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rs-ctrl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: #f8fafc;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.2s;
  padding: 4px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.rs-ctrl-btn:active {
  transform: scale(0.94);
}
.rs-ctrl-btn:hover {
  background: #1e293b;
  border-color: #ff641e;
  transform: translateY(-2px);
}
.rs-ctrl-locate {
  background: linear-gradient(135deg, #ff641e, #ea580c);
  border-color: #ff8148;
  box-shadow: 0 6px 20px rgba(255, 100, 30, 0.4);
}
.rs-ctrl-locate:hover {
  background: linear-gradient(135deg, #ff8148, #ff641e);
}
.rs-ctrl-locate.is-locating .rs-ctrl-icon {
  display: inline-block;
  animation: rs-spin-pulse 1s infinite linear;
  color: #ffedd5;
}
@keyframes rs-spin-pulse {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.25); }
  100% { transform: rotate(360deg) scale(1); }
}
.rs-ctrl-icon { font-size: 18px; line-height: 1; margin-bottom: 2px; }
.rs-ctrl-text { font-size: 9px; font-weight: 700; }

/* Floating Pill (GPS status / instructions) */
.rs-float-pill {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  max-width: 90vw;
  white-space: nowrap;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* ==========================================================================
   SLIDING BOTTOM SHEET / DRAWER (GRAB / UBER STYLE)
   ========================================================================== */
.rs-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 680px;
  margin: 0 auto;
  z-index: 95;
  background: #0f172a;
  border: 1px solid #334155;
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  max-height: 78vh;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rs-sheet.rs-sheet-collapsed {
  transform: translateY(calc(100% - 56px));
}

.rs-sheet-handle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 8px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.rs-sheet-handle {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 5px;
  background: #475569;
  border-radius: 99px;
}

.rs-sheet-handle-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  padding-top: 4px;
}

.rs-sheet-arrow-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.3s;
}
.rs-sheet-collapsed .rs-sheet-arrow-btn {
  transform: rotate(180deg);
}

.rs-sheet-body {
  overflow-y: auto;
  padding: 16px 20px 24px;
  overscroll-behavior: contain;
}

/* Service Grid (Pills) */
.rs-services-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.rs-section-label {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}
.rs-tag-radius {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 100, 30, 0.15);
  border: 1px solid rgba(255, 100, 30, 0.35);
  color: #ff8148;
  padding: 2px 8px;
  border-radius: 12px;
}

.rs-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.rs-service-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #1e293b;
  border: 1.5px solid #334155;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.rs-service-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rs-service-card:hover {
  background: #24344d;
  border-color: #475569;
}
.rs-service-card.active, .rs-service-card:has(input:checked) {
  background: rgba(255, 100, 30, 0.12);
  border-color: #ff641e;
  box-shadow: 0 0 0 2px rgba(255, 100, 30, 0.2);
}

.rs-srv-icon {
  font-size: 24px;
  line-height: 1;
}
.rs-srv-info strong {
  display: block;
  font-size: 13px;
  color: #f8fafc;
  line-height: 1.2;
  margin-bottom: 2px;
}
.rs-srv-info small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
}

/* 50 KM Coverage Status Card */
.rs-coverage-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  margin-bottom: 16px;
  transition: all 0.2s;
}
.rs-coverage-card.rs-cov-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
}
.rs-coverage-card.rs-cov-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
}

.rs-cov-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.rs-cov-content strong {
  display: block;
  font-size: 13px;
  color: #f8fafc;
  margin-bottom: 2px;
}
.rs-cov-content p {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

/* Form Styles */
.rs-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rs-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rs-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rs-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.rs-label-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}
.rs-req { color: #ef4444; }

.rs-field input, .rs-field select, .rs-field textarea {
  width: 100%;
  padding: 10px 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  color: #f8fafc;
  font-size: 13px;
  transition: border-color 0.2s;
}
.rs-field input:focus, .rs-field select:focus, .rs-field textarea:focus {
  border-color: #ff641e;
  outline: none;
}

/* Anti-fraud Phone & OTP Section */
.rs-otp-section {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rs-phone-input-group {
  display: flex;
  gap: 8px;
}
.rs-phone-input-group input {
  flex: 1;
}
.rs-btn-otp {
  background: #ff641e;
  color: #fff;
  border: none;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.rs-btn-otp:hover {
  background: #ea580c;
}

.rs-code-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rs-otp-hint-banner {
  background: #332014;
  border: 1px solid #7c3e1d;
  color: #ffb181;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.rs-code-input-row {
  display: flex;
  gap: 8px;
}
.rs-code-input-row input {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  text-align: center;
}
.rs-btn-verify {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.rs-verified-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  color: #a7f3d0;
}
.rs-badge-check {
  font-weight: 800;
  margin-right: 6px;
  color: #10b981;
}
.rs-change-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
}

.rs-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}
.rs-consent-row input {
  accent-color: #ff641e;
  margin-top: 2px;
}
.rs-consent-row a { color: #ff9a59; }

.rs-btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ff641e 0%, #e64a19 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 100, 30, 0.35);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.rs-btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 100, 30, 0.45);
}
.rs-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.rs-submit-subnote {
  text-align: center;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* ==========================================================================
   VIEW B: LIVE TRACKING & DISPATCH (EGEA / GRAB STYLE)
   ========================================================================== */
.rs-track-stepper-box {
  background: #1e293b;
  border-radius: 16px;
  padding: 16px 12px;
  margin-bottom: 14px;
  border: 1px solid #334155;
}

.rs-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.rs-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  z-index: 2;
}

.rs-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.3s;
}

.rs-step-name {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
}

.rs-step-node.active .rs-step-icon {
  background: #ff641e;
  border-color: #ff641e;
  box-shadow: 0 0 0 4px rgba(255, 100, 30, 0.3);
}
.rs-step-node.active .rs-step-name {
  color: #ff8148;
  font-weight: 700;
}

.rs-step-node.completed .rs-step-icon {
  background: #10b981;
  border-color: #10b981;
}
.rs-step-node.completed .rs-step-name {
  color: #10b981;
}

.rs-step-connector {
  flex: 1;
  height: 3px;
  background: #334155;
  margin: -16px -6px 0 -6px;
  z-index: 1;
}
.rs-step-connector.completed {
  background: #10b981;
}

/* ETA & Live Status Card */
.rs-eta-card {
  background: linear-gradient(135deg, #ff641e 0%, #c2410c 100%);
  color: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(255, 100, 30, 0.3);
}

.rs-eta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.rs-gps-live-badge {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 11px;
}

.rs-eta-main-text {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin: 4px 0;
}
.rs-eta-sub-text {
  font-size: 12px;
  opacity: 0.92;
}

/* Mechanic Profile Card */
.rs-mechanic-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}

.rs-mech-avatar {
  width: 48px;
  height: 48px;
  background: #0f172a;
  border: 2px solid #ff641e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.rs-mech-info {
  flex: 1;
  min-width: 0;
}
.rs-mech-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rs-mech-name-row strong {
  font-size: 14px;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rs-badge-verified {
  font-size: 10px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 1px 6px;
  border-radius: 6px;
}
.rs-mech-shop {
  font-size: 12px;
  color: #94a3b8;
  margin: 2px 0;
}
.rs-mech-distance {
  font-size: 11px;
  color: #ff8148;
  font-weight: 600;
}

.rs-mech-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rs-mech-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.rs-mech-btn-call {
  background: #10b981;
  color: #fff !important;
}
.rs-mech-btn-chat {
  background: #ff641e;
  color: #fff;
  position: relative;
}


.rs-chat-unread {
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -4px;
  right: -4px;
}

/* Job Summary Card */
.rs-job-summary-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 14px;
}
.rs-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  padding-bottom: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #94a3b8;
}
.rs-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
}
.rs-summary-grid small {
  color: #64748b;
  display: block;
}
.rs-summary-grid span {
  color: #e2e8f0;
}
.rs-summary-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed #334155;
}
.rs-btn-text-danger {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
}
.rs-btn-text {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
}

/* ==========================================================================
   IN-APP REAL-TIME CHAT DRAWER / MODAL
   ========================================================================== */
.rs-chat-drawer {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 520px;
  max-height: 85vh;
  z-index: 200;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.rs-chat-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  border-radius: 20px 20px 0 0;
}
.rs-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rs-chat-avatar {
  font-size: 24px;
}
.rs-chat-header-info strong {
  display: block;
  font-size: 14px;
  color: #f8fafc;
}
.rs-chat-header-info small {
  font-size: 11px;
  color: #10b981;
}
.rs-chat-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.rs-quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  background: #131d2e;
  border-bottom: 1px solid #1e293b;
  white-space: nowrap;
}
.rs-chip-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  cursor: pointer;
}
.rs-chip-btn:hover {
  background: #334155;
  color: #fff;
}

.rs-chat-messages-box {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rs-chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}
.rs-chat-bubble.rs-bubble-in {
  align-self: flex-start;
  background: #1e293b;
  color: #f8fafc;
  border-bottom-left-radius: 4px;
}
.rs-chat-bubble.rs-bubble-out {
  align-self: flex-end;
  background: #ff641e;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.rs-bubble-meta {
  font-size: 10px;
  opacity: 0.75;
  margin-top: 4px;
  display: block;
}
.rs-chat-empty {
  text-align: center;
  color: #64748b;
  font-size: 12px;
  margin: auto;
  padding: 20px;
}

.rs-chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #1e293b;
  border-top: 1px solid #334155;
}
.rs-chat-input-bar input {
  flex: 1;
  padding: 10px 14px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  color: #f8fafc;
  font-size: 13px;
}
.rs-chat-input-bar input:focus {
  border-color: #ff641e;
  outline: none;
}
.rs-btn-send {
  background: #ff641e;
  color: #fff;
  border: none;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* ==========================================================================
   CUSTOM LEAFLET MARKERS & RADAR PULSE
   ========================================================================== */
.rs-marker-customer-container {
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
}

.rs-marker-customer-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.rs-marker-customer-wrap:active {
  cursor: grabbing;
}

.rs-cust-pin,
.rs-gps-radar-pin {
  position: relative;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #ff641e 0%, #ea580c 100%);
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 100, 30, 0.4);
  z-index: 5;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rs-marker-customer-wrap:hover .rs-cust-pin,
.rs-marker-customer-wrap:hover .rs-gps-radar-pin {
  transform: scale(1.15);
}

.rs-radar-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  background: rgba(255, 100, 30, 0.22);
  border: 2px solid rgba(255, 100, 30, 0.7);
  border-radius: 50%;
  animation: rs-radar-wave 2.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: none;
  z-index: 1;
}

@keyframes rs-radar-wave {
  0% {
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 1;
  }
  60% {
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

@keyframes rs-radar {
  0% { transform: translate(-50%, -50%) scale(0.35); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.0); opacity: 0; }
}

.rs-gps-pin-label {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(4px);
  color: #fed7aa;
  border: 1px solid rgba(255, 100, 30, 0.5);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  letter-spacing: 0.2px;
  z-index: 6;
}

.rs-driver-pin {
  width: 42px;
  height: 42px;
  background: #ff641e;
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(255, 100, 30, 0.5);
  transition: all 0.5s ease-out;
}

.rs-shop-pin {
  width: 32px;
  height: 32px;
  background: #1e293b;
  border: 2px solid #ff641e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.2s;
}
.rs-shop-pin:hover {
  transform: scale(1.2);
  border-color: #ff8148;
}

/* ==========================================================================
   MOBILE RESPONSIVE TWEAKS (Clean, Compact, Non-overlapping)
   ========================================================================== */
@media (max-width: 640px) {
  /* Slim Top Floating Header */
  .rs-float-header {
    top: 8px;
    left: 8px;
    right: 8px;
    padding: 6px 10px;
    border-radius: 12px;
    gap: 6px;
  }
  .rs-header-left, .rs-header-right {
    gap: 6px;
  }
  .rs-back-btn {
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 9px;
    gap: 4px;
  }
  .rs-top-brand {
    gap: 6px;
  }
  .rs-brand-text {
    font-size: 15px;
  }
  .rs-live-indicator {
    font-size: 10px;
    padding: 2px 6px;
    gap: 4px;
  }
  .rs-live-text-full {
    display: none;
  }
  .rs-live-text-short {
    display: inline;
  }
  .rs-header-admin-link {
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 9px;
    gap: 3px;
  }
  .rs-header-jobs-btn {
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 9px;
    gap: 4px;
  }
  .rs-header-workshop-link {
    display: none;
  }
  .rs-header-toggle-btn {
    padding: 5px 7px;
    font-size: 10px;
  }

  /* Compact Map Controls positioned smartly on top right */
  .rs-map-controls {
    top: 56px;
    right: 10px;
    gap: 6px;
    z-index: 80;
  }
  .rs-ctrl-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    padding: 2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  }
  .rs-ctrl-icon {
    font-size: 16px;
    margin-bottom: 0;
  }
  .rs-ctrl-text {
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
  }

  /* Status Pill */
  .rs-float-pill {
    top: 56px;
    font-size: 11px;
    padding: 6px 12px;
    max-width: calc(100vw - 110px);
  }

  /* Bottom Sheet and Form - z-index 95 ensures controls NEVER overlap cards */
  .rs-sheet {
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
  }
  .rs-sheet-handle-bar {
    padding: 10px 16px 6px;
  }
  .rs-sheet-handle-title {
    font-size: 13px;
  }
  .rs-sheet-body {
    padding: 12px 14px 24px;
  }
  .rs-service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .rs-service-card {
    padding: 10px 10px;
    border-radius: 12px;
  }
  .rs-service-card h3 {
    font-size: 13px;
    margin-bottom: 2px;
  }
  .rs-service-card p {
    font-size: 10.5px;
    line-height: 1.3;
  }
}

/* ==========================================================================
   NEARBY MECHANICS & 1-30 KM DISCOVERY LIST
   ========================================================================== */
.rs-nearby-box {
  margin: 14px 0;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 100, 30, 0.3);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.rs-nearby-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.rs-nearby-title-wrap {
  flex: 1;
  min-width: 200px;
}
.rs-nearby-title {
  display: block;
  font-size: 14.5px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2px;
}
.rs-nearby-sub {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}
.rs-radius-filter {
  display: flex;
  gap: 6px;
  background: #0f172a;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #334155;
}
.rs-radius-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.rs-radius-btn.active {
  background: #ff641e;
  color: #fff;
  box-shadow: 0 2px 6px rgba(255, 100, 30, 0.35);
}
.rs-nearby-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 2px;
}
.rs-nearby-empty {
  text-align: center;
  padding: 20px 14px;
  color: #cbd5e1;
  font-size: 13px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 10px;
  border: 1px dashed #475569;
}
.rs-nearby-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rs-nearby-card:hover, .rs-nearby-card.is-service-match {
  border-color: #ff641e;
  background: #243044;
}
.rs-nearby-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.rs-nearby-logo-box {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rs-nearby-shop-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rs-nearby-shop-logo-icon {
  font-size: 22px;
}
.rs-nearby-info {
  flex: 1;
  min-width: 0;
}
.rs-nearby-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.rs-nearby-name {
  font-size: 14px;
  color: #f8fafc;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rs-nearby-address {
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 6px;
  line-height: 1.35;
}
.rs-nearby-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rs-nearby-dist-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 100, 30, 0.15);
  color: #ff8148;
  border: 1px solid rgba(255, 100, 30, 0.3);
}
.rs-nearby-dist-badge.is-close {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}
.rs-nearby-srv-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.rs-srv-mini-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #334155;
  color: #cbd5e1;
}
.rs-srv-mini-badge.is-highlight {
  background: #c2410c;
  color: #fff;
  font-weight: 700;
}
.rs-nearby-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.rs-btn-call-direct {
  flex: 1.2;
  min-width: 160px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
  transition: all 0.2s ease;
}
.rs-btn-call-direct:hover {
  background: #15803d;
  transform: translateY(-1px);
}
.rs-btn-select-shop {
  flex: 1;
  min-width: 140px;
  background: #334155;
  color: #f8fafc;
  border: 1px solid #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.rs-btn-select-shop:hover {
  background: #ff641e;
  color: #fff;
  border-color: #ff641e;
}
.rs-form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 14px;
  color: #64748b;
  font-size: 12px;
}
.rs-form-divider::before, .rs-form-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #334155;
}
.rs-form-divider span {
  padding: 0 10px;
}

/* ========================================================
   NATIONWIDE LOCATION SEARCH & PROVINCE PICKER
   ======================================================== */
.rs-geo-search-container {
  background: #182026;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  position: relative;
}
.rs-geo-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.rs-geo-icon {
  font-size: 16px;
  color: #ff641e;
  padding-left: 4px;
}
.rs-geo-input {
  flex: 1;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f8fafc;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.rs-geo-input:focus {
  border-color: #ff641e;
  box-shadow: 0 0 0 2px rgba(255, 100, 30, 0.2);
}
.rs-geo-clear-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 0 6px;
}
.rs-geo-picker-btn {
  background: #1e293b;
  color: #ffb181;
  border: 1px solid #ff641e;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}
.rs-geo-picker-btn:hover {
  background: #ff641e;
  color: #111;
}
.rs-geo-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 12px;
  right: 12px;
  background: #0f172a;
  border: 1px solid #ff641e;
  border-radius: 8px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.rs-geo-item {
  padding: 10px 14px;
  border-bottom: 1px solid #1e293b;
  cursor: pointer;
  font-size: 13px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}
.rs-geo-item:last-child {
  border-bottom: none;
}
.rs-geo-item:hover, .rs-geo-item.active {
  background: #1e293b;
  color: #ff8148;
}
.rs-geo-item-badge {
  font-size: 11px;
  background: #334155;
  color: #94a3b8;
  padding: 2px 6px;
  border-radius: 4px;
}
.rs-geo-quick-tags {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  scrollbar-width: thin;
}
.rs-geo-tag {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.rs-geo-tag:hover {
  background: #ff641e;
  color: #111;
  border-color: #ff641e;
}

/* ========================================================
   PROVINCES & DISTRICTS DIRECTORY (77 PROVINCES SEO)
   ======================================================== */
.rs-directory-box {
  margin-top: 24px;
  background: #13191f;
  border: 1px solid #28333e;
  border-radius: 12px;
  padding: 16px;
}
.rs-directory-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.rs-directory-head h4 {
  margin: 0;
  font-size: 14px;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rs-directory-toggle-icon {
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.2s;
}
.rs-directory-body {
  margin-top: 14px;
  border-top: 1px solid #28333e;
  padding-top: 14px;
}
.rs-region-group {
  margin-bottom: 14px;
}
.rs-region-title {
  font-size: 12px;
  font-weight: 700;
  color: #ff641e;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rs-province-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rs-prov-chip {
  background: #1e262f;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
}
.rs-prov-chip:hover {
  background: #ff641e;
  color: #111;
  border-color: #ff641e;
}

/* ========================================================
   GEO PICKER MODAL
   ======================================================== */
.rs-geo-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 0;
}
.rs-geo-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rs-geo-form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}
.rs-geo-form-group select {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f8fafc;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.rs-geo-form-group select:focus {
  border-color: #ff641e;
}


