.locations-table-container {
  margin-top: 20px;
}

.locations-table-search {
  margin-bottom: 15px;
}

.locations-table-search .form-group {
  margin-bottom: 0;
}

.locations-table-hint {
  font-style: italic;
  color: #666;
  margin-top: 5px;
}

.locations-table-message {
  padding: 20px;
  text-align: center;
  color: #666;
}

.locations-table-results-header {
  margin-bottom: 15px;
}

.locations-table-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.locations-table-body {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.map-container-wrapper {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-height: 700px;
}

.map-main-container {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  height: auto;
  align-self: stretch;
}

.map-main-container .plot-container {
  height: 100%;
  margin-bottom: 0;
}

.map-sidebar-container {
  flex: 0 0 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--card, #fff);
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  min-height: 0;
  height: auto;
  align-self: stretch;
  border-radius: 12px;
  overflow: hidden;
}

.map-container-wrapper.has-sidebar .map-main-container {
  flex: 0 0 60%;
}

.map-container-wrapper.has-sidebar .map-sidebar-container {
  flex: 0 0 40%;
  opacity: 1;
  visibility: visible;
}

.map-container-wrapper.has-sidebar {
  height: 700px;
  align-items: stretch;
}

.map-container-wrapper.has-sidebar .map-main-container,
.map-container-wrapper.has-sidebar .map-sidebar-container {
  height: 100%;
  min-height: 0;
}

button.map-sidebar-trigger {
  white-space: nowrap;
}

.map-sidebar-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  max-height: none;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
}

.map-sidebar-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f8f8;
  flex-shrink: 0;
  position: relative;
  padding-right: 52px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.map-sidebar-header h4 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

.map-sidebar-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-sub);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.map-sidebar-close:hover {
  background: rgba(0,0,0,0.1);
  color: var(--ink);
}

.map-sidebar-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.map-sidebar-table-container {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 10px;
  overflow: auto;
}

.locations-table-hint:empty {
  display: none;
}