:root {
  --bg: #f5f6f8;
  --drawer-bg: #ffffff;
  --text: #0b1220;
  --muted: #6b7280;
  --green: #16a34a;
  --shadow: 0 10px 30px rgba(0,0,0,.18);

  /* Safe areas (Android notch / iOS) */
  --safe-top: env(safe-area-inset-top, 0px);
}

/* =========================
   UI LAYER
========================= */
.ui-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}
.ui-layer * {
  pointer-events: auto;
}

/* =========================
   BURGER
========================= */
.burger-btn {
  position: fixed;
  top: calc(14px + var(--safe-top));
  left: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 1001;
}

/* =========================
   STATUS PILL
========================= */
.status-pill {
  position: fixed;
  top: calc(14px + var(--safe-top));
  right: 14px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--green);
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 1001;
}

/* =========================
   OVERLAY
========================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 1000;
}
.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   DRAWER
========================= */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(82vw, 340px);
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--drawer-bg);
  transform: translateX(-100%);
  transition: .28s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow);
  z-index: 2147483600;
  padding-top: calc(var(--safe-top) + 8px);
  border-bottom-right-radius: 22px;
}
.drawer.open {
  transform: translateX(0);
}

/* =========================
   PROFILE HEADER
========================= */
.drawer-profile {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-text .name {
  font-weight: 700;
}
.profile-text .sub {
  font-size: 13px;
  color: var(--muted);
}

/* =========================
   DIVIDER
========================= */
.divider {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 0;
}

/* =========================
   MENU ITEMS
========================= */
.menu-item {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-size: 15px;
}
.menu-item:hover {
  background: #f1f5f9;
}
.menu-item span {
  width: 22px;
  text-align: center;
}
.menu-item.logout {
  color: #dc2626;
}

/* =========================
   TRUST FOOTER
========================= */
.drawer-footer {
  margin-top: auto;
  padding: 14px 18px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ===============================
   GOOGLE MAP UI REFINEMENTS
=============================== */
.gm-style-mtc,
.gm-style-mtc button,
.gm-fullscreen-control,
.gmnoprint,
.gm-control-active,
.gm-style-cc,
.gm-style .gm-style-cc,
.gm-style a[href*="google.com/maps"],
.gm-style a[href*="maps.google.com"] {
  display: none !important;
}

.gm-style img[src*="google"] {
  pointer-events: none;
}

/* =========================
   MENU OPEN STATE FIXES
========================= */
.ui-layer.menu-open .burger-btn,
.ui-layer.menu-open .status-pill {
  opacity: 0;
  pointer-events: none;
}

.ui-layer.menu-open {
  pointer-events: auto;
  z-index: 2147483600;
}
.drawer-profile {
  cursor: pointer;
}


/* =========================
   LANGUAGE SWITCHER IN DRAWER
========================= */
.menu-language-switcher {
  justify-content: flex-start;
}

.menu-language-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.menu-language-main strong {
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
}

.menu-language-main small {
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0f5ea8;
  font-size: 12px;
  font-weight: 700;
}

/* Premium drawer language switcher */
.menu-item.language-switch {
  margin: 8px 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,122,26,.12), rgba(22,163,74,.08));
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
}

.menu-item.language-switch strong {
  font-weight: 800;
  letter-spacing: .1px;
}

.menu-item.language-switch:hover {
  background: linear-gradient(135deg, rgba(255,122,26,.18), rgba(22,163,74,.12));
}

/* =========================================================
   CUSTOMER TOP ROW BRAND UI - CLEAN FINAL
   Burger and logo = white center + subtle Primary → Secondary ring.
========================================================= */

.ui-layer .burger-btn,
.status-pill.has-logo {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  border-radius: 16px !important;
  padding: 3px !important;
  overflow: visible !important;

  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(
      135deg,
      var(--tp-brand-color, #1e293b) 0%,
      var(--tp-brand-secondary-color, #0f172a) 100%
    ) border-box !important;

  border: 2px solid transparent !important;
  box-shadow:
    0 10px 26px rgba(15,23,42,.18),
    0 0 0 4px color-mix(in srgb, var(--tp-brand-color, #1e293b) 12%, transparent) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ui-layer .burger-btn {
  color: var(--tp-brand-color, #1e293b) !important;
  font-size: 23px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.status-pill.has-logo {
  overflow: hidden !important;
}

.status-pill-logo {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 0 !important;
  transform: scale(1.35) !important;
  transform-origin: center center !important;
}

@media (max-width: 380px) {
  .ui-layer .burger-btn,
  .status-pill.has-logo {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 15px !important;
  }
}

