/* ============================================
   Pitbay — components.css
   Reusable UI components
   ============================================ */

/* ── ICONS (consistent SVG set) ── */
.pic { vertical-align: -0.14em; flex-shrink: 0; }        /* inline icon next to text */
.action-btn .pic { margin-right: 5px; }
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: var(--teal-tint, #EAF1FC); color: var(--blue, #1E5FBF);
}

/* ── FULL-SCREEN LOADER ── */
.app-loader {
  position: absolute; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px);
}
.app-loader.on { display: flex; }
.app-loader-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.app-spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid rgba(30, 95, 191, .2); border-top-color: var(--blue, #1E5FBF);
  animation: app-spin .7s linear infinite;
}
@keyframes app-spin { to { transform: rotate(360deg); } }
.app-loader-msg { font-size: 14.5px; font-weight: 700; color: var(--text-primary, #0f172a); }

/* ── BUTTONS ── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 12px;
  border-radius: 11px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, background .15s;
}
.btn:active { opacity: .85; }
.btn-primary  { background: var(--blue);  color: #fff; }
.btn-green    { background: var(--blue); color: #fff; }   /* alias kept; brand blue per theme */
.btn-outline  { background: transparent; border: 1.5px solid var(--border-medium); color: var(--text-secondary); }
.btn-disabled { background: var(--bg-secondary); color: var(--text-tertiary); cursor: not-allowed; }
.btn-sm       { padding: 8px 14px; font-size: 13px; border-radius: 9px; width: auto; }
.btn-danger   { background: #fff5f5; color: var(--red); border: .5px solid #fca5a5; }

/* ── ADDRESS CARD ── */
.addr-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 7px;
  cursor: pointer;
  background: var(--bg-primary);
  transition: all .15s;
  position: relative;
  user-select: none;
}
.addr-card:hover              { background: #eff6ff; border-color: var(--blue); }
.addr-card:hover .addr-label  { color: var(--navy); }
.addr-card:hover .addr-check  { border-color: var(--blue); }
.addr-card.selected           { background: var(--navy); border-color: var(--navy); box-shadow: 0 3px 14px rgba(30,64,175,.25); }
.addr-card.selected .addr-label { color: #fff; font-weight: 700; }
.addr-card.selected .addr-line   { color: rgba(255,255,255,.82); }
.addr-card.selected .addr-dist   { color: rgba(255,255,255,.6); }
.addr-card.selected .addr-icon   { background: rgba(255,255,255,.18) !important; }
.addr-card.selected .addr-check  { background: #fff; border-color: #fff; color: var(--navy); font-size: 14px; }
.addr-card:active { opacity: .88; }

.addr-icon  { width: 33px; height: 33px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.addr-label { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.addr-line  { font-size: 12px; color: var(--text-secondary); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-dist  { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }
.addr-check {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--border-medium);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: transparent;
}
.addr-add-new {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px;
  border: 1.5px dashed var(--border-medium);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 9px;
  transition: border-color .15s;
}
.addr-add-new:hover { border-color: var(--blue); }
.addr-add-icon {
  width: 33px; height: 33px; border-radius: 8px;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.addr-add-label   { font-size: 13px; font-weight: 600; color: var(--blue); }
.addr-add-sublabel{ font-size: 12px; color: var(--text-secondary); margin-top: 1px; }

/* ── RECENT CHIPS ── */
.chip-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.chip-pill {
  font-size: 12px; padding: 4px 10px;
  border-radius: 18px;
  border: .5px solid var(--border-medium);
  background: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .12s;
}
.chip-pill:hover   { border-color: var(--blue); color: var(--blue); }
.chip-pill.active  { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── FORM INPUTS ── */
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border-medium);
  border-radius: 10px;
  font-size: 15px;
  background: var(--bg-primary);
  color: var(--text-primary);
  margin-bottom: 10px;
  transition: border-color .15s;
}
.form-input:focus { outline: none; border-color: var(--blue); }
.form-input.readonly { background: var(--bg-secondary); color: var(--text-secondary); }
.form-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  font-weight: 600;
  display: block;
}
.form-label.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── TOGGLE SWITCH ── */
.toggle {
  width: 40px; height: 22px;
  border-radius: 11px;
  background: var(--border-medium);
  position: relative; cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.toggle.on { background: var(--blue); }
.toggle::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px; left: 3px;
  transition: left .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle.on::after { left: 21px; }
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0;
  border-bottom: .5px solid var(--border-light);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label  { font-size: 15px; color: var(--text-primary); font-weight: 500; }
.toggle-sub    { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ── SLOT/DATE CHIPS ── */
.date-chip {
  font-size: 12px; padding: 3px 9px;
  border-radius: 14px;
  border: .5px solid var(--border-medium);
  cursor: pointer;
  color: var(--text-secondary);
  background: var(--bg-primary);
  white-space: nowrap; flex-shrink: 0;
  transition: all .12s;
}
.date-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }

.slot-chip {
  font-size: 12px; padding: 6px 3px;
  border-radius: 8px; text-align: center;
  border: .5px solid var(--border-light);
  cursor: pointer;
  color: var(--text-secondary);
  background: var(--bg-primary);
  transition: all .12s;
}
.slot-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.slot-chip.full   { background: var(--bg-secondary); color: var(--text-tertiary); cursor: not-allowed; text-decoration: line-through; font-size: 11px; }
.slot-chip.past   { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; opacity: 0.55; text-decoration: none; }
.slot-chip.past .slot-count   { color: #9ca3af; font-style: italic; }
.slot-chip.blocked{ background: #fce4ec; color: #b91c1c; cursor: not-allowed; text-decoration: none; }
.slot-chip.blocked .slot-count { color: #b91c1c; }
.slot-count       { font-size: 9px; display: block; margin-top: 1px; }

/* ── CENTER CARD ── */
.center-card {
  background: var(--bg-primary);
  border: 1px solid var(--teal-tint-border);
  border-radius: 16px;
  margin: 0 13px 11px;
  padding: 12px 13px 12px 15px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-glow);
  transition: transform .12s ease, box-shadow .12s ease;
}
/* Accent bar down the left edge */
.center-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent-grad);
}
.center-card:active { transform: scale(.99); box-shadow: 0 2px 10px rgba(30,95,191,.14); }
.center-card.hidden { display: none; }
.center-name  { font-size: 15.5px; font-weight: 800; color: var(--text-primary); letter-spacing: -.1px; }
.center-meta  { display: flex; gap: 6px; margin-bottom: 5px; flex-wrap: wrap; }
.center-meta-item { font-size: 12px; color: var(--text-secondary); }

/* ── PLAYO-STYLE CENTER CARD ── */
.center-card.playo { padding: 0; overflow: hidden; border-radius: 18px; }
.center-card.playo::before { display: none; }        /* banner replaces the accent bar */
.cc-banner {
  position: relative; height: 150px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cc-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-banner::after {   /* subtle top+bottom scrim so badges read on any image */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 68%, rgba(0,0,0,.22) 100%);
}
.cc-banner-icon { font-size: 56px; line-height: 1; filter: drop-shadow(0 3px 8px rgba(0,0,0,.3)); }
.cc-banner-initial {
  position: absolute; right: 12px; bottom: -14px; font-size: 94px; font-weight: 900;
  color: rgba(255,255,255,.15); line-height: 1; pointer-events: none; user-select: none;
}
.cc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.cc-pill { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 7px; letter-spacing: .03em; width: fit-content; }
.cc-pill-book   { background: rgba(15,23,42,.72); color: #fff; }
.cc-pill-open   { background: #dcfce7; color: #15803d; }
.cc-pill-closed { background: #fee2e2; color: #b91c1c; }
.cc-heart {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92); color: #94a3b8; font-size: 19px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.cc-heart.on { color: #ef4444; }
.cc-body { padding: 11px 13px 13px; }
.cc-name-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cc-name-row .center-name { font-size: 17px; font-weight: 800; }
.cc-rating-pill {
  flex-shrink: 0; background: #dcfce7; color: #15803d;
  font-size: 14px; font-weight: 800; padding: 3px 8px; border-radius: 8px;
}
.cc-rating-pill span { font-weight: 600; color: #16a34a; opacity: .85; font-size: 13px; }
.cc-sub { font-size: 14px; color: var(--text-secondary); margin-top: 3px; }
.cc-divider { height: 1px; background: var(--border-light); margin: 11px 0 0; }
.cc-tagrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.cc-tags { display: flex; gap: 5px; flex-wrap: wrap; min-width: 0; }
.cc-price { flex-shrink: 0; font-size: 14px; color: var(--text-secondary); }
.cc-price b { color: var(--text-primary); font-weight: 800; font-size: 17px; }
/* Primary CTA in the card's bottom-right corner. */
.cc-book-btn {
  flex-shrink: 0; border: none; cursor: pointer;
  background: var(--brand-grad, linear-gradient(135deg, #1E5FBF, #0b3f8a)); color: #fff;
  font-size: 14.5px; font-weight: 800; padding: 8px 15px; border-radius: 10px;
  box-shadow: 0 5px 14px -5px rgba(30, 95, 191, .55);
}
.cc-book-btn:active { transform: scale(.96); }

/* ── PLAYO-STYLE CENTER DETAIL PAGE ── */
.detail-hero {
  position: relative; height: 218px; flex-shrink: 0; overflow: hidden;
  background: var(--brand-grad);
}
.hero-carousel {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hero-carousel::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,0) 32%); pointer-events: none; }
.hero-slide-icon { font-size: 90px; line-height: 1; filter: drop-shadow(0 6px 16px rgba(0,0,0,.32)); }
.hero-slide-initial { position: absolute; right: 8px; bottom: -22px; font-size: 150px; font-weight: 900; color: rgba(255,255,255,.13); line-height: 1; user-select: none; pointer-events: none; }

/* Carousel dots (shared) */
.carousel-dots { display: flex; gap: 5px; justify-content: center; }
#hero-dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 3; }
.carousel-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); transition: width .2s, background .2s; }
.carousel-dots .dot.on { width: 18px; border-radius: 3px; background: #fff; }
#offers-dots { margin-top: 7px; }
#offers-dots .dot { background: #cbd5e1; }
#offers-dots .dot.on { background: var(--blue); }
.detail-hero-btn {
  position: absolute; z-index: 3; top: calc(12px + env(safe-area-inset-top, 0px));
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92); color: #334155; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.detail-hero-back { left: 12px; }
.detail-hero-actions { position: absolute; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); display: flex; gap: 8px; z-index: 3; }
.detail-hero-actions .detail-hero-btn { position: static; }
#detail-hero-fav.on { color: #ef4444; }

.detail-info { padding: 14px 16px 4px; }
.detail-name-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.detail-name { font-size: 22px; font-weight: 800; color: var(--text-primary); letter-spacing: -.3px; line-height: 1.2; }
.detail-rating-pill { flex-shrink: 0; background: #dcfce7; color: #15803d; font-size: 15px; font-weight: 800; padding: 4px 10px; border-radius: 9px; }
/* Two-column header: name + timing + address on the left, rating + Map on the
   right — so the address fills the space beside the actions (no wasted rows). */
.detail-head-left { flex: 1; min-width: 0; }
.detail-head-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex-shrink: 0; }
.detail-head-left .detail-metaline:first-of-type { margin-top: 7px; }
.detail-metaline { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; color: var(--text-secondary); margin-top: 8px; line-height: 1.4; }
.detail-metaline .dm-ico { flex-shrink: 0; }
.detail-map-btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 12px; border-radius: 9px; border: 1px solid var(--teal-tint-border);
  background: var(--teal-tint); color: var(--navy); font-size: 14px; font-weight: 700; cursor: pointer;
}

.offers-wrap { padding: 8px 0 2px; }
.offers-carousel {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.offers-carousel::-webkit-scrollbar { display: none; }
.detail-offer {
  flex: 0 0 88%; scroll-snap-align: center; box-sizing: border-box;
  display: flex; align-items: center; gap: 12px;
  background: var(--teal-tint); border: 1px solid var(--teal-tint-border); border-radius: 14px; padding: 12px 14px;
}
.detail-offer-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; flex-shrink: 0; box-shadow: 0 3px 10px -3px rgba(30,95,191,.5); }
.detail-offer-body { flex: 1; min-width: 0; }
.detail-offer-title { font-size: 15px; font-weight: 800; color: var(--text-primary); line-height: 1.25; }
.detail-offer-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.detail-offer-pct { flex-shrink: 0; font-size: 14.5px; font-weight: 800; color: var(--blue); white-space: nowrap; letter-spacing: .02em; }

.detail-section-title { font-size: 15px; font-weight: 800; color: var(--text-primary); padding: 10px 16px 6px; }
.wash-tabs.sticky { position: sticky; top: 0; z-index: 40; background: var(--bg-secondary); padding-top: 4px; padding-bottom: 6px; box-shadow: 0 4px 8px -6px rgba(0,0,0,.15); }

.badge        { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 800; }
.badge-open   { background: #dcfce7; color: #15803d; }
.badge-closed { background: #ffebee; color: #c62828; }
.badge-d2d    { background: #eff6ff; color: #1e40af; }
.badge-upcoming   { background: #e8f5e9; color: #2e7d32; }
.badge-completed  { background: #eff6ff; color: #1e40af; }
.badge-cancelled  { background: #ffebee; color: #c62828; }
.badge-default    { background: var(--blue); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 8px; }

.wash-tag {
  font-size: 12px; font-weight: 700; padding: 3px 9px;
  border-radius: 8px;
  background: var(--teal-tint);
  color: var(--navy);
  border: 1px solid var(--teal-tint-border);
}

/* ── PACKAGE CARD ── */
.pkg-card {
  border: 1.5px solid var(--border-light);
  border-radius: 11px;
  margin: 0 13px 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-primary);
  transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.pkg-card.selected    { border-color: var(--blue); border-left-width: 4px; }
.pkg-card.selected::before {
  content: '✓ Selected';
  display: block;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  letter-spacing: .03em;
}
.pkg-card             { border-radius: 14px; }
.pkg-card.popular     { border-color: #bfdbfe; }
.pkg-body     { padding: 14px; }
.pkg-head     { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 2px; }
.pkg-head-left  { flex: 1; min-width: 0; }
.pkg-head-right { text-align: right; flex-shrink: 0; }
.pkg-popular-pill { display: inline-block; background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.pkg-name     { font-size: 16px; font-weight: 800; color: var(--text-primary); line-height: 1.25; }
.pkg-est      { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.pkg-price    { font-size: 18px; font-weight: 800; color: #16a34a; }
.pkg-gst      { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }
.pkg-desc     { font-size: 13px; color: var(--text-secondary); margin: 9px 0; line-height: 1.5; }
.pkg-includes { background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: 10px; padding: 11px 13px; display: flex; flex-direction: column; gap: 8px; }
.pkg-item     { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-primary); line-height: 1.3; }
.pkg-tick     { color: var(--blue); font-weight: 800; flex-shrink: 0; }
.pkg-select-btn {
  width: 100%; margin-top: 7px; padding: 7px;
  border-radius: 8px; border: 1.5px solid var(--blue);
  background: transparent; color: var(--blue);
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.pkg-card.selected .pkg-select-btn { background: var(--blue); color: #fff; }

/* ── SUMMARY ROWS ── */
.summary-card {
  background: var(--bg-secondary);
  border-radius: 11px;
  padding: 11px;
  margin-bottom: 9px;
}
.summary-card.transparent { background: transparent; border: .5px solid var(--border-light); }
.summary-row  { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.summary-label { font-size: 13px; color: var(--text-secondary); }
.summary-value { font-size: 13px; font-weight: 700; color: var(--text-primary); text-align: right; max-width: 170px; }

.included-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-primary); padding: 4px 0; border-bottom: .5px solid var(--border-light); }
.included-item:last-child { border-bottom: none; }

/* ── TOTAL BOX ── */
.total-box {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--navy);
  border-radius: 11px;
  padding: 12px 14px;
  margin-bottom: 11px;
}
.total-label    { font-size: 15px; font-weight: 700; color: #fff; }
.total-sublabel { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 2px; }
.total-amount   { font-size: 23px; font-weight: 800; color: #fff; letter-spacing: -.5px; }

/* ── PAYMENT OPTIONS ── */
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 11px; }
.payment-opt {
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.payment-opt.active { border-color: var(--navy); background: var(--navy); }
.payment-opt.active .payment-name { color: #fff; }
.payment-name { font-size: 13px; font-weight: 700; color: var(--text-primary); transition: color .15s; }

/* ── PROMO TRIGGER ── */
.promo-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  background: var(--bg-primary);
  border: 1.5px dashed var(--border-medium);
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 7px;
  transition: border-color .15s;
}
.promo-trigger:hover    { border-color: var(--blue); }
.promo-trigger.applied  { border-style: solid; border-color: var(--green); background: #f0fdf4; }
.promo-trigger-text     { font-size: 14px; color: var(--text-tertiary); font-weight: 500; }
.promo-trigger.applied .promo-trigger-text { color: var(--green); font-weight: 700; }
.promo-trigger-badge {
  font-size: 12px; font-weight: 700;
  background: #dcfce7; color: var(--green);
  padding: 2px 7px; border-radius: 18px;
  display: none;
}
.promo-trigger.applied .promo-trigger-badge { display: inline-block; }

.promo-applied-strip {
  display: none;
  background: #dcfce7; border: 1px solid #86efac;
  border-radius: 9px; padding: 7px 11px; margin-bottom: 7px;
  align-items: center; justify-content: space-between;
}
.promo-applied-strip.show { display: flex; }

/* ── PROMO CODE CARD ── */
.code-card {
  border: 1.5px solid var(--border-light);
  border-radius: 11px;
  margin-bottom: 7px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-primary);
}
.code-card.available   { border-left: 4px solid #16a34a; }
.code-card.selected-code { border: 2px solid #16a34a; box-shadow: 0 2px 12px rgba(22,163,74,.18); }
.code-card.unavailable { opacity: .5; cursor: not-allowed; }
.code-card-strip   { display: none; background: #16a34a; padding: 4px 11px; font-size: 11px; font-weight: 700; color: #fff; }
.code-card.selected-code .code-card-strip { display: block; }
.code-card-body    { padding: 9px 11px 8px; }
.code-card-top     { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.code-card-name    { font-size: 15px; font-weight: 800; color: #111; letter-spacing: .05em; font-family: 'Courier New', monospace; }
.code-card.unavailable .code-card-name { color: var(--text-tertiary); }
.code-discount-pill { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 17px; }
.code-card.available .code-discount-pill,
.code-card.selected-code .code-discount-pill { background: #16a34a; color: #fff; }
.code-card.unavailable .code-discount-pill { background: var(--bg-secondary); color: var(--text-tertiary); }
.code-card-title   { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; line-height: 1.4; }
.code-card-desc    { font-size: 13px; color: #555; line-height: 1.5; margin-bottom: 5px; }
.code-card-footer  { display: flex; align-items: center; justify-content: space-between; }
.code-card-reason  { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 7px; }
.code-card.available .code-card-reason,
.code-card.selected-code .code-card-reason { background: #dcfce7; color: #166534; }
.code-card.unavailable .code-card-reason   { background: #fee2e2; color: #991b1b; }
.code-apply-btn {
  font-size: 12px; font-weight: 700; padding: 4px 10px;
  border-radius: 8px; border: 1.5px solid #16a34a;
  background: transparent; color: #16a34a; cursor: pointer;
}
.code-apply-btn:hover,
.code-card.selected-code .code-apply-btn { background: #16a34a; color: #fff; }

/* ── BOOKING ITEM ── */
.booking-item {
  background: var(--bg-primary);
  border: .5px solid var(--border-light);
  border-radius: 12px;
  margin: 0 13px 8px;
  padding: 10px 11px;
}

/* ── ACTION BUTTONS ── */
.action-btn-row { display: flex; gap: 5px; margin-top: 8px; }
.action-btn {
  flex: 1; padding: 8px;
  font-size: 12px; font-weight: 700;
  border-radius: 9px;
  border: .5px solid var(--border-medium);
  background: transparent; color: var(--text-primary);
  cursor: pointer; text-align: center;
}
.action-btn.primary { border-color: var(--blue); color: var(--blue); background: #eff6ff; }
.action-btn.danger  { border-color: #fca5a5; color: var(--red); background: #fff5f5; }

/* ── LIVE STATUS STEPS ── */
.status-step { display: flex; gap: 9px; padding-bottom: 12px; position: relative; }
.status-step:not(:last-child)::after {
  content: ''; position: absolute; left: 9px; top: 19px;
  width: 2px; height: calc(100% - 7px);
  background: var(--border-light);
}
.status-step.done::after { background: var(--blue); }
.step-dot {
  width: 19px; height: 19px; border-radius: 50%;
  border: 2px solid var(--border-medium);
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; z-index: 1; flex-shrink: 0; font-weight: 700;
}
.status-step.done   .step-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.status-step.done   .step-title { color: var(--blue); }
.status-step.current .step-dot  { border-color: var(--blue); color: var(--blue); }
.step-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.step-sub   { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }

/* ── BOTTOM SHEET MODAL ── */
.overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 90; display: none; align-items: flex-end;
}
.overlay.show { display: flex; }
.bottom-sheet {
  background: var(--bg-primary);
  border-radius: 20px 20px 0 0;
  width: 100%; max-height: 86%; overflow-y: auto;
}
.sheet-handle {
  width: 36px; height: 4px;
  background: var(--border-medium);
  border-radius: 2px;
  margin: 11px auto 0;
}
.sheet-header {
  padding: 10px 14px 9px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: .5px solid var(--border-light);
}
.sheet-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.sheet-close { font-size: 21px; color: var(--text-tertiary); cursor: pointer; line-height: 1; background: none; border: none; }

/* ── CONFIRM SCREEN ── */
/* Vertically center the booking-confirmed card so the screen doesn't look
   top-heavy with empty space at the bottom on tall phones. min-height:100%
   gives us the scroll-area's full height; on small screens overflow still
   scrolls correctly. */
.confirm-body {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 13px;
  min-height: 100%;
  box-sizing: border-box;
}
.confirm-icon {
  width: 56px; height: 56px;
  background: #e8f5e9; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 10px;
}
.confirm-card {
  background: var(--bg-secondary);
  border-radius: 12px; padding: 11px;
  width: 100%; margin-bottom: 10px;
}
.confirm-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0;
  border-bottom: .5px solid var(--border-light);
}
.confirm-row:last-child { border-bottom: none; }
.confirm-label { font-size: 13px; color: var(--text-secondary); }
.confirm-value { font-size: 13px; font-weight: 700; color: var(--text-primary); text-align: right; max-width: 165px; }

/* ── PROFILE ── */
.profile-top {
  background: var(--blue);
  padding: 16px 14px 18px;
  text-align: center;
  flex-shrink: 0;
}
.profile-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff;
  cursor: pointer; position: relative;
}
.avatar-edit-btn {
  position: absolute; bottom: 0; right: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue); border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.profile-name  { font-size: 18px; font-weight: 700; color: #fff; }
.profile-phone { font-size: 14px; color: rgba(255,255,255,.8); margin-top: 3px; }

.menu-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 13px;
  cursor: pointer;
  border-bottom: .5px solid var(--border-light);
  transition: background .1s;
}
.menu-row:active { background: var(--bg-secondary); }
.menu-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.menu-label    { font-size: 15px; color: var(--text-primary); flex: 1; font-weight: 500; }
.menu-sublabel { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }
.menu-arrow    { font-size: 16px; color: var(--text-tertiary); }

/* ── REVIEW CARD ── */
.review-card {
  padding: 11px 13px;
  border: .5px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 8px;
  background: var(--bg-primary);
}
.review-stars { color: var(--gold); font-size: 14px; }

/* ── PROMO CODE (profile) ── */
.promo-code-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 13px;
  border: .5px solid #86efac;
  border-radius: 12px;
  margin-bottom: 8px;
  background: #f0fdf4;
}
.promo-code-name { font-size: 15px; font-weight: 800; color: #166534; font-family: 'Courier New', monospace; }
.promo-code-desc { font-size: 12px; color: #166534; opacity: .8; margin-top: 2px; }
.promo-code-badge { font-size: 11px; font-weight: 700; background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 8px; }

/* ── FRIENDLY EMPTY STATE (with animation) ── */
.empty-state { text-align: center; padding: 40px 24px; }
.empty-ill { position: relative; width: 72px; height: 72px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.empty-ill-ico {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--teal-tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  animation: empty-bob 1.9s ease-in-out infinite;
}
.empty-ill-ring {
  position: absolute; inset: 4px; border-radius: 50%;
  border: 2px solid var(--teal-tint-border);
  animation: empty-pulse 1.9s ease-out infinite;
}
@keyframes empty-bob   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes empty-pulse { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .empty-ill-ico, .empty-ill-ring { animation: none; } }
.empty-title { font-size: 16.5px; font-weight: 800; color: var(--text-primary); }
.empty-sub { font-size: 14px; color: var(--text-secondary); margin-top: 5px; line-height: 1.5; }

/* ── QUICK REBOOK CARD (home) ── */
.qr-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--text-tertiary); text-transform: uppercase; padding: 4px 16px 6px; }
.qr-card {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  margin: 0 16px 4px; padding: 12px 14px;
  background: var(--bg-primary); border: 1px solid var(--teal-tint-border);
  border-radius: 16px; box-shadow: var(--card-glow);
}
.qr-card:active { transform: scale(.99); }
.qr-ico { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: var(--brand-grad); display: flex; align-items: center; justify-content: center; color: #fff; }
.qr-body { flex: 1; min-width: 0; }
.qr-name { font-size: 15.5px; font-weight: 800; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.qr-btn { flex-shrink: 0; font-size: 14.5px; font-weight: 800; color: var(--blue); background: none; border: none; cursor: pointer; padding: 6px 4px; }

/* ── DETAIL STATS (rating · total washes · upcoming) ── */
.detail-stats { display: flex; align-items: center; padding: 12px 16px 8px; }
.detail-stats .ds-col { flex: 1; text-align: center; }
.detail-stats .ds-divider { width: 1px; align-self: stretch; background: var(--border-light); margin: 3px 8px; }
.ds-stars { color: #f5b301; font-size: 17px; letter-spacing: 1.5px; line-height: 1; }
.ds-stars .ds-stars-empty { color: #e2e8f0; }
.ds-big { font-size: 23px; font-weight: 800; color: var(--text-primary); letter-spacing: -.4px; line-height: 1.1; }
.ds-sub { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.ds-sub b { color: var(--text-primary); font-weight: 800; }
.detail-cta-row { display: flex; gap: 10px; padding: 4px 16px 8px; }
.ds-btn {
  flex: 1; padding: 12px; border-radius: 12px;
  border: 1.5px solid var(--border-light); background: var(--bg-primary);
  color: var(--text-primary); font-size: 14.5px; font-weight: 800; letter-spacing: .03em;
  cursor: pointer; transition: transform .1s;
}
.ds-btn.primary { background: var(--teal-tint); border-color: var(--teal-tint-border); color: var(--navy); }
.ds-btn:active { transform: scale(.98); }

/* ── SUMMARY CAR-TYPE ROW ── */
.sum-cartype-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; margin-top: 8px;
  border: 1.5px solid var(--border-light); border-radius: 12px;
  background: var(--bg-primary); cursor: pointer;
}
.sum-cartype-row:active { background: var(--bg-secondary); }
.sum-cartype-ico { width: 44px; height: 30px; border-radius: 8px; background: var(--teal-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sum-cartype-ico svg { display: block; }

/* ── SAVED-CAR SWITCH ROWS ── */
.cc-switch {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 9px 11px; margin-bottom: 7px; cursor: pointer;
  border: 1.5px solid var(--border-light); border-radius: 12px; background: var(--bg-primary);
}
.cc-switch.on { border-color: var(--blue); background: var(--teal-tint); }
.cc-switch-art { width: 48px; height: 30px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cc-switch-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cc-switch-name { font-size: 15px; font-weight: 800; color: var(--text-primary); }
.cc-switch-sub { font-size: 13px; color: var(--text-secondary); }
.cc-switch-radio { color: var(--blue); font-size: 16px; width: 16px; text-align: center; flex-shrink: 0; }
.cc-add-veh {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 4px; padding: 12px; cursor: pointer;
  border: 1.5px dashed var(--blue); border-radius: 12px; background: var(--teal-tint);
  color: var(--blue); font-size: 15px; font-weight: 800;
}
.cc-add-veh:active { background: var(--teal-tint-border); }
.cc-add-plus { font-size: 19px; line-height: 1; }

/* ── CAR/BIKE TOGGLE (add-vehicle) ── */
.veh-mode-toggle { display: flex; gap: 8px; margin-bottom: 12px; }
.veh-mode-toggle button {
  flex: 1; padding: 10px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--border-medium); background: var(--bg-primary);
  color: var(--text-secondary); font-size: 15px; font-weight: 700;
}
.veh-mode-toggle button.on { background: var(--teal-tint); border-color: var(--blue); color: var(--navy); }

/* ── CAR PICKER (company → model → derived size) ── */
.cp-field { margin-bottom: 10px; }
.cp-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }
.cp-select { position: relative; }
.cp-select select {
  width: 100%; appearance: none; -webkit-appearance: none;
  padding: 11px 34px 11px 12px; border: 1.5px solid var(--border-medium);
  border-radius: 10px; font-size: 15.5px; font-weight: 600; color: var(--text-primary);
  background: var(--bg-primary); cursor: pointer; outline: none;
}
.cp-select select:focus { border-color: var(--blue); }
.cp-select select:disabled { color: var(--text-tertiary); background: var(--bg-secondary); }
.cp-caret { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--text-tertiary); pointer-events: none; }
.cp-size {
  display: flex; align-items: center; gap: 11px;
  background: var(--teal-tint); border: 1px solid var(--teal-tint-border);
  border-radius: 12px; padding: 9px 12px; margin-bottom: 10px;
}
.cp-size-art { width: 54px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cp-size-t { font-size: 15.5px; font-weight: 800; color: var(--text-primary); }
.cp-size-s { font-size: 13px; color: var(--navy); margin-top: 1px; }
.cp-fallback { background: none; border: none; color: var(--blue); font-size: 13.5px; font-weight: 700; cursor: pointer; padding: 2px 0 4px; }

/* ── ONBOARDING ADDRESS ROW ── */
.onboard-addr {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border: 1.5px solid var(--border-light); border-radius: 12px;
  cursor: pointer; background: var(--bg-primary); margin-bottom: 4px;
}
.onboard-addr:active { background: var(--bg-secondary); }

/* ── CAR-TYPE PICKER (size grid) ── */
.car-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.car-type-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 9px 9px; border: 1.5px solid var(--border-light); border-radius: 14px;
  background: var(--bg-primary); cursor: pointer; text-align: left; transition: all .15s;
}
.car-type-tile.on { border-color: var(--blue); background: var(--teal-tint); box-shadow: 0 0 0 1px var(--blue) inset; }
.ctt-art { width: 100%; height: 46px; border-radius: 10px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.car-type-tile.on .ctt-art { background: #fff; }
.ctt-label { font-size: 14.5px; font-weight: 700; color: var(--text-primary); }
.ctt-price { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.car-type-tile.on .ctt-price { color: var(--blue); }

/* ── VEHICLE CARD ── */
.vehicle-card {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  border: .5px solid var(--border-light);
  border-radius: 12px; margin-bottom: 7px;
  background: var(--bg-primary);
}
.vehicle-plate { font-size: 15px; font-weight: 800; color: var(--text-primary); font-family: 'Courier New', monospace; letter-spacing: .06em; }
.vehicle-model { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ── PAYMENT CARD (profile) ── */
.payment-saved-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: .5px solid var(--border-light);
  border-radius: 12px; margin-bottom: 7px;
  background: var(--bg-primary);
}
.payment-saved-card.default { border-color: var(--blue); background: #f0f7ff; }

/* ── OTP INPUT ── */
.otp-row { display: flex; gap: 8px; justify-content: center; margin: 14px 0; }
.otp-box {
  width: 46px; height: 52px;
  border: 1.5px solid var(--border-medium);
  border-radius: 10px;
  text-align: center;
  font-size: 22px; font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-primary);
}
.otp-box:focus { outline: none; border-color: var(--blue); }

/* ── SUMMARY FOOTER (fixed pay button; content above scrolls) ── */
.summary-footer {
  flex-shrink: 0;
  padding: 10px 13px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: .5px solid var(--border-light);
  background: var(--bg-primary, #fff);
}
.summary-footer #confirm-pay-btn { margin: 0; width: 100%; }

/* ── BOTTOM BAR (booking detail) ── */
.bottom-bar {
  padding: 9px 13px 7px;
  border-top: .5px solid var(--border-light);
  flex-shrink: 0;
  background: var(--bg-primary);
}
.bottom-bar-summary {
  display: none;
  background: var(--bg-secondary);
  border-radius: 9px; padding: 7px 9px; margin-bottom: 7px;
}
.bottom-bar-summary.show { display: flex; align-items: center; justify-content: space-between; }
.bottom-bar-pkg-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.bottom-bar-pkg-sub  { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }
.bottom-bar-price    { font-size: 17px; font-weight: 700; color: var(--blue); margin-left: 8px; flex-shrink: 0; }
.bottom-bar-cta {
  width: 100%; padding: 11px; border: none;
  border-radius: 11px; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.bottom-bar-cta.empty   { background: var(--bg-secondary); color: var(--text-tertiary); cursor: not-allowed; }
.bottom-bar-cta.confirm { background: var(--blue); color: #fff; }

/* ── WASH TYPE TABS ── */
.wash-tabs { display: flex; background: var(--bg-secondary); border-bottom: .5px solid var(--border-light); overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.wash-tabs::-webkit-scrollbar { display: none; }
.wash-tab  { flex-shrink: 0; padding: 8px 9px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; border-bottom: 2px solid transparent; min-width: 58px; }
.wash-tab.active { border-bottom-color: var(--blue); }
.wash-tab-icon { font-size: 16px; }
.wash-tab-name { font-size: 11px; color: var(--text-secondary); font-weight: 600; white-space: nowrap; }
.wash-tab.active .wash-tab-name { color: var(--blue); }

/* ── FILTER CHIPS ── */
.filter-chips  { display: flex; gap: 5px; padding: 8px 13px 7px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--teal-tint-border);
  background: var(--bg-primary); color: var(--text-secondary);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: all .15s ease;
}
.fc-ico { width: 13px; height: 13px; flex-shrink: 0; }
.filter-chip.active {
  background: var(--accent-grad);
  border-color: transparent;
  color: #fff;
  font-weight: 800;
  box-shadow: var(--chip-glow);
  transform: scale(1.06);
}

/* ── SEARCH BOX ── */
/* z-index must beat Leaflet's panes (tile=200, overlay=400, marker=600, popup=700)
   so the dropdown overlays the map instead of disappearing behind it. */
.search-wrap { padding: 12px 16px 4px; margin-top: 0; position: relative; z-index: 800; flex-shrink: 0; }
.search-box  {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 14px; padding: 12px 14px;
  display: flex; align-items: center; gap: 9px;
  box-shadow: none;
}
.search-input {
  border: none; background: transparent;
  font-size: 15px; color: var(--text-primary); flex: 1; outline: none;
}
.search-input::placeholder { color: var(--text-tertiary); }
.search-clear { font-size: 15px; cursor: pointer; color: var(--text-tertiary); display: none; }
.search-dropdown {
  position: absolute; top: calc(100% + 4px); left: 16px; right: 16px;
  background: var(--bg-primary);
  border: .5px solid var(--border-light);
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(0,0,0,.12);
  z-index: 30; display: none; overflow: hidden;
  max-height: 200px; overflow-y: auto;
}
.dropdown-item {
  padding: 9px 13px;
  display: flex; align-items: center; gap: 9px;
  cursor: pointer;
  border-bottom: .5px solid var(--border-light);
  font-size: 13px; color: var(--text-primary);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:active { background: var(--bg-secondary); }
.search-hl { color: var(--blue); font-weight: 700; }

/* ────────────────────────────────────────────────────────────
   GPS PROMPT — Google Maps style centered card
   Used by GpsPrompt._show() for permission rationale,
   GPS-off in-app dialog, and "open settings" fallback.
   ──────────────────────────────────────────────────────────── */
.gps-prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
  transition: background .22s ease;
  padding: 18px;
  -webkit-tap-highlight-color: transparent;
}
.gps-prompt-overlay.show {
  background: rgba(32, 33, 36, 0.62);
  pointer-events: auto;
}

.gps-prompt-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 28px;
  padding: 28px 4px 4px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.28);
  transform: scale(0.92) translateY(8px);
  opacity: 0;
  transition: transform .26s cubic-bezier(.18,.89,.32,1.18), opacity .2s;
  overflow: hidden;
}
.gps-prompt-overlay.show .gps-prompt-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Hero ring with pulsing pin */
.gps-prompt-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.gps-prompt-pin {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(26,115,232,0.36);
}
.gps-prompt-pin-icon {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.22));
}
.gps-prompt-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(26,115,232,0.30);
  animation: gpsp-pulse 1.8s infinite cubic-bezier(.66,0,.34,1);
}
@keyframes gpsp-pulse {
  0%   { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.45); opacity: 0;   }
}

.gps-prompt-title {
  font-size: 21px;
  font-weight: 600;
  color: #202124;
  line-height: 1.3;
  text-align: center;
  padding: 0 22px;
  margin-bottom: 10px;
}
.gps-prompt-body {
  font-size: 16px;
  color: #5f6368;
  line-height: 1.5;
  text-align: center;
  padding: 0 28px 20px;
}

.gps-prompt-divider {
  height: 1px;
  background: #e8eaed;
}

.gps-prompt-actions {
  display: flex;
  align-items: stretch;
  padding: 4px;
  gap: 2px;
}
.gps-prompt-btn {
  flex: 1;
  padding: 14px 6px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 14px;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.gps-prompt-btn-primary   { color: #1a73e8; }
.gps-prompt-btn-secondary { color: #5f6368; }
.gps-prompt-btn-primary:active   { background: rgba(26,115,232,0.10); }
.gps-prompt-btn-secondary:active { background: rgba(60,64,67,0.08); }
.gps-prompt-btn:focus { outline: none; }

@media (max-width: 360px) {
  .gps-prompt-pin      { width: 68px; height: 68px; }
  .gps-prompt-pin-icon { font-size: 36px; }
  .gps-prompt-title    { font-size: 19px; }
  .gps-prompt-body     { font-size: 15px; padding: 0 22px 18px; }
}

/* Chat recipient picker rows */
.chat-pick-row { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border: 1px solid var(--border-light); border-radius: 14px; margin-bottom: 10px; cursor: pointer; }
.chat-pick-row:active { background: var(--bg-secondary); }
.chat-pick-ico { font-size: 22px; width: 30px; text-align: center; }
.chat-pick-txt { flex: 1; min-width: 0; }
.chat-pick-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.chat-pick-sub { font-size: 12.5px; color: var(--text-secondary); margin-top: 1px; }
.chat-pick-arrow { color: var(--text-tertiary); font-size: 20px; }
