
/* Put locations under the header, like your black bar */
#header-locations-mount {
  width: 100%;
  margin-top: 0;
}

/* 7-up grid for location dropdown blocks */
.locations-7 .wpb_wrapper{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

@media (min-width: 769px){
  .locations-7 .wpb_wrapper{
    display: block; /* disable grid on desktop */
  }
}

/* helps prevent WPBakery element margins from messing spacing */
.locations-7 .wpb_wrapper > *{
  margin: 0 !important;
}

/* optional: make dropdowns fill their grid cell */
.locations-7 select,
.locations-7 .loc-block,
.locations-7 .loc-block * {
  max-width: 100%;
}

/* Mobile toggle button hidden on desktop */
#locations-toggle{
  display:none;
}

/* MOBILE: turn it into a slide-out panel */
@media (max-width: 768px){

  #locations-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin: 8px 16px;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
  }

  /* Panel styling */
  .locations-menu{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(360px, 85vw);
    background: #000;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 200ms ease;
    overflow: auto;
    padding: 16px;
  }

  /* Stack vertically on mobile */
  .locations-menu .wpb_wrapper{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Open state */
  body.locations-open .locations-menu{
    transform: translateX(0);
  }
}

#header-locations-source {
  display: flex !important;
  justify-content: center;   /* centers the whole menu */
  align-items: center;
  gap: 50px;                 /* spacing BETWEEN menu items */
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  padding: 4px 0;
}

#header-locations-source .loc-block {
  flex: 0 0 auto;   /* shrink-to-content */
  display: inline-flex;
  align-items: center;
}

/* layout */
.loc-block{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* visible nav-style trigger */
.loc-trigger{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.loc-block:hover .loc-trigger span.loc-text {
	color: #eb1c24;
}

/* arrow */
.loc-arrow{
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

/* real select overlays the trigger */
.location-select{
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;

  /* kill native appearance junk */
  -webkit-appearance: none;
  appearance: none;
}


/* 4) If the theme is injecting margins on raw html wrappers, kill them locally */
.locations-7 .wpb_raw_code,
.locations-7 .wpb_wrapper,
.locations-7 .wpb_content_element {
  margin-bottom: 0 !important;
}


