#obl-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  font-family: "Segoe UI", Arial, sans-serif;
}

#obl-map {
  position: relative;
  width: 100%;
  height: 100%;
}

#obl-search-container {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  width: 300px;
}

#obl-search {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: "Segoe UI", Arial, sans-serif;
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  outline: none;
  background: #fff;
  color: #3c4043;
  box-sizing: border-box;
}

#obl-search::placeholder {
  color: #9aa0a6;
}

#obl-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-height: 250px;
  overflow-y: auto;
  display: none;
  z-index: 10;
  margin-top: 2px;
}

#obl-search-results.active {
  display: block;
}

.obl-search-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f3f4;
  font-size: 13px;
  color: #3c4043;
  text-align: left;
}

.obl-search-item:last-child {
  border-bottom: none;
}

.obl-search-item:hover {
  background: #f8f9fa;
  color: #1a73e8;
}

.obl-search-item .branch-name {
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.obl-search-item .branch-address {
  font-size: 11px;
  color: #70757a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

#obl-topbar {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

#obl-city-select {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-right: 1px solid #e0e0e0;
  background: transparent;
  cursor: pointer;
  color: #3c4043;
  outline: none;
  max-width: 180px;
}

.obl-tb-btn {
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #3c4043;
  border-right: 1px solid #e0e0e0;
  transition: background 0.15s;
}

.obl-tb-btn:last-child {
  border-right: none;
}
.obl-tb-btn.active {
  background: #e8f0fe;
  color: #1a73e8;
}
.obl-tb-btn:hover:not(.active) {
  background: #f5f5f5;
  color: #3c4043;
}

#obl-infopopup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  padding: 0;
  min-width: 300px;
  max-width: 360px;
  display: none;
  font-family: "Segoe UI", Arial, sans-serif;
  overflow: hidden;
}

#obl-infopopup.show {
  display: block;
}

#obl-infopopup::before {
  content: "Branch Details";
  display: block;
  color: #2a385f;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 16px 10px;
  letter-spacing: 0.2px;
}

.obl-close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 100%;
  border: none;
  background: transparent;
  font-size: 15px;
  cursor: pointer;
  color: #5f6368;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.obl-close-btn:hover {
  background: #2a385f;
  color: #fff;
}

#obl-infotable {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  font-family: "Gotham", sans-serif !important;
}

#obl-infotable tr {
  border-bottom: 1px solid #f1f3f4;
}
#obl-infotable tr:last-child {
  border-bottom: none;
}

#obl-infotable td {
  padding: 5px 16px;
  font-size: 13px;
  vertical-align: top;
  border: 0;
}

#obl-infotable td:first-child {
  font-weight: 600;
  color: #2a385f;
  white-space: nowrap;
  width: 75px;
  font-size: 12px;
}

#obl-infotable td:last-child {
  color: #2a385f;
  line-height: 2.4;
}

#obl-infotable-wrapper {
  max-height: 320px;
  overflow-y: auto;
}

#obl-infotable-wrapper::-webkit-scrollbar {
  width: 6px;
}

#obl-infotable-wrapper::-webkit-scrollbar-track {
  background: #f1f3f4; 
}

#obl-infotable-wrapper::-webkit-scrollbar-thumb {
  background: #c1c1c1; 
  border-radius: 4px;
}

#obl-infotable-wrapper::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8; 
}

/* Responsive Styles */
@media screen and (max-width: 900px) {
  #obl-search-container {
    width: 250px;
  }
}

@media screen and (max-width: 768px) {
  #obl-search-container {
    width: calc(100% - 20px);
    left: 10px;
    right: 10px;
    top: 60px; /* Shifted down to avoid overlapping with topbar */
  }
  
  #obl-topbar {
    width: calc(100% - 20px);
    max-width: 400px;
  }

  .obl-tb-btn {
    padding: 8px 12px;
    font-size: 12px;
    flex: 1;
  }

  #obl-infopopup {
    width: 90%;
    min-width: unset;
  }
}

@media screen and (max-width: 480px) {
  #obl-topbar {
    top: 5px;
  }
  
  #obl-search-container {
    top: 50px;
  }

  .obl-tb-btn {
    padding: 6px 8px;
    font-size: 11px;
  }
}
