/* ============================================================
   TRAKITA UI — Marketplace Premium v5
   ============================================================
   Redesign: Traveloka / Tiket.com / Agoda mini premium style
   - Mobile-first, responsive semua ukuran HP
   - Hero section compact (140-170px)
   - NO map di marketplace (hanya transport)
   - Horizontal card (foto kiri, info kanan)
   - Foto object-fit:cover, proporsional
   - Badge "Tersedia" / "Aktif Hari Ini" / "Verified"
   - WhatsApp compact button
   - Trust badge "Aman & Terpercaya"
   - Detail popup (bottom sheet) with photos, menu, rooms
   - Typography: Inter / system-ui / sans-serif
   - Spacing konsisten, gap rapi
   ============================================================ */

/* ==================== ROOT VARIABLES ==================== */
:root {
  --mp-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mp-radius-sm: 8px;
  --mp-radius-md: 14px;
  --mp-radius-lg: 18px;
  --mp-radius-xl: 22px;
  --mp-shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.02);
  --mp-shadow-card-hover: 0 2px 8px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.04);
  --mp-shadow-elevated: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --mp-color-text: #1f2937;
  --mp-color-text-secondary: #6b7280;
  --mp-color-text-muted: #9ca3af;
  --mp-color-border: rgba(0,0,0,0.04);
  --mp-color-bg: #ffffff;
  --mp-color-bg-subtle: #f9fafb;
  --mp-spacing-xs: 4px;
  --mp-spacing-sm: 8px;
  --mp-spacing-md: 12px;
  --mp-spacing-lg: 16px;
  --mp-spacing-xl: 20px;
}

/* ==================== HERO SECTION — COMPACT PREMIUM ==================== */
.mp-hero-section {
  position: relative;
  margin: var(--mp-spacing-md) var(--mp-spacing-lg) var(--mp-spacing-lg);
  height: 155px;
  border-radius: var(--mp-radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 60%, #3b82f6 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--mp-spacing-lg);
  box-sizing: border-box;
}

.mp-hero-section.hero-blue { background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 60%, #3b82f6 100%); }
.mp-hero-section.hero-red { background: linear-gradient(135deg, #5f1e1e 0%, #dc2626 60%, #ef4444 100%); }
.mp-hero-section.hero-purple { background: linear-gradient(135deg, #3b1e5f 0%, #9333ea 60%, #a855f7 100%); }
.mp-hero-section.hero-amber { background: linear-gradient(135deg, #5f3a1e 0%, #d97706 60%, #f59e0b 100%); }
.mp-hero-section.hero-indigo { background: linear-gradient(135deg, #1e1e5f 0%, #4f46e5 60%, #6366f1 100%); }

.mp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

.mp-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mp-hero-title {
  font-family: var(--mp-font);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.mp-hero-subtitle {
  font-family: var(--mp-font);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin: 0;
  line-height: 1.3;
}

.mp-hero-search {
  display: flex;
  align-items: center;
  gap: var(--mp-spacing-sm);
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 0 14px;
  height: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}

.mp-hero-search svg {
  flex-shrink: 0;
  color: var(--mp-color-text-muted);
}

.mp-hero-search input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-family: var(--mp-font);
  font-size: 13px;
  color: var(--mp-color-text);
  padding: 0;
  height: 100%;
}

.mp-hero-search input::placeholder {
  color: #b0b8c4;
}

/* ==================== HERO WITH BACKGROUND IMAGE ==================== */
.mp-hero-section.has-hero-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Stronger overlay for text readability on photos */
}
.mp-hero-section.has-hero-img .mp-hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}
.mp-hero-section.has-hero-img .mp-hero-title {
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.mp-hero-section.has-hero-img .mp-hero-subtitle {
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* ==================== MP CARD — HORIZONTAL PREMIUM LAYOUT ==================== */
.mp-card {
  display: flex;
  align-items: flex-start;   /* flex-start so photo stays square, not stretched */
  background: var(--mp-color-bg);
  border-radius: var(--mp-radius-xl);
  overflow: hidden;          /* needed for border-radius clipping */
  box-shadow: var(--mp-shadow-card);
  margin: 0 var(--mp-spacing-lg) var(--mp-spacing-md);
  transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s ease;
  cursor: pointer;
  border: 1px solid var(--mp-color-border);
  font-family: var(--mp-font);
}

.mp-card:active {
  transform: scale(0.988);
  box-shadow: var(--mp-shadow-card);
}

.mp-card:hover {
  box-shadow: var(--mp-shadow-card-hover);
}

/* ==================== MP CARD PHOTO (LEFT SIDE) ==================== */
.mp-card-photo {
  position: relative;
  width: 95px;
  min-width: 95px;
  aspect-ratio: 1 / 1;      /* ALWAYS square — never oval/vertical */
  overflow: hidden;
  background: var(--mp-color-bg-subtle);
  flex-shrink: 0;
  margin: var(--mp-spacing-md);
  border-radius: var(--mp-radius-lg);
}

.mp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* crop to fill square — no stretch */
  border-radius: var(--mp-radius-lg);
  display: block;
}

.mp-card-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--mp-radius-lg);
  aspect-ratio: 1 / 1;     /* match parent square */
}

.mp-card-img-fallback span {
  font-size: 26px;
  font-weight: 800;
  color: white;
  opacity: 0.5;
  font-family: var(--mp-font);
}

/* "Tersedia" badge on photo — soft green premium */
.mp-badge-tersedia {
  position: absolute;
  top: 7px;
  left: 7px;
  background: #22c55e;
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 4px rgba(34,197,94,0.3);
  font-family: var(--mp-font);
  text-transform: none;
}

/* "Offline" badge on photo — subtle */
.mp-badge-offline {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(156,163,175,0.85);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  backdrop-filter: blur(4px);
  font-family: var(--mp-font);
}

/* ==================== MP CARD CONTENT (RIGHT SIDE) ==================== */
.mp-card-content {
  flex: 1;
  min-width: 0;             /* allow shrinking below content size */
  padding: var(--mp-spacing-md) var(--mp-spacing-md) 10px 2px;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: flex-start;  /* top-aligned, not centered */
  overflow-wrap: break-word;    /* long names can wrap */
}

/* Top row: name + status */
.mp-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--mp-spacing-sm);
  flex-wrap: wrap;          /* allow badge to wrap below name on narrow screens */
}

.mp-card-name-row {
  display: flex;
  align-items: flex-start;    /* top-align when name wraps to 2 lines */
  gap: 4px;
  flex: 1;
  min-width: 0;               /* allow shrinking so name can wrap */
}

.mp-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--mp-color-text);
  /* NO white-space: nowrap — allow multi-line wrap */
  /* NO text-overflow: ellipsis — name must be FULL visible */
  /* NO overflow: hidden — name must never be clipped */
  line-height: 1.3;
  letter-spacing: -0.2px;
  font-family: var(--mp-font);
  word-break: break-word;       /* break long words */
  overflow-wrap: break-word;    /* wrap at word boundaries */
  -webkit-hyphens: auto;       /* hyphenate if needed */
  hyphens: auto;
}

.mp-verified {
  flex-shrink: 0;
  margin-top: 2px;            /* align with first line of name text */
}

/* Status badges — soft modern */
.mp-status-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid rgba(22,163,74,0.1);
  font-family: var(--mp-font);
}

.mp-status-dot-active {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  animation: mp-pulse-dot 2s ease-in-out infinite;
}

.mp-status-offline-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--mp-color-text-muted);
  background: var(--mp-color-bg-subtle);
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
  font-family: var(--mp-font);
}

/* "Aktif Hari Ini" badge — soft green */
.mp-badge-aktif-hari-ini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid rgba(22,163,74,0.08);
  font-family: var(--mp-font);
}

@keyframes mp-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ==================== RATING ROW ==================== */
.mp-rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.mp-stars {
  display: flex;
  align-items: center;
  gap: 1px;
}

.mp-rating-text {
  font-size: 11px;
  font-weight: 600;
  color: #f59e0b;
  font-family: var(--mp-font);
}

.mp-review-count {
  font-weight: 400;
  color: var(--mp-color-text-muted);
  font-size: 10px;
  font-family: var(--mp-font);
}

/* [RATING FIX] Unified rating display: ⭐ 4.5 (12 ulasan) */
.mp-rating-display {
  font-size: 12px;
  font-weight: 600;
  color: #d97706;
  font-family: var(--mp-font);
  letter-spacing: -0.01em;
}

.mp-no-rating {
  font-size: 11px;
  color: #9ca3af;
  font-style: italic;
  font-family: var(--mp-font);
}

/* [RATING FIX] Driver profile / popup rating text */
.dp-rating-text {
  font-size: 14px;
  font-weight: 600;
  color: #d97706;
  font-family: var(--mp-font);
}

.mpp-rating-section .mp-rating-display {
  font-size: 15px;
  font-weight: 700;
}

/* ==================== LOCATION ==================== */
.mp-location {
  font-size: 11px;
  color: var(--mp-color-text-secondary);
  margin-top: 3px;
  display: flex;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.4;
  overflow: hidden;
  font-family: var(--mp-font);
}

.mp-location svg {
  flex-shrink: 0;
  color: var(--mp-color-text-muted);
  margin-top: 1px;
}

.mp-location-text {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

/* ==================== TAGS — Pill kecil premium ==================== */
.mp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.mp-tag {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f3f4f6;
  color: var(--mp-color-text-secondary);
  white-space: nowrap;
  letter-spacing: 0.1px;
  font-family: var(--mp-font);
}

.mp-tag.blue-tag { background: #eff6ff; color: #2563eb; }
.mp-tag.red-tag { background: #fef2f2; color: #dc2626; }
.mp-tag.purple-tag { background: #faf5ff; color: #9333ea; }
.mp-tag.green-tag { background: #f0fdf4; color: #16a34a; }
.mp-tag.orange-tag { background: #fff7ed; color: #ea580c; }
.mp-tag.teal-tag { background: #f0fdfa; color: #0d9488; }

/* ==================== PRICE BADGE ON CARDS ==================== */
.mp-price-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 5px;
  display: inline-block;
  font-family: var(--mp-font);
}

.mp-price-badge.blue-price { background: #eff6ff; color: #2563eb; }
.mp-price-badge.red-price { background: #fef2f2; color: #dc2626; }
.mp-price-badge.purple-price { background: #faf5ff; color: #9333ea; }
.mp-price-badge.amber-price { background: #fffbeb; color: #d97706; }
.mp-price-badge.indigo-price { background: #eef2ff; color: #4f46e5; }
.mp-price-badge.green-price { background: #f0fdf4; color: #16a34a; }
.mp-price-badge.orange-price { background: #fff7ed; color: #ea580c; }
.mp-price-badge.teal-price { background: #f0fdfa; color: #0d9488; }

/* ==================== DESCRIPTION ==================== */
.mp-desc {
  font-size: 11px;
  color: var(--mp-color-text-muted);
  margin-top: 5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--mp-font);
}

/* ==================== BOTTOM: WA BUTTON — Compact Premium ==================== */
.mp-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  gap: var(--mp-spacing-sm);
}
.mp-card-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.mp-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #22c55e;
  color: white;
  font-size: 0;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(34,197,94,0.25);
  flex-shrink: 0;
  padding: 0;
}

.mp-wa-btn svg {
  width: 18px;
  height: 18px;
}

.mp-wa-btn:active {
  transform: scale(0.92);
}

.mp-wa-btn:hover {
  box-shadow: 0 4px 10px rgba(34,197,94,0.35);
}

.mp-wa-label {
  font-size: 10px;
  color: var(--mp-color-text-muted);
  font-weight: 500;
  font-family: var(--mp-font);
  flex: 1;
  overflow-wrap: break-word;   /* wrap instead of truncate */
}

/* ==================== MP LIST HEADER ==================== */
.mp-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--mp-spacing-xl) var(--mp-spacing-lg) var(--mp-spacing-sm);
  font-family: var(--mp-font);
}

.mp-list-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--mp-color-text);
  letter-spacing: -0.2px;
}

.mp-list-count {
  font-size: 11px;
  font-weight: 600;
  color: #3b82f6;
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--mp-font);
}

/* ==================== MP CATEGORY TABS ==================== */
.mp-category-tabs {
  display: flex;
  gap: 8px;
  padding: 0 var(--mp-spacing-lg) var(--mp-spacing-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-family: var(--mp-font);
}
.mp-category-tabs::-webkit-scrollbar { display: none; }

.mp-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--mp-font);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  line-height: 1.2;
}
.mp-cat-tab svg {
  flex-shrink: 0;
  transition: stroke 0.2s ease;
}
.mp-cat-tab:active {
  transform: scale(0.96);
}

/* Active state — color dinamis via inline style pada container */
.mp-cat-tab.active {
  border-color: transparent;
  color: #ffffff;
}
.mp-cat-tab.active svg {
  stroke: #ffffff;
}

/* Color variants for active tabs — matches service colors */
/* HotelKita = red */
[data-service="hotelkita"].mp-cat-tab.active,
.mp-category-tabs:has([data-service="hotelkita"]) .mp-cat-tab.active {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 2px 8px rgba(239,68,68,0.25);
}
[data-service="hotelkita"].mp-cat-tab.active svg { stroke: #fff; }

/* TiketKita = blue */
[data-service="tiketkita"].mp-cat-tab.active,
.mp-category-tabs:has([data-service="tiketkita"]) .mp-cat-tab.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,130,246,0.25);
}
[data-service="tiketkita"].mp-cat-tab.active svg { stroke: #fff; }

/* KulinerKita = purple */
[data-service="kulinerkita"].mp-cat-tab.active,
.mp-category-tabs:has([data-service="kulinerkita"]) .mp-cat-tab.active {
  background: #a855f7;
  border-color: #a855f7;
  color: #fff;
  box-shadow: 0 2px 8px rgba(168,85,247,0.25);
}
[data-service="kulinerkita"].mp-cat-tab.active svg { stroke: #fff; }

[data-service="rentalkita"].mp-cat-tab.active,
.mp-category-tabs:has([data-service="rentalkita"]) .mp-cat-tab.active {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
  box-shadow: 0 2px 8px rgba(217,119,6,0.25);
}
[data-service="rentalkita"].mp-cat-tab.active svg { stroke: #fff; }

[data-service="jasakita"].mp-cat-tab.active,
.mp-category-tabs:has([data-service="jasakita"]) .mp-cat-tab.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,0.25);
}
[data-service="jasakita"].mp-cat-tab.active svg { stroke: #fff; }

/* ==================== MP EMPTY STATE ==================== */
.mp-empty {
  padding: 48px var(--mp-spacing-lg);
  text-align: center;
  font-family: var(--mp-font);
}

.mp-empty svg { margin-bottom: var(--mp-spacing-md); }

.mp-empty-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--mp-color-text-secondary);
  margin: 0;
}

.mp-empty-desc {
  font-size: 12px;
  margin-top: 4px;
  color: var(--mp-color-text-muted);
}

/* ==================== MP TRUST BADGE ==================== */
.mp-trust-badge {
  display: flex;
  align-items: center;
  gap: var(--mp-spacing-md);
  padding: var(--mp-spacing-md) var(--mp-spacing-lg);
  margin: var(--mp-spacing-sm) var(--mp-spacing-lg) 28px;
  background: var(--mp-color-bg);
  border-radius: var(--mp-radius-xl);
  border: 1px solid rgba(34,197,94,0.08);
  box-shadow: var(--mp-shadow-card);
  cursor: pointer;
  transition: box-shadow 0.2s;
  font-family: var(--mp-font);
}

.mp-trust-badge:hover {
  box-shadow: var(--mp-shadow-card-hover);
}

.mp-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--mp-radius-md);
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #16a34a;
}

.mp-trust-text {
  flex: 1;
}

.mp-trust-title {
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
  margin: 0;
  font-family: var(--mp-font);
}

.mp-trust-desc {
  font-size: 11px;
  color: var(--mp-color-text-secondary);
  margin: 2px 0 0;
  line-height: 1.4;
  font-family: var(--mp-font);
}

.mp-trust-arrow {
  flex-shrink: 0;
  color: #d1d5db;
}

/* ==================== MP INFO BOX (backward compat) ==================== */
.mp-info-box {
  display: flex;
  align-items: flex-start;
  gap: var(--mp-spacing-md);
  padding: var(--mp-spacing-md) var(--mp-spacing-lg);
  margin: 4px 0 24px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-radius: var(--mp-radius-xl);
  border: 1px solid rgba(34,197,94,0.08);
  font-family: var(--mp-font);
}

.mp-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--mp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mp-info-content { flex: 1; }

.mp-info-title {
  font-size: 13px;
  font-weight: 600;
  color: #16a34a;
  margin: 0 0 2px;
  font-family: var(--mp-font);
}

.mp-info-desc {
  font-size: 12px;
  color: var(--mp-color-text-secondary);
  margin: 0;
  line-height: 1.5;
  font-family: var(--mp-font);
}

/* ==================== MP SERVICE HEADER ==================== */
.mp-service-header {
  display: flex;
  align-items: center;
  gap: var(--mp-spacing-md);
  padding: var(--mp-spacing-lg) var(--mp-spacing-lg) var(--mp-spacing-md);
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--mp-color-border);
  font-family: var(--mp-font);
}

.mp-back-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--mp-radius-md);
  background: var(--mp-color-bg-subtle);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
  flex-shrink: 0;
}

.mp-back-btn:active {
  transform: scale(0.92);
  background: #e5e7eb;
}

.mp-service-header-text {
  flex: 1;
  min-width: 0;
}

.mp-service-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
  font-family: var(--mp-font);
}

.mp-service-subtitle {
  font-size: 12px;
  color: var(--mp-color-text-muted);
  margin-top: 2px;
  font-weight: 400;
  font-family: var(--mp-font);
}

/* ==================== MP MAP CONTAINER — HIDDEN for marketplace ==================== */
/* Map is ONLY for transport services (becakita, ojekita, antarkita).
   For marketplace services, map is NOT rendered at all. */
.mp-map-container {
  display: none;
}

.mp-map-container.mp-map-visible {
  display: block;
  position: relative;
  overflow: hidden;
  margin: var(--mp-spacing-md) var(--mp-spacing-lg);
  border-radius: var(--mp-radius-xl);
  box-shadow: var(--mp-shadow-card);
}

.mp-map-container.mp-map-visible .service-realtime-map {
  width: 100%;
  height: 200px;
  border-radius: var(--mp-radius-xl);
}

/* ============================================================
   POPUP / BOTTOM SHEET — Detail Layanan
   ============================================================ */
.mpp {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--mp-font);
}

/* Overlay */
.mpp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.40);
  transition: opacity 0.25s;
}

.mpp-overlay.mpp-fade-out {
  opacity: 0;
}

/* Sheet */
.mpp-sheet {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  background: white;
  border-radius: 28px 28px 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.mpp-sheet.mpp-animate-in {
  transform: translateY(0);
}

.mpp-sheet.mpp-animate-out {
  transform: translateY(100%);
}

/* Handle bar */
.mpp-handle {
  width: 40px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 4px;
  margin: 12px auto 0;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Close button */
.mpp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  color: #374151;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

.mpp-close:active { transform: scale(0.9); }

/* Cover image */
.mpp-cover {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin-top: -16px;
}

.mpp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mpp-cover-gradient {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mpp-cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
  pointer-events: none;
}

/* Body */
.mpp-body {
  padding: var(--mp-spacing-lg) var(--mp-spacing-xl) 32px;
}

/* Header row */
.mpp-header-row {
  display: flex;
  align-items: flex-start;
  gap: var(--mp-spacing-md);
}

.mpp-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--mp-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-family: var(--mp-font);
}

.mpp-avatar.blue-bg { background: #3b82f6; }
.mpp-avatar.red-bg { background: #ef4444; }
.mpp-avatar.purple-bg { background: #a855f7; }
.mpp-avatar.green-bg { background: #22c55e; }
.mpp-avatar.orange-bg { background: #f97316; }
.mpp-avatar.teal-bg { background: #14b8a6; }
.mpp-avatar-photo {
  overflow: hidden;
  padding: 0;
}
.mpp-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--mp-radius-lg);
}

.mpp-header-info {
  flex: 1;
  min-width: 0;
}

.mpp-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--mp-color-text);
  line-height: 1.3;
}

.mpp-service-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--mp-radius-sm);
  margin-top: 5px;
}

.mpp-service-badge svg {
  width: 12px;
  height: 12px;
}

/* Rating */
.mpp-rating-section {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--mp-spacing-md);
}

.mpp-stars {
  display: flex;
  align-items: center;
  gap: 1px;
}

.mpp-rating-num {
  font-size: 15px;
  font-weight: 700;
  color: #f59e0b;
}

.mpp-review-count {
  font-size: 11px;
  color: var(--mp-color-text-muted);
}

/* Operating Hours in Popup */
.mpp-hours-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--mp-color-text-secondary);
  margin-top: var(--mp-spacing-sm);
  font-weight: 500;
}

.mpp-hours-row svg {
  flex-shrink: 0;
  color: var(--mp-color-text-muted);
}

/* Location */
.mpp-location-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--mp-color-text-secondary);
  margin-top: var(--mp-spacing-sm);
}

.mpp-location-row svg {
  flex-shrink: 0;
  color: var(--mp-color-text-muted);
}

/* Bio */
.mpp-bio {
  font-size: 12px;
  color: var(--mp-color-text-secondary);
  line-height: 1.6;
  margin-top: var(--mp-spacing-md);
}

/* Detail sections */
.mpp-section {
  margin-top: var(--mp-spacing-lg);
  padding: var(--mp-spacing-md) var(--mp-spacing-lg);
  background: var(--mp-color-bg-subtle);
  border-radius: var(--mp-radius-xl);
  border: 1px solid #f3f4f6;
}

.mpp-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--mp-color-text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--mp-spacing-md);
}

.mpp-section-title svg {
  flex-shrink: 0;
}

.mpp-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--mp-spacing-sm) 0;
  border-bottom: 1px solid #f3f4f6;
  gap: var(--mp-spacing-md);
}

.mpp-detail-row:last-child {
  border-bottom: none;
}

.mpp-label {
  font-size: 11px;
  color: var(--mp-color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.mpp-value {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-align: right;
  word-break: break-word;
}

.mpp-note {
  font-size: 11px;
  color: var(--mp-color-text-muted);
  line-height: 1.5;
  margin: var(--mp-spacing-sm) 0 0;
}

/* Price range banner */
.mpp-price-range-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--mp-spacing-md) var(--mp-spacing-lg);
  border-radius: var(--mp-radius-lg);
  margin-bottom: var(--mp-spacing-md);
  border: 1px solid;
}

.mpp-range-label {
  font-size: 11px;
  color: var(--mp-color-text-secondary);
  font-weight: 500;
}

.mpp-range-value {
  font-size: 15px;
  font-weight: 800;
}

/* Price hints / Menu items / Room details */
.mpp-price-hint {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mpp-price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--mp-spacing-sm) var(--mp-spacing-md);
  background: white;
  border-radius: var(--mp-radius-md);
  border: 1px solid #f3f4f6;
}

.mpp-price-item span:first-child {
  font-size: 12px;
  color: #374151;
}

.mpp-price-range {
  font-size: 12px;
  font-weight: 700;
  color: var(--mp-color-text);
}

/* ==================== PHOTO GALLERY IN POPUP ==================== */
.mpp-photos-section {
  margin-top: var(--mp-spacing-lg);
}

.mpp-photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: var(--mp-spacing-sm);
}

.mpp-photo-thumb {
  position: relative;
  aspect-ratio: 3/2;
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.mpp-photo-thumb:active {
  transform: scale(0.95);
}

.mpp-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mpp-photo-thumb:hover {
  opacity: 0.88;
}

/* Safety box */
.mpp-safety {
  display: flex;
  align-items: flex-start;
  gap: var(--mp-spacing-md);
  padding: var(--mp-spacing-md) var(--mp-spacing-lg);
  background: #f0fdf4;
  border-radius: var(--mp-radius-xl);
  border: 1px solid rgba(34,197,94,0.08);
  margin-top: var(--mp-spacing-lg);
}

.mpp-safety-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--mp-radius-md);
  background: rgba(34,197,94,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #16a34a;
}

.mpp-safety-text { flex: 1; }

.mpp-safety-title {
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 2px;
}

.mpp-safety-desc {
  font-size: 11px;
  color: var(--mp-color-text-secondary);
  line-height: 1.5;
}

/* WhatsApp CTA */
.mpp-wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mp-spacing-sm);
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: var(--mp-radius-xl);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: var(--mp-spacing-xl);
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  font-family: var(--mp-font);
}

.mpp-wa-cta:active {
  transform: scale(0.97);
}

/* ============================================================
   DASHBOARD: Marketplace Editable Fields
   ============================================================ */
.dash-mp-edit-section {
  display: flex;
  flex-direction: column;
  gap: var(--mp-spacing-md);
  font-family: var(--mp-font);
}

.dash-mp-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dash-mp-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  font-family: var(--mp-font);
}

.dash-mp-label small {
  font-weight: 400;
  color: var(--mp-color-text-muted);
  font-size: 11px;
}

.dash-mp-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--mp-radius-md);
  font-size: 14px;
  color: var(--mp-color-text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  outline: none;
  font-family: var(--mp-font);
}

.dash-mp-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dash-mp-input::placeholder {
  color: #d1d5db;
}

.dash-mp-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--mp-radius-md);
  font-size: 14px;
  color: var(--mp-color-text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  outline: none;
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
  line-height: 1.5;
}

.dash-mp-textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dash-mp-textarea::placeholder {
  color: #d1d5db;
}

/* Checkbox row */
.dash-mp-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mp-spacing-sm);
}

.dash-mp-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  padding: 6px var(--mp-spacing-md);
  border-radius: 10px;
  background: var(--mp-color-bg-subtle);
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
  font-family: var(--mp-font);
}

.dash-mp-checkbox:has(input:checked) {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
}

.dash-mp-checkbox input[type="checkbox"] {
  accent-color: #3b82f6;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ==================== DASHBOARD CATEGORY CARDS ==================== */
.dash-mp-cat-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-mp-cat-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  font-family: var(--mp-font);
  user-select: none;
  text-align: center;
  min-width: 80px;
}
.dash-mp-cat-card .cat-card-top {
  display: flex;
  align-items: center;
  gap: 5px;
}
.dash-mp-cat-card svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: all 0.2s ease;
}
.dash-mp-cat-card:active {
  transform: scale(0.96);
}
.dash-mp-cat-card.active {
  border-color: transparent;
  color: #ffffff;
}
.dash-mp-cat-card.active svg {
  stroke: #ffffff;
}

/* Color variants for dashboard category cards — based on parent service context */
/* The active color is determined by the currently rendered service type.
   We use inline background via JS for simplicity, but provide fallbacks. */
.dash-mp-cat-card.active[data-color="red"],
.dash-mp-edit-section .dash-mp-cat-card.active {
  /* Default: will be overridden by inline style, but provide a safe fallback */
}

/* ==================== DEPARTURE SCHEDULE MANAGEMENT (Dashboard TiketKita) ==================== */
.dept-sch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
  min-height: 24px;
}

.dept-sch-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 6px 4px 8px;
  transition: all 0.15s;
}

.dept-sch-item svg {
  flex-shrink: 0;
}

.dept-sch-item:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.dept-sch-time {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
  line-height: 1;
}

.dept-sch-wib {
  font-size: 8px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1;
}

.dept-sch-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: none;
  background: rgba(239,68,68,0.06);
  cursor: pointer;
  transition: all 0.15s;
  margin-left: 1px;
  padding: 0;
  flex-shrink: 0;
}

.dept-sch-remove:hover {
  background: rgba(239,68,68,0.15);
}

.dept-sch-remove:active {
  transform: scale(0.9);
}

.dept-sch-remove svg {
  width: 10px;
  height: 10px;
}

.dept-sch-empty {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  padding: 8px 6px;
  width: 100%;
  font-style: italic;
  line-height: 1.3;
}

.dept-sch-add-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dept-sch-time-input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  font-family: 'Inter', sans-serif;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
  line-height: 1.2;
}

.dept-sch-time-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.08);
}

.dept-sch-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 7px 10px;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 1px 6px rgba(59,130,246,0.2);
  flex-shrink: 0;
  line-height: 1.2;
}

.dept-sch-add-btn svg {
  width: 12px;
  height: 12px;
}

.dept-sch-add-btn:active {
  transform: scale(0.95);
}

/* Departure destination input */
.dept-dest-input {
  padding: 7px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #1e293b;
  font-family: 'Inter', sans-serif;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  line-height: 1.3;
}

.dept-dest-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.08);
}

.dept-dest-input::placeholder {
  color: #cbd5e1;
}

/* ==================== RESPONSIVE: DASHBOARD DEPARTURE ==================== */
@media (max-width: 320px) {
  .dept-sch-item {
    padding: 3px 5px 3px 6px;
    gap: 2px;
    border-radius: 6px;
  }
  .dept-sch-item svg {
    width: 10px;
    height: 10px;
  }
  .dept-sch-time { font-size: 11px; }
  .dept-sch-wib { font-size: 7px; }
  .dept-sch-remove { width: 16px; height: 16px; border-radius: 4px; }
  .dept-sch-remove svg { width: 8px; height: 8px; }
  .dept-sch-empty { font-size: 10px; padding: 6px 4px; }
  .dept-sch-time-input { padding: 6px 8px; font-size: 12px; border-radius: 7px; }
  .dept-sch-add-btn { padding: 6px 8px; font-size: 11px; border-radius: 7px; }
  .dept-sch-add-btn svg { width: 10px; height: 10px; }
  .dept-dest-input { padding: 6px 8px; font-size: 11px; }
}

/* Save button */
.dash-mp-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mp-spacing-sm);
  width: 100%;
  padding: 13px 0;
  border: none;
  border-radius: var(--mp-radius-lg);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  font-family: var(--mp-font);
}

.dash-mp-save-btn:active {
  transform: scale(0.97);
}

/* Preview button */
.dash-mp-preview-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mp-spacing-sm);
  width: 100%;
  padding: var(--mp-spacing-md) 0;
  border: 2px dashed #d1d5db;
  border-radius: var(--mp-radius-lg);
  color: var(--mp-color-text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: var(--mp-spacing-sm);
  background: white;
  transition: all 0.2s;
  font-family: var(--mp-font);
}

.dash-mp-preview-btn:active {
  transform: scale(0.97);
  border-color: #9ca3af;
  color: #374151;
}

/* ==================== DASHBOARD: Photo Uploader Widget ==================== */
.dash-photo-uploader {
  margin-top: 6px;
}

.dash-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.dash-photo-thumb {
  position: relative;
  width: 80px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: var(--mp-color-bg-subtle);
}

.dash-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dash-photo-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239,68,68,0.9);
  color: white;
  border: none;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.dash-photo-delete:hover {
  background: #dc2626;
}

.dash-photo-delete:active {
  transform: scale(0.9);
}

.dash-photo-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  background: white;
  color: var(--mp-color-text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--mp-font);
}

.dash-photo-add-btn:hover {
  border-color: #9ca3af;
  color: #374151;
  background: #f9fafb;
}

.dash-photo-add-btn:active {
  transform: scale(0.97);
}

.dash-photo-progress {
  margin-top: 8px;
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
  height: 28px;
  position: relative;
}

.dash-photo-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: 8px;
  transition: width 0.3s ease;
  width: 0%;
}

.dash-photo-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--mp-color-text);
  font-family: var(--mp-font);
}

/* ==================== DASHBOARD: Read-Only Validated Fields ==================== */
/* Data pribadi (nama, WhatsApp, alamat, plat nomor) yang sudah diverifikasi
   TIDAK dapat diubah untuk mencegah penipuan dan tindak kecurangan. */

/* Notice banner above read-only section */
.dash-readonly-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  margin-bottom: 14px;
  font-family: var(--mp-font);
}

.dash-readonly-notice svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.dash-readonly-notice span {
  font-size: 11px;
  color: #92400e;
  line-height: 1.5;
  font-weight: 500;
}

/* Locked label — shows lock icon before label text */
.dash-locked-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9ca3af !important;
}

.dash-locked-label svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Read-only input styling — visually distinct from editable inputs */
.dash-input-readonly {
  background: #f9fafb !important;
  color: #6b7280 !important;
  border-color: #e5e7eb !important;
  cursor: not-allowed !important;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  opacity: 0.85;
  border-left: 3px solid #e5e7eb !important;
}

.dash-input-readonly:focus {
  border-color: #e5e7eb !important;
  box-shadow: none !important;
}

/* ==================== RESPONSIVE — MOBILE FIRST ==================== */

/* Very small phones (≤ 360px) — e.g. iPhone SE 1st gen, small Androids */
@media (max-width: 360px) {
  .mp-hero-section {
    height: 130px;
    margin: var(--mp-spacing-sm) var(--mp-spacing-sm) var(--mp-spacing-md);
    padding: var(--mp-spacing-sm);
  }
  .mp-hero-title { font-size: 18px; }
  .mp-hero-subtitle { font-size: 11px; }
  .mp-hero-search { height: 34px; padding: 0 8px; }
  .mp-hero-search input { font-size: 11px; }
  .mp-hero-section.has-hero-img { height: 130px; }

  .mp-card {
    margin: 0 var(--mp-spacing-sm) var(--mp-spacing-sm);
    border-radius: var(--mp-radius-lg);
  }
  .mp-card-photo {
    width: 80px;
    min-width: 80px;
    aspect-ratio: 1 / 1;      /* keep square */
    margin: 8px;
    border-radius: var(--mp-radius-md);
  }
  .mp-card-img,
  .mp-card-img-fallback {
    border-radius: var(--mp-radius-md);
  }
  .mp-card-content {
    padding: 8px 8px 6px 2px;
  }
  .mp-card-name {
    font-size: 12px;
    line-height: 1.25;
    /* Still NO nowrap / ellipsis — name always fully visible */
  }
  .mp-card-top {
    gap: 4px;
  }
  .mp-badge-tersedia, .mp-badge-offline { font-size: 8px; padding: 2px 5px; }
  .mp-badge-aktif-hari-ini { font-size: 7px; padding: 2px 5px; }
  .mp-status-active { font-size: 7px; padding: 2px 5px; }
  .mp-wa-btn { width: 30px; height: 30px; }
  .mp-wa-btn svg { width: 14px; height: 14px; }
  .mp-wa-label { font-size: 8px; }
  .mp-location { font-size: 10px; }
  .mp-tag { font-size: 7px; padding: 2px 5px; }
  .mp-price-badge { font-size: 8px; }
  .mp-rating-text { font-size: 9px; }
  .mp-review-count { font-size: 8px; }
  .mp-desc { font-size: 10px; }
  .mp-list-header { padding: var(--mp-spacing-lg) var(--mp-spacing-sm) var(--mp-spacing-sm); }
  .mp-list-header h3 { font-size: 14px; }
  .mp-category-tabs { padding: 0 var(--mp-spacing-sm) var(--mp-spacing-sm); gap: 6px; }
  .mp-cat-tab { padding: 6px 10px; font-size: 11px; }
  .mp-cat-tab svg { width: 12px; height: 12px; }
  .mp-trust-badge { margin: var(--mp-spacing-sm) var(--mp-spacing-sm) 20px; padding: var(--mp-spacing-sm); gap: 8px; }
  .mp-trust-icon { width: 32px; height: 32px; }
  .mp-trust-title { font-size: 11px; }
  .mp-trust-desc { font-size: 9px; }

  .mpp-cover { height: 130px; }
  .mpp-body { padding: var(--mp-spacing-sm) var(--mp-spacing-md) 24px; }
  .mpp-name { font-size: 15px; }
  .mpp-avatar { width: 40px; height: 40px; font-size: 16px; }
  .mpp-photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .dash-mp-checkbox { padding: 4px 6px; font-size: 11px; }
  .dash-mp-cat-card { padding: 6px 10px; font-size: 11px; }
  .dash-mp-cat-card svg { width: 14px; height: 14px; }
  .dash-mp-cat-cards { gap: 6px; }
}

/* Small phones (361px - 420px) — most common budget Androids */
@media (min-width: 361px) and (max-width: 420px) {
  .mp-hero-section {
    height: 140px;
    margin: var(--mp-spacing-sm) var(--mp-spacing-md) var(--mp-spacing-md);
    padding: var(--mp-spacing-md);
  }
  .mp-hero-title { font-size: 19px; }
  .mp-hero-subtitle { font-size: 12px; }
  .mp-hero-search { height: 36px; padding: 0 10px; }
  .mp-hero-search input { font-size: 12px; }
  .mp-hero-section.has-hero-img { height: 140px; }

  .mp-card {
    margin: 0 var(--mp-spacing-md) var(--mp-spacing-sm);
    border-radius: var(--mp-radius-lg);
  }
  .mp-card-photo {
    width: 88px;
    min-width: 88px;
    aspect-ratio: 1 / 1;      /* keep square */
    margin: 10px;
    border-radius: var(--mp-radius-md);
  }
  .mp-card-img,
  .mp-card-img-fallback {
    border-radius: var(--mp-radius-md);
  }
  .mp-card-content {
    padding: 10px 10px 8px 2px;
  }
  .mp-card-name {
    font-size: 13px;
    line-height: 1.25;
    /* Still NO nowrap / ellipsis */
  }
  .mp-badge-tersedia, .mp-badge-offline { font-size: 8px; padding: 2px 6px; }
  .mp-badge-aktif-hari-ini { font-size: 8px; padding: 2px 6px; }
  .mp-status-active { font-size: 8px; padding: 2px 6px; }
  .mp-wa-btn { width: 32px; height: 32px; }
  .mp-wa-btn svg { width: 16px; height: 16px; }
  .mp-wa-label { font-size: 9px; }
  .mp-location { font-size: 10px; }
  .mp-tag { font-size: 8px; padding: 2px 6px; }
  .mp-price-badge { font-size: 9px; }
  .mp-rating-text { font-size: 10px; }
  .mp-review-count { font-size: 9px; }
  .mp-desc { font-size: 10px; }
  .mp-list-header { padding: var(--mp-spacing-lg) var(--mp-spacing-md) var(--mp-spacing-sm); }
  .mp-list-header h3 { font-size: 15px; }
  .mp-category-tabs { padding: 0 var(--mp-spacing-md) var(--mp-spacing-sm); gap: 7px; }
  .mp-cat-tab { padding: 7px 12px; font-size: 11.5px; }
  .mp-trust-badge { margin: var(--mp-spacing-sm) var(--mp-spacing-md) 24px; padding: var(--mp-spacing-md); gap: 10px; }
  .mp-trust-icon { width: 36px; height: 36px; }
  .mp-trust-title { font-size: 12px; }
  .mp-trust-desc { font-size: 10px; }

  .mpp-cover { height: 140px; }
  .mpp-body { padding: var(--mp-spacing-md) var(--mp-spacing-lg) 28px; }
  .mpp-name { font-size: 16px; }
  .mpp-avatar { width: 44px; height: 44px; font-size: 18px; }
  .mpp-photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .dash-mp-checkbox { padding: 5px 8px; font-size: 12px; }
  .dash-mp-cat-card { padding: 7px 12px; font-size: 12px; }
  .dash-mp-cat-card svg { width: 15px; height: 15px; }
  .dash-mp-cat-cards { gap: 7px; }
}

/* Standard phones (421px - 499px) — default target */
/* (No override needed — default styles target this range) */

/* Large phones / small tablets (500px+) */
@media (min-width: 500px) {
  .mp-card-photo {
    width: 110px;
    min-width: 110px;
    aspect-ratio: 1 / 1;
  }
  .mp-hero-section {
    height: 160px;
  }
  .mp-hero-section.has-hero-img { height: 175px; }
  .mpp-sheet {
    border-radius: 28px;
    margin-bottom: 20px;
    max-height: 88vh;
  }
  .mpp-photo-gallery { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet / desktop (768px+) */
@media (min-width: 768px) {
  .mp-card-photo {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 1 / 1;
  }
  .mp-hero-section {
    height: 170px;
  }
  .mp-hero-section.has-hero-img { height: 190px; }
  .mp-card-name { font-size: 15px; }
}

/* ==================== SCROLLBAR STYLING ==================== */
.mpp-sheet::-webkit-scrollbar {
  width: 4px;
}
.mpp-sheet::-webkit-scrollbar-track {
  background: transparent;
}
.mpp-sheet::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 4px;
}

/* ========================================================================
   DASHBOARD APP
   Same structure · Cleaner styling · Welcome card · Stats grid · Bottom nav
   ======================================================================== */
.dashboard-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--g50);
  position: relative;
}
.dashboard-app.hidden { display: none !important; }

.dash-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  height: 52px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.dash-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-header-logo-img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.dash-header-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.dash-header-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  color: white;
}
.dash-header-badge.green-badge { background: var(--green); }
.dash-header-badge.orange-badge { background: var(--orange); }
.dash-header-badge.blue-badge { background: var(--blue); }
.dash-header-badge.red-badge { background: var(--red); }
.dash-header-badge.purple-badge { background: var(--purple); }
.dash-header-badge.teal-badge { background: var(--teal); }
.dash-logout-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--red);
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  background: white;
}
.dash-logout-btn:hover { background: var(--red-bg); }

/* Dashboard Header Right — notification + support icon buttons */
.dash-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-header-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}
.dash-header-icon-btn svg {
  width: 18px;
  height: 18px;
  color: #4b5563;
}
.dash-header-icon-btn:hover {
  background: #e5e7eb;
}
.dash-header-icon-btn:active {
  transform: scale(0.94);
}
.dash-header-notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid white;
}

/* Dashboard Support Page */
.dash-support-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
@supports (height: 100dvh) {
  .dash-support-page {
    height: 100%;
  }
}
.dash-support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
  background: white;
}
.dash-support-header h3 {
  margin: 0 !important;
  font-size: 16px !important;
  color: #1f2937;
}
.dash-support-header-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
}
.dash-support-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0; /* critical for nested flex overflow */
}
.dash-support-container .support-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0; /* critical for nested flex overflow */
  height: 100%;
}
.dash-support-container .support-view {
  flex: 1;
  min-height: 0; /* critical for nested flex overflow */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dash-support-container .support-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  min-height: 0; /* critical for nested flex overflow */
}
.dash-support-container .support-input-area {
  padding: 8px 16px 12px;
  border-top: 1px solid #f3f4f6;
  background: white;
  flex-shrink: 0;
}
.dash-support-container .support-tab-toggle {
  flex-shrink: 0;
}
.dash-support-container .support-status-bar {
  flex-shrink: 0;
}
.dash-support-container .support-empty-state {
  padding: 20px 16px;
}

.dash-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 72px;
  -webkit-overflow-scrolling: touch;
}
/* When support tab is active, dash-main becomes a fixed-height flex container
   so the support page can fill it entirely and handle its own scrolling.
   Must account for: dash-header (52px) + floating bottom nav (72px + 16px offset) */
.dash-main.dash-main-support {
  overflow: hidden;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  flex: none;
  height: calc(100vh - 52px - 88px);
}
@supports (height: 100dvh) {
  .dash-main.dash-main-support {
    height: calc(100dvh - 52px - 88px);
  }
}
/* When support tab is active, dashboard-app must be exactly 100vh (not min-height)
   so dash-main gets a fixed height and the support page can fill it */
.dashboard-app.dash-app-support {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}
.dash-page {
  display: none;
  padding: 20px;
  animation: dashPageIn 0.3s ease;
}
.dash-page.active { display: block; }
@keyframes dashPageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dash-bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  border-radius: var(--r-3xl);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 100;
}
.dash-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 12px;
  color: var(--g400);
  transition: all 0.2s;
  border-radius: var(--r);
  position: relative;
}
.dash-nav-item span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.dash-nav-item.active { color: var(--green); }
.dash-nav-item.active.green-nav { color: var(--green); }
.dash-nav-item.active.orange-nav { color: var(--orange); }
.dash-nav-item.active.blue-nav { color: var(--blue); }
.dash-nav-item.active.red-nav { color: var(--red); }
.dash-nav-item.active.purple-nav { color: var(--purple); }
.dash-nav-item.active.teal-nav { color: var(--teal); }

/* Dashboard Components */
.dash-welcome {
  padding: 24px;
  border-radius: var(--card-radius-lg);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.dash-welcome.green-dash {
  background: var(--green);
  color: white;
  box-shadow: var(--shadow-glow-green);
}
.dash-welcome.orange-dash {
  background: var(--orange);
  color: white;
  box-shadow: var(--shadow-glow-orange);
}
.dash-welcome.blue-dash {
  background: var(--blue);
  color: white;
  box-shadow: var(--shadow-glow-blue);
}
.dash-welcome.red-dash {
  background: var(--red);
  color: white;
  box-shadow: var(--shadow-glow-red);
}
.dash-welcome.purple-dash {
  background: var(--purple);
  color: white;
  box-shadow: var(--shadow-glow-purple);
}
.dash-welcome.teal-dash {
  background: var(--teal);
  color: white;
  box-shadow: var(--shadow-glow-teal);
}
.dash-welcome.amber-dash {
  background: #d97706;
  color: white;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3);
}
.dash-welcome.indigo-dash {
  background: #4f46e5;
  color: white;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}
.dash-welcome h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.dash-welcome p {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
  line-height: 1.5;
}

/* Stats Grid: 2 columns */
.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.dash-stat-card {
  background: white;
  border-radius: var(--card-radius);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.dash-stat-card .label { font-size: 12px; color: var(--g400); font-weight: 500; }
.dash-stat-card .value {
  font-size: 24px;
  font-weight: 800;
  color: var(--g900);
  margin-top: 4px;
  letter-spacing: -0.5px;
}
.dash-stat-card .change {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  margin-top: 2px;
}

.dash-section {
  background: white;
  border-radius: var(--card-radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.dash-section h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--g800);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-specific-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dash-specific-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--g100);
}
.dash-specific-row:last-child { border-bottom: none; }
.dash-specific-row .label { font-size: 13px; color: var(--g500); font-weight: 500; }
.dash-specific-row .value {
  font-size: 13px;
  font-weight: 600;
  color: var(--g800);
  text-align: right;
  max-width: 60%;
}

.dash-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.dash-quick-action {
  background: white;
  border-radius: var(--card-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s;
}
.dash-quick-action:active { transform: scale(0.97); }
.dash-quick-action:hover { box-shadow: var(--shadow-sm); }
.dash-quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-quick-action span { font-size: 12px; font-weight: 600; color: var(--g700); }

/* Photo Gallery */
.dash-photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.dash-photo-item {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2px dashed var(--g300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  position: relative;
}
.dash-photo-item:hover { border-color: var(--green); }
.dash-photo-item.has-photo { border: none; }
.dash-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.add-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--g400);
}
.add-icon span { font-size: 10px; }
.remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Profile form in dashboard */
.dash-profile-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dash-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: white;
  position: relative;
}
.dash-profile-avatar .edit-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s;
}
.dash-profile-avatar .edit-badge:hover {
  transform: scale(1.15);
}
.dash-profile-avatar .edit-badge:active {
  transform: scale(0.95);
}

.dash-subscription {
  background: var(--g50);
  border-radius: var(--card-radius);
  padding: 16px;
}
.dash-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--g200);
}
.dash-sub-row:last-child { border-bottom: none; }
.dash-sub-row .label { font-size: 13px; color: var(--g500); }
.dash-sub-row .value { font-size: 13px; font-weight: 600; color: var(--g800); }
.dash-sub-row .value.active { color: var(--green-dark); }
.dash-sub-row .value.inactive { color: var(--red); }

/* Toggle in dashboard */
.dash-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--g100);
}
.dash-toggle-row:last-child { border-bottom: none; }
.dash-toggle-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-toggle-info span { font-size: 14px; font-weight: 600; color: var(--g800); }

/* Dashboard responsive overrides */
@media (max-width: 360px) {
  .dash-bottom-nav { width: calc(100% - 24px); }
  .dash-nav-item { padding: 4px 10px; }
  .dash-support-header {
    padding: 8px 12px;
  }
  .dash-support-header h3 {
    font-size: 14px !important;
  }
  .dash-support-container .support-messages {
    padding: 8px 12px;
  }
  .dash-support-container .support-input-area {
    padding: 6px 12px 8px;
  }
}
@media (min-width: 481px) {
  .dashboard-app { box-shadow: 0 0 40px rgba(0, 0, 0, 0.06); }
}

/* Safe area insets for devices with notch/home indicator (iPhone X+) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .dash-main.dash-main-support {
    height: calc(100vh - 52px - 88px - env(safe-area-inset-bottom));
  }
  @supports (height: 100dvh) {
    .dash-main.dash-main-support {
      height: calc(100dvh - 52px - 88px - env(safe-area-inset-bottom));
    }
  }
  .dash-support-container .support-input-area {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* ============================================================
   DASHBOARD: GPS REALTIME MAP CARD
   OpenStreetMap via MapLibre GL JS
   Untuk Becakita, Ojekita, AntarKita
   Mitra bisa melihat posisinya langsung saat online
   ============================================================ */

/* GPS section card */
.dash-gps-section {
  overflow: visible;
}

/* GPS status bar — menampilkan status, koordinat */
.dash-gps-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid #f3f4f6;
}

.dash-gps-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dash-gps-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: dash-gps-pulse 2s ease-in-out infinite;
}

@keyframes dash-gps-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.dash-gps-status-text {
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
  white-space: nowrap;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.dash-gps-status-right {
  flex: 1;
  text-align: right;
  min-width: 0;
}

.dash-gps-coords {
  font-size: 11px;
  color: #6b7280;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

/* Map wrapper — relative container untuk loading overlay */
.dash-gps-map-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Map container */
.dash-gps-map-container {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.dash-gps-map-container .maplibregl-ctrl-attrib {
  font-size: 9px !important;
}

.dash-gps-map-container .maplibregl-ctrl-bottom-right {
  bottom: 4px !important;
  right: 4px !important;
}

.dash-gps-map-container .maplibregl-ctrl-bottom-left {
  bottom: 4px !important;
  left: 4px !important;
}

.dash-gps-map-container .maplibregl-ctrl-group {
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
}

/* Map loading overlay */
.dash-gps-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f9fafb;
  z-index: 10;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  border-radius: 14px;
}

.dash-gps-map-loading.dash-gps-map-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dash-gps-map-loading span {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.dash-gps-loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: dash-gps-spin 0.8s linear infinite;
}

@keyframes dash-gps-spin {
  to { transform: rotate(360deg); }
}

/* Accuracy row */
.dash-gps-accuracy-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2px 8px;
}

.dash-gps-accuracy {
  font-size: 10px;
  color: #9ca3af;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Dashboard GPS map responsive */
@media (max-width: 360px) {
  .dash-gps-map-wrapper {
    height: 200px;
    border-radius: 10px;
  }
  .dash-gps-map-container {
    border-radius: 10px;
  }
  .dash-gps-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 6px 10px;
  }
  .dash-gps-status-right {
    text-align: left;
  }
  .dash-gps-coords {
    font-size: 10px;
  }
}

@media (min-width: 361px) and (max-width: 420px) {
  .dash-gps-map-wrapper {
    height: 230px;
  }
}

/* ============================================================
   LOCATION VALIDATION OVERLAY — Modern Semi-Transparent
   Untuk layanan realtime: becakita, ojekita, antarkita
   Ditampilkan saat GPS gagal/denied/timeout/fallback
   ============================================================ */

/* Base overlay container */
.trakita-location-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.trakita-location-overlay-visible {
  opacity: 1;
  pointer-events: auto;
}

.trakita-location-overlay-hiding {
  opacity: 0;
  pointer-events: none;
}

/* Backdrop — semi-transparan, map masih terlihat samar */
.trakita-location-overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Content card */
.trakita-location-overlay-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px 24px;
  max-width: 320px;
  width: calc(100% - 40px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
  animation: trakita-overlay-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes trakita-overlay-slide-up {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Icon circle */
.trakita-location-overlay-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* Title */
.trakita-location-overlay-title {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

/* Description */
.trakita-location-overlay-desc {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
  margin: 0 0 18px 0;
  line-height: 1.5;
}

/* Steps container */
.trakita-location-overlay-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
}

.trakita-location-overlay-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 10px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.trakita-location-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* CTA Button */
.trakita-location-overlay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 14px;
  color: white;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  -webkit-tap-highlight-color: transparent;
}

.trakita-location-overlay-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.trakita-location-overlay-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.trakita-location-overlay-btn:disabled {
  cursor: not-allowed;
}

/* Hint text */
.trakita-location-overlay-hint {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 11px;
  color: #9ca3af;
  margin: 14px 0 0 0;
  line-height: 1.4;
}

/* Loading spinner di dalam tombol */
.trakita-location-overlay-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: trakita-overlay-spin 0.7s linear infinite;
  margin-right: 8px;
}

@keyframes trakita-overlay-spin {
  to { transform: rotate(360deg); }
}

/* Responsive — small phones */
@media (max-width: 360px) {
  .trakita-location-overlay-content {
    padding: 24px 18px 20px;
    border-radius: 16px;
  }
  .trakita-location-overlay-title {
    font-size: 15px;
  }
  .trakita-location-overlay-desc {
    font-size: 12px;
  }
  .trakita-location-overlay-icon {
    width: 56px;
    height: 56px;
  }
}

/* Landscape mode — overlay tetap center */
@media (orientation: landscape) and (max-height: 500px) {
  .trakita-location-overlay-content {
    padding: 16px 20px;
    max-width: 400px;
    border-radius: 14px;
  }
  .trakita-location-overlay-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }
  .trakita-location-overlay-title {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .trakita-location-overlay-desc {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .trakita-location-overlay-steps {
    flex-direction: row;
    gap: 8px;
    margin-bottom: 12px;
  }
  .trakita-location-overlay-step {
    flex: 1;
    padding: 6px 8px;
    font-size: 12px;
  }
  .trakita-location-overlay-hint {
    margin-top: 8px;
  }
}

/* ==================== DASHBOARD: Category Select Styling ==================== */
.dash-mp-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px !important;
  cursor: pointer;
}

/* ==================== DASHBOARD NOTIFICATION TAB ==================== */
.dash-notif-page {
  padding: 16px;
  padding-bottom: 100px;
}
.dash-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}
.dash-notif-mark-all {
  background: none;
  border: none;
  color: #3b82f6;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.dash-notif-mark-all:hover {
  background: #eff6ff;
}
.dash-notif-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: background 0.2s;
}
.dash-notif-item:hover {
  background: #f9fafb;
}
.dash-notif-unread {
  background: #f0f9ff;
}
.dash-notif-unread:hover {
  background: #e0f2fe;
}
.dash-notif-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f3f4f6;
}
.dash-notif-content {
  flex: 1;
  min-width: 0;
}
.dash-notif-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-notif-title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  flex-shrink: 0;
}
.dash-notif-msg {
  font-size: 12px;
  color: #6b7280;
  margin: 4px 0 0 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dash-notif-time {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
  display: block;
}
.dash-notif-support-cta {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #f0f9ff, #eff6ff);
  border-radius: 16px;
  text-align: center;
  border: 1px solid #dbeafe;
}
.dash-notif-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.dash-notif-support-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
/* 4-tab nav adjustment for dashboard */
@media (max-width: 400px) {
  .dash-nav-item {
    padding: 4px 8px;
  }
  .dash-nav-item span {
    font-size: 9px;
  }
}
