#lb-locator {
  display: flex;
  width: 100%;
}

.lb-sidebar {
  width: 355px;
  padding: 0;
  overflow-y: auto;
  background: #f9f9f9;
  border-right: 1px solid #ccc;
  height: 697px;
}
.contentinfo
 {
    display: flex;
    align-items: start;
}
.lb-distance {
    color: white;
    max-width: 100px;
    text-align: center;
    padding: 2px 0;
    border-radius: 5px;
    font-size: 12px;
    background: #f05a28;
    margin: 6px 0 8px;
    display: block;
}
#lb-map {
  flex: 1;
  height: 100%;
}

.lb-result {
  border-bottom: 1px solid #ddd;
  padding: 8px;
  cursor: pointer;
}

.lb-result:hover {
  background: #eee;
}
.lb-result-item.active {
  background-color: #f0f8ff;
  border-left: 3px solid #0073aa;
  padding-left: 5px;
}
.lb-result-item {
    margin: 0px 0 10px;
    border-bottom: 1px solid #cfcfcf;
    padding: 10px 0;
}
.lb-brand-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.lb-radio-btn {
  position: relative;
  cursor: pointer;
}

.lb-radio-btn input[type="radio"] {
  display: none;
}

.lb-radio-btn span {
  display: inline-block;
  padding: 10px 20px;
  background-color: #888;
  color: white;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.3s;
  user-select: none;
  min-width: 100px;
  text-align: center;
      margin: 10px 0 0px;
}

.lb-radio-btn input[type="radio"]:checked + span {
  background-color: #f05a28;
  color: #fff;
}

#lb-search {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
h3.list-title {
    background: #f05a28;
    text-align: center;
    color: #fff;
    padding: 9px 0;
}
.lb-search-panel {
  transition: transform 220ms ease, opacity 220ms ease;
  transform-origin: top right;
}

.lb-search-panel:not(.lb-open) {
  height: auto;
  width: 270px;
  overflow: visible; 
}

.lb-search-panel:not(.lb-open) input,
.lb-search-panel:not(.lb-open) select,
.lb-search-panel:not(.lb-open) button,
.lb-search-panel:not(.lb-open) .lb-reset {
  display: none;
}

.lb-search-panel > div:first-child {
  cursor: pointer;
  user-select: none;
}

.lb-search-panel:not(.lb-open) > div:first-child {
  padding: 6px 8px;
}

#lb-loading { z-index: 1001; }


.lb-search-panel {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
  max-height: 500px; 
}


.lb-search-panel:not(.lb-open) {
  max-height: 42px; 
  opacity: 0.95;
}
.loac_outer {
    padding: 8px;
    position: relative;
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: start;
}
.numcount {
        padding: 0 12px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    color: white;
    font-size: 15px;
    line-height: 31px;
    background: #f05a28;
    
}
h3.loctitle {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}
.locationbtnmbr {
    display: flex;
    align-items: start;
    gap: 5px;
}
.locationbtnmbr p {
    margin: 0;
}
.locationbtnmbr p br{
   display:none;
}

.contentinfo {
    padding: 8px 0 0;
}
a.lb-directions {
    color: #f05a28;
}
.lb-search-panel:not(.lb-open) > *:not(:first-child) {
  display: none;
}
/* collapse panel to header-only when closed */
.lb-search-panel {
  transition: max-height 0.22s ease, opacity 0.22s ease;
  overflow: hidden;
  max-height: 500px;
}

.lb-search-panel:not(.lb-open) {
  max-height: 48px; /* header height — adjust if needed */
  opacity: 0.98;
}

/* hide everything inside the panel except the header row */
.lb-search-panel:not(.lb-open) > *:not(:first-child) {
  display: none !important;
}

/* extra: forcibly hide specific known inputs if above didn't work */
.lb-search-panel:not(.lb-open) #lb-user-address,
.lb-search-panel:not(.lb-open) #lb-search,
.lb-search-panel:not(.lb-open) #lb-radius,
.lb-search-panel:not(.lb-open) #lb-category,
.lb-search-panel:not(.lb-open) #lb-search-btn,
.lb-search-panel:not(.lb-open) #lb-reset-btn {
  display: none !important;
}
/* ensure panel header always visible, and children hidden when collapsed */
.lb-search-panel {
  transition: max-height .26s ease, opacity .18s ease;
  overflow: hidden;
  max-height: 500px; /* open default */
}
.lb-search-panel > div:first-child {
  cursor: pointer;
}

/* collapsed: only header visible */
.lb-search-panel:not(.lb-open) {
  max-height: 48px; /* adjust if your header is taller */
  opacity: 0.98;
}
.lb-search-panel:not(.lb-open) > *:not(:first-child) {
  display: none !important;
}

/* keep spinner hidden when closed (if you used JS to append it) */
.lb-search-panel:not(.lb-open) #lb-loading { display: none !important; }

@media (max-width:767px){
 div#lb-locator {
    flex-direction: column-reverse;
} 
.lb-search-panel.lb-open {
    width: 100% !important;
}
div {
    width: 100%;
}
.lb-sidebar {
    width: 100%;
}
.numcount {
    width: auto;
    padding: 0 12px;
}
div#lb-locator {
    width: 90%;
    margin: 0 auto;
}
}
