:root {
  --trb-sidebar-width: 400px;
}

.trb-app {
  display: flex;
  width: 100%;
}

.trb-mapwrap {
  position: sticky;
  top: 0;
  right: 0;
  width: calc(100vw - var(--trb-sidebar-width));
  height: 100vh;
  z-index: 1;
}

.trb-map {
  width: 100%;
  height: 100%;
}

.trb-places-input {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  padding: 10px 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  max-width: 600px;
}

.trb-sidebar {
  width: var(--trb-sidebar-width);
  background: #ffffff;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1rem;
}

.trb-sidebar-inner {
  display: flex;
  flex-direction: column;
}

.trb-controls {
  padding: 0 0 16px 0;
  border-bottom: 1px solid #eee;
}

.trb-brand {
  font-weight: 700;
  margin-bottom: 8px;
}

.trb-search {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

#trb-search {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

#trb-clear {
  padding: 6px 10px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  border-radius: 6px;
  cursor: pointer;
}

.trb-tabs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.trb-tab {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fafafa;
  cursor: pointer;
}

.trb-tab.is-active {
  background: #003C69;
  color: #fff;
  border-color: #003C69;
}

.trb-geo {
  margin-top: 10px;
}

#trb-geolocate {
  padding: 6px 10px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  border-radius: 6px;
  cursor: pointer;
  font-family: sans-serif;
  font-size: 13.3333px;
}

#trb-branch-map-app .trb-moneypass-btn {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none !important;
  color: #333 !important;
  font-family: sans-serif !important;
  font-size: 13.3333px !important;
  margin-left: 8px;
  line-height: normal;
}

#trb-branch-map-app .trb-moneypass-btn:hover {
  background-color: #efefef;
  text-decoration: none !important;
  color: #333 !important;
}

.trb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-bottom: 20px;
}

.trb-item {
  border-bottom: 1px solid #f1f1f1;
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.trb-item.trb-selected {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.trb-item-content {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.trb-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.trb-item-title-bar {
  background: #003C69;
  color: #fff;
  padding: 12px 14px;
  flex: 1;
  cursor: pointer;
}

.trb-item-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.trb-item-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.trb-item-meta {
  display: block;
  font-size: 1rem;
  color: #666;
  margin: 0;
}

.trb-item-phone {
  margin-top: 6px;
}

.trb-item-phone a {
  color: #003C69;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.trb-item-phone a:hover {
  text-decoration: underline;
}

.trb-service-tags {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.trb-service-tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 500;
  background: #94785B;
  color: #fff;
  border-radius: 12px;
  margin-left: 4px;
}

.trb-itm-tag {
  background: #003C69;
}

.trb-hours-status {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-top: 4px;
  gap: 6px;
}

.trb-hours-label {
  color: #666;
  font-weight: 500;
}

.trb-hours-time {
  font-weight: 600;
}

.trb-hours-time.open {
  color: #22c55e;
}

.trb-hours-time.closed {
  color: #ef4444;
}

.trb-item-actions {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #f8f9fa;
}

.trb-item-actions .trb-action-btn,
.breakdance .trb-item-actions .trb-action-btn,
.breakdance a.trb-action-btn {
  flex: 1;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  border-radius: 25px;
  border: none;
  color: #fff !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.trb-item-actions .trb-action-btn:hover,
.breakdance .trb-item-actions .trb-action-btn:hover,
.breakdance a.trb-action-btn:hover {
  text-decoration: none !important;
  transform: translateY(-1px);
  color: #fff !important;
}

.trb-item-actions .trb-details-btn,
.breakdance .trb-item-actions .trb-details-btn,
.breakdance a.trb-details-btn {
  background: #94785B !important;
  color: #fff !important;
}

.trb-item-actions .trb-details-btn:hover,
.breakdance .trb-item-actions .trb-details-btn:hover,
.breakdance a.trb-details-btn:hover {
  background: #7d6449 !important;
  color: #fff !important;
}

.trb-item-actions .trb-schedule-btn,
.breakdance .trb-item-actions .trb-schedule-btn,
.breakdance a.trb-schedule-btn {
  background: #003C69 !important;
  color: #fff !important;
}

.trb-item-actions .trb-schedule-btn:hover,
.breakdance .trb-item-actions .trb-schedule-btn:hover,
.breakdance a.trb-schedule-btn:hover {
  background: #002a4a !important;
  color: #fff !important;
}

.trb-empty {
  padding: 12px 14px;
  color: #666;
}

/* Info window styling to match location cards */
.trb-infowin {
  min-width: 280px;
  max-width: 320px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  background: #fff;
  font-family: inherit;
}

.trb-infowin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.trb-infowin-title-bar {
  background: #003C69;
  color: #fff;
  padding: 12px 14px;
  flex: 1;
}

.trb-infowin-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.trb-infowin-tags {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.trb-infowin-content {
  padding: 12px 14px;
}

.trb-infowin-address {
  font-size: 1rem;
  color: #666;
  margin-bottom: 8px;
}

.trb-infowin-phone {
  margin-top: 8px;
}

.trb-infowin-phone a {
  color: #003C69;
  text-decoration: none;
  font-weight: 500;
}

.trb-infowin-phone a:hover {
  text-decoration: underline;
}

.trb-infowin-actions {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #f8f9fa;
  border-top: 1px solid #f1f1f1;
}

.trb-infowin .trb-action-btn {
  flex: 1;
  padding: 8px 16px;
  font-size: 12px;
}

.trb-hours {
  margin-top: 6px;
  font-size: 1rem;
  color: #555;
}

/* Marker cluster styling - max 32x32px */
.cluster-icon {
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cluster-icon-small {
  background: #003b71;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.cluster-icon-medium {
  background: #0066cc;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.cluster-icon-large {
  background: #004499;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 11px;
}

/* Mobile */
@media (max-width: 900px) {
  :root {
    --trb-sidebar-width: 100vw;
  }

  .trb-app {
    flex-direction: column;
  }

  .trb-mapwrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 50vh;
    z-index: 1;
  }

  .trb-sidebar {
    width: 100%;
    min-height: auto;
    margin-top: 50vh;
    z-index: 2;
  }

  .trb-places-input {
    top: 12px;
    left: 12px;
    right: 12px;
  }
}