.sl-container {
  display: flex;
  width: 100%;
  height: 640px;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  background: #fff;
}

.sl-sidebar {
  width: 360px;
  min-width: 360px;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e5e5e5;
  z-index: 10;
}

.sl-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.sl-sidebar-header h2 {
  font-size: 24px;
  margin: 0 0 12px;
  color: #222;
}

.sl-search-container {
  margin-bottom: 10px;
}

.sl-search-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.sl-search-input:focus {
  outline: none;
  border-color: #999;
}
.sl-search-input::placeholder {
  color: #aaa;
}

.sl-filter-container {
  margin-top: 2px;
}
.sl-location-count {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
}

.sl-location-count__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sl-location-count__value {
  --count-bg: #eef2f7;
  --count-border: #cdd6e3;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--count-border);
  background: var(--count-bg);
  color: var(--primary, #333);
  font-size: 13px;
  letter-spacing: 0;
  justify-content: center;
}

.sl-filter-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
  min-height: 36px;
}

.sl-filter-select:focus {
  outline: none;
  border-color: #999;
}

.sl-location-list {
  flex: 1;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--primary, #333) #f1f1f1;
}

.sl-location-list::-webkit-scrollbar {
  width: 10px;
}

.sl-location-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.sl-location-list::-webkit-scrollbar-thumb {
  background: var(--primary, #333);
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

.sl-location-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary, #333);
}

.sl-location-item {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.15s;
}

.sl-location-item:hover {
  background: #fafafa;
}

.sl-location-item.active {
  background: #f5f5f5;
  border-left: 3px solid var(--primary, #333);
  padding-left: 13px;
}

.sl-location-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.sl-location-name {
  font-size: 16px;
  line-height:normal;
  font-weight: 600;
  color: #222;
}


.sl-location-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
  flex-shrink: 0;
}

.sl-location-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}
.sl-location-btn svg {
  width: 14px;
  height: 14px;
  color: #555;
}

.sl-location-meta {
  font-size: 14px;
  line-height:normal;
  margin-bottom: 6px;
}
.sl-location-address {
  font-size: 14px;
    line-height: normal;
  color: #666;
  margin-bottom: 6px;
}
.sl-location-phone {
  font-size: 14px;
    line-height:normal;
  color: #666;
  margin-bottom: 12px;
}
.sl-location-phone a {
  color: inherit;
  text-decoration: underline;
}
.sl-location-hours-toggle {
  padding: 0;
  margin: 0 0 10px;
  border: 0;
  background: transparent;
  color: var(--primary, #333);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--text-font-family);
}
.sl-location-hours-toggle:hover {
  opacity: 0.85;
}
.sl-location-hours {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  white-space: pre-line;
}
.sl-location-services {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.sl-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px 4px 8px;
  border-radius: 4px;
  background: #fff;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1;
}

.sl-service-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.sl-service-tag.sales {
  color: #1f3a5f;
  border-color: #d4dde8;
  background: #f6f8fb;
}
.sl-service-tag.service {
  color: #1f6b4a;
  border-color: #d2e4d9;
  background: #f4faf6;
}
.sl-service-tag.testdrive {
  color: #7a4a1a;
  border-color: #e6d6c2;
  background: #fbf6ef;
}

.sl-no-results {
  padding: 40px 16px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

.gm-style-iw-ch {
  padding-top: 0 !important;
}

.sl-popup {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-width: 240px;
  padding: 4px 6px 6px;
  color: #333;
}
.sl-popup-title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}
.sl-popup-subtitle {
  font-size: 12px;
  color: #888;
  margin-bottom: 14px;
}
.sl-popup-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin: 12px 0 6px;
}
.sl-popup-phone {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.sl-popup-phone:hover {
  text-decoration: underline;
}
.sl-popup-open-info {
  margin-top: 14px;
  font-size: 12px;
  color: #444;
  white-space: pre-line;
  line-height: 1.5;
}

.sl-popup-open-info b{
  font-size: 16px;
  font-weight:500
}

.sl-popup-open-info a {
  color: var(--primary, #333);
  text-decoration: none;
}

.sl-popup-line {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.sl-map-container {
  flex: 1;
  position: relative;
  min-height: 0;
}
.sl-map {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .sl-container {
    flex-direction: column-reverse;
    min-height: 0;
    height: auto;
  }
  .sl-sidebar {
    width: 100%;
    min-width: 100%;
    flex: none;
    max-height: 800px;
    border-right: none;
    border-top: 1px solid #e5e5e5;
  }
  .sl-map-container {
    flex: none;
    height: 50vh;
    min-height: 0;
  }
  .sl-sidebar-header {
    padding: 14px;
    margin-top: 2rem;
  }
  .sl-location-item {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .sl-location-services {
    flex-wrap: wrap;
  }
}
