:root {
  --bl-primary: #0a1a36;
  --bl-accent: #f05423;
  --bl-bg-light: #f4f7f9;
  --bl-border: #d1d9e6;
  --bl-text-dark: #333;
  --bl-text-muted: #666;
}

.bl-container {
  display: flex;
  flex-wrap: wrap;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  border: 1px solid var(--bl-border);
  margin: 20px auto;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.bl-sidebar {
  flex: 0 0 300px;
  background: var(--bl-bg-light);
  border-right: 1px solid var(--bl-border);
}

.bl-widget {
  margin-bottom: 0;
}

.bl-widget-title {
  background: var(--bl-primary);
  color: #fff;
  margin: 0;
  padding: 12px 20px;
  font-size: 18px;
  font-weight: 500;
  border-top: 4px solid var(--bl-accent);
}

.bl-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bl-menu-item {
  display: block;
  background: #fff;
  border-bottom: 1px solid var(--bl-border);
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0px !important;
}

.bl-menu-item.is-empty {
  opacity: 0.6;
  cursor: default;
}

.bl-menu-header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
}

.bl-menu-item:hover .bl-menu-header {
  background: #fdfdfd;
}

.bl-menu-item.active .bl-arrow {
  transform: rotate(225deg);
  margin-bottom: -4px;
}

.bl-submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fafafa;
  max-height: 300px;
  overflow-y: auto;
}

.bl-menu-item.active .bl-submenu {
  display: block;
}

.bl-submenu-item {
  padding: 10px 20px 10px 10px;
  font-size: 14px;
  color: var(--bl-text-muted);
  border-top: 1px solid #eee;
  transition: all 0.2s;
}

.bl-submenu-item:hover {
  background: #f0f0f0;
  color: var(--bl-accent);
}

.bl-icon,
.bl-custom-icon {
  width: 24px;
  height: 24px;
  margin-right: 15px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  object-fit: contain;
}

/* Placeholder icons using CSS */
.bl-icon-hq {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23cc0000" viewBox="0 0 24 24"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
}
.bl-icon-branch {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23f05423" viewBox="0 0 24 24"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
}
.bl-icon-atm {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%2300aabb" viewBox="0 0 24 24"><path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm-5 14H5v-2h10v2zm4-4H5v-2h14v2zm0-4H5V8h14v2z"/></svg>');
}

.bl-menu-item .bl-text {
  flex: 1;
  color: var(--bl-text-dark);
  font-size: 15px;
}

.bl-arrow {
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--bl-accent);
  border-right: 2px solid var(--bl-accent);
  transform: rotate(45deg);
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 10px;
}

.bl-filter-group {
  margin-bottom: 12px;
}

#bl-filter-form {
  padding: 20px;
}

.bl-checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  color: var(--bl-text-dark);
}

.bl-checkbox-label input {
  margin-top: 3px;
  margin-right: 10px;
}

.bl-select {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--bl-border);
  background: #fff;
  margin-top: 10px;
}

.bl-button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.bl-btn {
  flex: 1;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--bl-border);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.bl-btn:hover {
  background: #f0f0f0;
}

.bl-map-wrapper {
  flex: 1;
  min-height: 500px;
  position: relative;
}

#bl-google-map {
  width: 100%;
  height: 100%;
  min-height: 500px;
}

/* Info Window Styles */
.gm-style .bl-infowindow {
  padding: 0;
  max-width: 300px;
  font-family: inherit;
}

.bl-iw-header {
  background: var(--bl-primary);
  color: #fff;
  padding: 10px 15px;
  position: relative;
}

.bl-iw-header h4 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bl-iw-body {
  padding: 15px;
  background: #fff;
}

.bl-iw-label {
  margin: 0 0 8px 0 !important;
  font-size: 11px !important;
  font-weight: 700;
  color: var(--bl-primary);
  text-transform: uppercase;
  border-bottom: 1px solid var(--bl-border);
  padding-bottom: 2px;
}

.bl-iw-value {
  margin: 0 0 12px 0 !important;
  font-size: 13px !important;
  color: var(--bl-text-dark) !important;
  line-height: 1.4;
}

/* Timing Repeater Frontend Styles */
.bl-iw-timing-row {
  margin-bottom: 15px;
}

.bl-iw-timing-label {
  margin: 0 0 5px 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #000 !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
}

.bl-iw-timing-value-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bl-iw-timing-bar {
  width: 2px;
  height: 14px;
  background-color: var(--bl-accent);
  display: inline-block;
}

.bl-iw-timing-value {
  margin: 0 !important;
  font-size: 13px !important;
  color: #888 !important;
  font-weight: 600 !important;
}

.bl-directions-btn {
  display: inline-block;
  margin-top: 5px;
  color: var(--bl-accent) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.2s;
}

.bl-directions-btn:hover {
  transform: translateX(5px);
}

.gm-style-iw {
  padding: 0 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

.gm-style-iw-d {
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .bl-container {
    flex-direction: column;
  }

  .bl-sidebar {
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid var(--bl-border);
  }

  .bl-map-wrapper {
    flex: 0 0 500px; /* Give it a fixed height on mobile or it might collapse */
  }
}
