.markets-list-wrapper {
  display: inline-flex;
  width: 100%;
  max-width: 100%;
}

.markets-list-container {
  width: 100%;
  max-width: 1280px;
  height: 724px;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 32px;
  display: inline-flex;
}

.markets-list-panel {
  width: 416px;
  min-width: 0;
  flex-shrink: 0;
  height: 724px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
}

#tooltip-role {
  position: absolute;
  font-size: 11px;
  font-weight: bolder;
  text-transform: capitalize;
  letter-spacing: -0.2px;
  color: #000;
  pointer-events: none;
  cursor: unset;
  transform: translate(-1.32rem, -1rem);
}

.markets-list-map path {
  position: relative;
}

.markets-list-map-panel {
  flex: 1 1 0;
  min-width: 0;
  height: 724px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
}

.markets-list-map-header {
  align-self: stretch;
  padding: 16px 24px;
  background: white;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  outline: 1px #E2E2EB solid;
  outline-offset: -1px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
  display: flex;
}

.markets-list-map-header-content {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.32rem;
}

.markets-list-map-instruction {
  color: #344049;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 22px;
  word-wrap: break-word;
  margin: 0;
}

.markets-list-map-legend {
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
  display: flex;
}

.markets-list-map-legend-item {
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  display: flex;
}

.markets-list-map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.markets-list-map-legend-text {
  color: #344049;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 22px;
  word-wrap: break-word;
}

.markets-list-header {
  align-self: stretch;
  padding: 16px 24px;
  background: white;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  outline: 1px #E2E2EB solid;
  outline-offset: -1px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 22px;
  display: flex;
}

.markets-list-header-content {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  display: flex;
}

.markets-list-title {
  align-self: stretch;
  color: #344049;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 28px;
  word-wrap: break-word;
  letter-spacing: 0;
  text-align: left;
  margin: 0;
}

.markets-list-description {
  align-self: stretch;
  color: #838492;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 22px;
  word-wrap: break-word;
  margin: 0;
  text-align: left;
}

.markets-list-dropdown-wrapper {
  align-self: stretch;
  position: relative;
  z-index: 1;
}

.markets-list-state-selector {
  align-self: stretch;
  width: 100%;
  padding: 14px 16px;
  background: #F6F8F9;
  border-radius: 4px;
  outline: 1px #E2E2EB solid;
  outline-offset: -1px;
  justify-content: space-between;
  align-items: center;
  display: inline-flex;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.markets-list-state-selector:hover {
  background: #F5F5F5;
}

.markets-list-state-selector-open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-color: #FFFFFF;
}

.markets-list-state-text {
  color: #344049;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 16px;
  word-wrap: break-word;
  flex: 1;
  text-align: left;
}

.markets-list-dropdown-icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.markets-list-dropdown-icon-open {
  transform: rotate(180deg);
}

.markets-list-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px #E2E2EB solid;
  border-top: none;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 99999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: -1px;
  pointer-events: auto;
}

.markets-list-dropdown-option {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: none;
  border-bottom: 1px #E2E2EB solid;
  text-align: left;
  color: #344049;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.markets-list-dropdown-option:first-child {
  border-top: 1px #E2E2EB solid;
}

.markets-list-dropdown-option:last-child {
  border-bottom: none;
}

.markets-list-dropdown-option:hover {
  background: #F6F8F9;
}

.markets-list-dropdown-option:focus {
  background: #F6F8F9;
}

.markets-list-dropdown-option-selected {
  background: #E8EAED;
  font-weight: 600;
}

.markets-list-dropdown-option-selected:hover {
  background: #D1D5DB;
}

.markets-list-content {
  align-self: stretch;
  flex: 1 1 0;
  padding: 0;
  background: white;
  border-bottom-left-radius: 8px;
  border-left: 1px #E2E2EB solid;
  border-right: 1px #E2E2EB solid;
  border-bottom: 1px #E2E2EB solid;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  display: flex;
  overflow: hidden;
  min-height: 0;
  position: relative;
}

@media (max-width: 480px) {
  .markets-list-content {
    min-height: 60vh;
  }
}

.markets-list-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 22px;
  right: 22px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, white);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.5) 50%, white 65%, white 100%);
  pointer-events: none;
  z-index: 99999;
}

.markets-list-items {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  display: flex;
  width: 100%;
  padding: 22px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 0;
  min-height: 0;
  box-sizing: border-box;
}

.markets-list-item {
  align-self: stretch;
  padding: 16px;
  background: white;
  border-radius: 4px;
  outline: 1px #E2E2EB solid;
  outline-offset: -1px;
  justify-content: space-between;
  align-items: center;
  display: inline-flex;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.markets-list-item:last-child {
  margin-bottom: 32px;
}

.markets-list-item:hover {
  background: #F6F8F9;
}

.markets-list-item-content {
  flex: 1 1 0;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2px;
  display: inline-flex;
}

.markets-list-item-header {
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.markets-list-item-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.markets-list-item-name {
  color: #344049;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 22px;
  word-wrap: break-word;
}

.markets-list-item-subtitle {
  align-self: stretch;
  color: #838492;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 22px;
  word-wrap: break-word;
  text-align: left;
}

.markets-list-item-subtitle-text {
  color: #838492;
}

.markets-list-item-subtitle-link {
  color: #C02646;
  text-decoration: underline;
  cursor: pointer;
}

.markets-list-item-chevron {
  width: 7px;
  height: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.markets-list-empty {
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: flex;
  flex: 1 1 0;
  min-height: 0;
}

.markets-list-empty-content {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  display: flex;
}

.markets-list-empty-title {
  align-self: stretch;
  text-align: center;
  color: #838492;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 28px;
  word-wrap: break-word;
  margin: 0;
}

.markets-list-empty-description {
  align-self: stretch;
  text-align: center;
  color: #838492;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 22px;
  word-wrap: break-word;
  margin: 0 auto;
  max-width: 320px;
}

.markets-list-empty-placeholder {
  width: 100%;
  height: 94px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #838492;
  font-size: 14px;
  margin-top: 32px;
  font-family: 'Inter', sans-serif;
}

.markets-list-empty-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Responsive: Tablet view - adjust layout */
@media (max-width: 1440px) {
  .markets-list-container {
    max-width: 100%;
    gap: 24px;
  }

  .markets-list-panel {
    width: 380px;
    flex-shrink: 0;
  }
}

@media (max-width: 1200px) {
  .markets-list-container {
    gap: 20px;
  }

  .markets-list-panel {
    width: 350px;
  }

  .markets-list-map-header {
    padding: 16px 20px;
    gap: 32px;
  }

  .markets-list-map-header-content {
    flex-wrap: wrap;
    gap: 16px;
  }

  .markets-list-map-legend {
    gap: 20px;
  }

  .markets-list-map-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .markets-list-map-container path {
    cursor: pointer;
  }
}

/* Responsive: Mobile view - hide map and make markets panel full width */
@media (max-width: 768px) {
  .markets-list-container {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 724px;
    flex-direction: column;
    gap: 0;
  }

  .markets-list-panel {
    width: 100%;
    height: auto;
    min-height: 724px;
  }

  .markets-list-map-panel {
    display: none;
  }

  .markets-list-header {
    padding: 16px 22px;
    gap: 22px;
    align-items: flex-start;
  }
}

/* Responsive: Small mobile */
@media (max-width: 480px) {
  .markets-list-container {
    min-height: auto;
  }

  .markets-list-panel {
    min-height: auto;
  }

  .markets-list-header {
    padding: 16px;
    gap: 16px;
  }

  .markets-list-header-content {
    gap: 8px;
  }

  .markets-list-title {
    font-size: 16px;
    line-height: 24px;
  }

  .markets-list-description {
    font-size: 12px;
    line-height: 20px;
  }
}


.markets-list-map-container {
  align-self: stretch;
  flex: 1 1 0;
  padding-left: 32px;
  padding-right: 32px;
  background: white;
  border-bottom-right-radius: 8px;
  border-right: 1px #E2E2EB solid;
  border-bottom: 1px #E2E2EB solid;
  border-left: 1px #E2E2EB solid;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.markets-list-map {
  width: 100%;
  max-width: 100%;
  object-fit: contain;
}

.markets-list-map-state {
  stroke: #E2E2EB;
  stroke-width: 0.5;
  transition: opacity 0.2s ease, fill 0.2s ease;
}

.markets-list-map-state-clickable {
  cursor: pointer;
}

.markets-list-map-state-clickable:hover {
  opacity: 0.8 !important;
}

.markets-list-map-state-selected {
  stroke: #C02646;
  stroke-width: 2;
}


