.bbm-container {
  position: relative;
  width: 100%;
  /* height: 85vh; */
  min-height: 85vh;
  background-color: #f4f4f4;
  overflow: hidden;
  font-family: "Open Sans", sans-serif;
  color: #333;
  letter-spacing: 0.02em !important;
}
.bbm-container h1,
.bbm-container h2,
.bbm-container h3,
.bbm-container h4,
.bbm-container h5,
.bbm-container h6 {
  letter-spacing: 0.02em !important;
}
.bbm-features-grid p:empty {
  display: none;
}
.bbm-card-view p:empty {
  display: none;
}
.bbm-card p:empty {
  display: none;
}
.bbm-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bbm-card-view--hidden {
  display: none !important;
}

.bbm-search-message {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #b45309;
}

.bbm-empty-message {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.bbm-branch-pick-heading {
  margin: 20px 0 12px;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #00b551 !important;
}

.bbm-branch-pick-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bbm-branch-pick-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid #eaeaea;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  gap: 10px;
}
.bbm-branch-pick-item__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bbm-branch-pick-item:hover {
  background: #f8f9fa;
}

.bbm-branch-pick-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}

.bbm-branch-pick-item__meta {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
}

.bbm-contact-line a {
  color: inherit;
  text-decoration: none;
}

.bbm-contact-line a:hover {
  text-decoration: underline;
}

.bbm-marker-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.bbm-marker-info p {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: #444;
}

.bbm-card {
  position: absolute;
  top: 100px;
  left: 40px;
  width: 540px;
  max-height: calc(100% - 80px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px 30px 30px 30px;
}

.bbm-card-header {
  /* padding: 30px 30px 0px 30px; */
  flex-shrink: 0;
  padding-bottom: 20px;
}

.bbm-card-header h2 {
  margin: 0 0 10px 0;
  font-size: 2.6rem;
  font-weight: 800;
  color: #000;
}

.bbm-card-header p {
  font-size: 16px;
  color: #000000;
  line-height: 1.5;
  margin-bottom: 20px;
}

.bbm-search-wrapper {
  position: relative;
}

.bbm-search-wrapper input {
  width: 100%;
  padding: 12px 44px 12px 15px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
}

.bbm-search-wrapper input:focus {
  border-color: #00b551;
}

.bbm-search-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: #999;
}

.bbm-search-toggle:hover,
.bbm-search-toggle:focus {
  color: #00b551;
  outline: none;
}

.bbm-search-icon {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.bbm-region-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.bbm-region-option {
  padding: 10px 16px;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
}

.bbm-region-option:hover,
.bbm-region-option.is-active {
  background: #f0fdf4;
  color: #111;
}

.bbm-region-option.is-hidden {
  display: none;
}

.bbm-region-option--empty {
  cursor: default;
  color: #666;
  font-size: 0.9rem;
}

.bbm-region-option--empty:hover {
  background: transparent;
}

.bbm-card-body {
  /* padding: 0 30px 30px 30px; */
  overflow-y: auto;
  flex-grow: 1;
}

/* Features State */
.bbm-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 10px;
}

.bbm-feature-box {
  background: #f4f4f4;
  border-radius: 8px;
  padding: 20px 10px;
  text-align: center;
}

.bbm-feature-box svg {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
}

.bbm-feature-box h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 5px 0;
  color: #3a3a3a;
}

.bbm-feature-box p {
  font-size: 1rem;
  color: #000;
  margin: 0;
}

/* Branch State */
.bbm-branch-list {
  margin-top: 10px;
}

.bbm-back-btn {
  background: none;
  border: none;
  color: #00b551;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 10px 20px 10px 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  margin-top: 10px;
}
.bbm-back-btn::before {
  content: "\f177"; /* long-arrow-left */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.bbm-back-btn::before {
  content: "←";
  font-size: 1rem;
}
.bbm-back-btn p {
  margin: 0;
}
.bbm-back-btn svg {
  width: 16px;
  height: 16px;
}

.bbm-back-btn:hover {
  color: #000;
}

.bbm-branch-title-ui {
  color: #00b551 !important;
  font-size: 1.25rem !important;
  margin: 0 0 15px 0;
  font-weight: 700 !important;
  /* padding-bottom: 15px;
  border-bottom: 1px solid #eaeaea; */
}

.bbm-broker-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eaeaea;
}

.bbm-broker-item:last-child {
  border-bottom: none;
}

.bbm-broker-photo-wrapper {
  flex-shrink: 0;
}
#bbm-view-branch-pick,
#bbm-view-brokers {
  border-top: 1px solid #ccc;
}
.bbm-broker-photo-wrapper img,
.bbm-broker-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  background: #e2e8f0;
}

.bbm-broker-info {
  flex-grow: 1;
}

.bbm-broker-info h4 {
  margin: 0 0 8px 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.bbm-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 1rem;
  color: #000;
}

.bbm-contact-line svg {
  width: 16px;
  height: 16px;
  color: #00b551;
}

.bbm-btn-view {
  display: inline-block;
  margin-top: 10px;
  background: #00b551;
  color: #fff !important;
  text-decoration: none;
  padding: 10px 30px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s;
}

.bbm-btn-view:hover {
  background: #00b551;
}

.bbm-card br {
  display: none;
}
#bbm-region-search::-webkit-search-decoration,
#bbm-region-search::-webkit-search-cancel-button,
#bbm-region-search::-webkit-search-results-button,
#bbm-region-search::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}
#bbm-region-search::-webkit-calendar-picker-indicator {
  display: none !important;
}
.bbm-features-grid img {
  height: 44px !important;
  margin-bottom: 20px;
}
/* Responsive */
@media (max-width: 768px) {
  .bbm-container {
    min-height: 150vh;
  }
  .bbm-card {
    top: 20px;
    /* bottom: 0; */
    left: 20px;
    width: 91%;
    /* max-height: 60%; */
    border-radius: 10px;
    padding: 0;
  }
  .bbm-card-header {
    padding: 20px 20px 10px 20px;
  }
  .bbm-card-body {
    padding: 0 20px 20px 20px;
  }
  .bbm-feature-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .bbm-card-header h2 {
    font-size: 1.6rem;
  }
  /* Features Card */
  .bbm-features-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .bbm-feature-box {
    display: flex;
    align-items: center;
    gap: 18px;

    border-radius: 14px;
    padding: 12px 15px;
  }

  .bbm-feature-box img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
  }

  /* Remove empty paragraph spacing */
  .bbm-feature-box p:empty,
  .bbm-features-grid > p:empty {
    display: none;
  }

  .bbm-feature-box h4 {
    margin: 10px 0 4px;
    font-size: 18px;
  }

  .bbm-feature-box p {
    margin: 0;
    font-size: 16px;
    color: #222;
    line-height: 1.4;
  }
}

/* Responsive */
@media (min-width: 1600px) {
  .bbm-card {
    left: calc((100% - 1600px) / 2 + 40px) !important;
  }
}
