.tcn-view-switch {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px;
  width: fit-content;
  border: 1px solid rgb(221, 231, 238);
  border-radius: 12px;
  background: rgb(246, 249, 251);
}

.tcn-view-switch button {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgb(71, 85, 105);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.tcn-view-switch button[aria-selected="true"] {
  background: #fff;
  color: rgb(0, 110, 165);
  box-shadow: 0 1px 4px rgba(15, 45, 65, .12);
}

.tcn-view-switch button:disabled {
  opacity: .55;
  cursor: wait;
}

.tcn-map-panel[hidden],
.tcn-image-panel[hidden] {
  display: none;
}

.tcn-map-status {
  margin: 0 0 14px;
  color: rgb(71, 85, 105);
  font-size: 13px;
}

.tcn-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: start;
  gap: 20px;
}

.tcn-map__visual,
.tcn-map__directory {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(221, 231, 238);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 45, 65, .05);
}

.tcn-map__canvas {
  position: relative;
  line-height: 0;
}

.tcn-map__canvas > img,
.tcn-image-panel > img {
  display: block;
  width: 100%;
  height: auto;
}

.tcn-map__markers {
  position: absolute;
  inset: 0;
}

.tcn-map__marker {
  position: absolute;
  display: grid;
  width: clamp(26px, 3.2vw, 42px);
  height: clamp(26px, 3.2vw, 42px);
  place-items: center;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgb(0, 110, 165);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 45, 65, .35);
  font: 700 12px/1 Archivo, system-ui, sans-serif;
  cursor: pointer;
}

.tcn-map__marker:hover,
.tcn-map__marker[aria-pressed="true"] {
  background: rgb(18, 54, 75);
  box-shadow: 0 0 0 4px rgba(0, 110, 165, .24), 0 2px 8px rgba(15, 45, 65, .35);
}

.tcn-map__marker .tcn-map__state-count {
  color: #fff;
  font-size: inherit;
}

.tcn-map__marker:focus-visible,
.tcn-map__state:focus-visible,
.tcn-map__search:focus-within,
.tcn-map__pagination button:focus-visible {
  outline: 3px solid rgba(0, 110, 165, .28);
  outline-offset: 2px;
}

.tcn-map__caption {
  margin: 0;
  padding: 12px 15px;
  border-top: 1px solid rgb(231, 237, 242);
  color: rgb(100, 116, 139);
  font-size: 12px;
  line-height: 1.5;
}

.tcn-map__directory {
  padding: 18px;
}

.tcn-map__selected {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tcn-map__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: rgb(100, 116, 139);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tcn-map__selected h3 {
  margin: 0;
  color: rgb(23, 43, 54);
  font-size: 18px;
  line-height: 1.3;
}

.tcn-map__count {
  flex: 0 0 auto;
  color: rgb(0, 110, 165);
  font-size: 12px;
  font-weight: 700;
}

.tcn-map__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tcn-map__state {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid rgb(221, 231, 238);
  border-radius: 8px;
  background: #fff;
  color: rgb(51, 65, 85);
  font: inherit;
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.tcn-map__state:hover,
.tcn-map__state[aria-pressed="true"] {
  border-color: rgb(0, 110, 165);
  background: rgb(240, 248, 252);
  color: rgb(0, 88, 132);
}

.tcn-map__state-count {
  flex: 0 0 auto;
  color: rgb(100, 116, 139);
  font-size: 10px;
  font-weight: 700;
}

.tcn-map__search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgb(203, 213, 225);
  border-radius: 9px;
  color: rgb(100, 116, 139);
}

.tcn-map__search .material-icons {
  font-size: 19px;
}

.tcn-map__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgb(23, 43, 54);
  font: inherit;
  font-size: 12px;
}

.tcn-map__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 11px 0 9px;
  color: rgb(100, 116, 139);
  font-size: 11px;
}

.tcn-map__meta a {
  color: rgb(0, 110, 165);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.tcn-map__meta a:hover {
  text-decoration: underline;
}

.tcn-map__results {
  display: grid;
  gap: 7px;
  min-height: 274px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: start;
}

.tcn-map__record {
  padding: 9px 10px;
  border: 1px solid rgb(231, 237, 242);
  border-radius: 9px;
  background: rgb(250, 252, 253);
}

.tcn-map__record-title,
.tcn-map__record-detail {
  display: block;
  overflow-wrap: anywhere;
}

.tcn-map__record-title {
  color: rgb(31, 51, 65);
  font-size: 12px;
  line-height: 1.4;
}

.tcn-map__record-detail {
  margin-top: 4px;
  color: rgb(100, 116, 139);
  font-size: 10px;
  line-height: 1.4;
}

.tcn-map__empty,
.tcn-map__loading,
.tcn-map__error {
  display: grid;
  min-height: 210px;
  place-items: center;
  padding: 16px;
  color: rgb(100, 116, 139);
  font-size: 13px;
  text-align: center;
}

.tcn-map__error {
  color: rgb(185, 28, 28);
}

.tcn-map__pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgb(231, 237, 242);
}

.tcn-map__pagination[hidden] {
  display: none;
}

.tcn-map__pagination span {
  color: rgb(100, 116, 139);
  font-size: 11px;
}

.tcn-map__pagination button {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid rgb(203, 213, 225);
  border-radius: 7px;
  background: #fff;
  color: rgb(23, 43, 54);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.tcn-map__pagination button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.tcn-image-panel {
  max-width: 900px;
}

.tcn-image-panel > img {
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.tcn-map__note {
  margin: 13px 0 0;
  color: rgb(100, 116, 139);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .tcn-map-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tcn-map__directory {
    padding: 16px;
  }

  .tcn-map__results {
    min-height: 170px;
  }
}

@media (max-width: 580px) {
  .tcn-view-switch {
    width: 100%;
  }

  .tcn-view-switch button {
    flex: 1 1 0;
    padding-inline: 8px;
  }

  .tcn-map__directory {
    padding: 13px;
  }

  .tcn-map__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .tcn-map__marker {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
}
