﻿:root{
  --bx-bg:#06111a;
  --bx-panel:#071725;
  --bx-panel2:#0a2031;
  --bx-border:#1d4e70;
  --bx-text:#eef7ff;
  --bx-muted:#8ca5b9;
  --bx-blue:#149cff;
}

html,body,button,input,select,textarea{
  font-family:"Segoe UI",Tahoma,Arial,sans-serif!important;
}

html[lang="ar"],
html[dir="rtl"],
[lang="ar"]{
  font-family:Tahoma,"Segoe UI",Arial,sans-serif!important;
}

body.bx-v4-dark-2d{
  background:#06111a!important;
  overflow:hidden;
}

body.bx-v4-dark-2d #map,
body.bx-v4-dark-2d .maplibregl-map,
body.bx-v4-dark-2d .maplibregl-canvas-container{
  background:#06111a!important;
}

body.bx-v4-dark-2d .maplibregl-canvas{
  filter:none!important;
}

/* Remove old sky / cinematic 3D UI */
body.bx-v4-dark-2d #sky,
body.bx-v4-dark-2d #sun,
body.bx-v4-dark-2d .bx-sky,
body.bx-v4-dark-2d .bxSun{
  display:none!important;
}

/* Disable old duplicate navigation drawer buttons */
body.bx-v4-dark-2d #bxV290SearchToggle,
body.bx-v4-dark-2d #bxV290ControlsToggle{
  display:none!important;
}

/* Main hamburger */
#bxV4MenuButton{
  position:fixed;
  top:22px;
  left:24px;
  z-index:12000;
  width:60px;
  height:60px;
  border:1px solid #20577a;
  border-radius:20px;
  background:#071827;
  color:#fff;
  font-size:27px;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(0,0,0,.30);
}

/* Search */
body.bx-v4-dark-2d #searchForm{
  position:fixed!important;
  z-index:11000!important;
  top:22px!important;
  left:102px!important;
  width:min(760px,calc(100vw - 500px))!important;
  margin:0!important;
  border:1px solid #20577a!important;
  border-radius:24px!important;
  background:#071827!important;
  box-shadow:0 10px 30px rgba(0,0,0,.25)!important;
}

body.bx-v4-dark-2d #searchInput{
  color:#edf7ff!important;
  background:transparent!important;
  font-size:18px!important;
}

body.bx-v4-dark-2d #searchInput::placeholder{
  color:#8b9faf!important;
}

/* Side panel */
#bxV4SidePanel{
  position:fixed;
  z-index:13000;
  top:0;
  left:0;
  width:350px;
  height:100vh;
  padding:22px;
  box-sizing:border-box;
  overflow-y:auto;
  background:#071624;
  color:#eef7ff;
  border-right:1px solid #1d4e70;
  box-shadow:18px 0 40px rgba(0,0,0,.36);
  transform:translateX(-103%);
  transition:transform .17s ease-out;
}

body.bx-v4-panel-open #bxV4SidePanel{
  transform:translateX(0);
}

.bx-v4-brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:2px 0 20px;
  border-bottom:1px solid #19384e;
}

.bx-v4-logo{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  border-radius:14px;
  background:#0e91f7;
  color:white;
  font-weight:900;
  font-size:19px;
}

.bx-v4-brand strong{
  display:block;
  font-size:23px;
}

.bx-v4-brand small{
  color:#8faabd;
  font-size:14px;
}

#bxV4PanelClose{
  margin-left:auto;
  width:38px;
  height:38px;
  border:0;
  border-radius:11px;
  background:#10283a;
  color:white;
  font-size:22px;
  cursor:pointer;
}

.bx-v4-item{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  padding:14px 12px;
  margin-top:7px;
  border:0;
  border-radius:14px;
  background:transparent;
  color:#eef7ff;
  text-align:left;
  cursor:pointer;
}

.bx-v4-item:hover,
.bx-v4-item.active{
  background:#0d2a41;
}

.bx-v4-icon{
  width:30px;
  color:#55bfff;
  font-size:21px;
  text-align:center;
}

.bx-v4-copy strong{
  display:block;
  font-size:15px;
}

.bx-v4-copy small{
  display:block;
  margin-top:3px;
  color:#829bae;
  font-size:12px;
}

.bx-v4-section{
  margin-top:20px;
  padding-top:17px;
  border-top:1px solid #19384e;
}

.bx-v4-title{
  margin-bottom:12px;
  font-weight:800;
  color:#d9ebf7;
}

.bx-v4-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.bx-v4-quick{
  min-height:70px;
  border:1px solid #1a3d55;
  border-radius:15px;
  background:#091c2b;
  color:#eaf6ff;
  cursor:pointer;
}

.bx-v4-quick:hover{
  background:#0b2940;
  border-color:#2498dc;
}

.bx-v4-quick b{
  display:block;
  margin-bottom:5px;
  font-size:19px;
  color:#55bfff;
}

.bx-v4-quick small{
  font-size:11px;
}

#bxV4RecentList{
  display:grid;
  gap:4px;
}

#bxV4RecentList button{
  padding:11px 9px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#dcebf7;
  text-align:left;
  cursor:pointer;
}

#bxV4RecentList button:hover{
  background:#0b2437;
}

/* Search dropdown */
body.bx-v4-dark-2d #searchResults{
  background:#071725!important;
  color:#edf7ff!important;
  border:1px solid #1c4d6d!important;
  box-shadow:0 16px 35px rgba(0,0,0,.35)!important;
}

body.bx-v4-dark-2d .search-result{
  color:#edf7ff!important;
  background:transparent!important;
}

body.bx-v4-dark-2d .search-result:hover,
body.bx-v4-dark-2d .search-result[aria-selected="true"]{
  background:#0c2940!important;
}

body.bx-v4-dark-2d .search-result small{
  color:#8ba4b8!important;
}

/* Place card */
body.bx-v4-dark-2d .bx-place-card-v273{
  background:#071725!important;
  border:1px solid #1d506f!important;
  color:#edf7ff!important;
}

body.bx-v4-dark-2d .bx-v273-body{
  background:#071725!important;
  color:#edf7ff!important;
}

body.bx-v4-dark-2d .bx-v273-title,
body.bx-v4-dark-2d .bx-v273-rating strong,
body.bx-v4-dark-2d .bx-v273-hours-row strong,
body.bx-v4-dark-2d .bx-v273-coordinates dd{
  color:#f4f9fd!important;
}

body.bx-v4-dark-2d .bx-v273-address,
body.bx-v4-dark-2d .bx-v273-status,
body.bx-v4-dark-2d .bx-v273-rating small{
  color:#91aabd!important;
}

body.bx-v4-dark-2d .bx-v273-coordinates>div{
  background:#0b2132!important;
}

/* HUD */
body.bx-v4-dark-2d #driveHud,
body.bx-v4-dark-2d #driveMetrics{
  background:rgba(5,14,22,.96)!important;
  color:#f3f8fc!important;
  border-color:#173b53!important;
}

/* Phone */
@media(max-width:760px){
  #bxV4SidePanel{
    width:min(330px,89vw);
  }

  #bxV4MenuButton{
    top:13px;
    left:13px;
    width:52px;
    height:52px;
  }

  body.bx-v4-dark-2d #searchForm{
    top:13px!important;
    left:76px!important;
    width:calc(100vw - 90px)!important;
  }
}
