/* BARGAINX_V32_APPROVED_MOCKUP_REAL_3D_NEON_ROUTE */

:root{
  --bx32-bg:#04080d;
  --bx32-panel:#061019;
  --bx32-panel2:#08131c;
  --bx32-border:rgba(67,142,196,.32);
  --bx32-blue:#16b8ff;
  --bx32-blue2:#0577ff;
  --bx32-text:#f4f9fd;
  --bx32-muted:#a9bed0;
  --bx32-amber:#ffb447;
  --bx32-red:#ff4c61;
}

html,body,#map,
.maplibregl-map,
.maplibregl-canvas-container,
.maplibregl-canvas{
  background:#04070b !important;
}

/* ---------- LEFT MENU ---------- */
html body #menuButton{
  display:grid !important;
  visibility:visible !important;
  pointer-events:auto !important;
  position:fixed !important;
  top:106px !important;
  left:24px !important;
  width:76px !important;
  height:76px !important;
  place-items:center !important;
  margin:0 !important;
  z-index:1600 !important;
  color:#fff !important;
  background:#050b11 !important;
  border:1px solid rgba(114,165,201,.32) !important;
  border-radius:22px !important;
  box-shadow:0 10px 28px rgba(0,0,0,.34) !important;
}

/* ---------- SEARCH ---------- */
html body #bxV290SearchDock{
  position:fixed !important;
  top:106px !important;
  left:145px !important;
  right:365px !important;
  width:auto !important;
  max-width:none !important;
  z-index:1550 !important;
}

html body #searchForm{
  position:relative !important;
  min-height:76px !important;
  display:flex !important;
  align-items:center !important;
  background:linear-gradient(180deg,#070c11,#04080c) !important;
  border:1px solid rgba(89,147,188,.34) !important;
  border-radius:22px !important;
  box-shadow:0 12px 30px rgba(0,0,0,.30) !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}

html body #searchInput{
  height:72px !important;
  color:var(--bx32-text) !important;
  background:transparent !important;
  border:0 !important;
  outline:0 !important;
  font:700 20px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif !important;
}

html body #searchInput::placeholder{
  color:#b3bec8 !important;
  opacity:.95 !important;
}

html body #searchResults{
  background:#061019 !important;
  border:1px solid var(--bx32-border) !important;
  border-radius:16px !important;
  box-shadow:0 16px 34px rgba(0,0,0,.42) !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}

html body #bxV32SearchCancel{
  display:none !important;
  position:absolute !important;
  top:50% !important;
  right:58px !important;
  transform:translateY(-50%) !important;
  min-width:86px !important;
  height:40px !important;
  padding:0 14px !important;
  place-items:center !important;
  z-index:30 !important;
  color:#fff !important;
  background:#0a1b28 !important;
  border:1px solid rgba(46,183,255,.46) !important;
  border-radius:11px !important;
  font:800 12px/1 system-ui,sans-serif !important;
}

html body.bx-v32-route-active.bx-v32-searching #bxV32SearchCancel{
  display:grid !important;
}

html body.bx-v32-route-active.bx-v32-searching #searchInput{
  padding-right:158px !important;
}

html body.bx-v32-searching #setupPanel{
  display:none !important;
}

/* ---------- REMOVE OLD FLOATING TOP-RIGHT OWNERS ---------- */
html body #bxV290SearchToggle,
html body #bxV290ControlsToggle,
html body #routePanelButton,
html body #modeButton{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

/* ---------- CLOCK ---------- */
html body #clockPanel,
html body .clock-panel{
  background:#050a0f !important;
  border:1px solid rgba(102,151,187,.30) !important;
  box-shadow:0 10px 26px rgba(0,0,0,.32) !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}

/* ---------- RIGHT RAIL: ONE PERMANENT CLEAN OWNER ---------- */
html body #rightRail{
  position:fixed !important;
  top:215px !important;
  right:18px !important;
  bottom:82px !important;
  left:auto !important;
  transform:none !important;
  width:64px !important;
  min-width:64px !important;
  max-width:64px !important;
  height:auto !important;
  max-height:none !important;
  margin:0 !important;
  padding:6px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  gap:6px !important;
  overflow:visible !important;
  box-sizing:border-box !important;
  z-index:1590 !important;
  background:#050b11 !important;
  border:1px solid rgba(95,158,202,.30) !important;
  border-radius:22px !important;
  box-shadow:0 12px 30px rgba(0,0,0,.34) !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  contain:layout paint !important;
}

html body #rightRail > button{
  flex:0 0 50px !important;
  width:50px !important;
  min-width:50px !important;
  max-width:50px !important;
  height:50px !important;
  min-height:50px !important;
  max-height:50px !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  box-sizing:border-box !important;
  color:#f4f9fd !important;
  background:#08121a !important;
  border:1px solid rgba(104,162,203,.22) !important;
  border-radius:13px !important;
  box-shadow:none !important;
  transition:none !important;
  animation:none !important;
}

html body #bxV32CompassButton{order:10 !important;}
html body #railLocateButton{order:20 !important;}
html body #twoDButton{order:30 !important;}
html body #zoomInButton{order:40 !important;}
html body #zoomOutButton{order:50 !important;}
html body #soundButton{order:60 !important;}
html body #exitButton{order:70 !important;}

html body #rightRail > button:not(#bxV32CompassButton):not(#railLocateButton):not(#twoDButton):not(#zoomInButton):not(#zoomOutButton):not(#soundButton):not(#exitButton){
  display:none !important;
}

html body #rightRail > #exitButton{
  display:grid !important;
  opacity:.28 !important;
  color:#7b858e !important;
  background:#100b0e !important;
  border-color:rgba(123,133,142,.18) !important;
  pointer-events:none !important;
}

html body.bx-v32-route-active #rightRail > #exitButton{
  opacity:1 !important;
  color:#fff !important;
  background:linear-gradient(180deg,#5b1520,#351018) !important;
  border-color:rgba(255,76,97,.72) !important;
  box-shadow:0 0 18px rgba(255,48,80,.16) !important;
  pointer-events:auto !important;
}

html body #railLocateButton.bx-v32-recenter-needed{
  color:#fff !important;
  background:#0b2d42 !important;
  border-color:rgba(33,190,255,.78) !important;
  box-shadow:inset 3px 0 #1fbfff,0 0 15px rgba(22,184,255,.15) !important;
}

#bxV32CompassButton .bx-v32-compass{
  position:relative !important;
  display:block !important;
  width:25px !important;
  height:25px !important;
  border:1px solid rgba(237,247,255,.75) !important;
  border-radius:50% !important;
}

#bxV32CompassButton .bx-v32-arrow{
  position:absolute !important;
  left:50% !important;
  top:3px !important;
  width:0 !important;
  height:0 !important;
  margin-left:-5px !important;
  border-left:5px solid transparent !important;
  border-right:5px solid transparent !important;
  border-bottom:14px solid #ff4b61 !important;
  transform-origin:5px 9px !important;
}

/* ---------- ACTUAL PRO PLACE CARD: MATCH APPROVED MOCKUP ---------- */
html body #bxProPlaceCardV294.bxp-card,
html body #bxProPlaceCardV294{
  width:min(420px,calc(100vw - 110px)) !important;
  max-height:calc(100vh - 205px) !important;
  color:var(--bx32-text) !important;
  background:linear-gradient(180deg,#061019,#040b11) !important;
  border:1px solid rgba(74,151,204,.36) !important;
  border-radius:22px !important;
  box-shadow:0 18px 46px rgba(0,0,0,.48),0 0 0 1px rgba(11,112,179,.05) inset !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}

/* Approved mockup has the compact identity card; photos remain in Photos tab. */
html body #bxProPlaceCardV294 .bxp-hero{
  display:none !important;
}

html body #bxProPlaceCardV294 .bxp-main,
html body #bxProPlaceCardV294 .bxp-scroll,
html body #bxProPlaceCardV294 .bxp-panel,
html body #bxProPlaceCardV294 .bxp-section,
html body #bxProPlaceCardV294 .bxp-state-row,
html body #bxProPlaceCardV294 .bxp-hours,
html body #bxProPlaceCardV294 .bxp-review,
html body #bxProPlaceCardV294 .bxp-about > div{
  background:transparent !important;
  border-color:rgba(67,126,168,.22) !important;
}

html body #bxProPlaceCardV294 .bxp-category{
  color:var(--bx32-amber) !important;
  font-weight:900 !important;
  letter-spacing:.04em !important;
}

html body #bxProPlaceCardV294 .bxp-title{
  color:#fff !important;
  font-size:29px !important;
  line-height:1.06 !important;
  font-weight:900 !important;
  letter-spacing:-.025em !important;
}

html body #bxProPlaceCardV294 .bxp-stars{
  color:var(--bx32-amber) !important;
}

html body #bxProPlaceCardV294 .bxp-address,
html body #bxProPlaceCardV294 .bxp-phone,
html body #bxProPlaceCardV294 p,
html body #bxProPlaceCardV294 small{
  color:#c4d1dc !important;
}

html body #bxProPlaceCardV294 .bxp-call{
  min-width:64px !important;
  height:42px !important;
  min-height:42px !important;
  color:#35baff !important;
  background:#07111a !important;
  border:1px solid rgba(45,179,255,.34) !important;
  border-radius:12px !important;
}

html body #bxProPlaceCardV294 .bxp-actions{
  display:grid !important;
  grid-template-columns:1.18fr 1fr 1fr 1fr !important;
  gap:8px !important;
  align-items:stretch !important;
}

/* Hide Upload from the main row; V32 puts Upload Photo inside the Photos tab. */
html body #bxProPlaceCardV294 [data-bxp-action="photo"]{
  display:none !important;
}

html body #bxProPlaceCardV294 .bxp-action{
  min-width:0 !important;
  height:72px !important;
  min-height:72px !important;
  padding:8px 5px !important;
  display:grid !important;
  place-items:center !important;
  align-content:center !important;
  gap:5px !important;
  color:#f5f9fc !important;
  background:#08131c !important;
  border:1px solid rgba(82,145,188,.28) !important;
  border-radius:13px !important;
  box-shadow:none !important;
  overflow:visible !important;
}

html body #bxProPlaceCardV294 .bxp-action span{
  max-width:none !important;
  overflow:visible !important;
  text-overflow:clip !important;
  white-space:nowrap !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1 !important;
}

html body #bxProPlaceCardV294 [data-bxp-action="directions"]{
  color:#fff !important;
  background:linear-gradient(180deg,#087de8,#064e9a) !important;
  border-color:rgba(53,185,255,.76) !important;
  box-shadow:0 0 18px rgba(0,154,255,.18),inset 0 1px rgba(255,255,255,.08) !important;
}

html body #bxProPlaceCardV294 [data-bxp-action="directions"] span{
  color:#fff !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

html body #bxProPlaceCardV294 .bxp-tabs{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  background:#040a0f !important;
  border-top:1px solid rgba(67,126,168,.20) !important;
}

html body #bxProPlaceCardV294 .bxp-tab{
  min-width:0 !important;
  color:#aabcc9 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

html body #bxProPlaceCardV294 .bxp-tab.active{
  color:#31bfff !important;
  background:#071723 !important;
  box-shadow:inset 0 -2px #24baff !important;
}

html body #bxProPlaceCardV294 .bxp-close{
  color:#fff !important;
  background:#07121a !important;
  border:1px solid rgba(93,151,192,.34) !important;
  box-shadow:none !important;
}

html body #bxV32UploadPhoto{
  width:100% !important;
  height:44px !important;
  margin:10px 0 !important;
  color:#fff !important;
  background:#0a2232 !important;
  border:1px solid rgba(37,184,255,.48) !important;
  border-radius:11px !important;
  font-weight:800 !important;
}

/* ---------- DRAWER ---------- */
html body.bx-v32-drawer-open #setupPanel{
  display:block !important;
  visibility:visible !important;
  pointer-events:auto !important;
  z-index:1500 !important;
}

/* ---------- NAVIGATION HUD ---------- */
html body #driveHud{
  position:fixed !important;
  left:50% !important;
  right:auto !important;
  bottom:14px !important;
  transform:translateX(-50%) !important;
  width:min(1320px,calc(100vw - 220px)) !important;
  max-width:1320px !important;
  margin:0 !important;
  color:#f5f9fd !important;
  background:linear-gradient(180deg,rgba(4,11,16,.985),rgba(3,8,12,.995)) !important;
  border:1px solid rgba(42,164,232,.30) !important;
  border-radius:24px !important;
  box-shadow:0 14px 34px rgba(0,0,0,.38),0 0 22px rgba(0,160,255,.05) !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  z-index:1450 !important;
}

html body #turnCard{
  color:#fff !important;
  background:transparent !important;
  border-color:rgba(63,142,194,.18) !important;
  box-shadow:none !important;
}

html body #driveMetrics{
  left:max(18px,env(safe-area-inset-left)) !important;
  transform:none !important;
  margin-left:0 !important;
}

/* ---------- LOW-COST WEBGL: no expensive UI compositor effects ---------- */
html body #rightRail,
html body #setupPanel,
html body #searchResults,
html body #driveHud,
html body #turnCard,
html body #bxProPlaceCardV294{
  transition:none !important;
  animation:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}

@media (max-width:980px){
  html body #bxV290SearchDock{
    left:88px !important;
    right:76px !important;
    top:94px !important;
  }

  html body #menuButton{
    left:10px !important;
    top:94px !important;
    width:62px !important;
    height:62px !important;
    border-radius:18px !important;
  }

  html body #searchForm{
    min-height:62px !important;
    border-radius:18px !important;
  }

  html body #searchInput{
    height:58px !important;
    font-size:16px !important;
  }

  html body #rightRail{
    top:170px !important;
    right:8px !important;
    bottom:70px !important;
    width:52px !important;
    min-width:52px !important;
    max-width:52px !important;
    padding:3px !important;
    gap:3px !important;
  }

  html body #rightRail > button{
    flex-basis:44px !important;
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;
  }

  html body #bxProPlaceCardV294.bxp-card,
  html body #bxProPlaceCardV294{
    width:min(410px,calc(100vw - 18px)) !important;
    max-height:calc(100vh - 118px) !important;
  }

  html body #driveHud{
    width:calc(100vw - 22px) !important;
    bottom:8px !important;
    border-radius:18px !important;
  }
}


/* BARGAINX_V35_LOW_GPU_REAL3D_PERMANENT_CONTROLS */
html body #menuButton{
  display:grid !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  position:fixed !important;
  z-index:2700 !important;
  transform:none !important;
  contain:layout paint !important;
}

html body #rightRail{
  display:flex !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  position:fixed !important;
  top:205px !important;
  right:18px !important;
  bottom:84px !important;
  left:auto !important;
  z-index:2600 !important;
  transform:none !important;
  overflow:visible !important;
  contain:layout paint !important;
  will-change:auto !important;
}

html body #rightRail > button{
  transform:none !important;
  animation:none !important;
  transition:none !important;
  filter:none !important;
}

html body #driveHud,
html body #topManeuverBanner,
html body #rightRail,
html body #menuButton{
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}


/* BARGAINX_V36_STABLE_3D_PERMANENT_CONTROLS */
html body #menuButton{
  display:grid !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  position:fixed !important;
  left:22px !important;
  top:106px !important;
  right:auto !important;
  bottom:auto !important;
  z-index:2800 !important;
  transform:none !important;
  contain:layout paint !important;
}

html body #rightRail{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

html body #bxV36PermanentRail{
  position:fixed !important;
  top:205px !important;
  right:18px !important;
  bottom:84px !important;
  left:auto !important;
  width:56px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:8px !important;
  z-index:2750 !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  overflow:visible !important;
  transform:none !important;
  contain:layout paint !important;
  will-change:auto !important;
}

html body #bxV36PermanentRail > button{
  display:grid !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  flex:0 0 auto !important;
  transform:none !important;
  animation:none !important;
  transition:none !important;
  filter:none !important;
}

html body #bxV36PermanentRail #exitButton:disabled{
  opacity:.42 !important;
  pointer-events:none !important;
}

html body.bx-v32-route-active #bxV36PermanentRail #exitButton:not(:disabled){
  opacity:1 !important;
  pointer-events:auto !important;
}

html body #driveHud,
html body #topManeuverBanner,
html body #bxV36PermanentRail,
html body #menuButton{
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}


/* BARGAINX_V37_GOOGLE_CAR_APPLE_STYLE_UI */
html.bx-v37-loading body::before{
  content:"";
  position:fixed;
  inset:0;
  background:#02070b;
  z-index:5000;
  pointer-events:none;
}

html body #menuButton{
  position:fixed !important;
  top:105px !important;
  left:24px !important;
  right:auto !important;
  bottom:auto !important;
  width:58px !important;
  height:58px !important;
  display:grid !important;
  place-items:center !important;
  visibility:visible !important;
  opacity:1 !important;
  color:#f7fbff !important;
  background:rgba(5,10,15,.94) !important;
  border:1px solid rgba(159,188,211,.28) !important;
  border-radius:19px !important;
  box-shadow:0 10px 28px rgba(0,0,0,.28) !important;
  pointer-events:auto !important;
  z-index:2850 !important;
  transform:none !important;
  filter:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}

html body #menuButton .bx-v37-control-icon,
html body #bxV37PermanentRail .bx-v37-control-icon{
  width:25px !important;
  height:25px !important;
  display:grid !important;
  place-items:center !important;
  pointer-events:none !important;
}

html body #menuButton svg,
html body #bxV37PermanentRail svg{
  width:100% !important;
  height:100% !important;
  display:block !important;
}

html body #rightRail,
html body #bxV36PermanentRail{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

html body #bxV37PermanentRail{
  position:fixed !important;
  top:205px !important;
  right:18px !important;
  bottom:82px !important;
  left:auto !important;
  width:58px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:9px !important;
  z-index:2800 !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  overflow:visible !important;
  transform:none !important;
  contain:layout paint !important;
  will-change:auto !important;
}

html body #bxV37PermanentRail > button{
  position:relative !important;
  flex:0 0 54px !important;
  width:54px !important;
  height:54px !important;
  min-width:54px !important;
  min-height:54px !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  visibility:visible !important;
  opacity:1 !important;
  color:#f4f9fd !important;
  background:rgba(6,12,18,.94) !important;
  border:1px solid rgba(155,187,211,.24) !important;
  border-radius:18px !important;
  box-shadow:0 8px 22px rgba(0,0,0,.24) !important;
  pointer-events:auto !important;
  transform:none !important;
  animation:none !important;
  transition:background .14s ease,border-color .14s ease,opacity .14s ease !important;
  filter:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  font-size:0 !important;
  line-height:1 !important;
}

html body #bxV37PermanentRail > button:hover{
  background:rgba(13,25,36,.98) !important;
  border-color:rgba(99,186,238,.48) !important;
}

html body #bxV37PermanentRail #railLocateButton.bx-v32-recenter-needed{
  color:#ffffff !important;
  background:#087fbd !important;
  border-color:#22b7ff !important;
}

html body #bxV37PermanentRail #exitButton{
  margin-top:5px !important;
}

html body.bx-v32-route-active #bxV37PermanentRail #exitButton:not(:disabled){
  color:#ffffff !important;
  background:#ef3340 !important;
  border-color:#ff6670 !important;
}

html body #bxV37PermanentRail #exitButton:disabled{
  opacity:.34 !important;
  pointer-events:none !important;
}

html body #bxV32CompassButton .bx-v37-compass-face{
  width:30px !important;
  height:30px !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid rgba(255,255,255,.30) !important;
  border-radius:50% !important;
}

html body #bxV32CompassButton .bx-v32-arrow{
  width:22px !important;
  height:22px !important;
  display:grid !important;
  place-items:center !important;
  transform-origin:center center !important;
}

html body #bxV32CompassButton .bx-v32-arrow svg{
  width:22px !important;
  height:22px !important;
}

html body #bxV32CompassButton .bx-v37-compass-north{
  fill:#ff3b4e !important;
  stroke:none !important;
}

html body #bxV32CompassButton .bx-v37-compass-south{
  fill:#f4f7fa !important;
  stroke:none !important;
}

html body #driveHud,
html body #topManeuverBanner{
  background:rgba(3,9,14,.96) !important;
  border:1px solid rgba(141,178,204,.20) !important;
  box-shadow:0 12px 34px rgba(0,0,0,.24) !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}

html body .maplibregl-canvas,
html body .maplibregl-canvas-container{
  filter:none !important;
  -webkit-filter:none !important;
}
