:root {
  --tpc-black: #111;
  --tpc-ink: #202020;
  --tpc-muted: #6b6f76;
  --tpc-line: #e7e7e7;
  --tpc-soft: #f6f6f6;
  --tpc-red: #e50000;
  --tpc-white: #fff;
  --tpc-radius: 18px;
  --tpc-shadow: 0 18px 50px rgba(0, 0, 0, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f4f4;
  color: var(--tpc-ink);
  font-family: ToyotaType, Arial, Helvetica, sans-serif;
}

.demo-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 18px;
}

.tpc {
  background: var(--tpc-white);
  border-radius: 28px;
  padding: clamp(18px, 2.6vw, 34px);
  box-shadow: 0 14px 45px rgba(0, 0, 0, .08);
}

.tpc__layout {
  display: grid;
  grid-template-columns: minmax(0, 13fr) minmax(420px, 7fr);
  gap: 24px;
  align-items: stretch;
}

.tpc__map-card,
.tpc__panel {
  background: #fff;
  border: 1px solid var(--tpc-line);
  border-radius: var(--tpc-radius);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .06);
}

.tpc__map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 22px 0;
}

.tpc__map-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.02em;
}

.tpc__map-subtitle {
  margin: 6px 0 0;
  color: var(--tpc-muted);
  font-size: 14px;
  line-height: 1.45;
}

.tpc__back {
  appearance: none;
  border: 1px solid var(--tpc-line);
  background: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--tpc-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
  white-space: nowrap;
}

.tpc__back:hover {
  border-color: #b5b5b5;
  transform: translateY(-1px);
}

.tpc__map-wrap {
  position: relative;
  width: 82%;
  margin: 12px auto 0;
  max-width: 760px;
  aspect-ratio: 1 / 1.06;
}

.tpc__map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tpc__points {
  position: absolute;
  inset: 0;
}

.tpc__point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: calc(var(--point-size) * .86);
  height: calc(var(--point-size) * .86);
  border: 4px solid var(--tpc-red);
  border-radius: 50%;
  background: rgba(17, 17, 17, .82);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: max(14px, calc(var(--point-font) * .88));
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.tpc__point::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--tpc-red);
  z-index: -1;
}

.tpc__point:hover,
.tpc__point:focus-visible,
.tpc__point.is-active {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 8px rgba(229, 0, 0, .12);
  outline: none;
}

.tpc__tooltip {
  position: absolute;
  left: var(--x);
  top: calc(var(--y) - 52px);
  transform: translate(-50%, -100%);
  z-index: 4;
  min-width: 205px;
  max-width: 280px;
  background: #fff;
  color: var(--tpc-ink);
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 14px;
  padding: 13px 15px;
  text-align: left;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .24), 0 4px 12px rgba(0, 0, 0, .10);
  pointer-events: none;
}

.tpc__tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid rgba(0, 0, 0, .16);
  border-bottom: 1px solid rgba(0, 0, 0, .16);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 4px 4px 10px rgba(0, 0, 0, .08);
}

.tpc__tooltip strong {
  display: block;
  color: #101010;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
}

.tpc__tooltip span {
  display: block;
  margin-top: 6px;
  color: #555;
  font-size: 13px;
  line-height: 1.25;
}

.tpc__tooltip span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--tpc-red);
  vertical-align: 1px;
}

.tpc__panel {
  position: sticky;
  top: 18px;
  min-height: 560px;
  overflow: auto;
}

.tpc__empty,
.tpc__panel-inner {
  padding: 24px;
}

.tpc__empty-kicker,
.tpc__panel-kicker {
  margin: 0 0 8px;
  color: var(--tpc-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tpc__empty h2,
.tpc__panel h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.03em;
}

.tpc__empty p,
.tpc__panel-count {
  color: var(--tpc-muted);
  line-height: 1.5;
}

.tpc__panel-count {
  margin: 10px 0 0;
  font-weight: 800;
}

.tpc__center-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.tpc__center {
  position: relative;
  border: 1px solid var(--tpc-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.tpc__center-btn {
  width: 100%;
  min-height: 78px;
  border: 0;
  background: #fff;
  padding: 15px 74px 15px 15px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: block;
}

.tpc__center-title {
  display: block;
  margin: 0;
  color: var(--tpc-ink);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.tpc__center-city {
  display: block;
  margin-top: 4px;
  color: var(--tpc-muted);
  font-size: 13px;
}

.tpc__center-index {
  position: absolute;
  top: 14px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: 3px solid var(--tpc-ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--tpc-ink);
  background: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.tpc__center.is-open .tpc__center-index {
  background: var(--tpc-ink);
  color: #fff;
}



.tpc__center-body {
  display: none;
  border-top: 1px solid var(--tpc-line);
  padding: 15px;
  background: var(--tpc-soft);
  font-size: 14px;
  line-height: 1.5;
}

.tpc__center.is-open .tpc__center-body {
  display: block;
}

.tpc__center-body p {
  margin: 0;
}

.tpc__center-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 42px;
  padding: 11px 18px;
  border: 1px solid var(--tpc-ink);
  background: var(--tpc-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.tpc__center-cta:hover,
.tpc__center-cta:focus-visible {
  background: #000;
  border-color: #000;
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.tpc__map-card.is-idf .tpc__map-wrap {
  aspect-ratio: 1.32 / 1;
}

.tpc__map-card.is-idf .tpc__point {
  max-width: 53px;
  max-height: 53px;
}


@media (max-width: 1280px) and (min-width: 1101px) {
  .tpc {
    padding: clamp(16px, 2vw, 26px);
  }

  .tpc__layout {
    gap: 20px;
  }

  .tpc__map-head {
    padding: 18px 18px 0;
  }

  .tpc__map-wrap {
    width: 86%;
    max-width: 720px;
    margin-top: 8px;
  }

  .tpc__point {
    width: calc(var(--point-size) * .78);
    height: calc(var(--point-size) * .78);
    font-size: max(13px, calc(var(--point-font) * .80));
  }

  .tpc__point::before {
    inset: 7px;
  }

  .tpc__map-card.is-idf .tpc__point {
    max-width: 49px;
    max-height: 49px;
  }
}

@media (max-width: 1100px) {
  .tpc__layout {
    grid-template-columns: 1fr;
  }

  .tpc__panel {
    position: relative;
    top: auto;
    min-height: 0;
    height: auto !important;
    scroll-margin-top: 18px;
  }

  .tpc__map-wrap {
    width: 84%;
    max-width: 680px;
  }

  .tpc__point {
    width: calc(var(--point-size) * .76);
    height: calc(var(--point-size) * .76);
    border-width: 4px;
    font-size: max(13px, calc(var(--point-font) * .78));
  }

  .tpc__point::before {
    inset: 7px;
  }

  .tpc__map-card.is-idf .tpc__point {
    max-width: 47px;
    max-height: 47px;
  }
}

@media (max-width: 680px) {
  .demo-shell {
    padding: 10px;
  }

  .tpc {
    border-radius: 18px;
    padding: 14px;
  }

  .tpc__map-head {
    display: block;
    padding: 16px 16px 0;
  }

  .tpc__back {
    margin-top: 12px;
  }

  .tpc__map-wrap {
    width: 88%;
    max-width: 520px;
    margin-top: 8px;
  }

  .tpc__point {
    width: calc(var(--point-size) * .64);
    height: calc(var(--point-size) * .64);
    border-width: 3px;
    font-size: max(12px, calc(var(--point-font) * .70));
  }

  .tpc__point::before {
    inset: 5px;
  }

  .tpc__tooltip {
    display: none;
  }

  .tpc__panel-inner,
  .tpc__empty {
    padding: 16px;
  }

  .tpc__panel h2,
  .tpc__empty h2 {
    font-size: 24px;
  }
}

@media (max-width: 550px) {
  .tpc__map-card:not(.is-idf) .tpc__point {
    width: calc(var(--point-size) * .58);
    height: calc(var(--point-size) * .58);
    font-size: max(11px, calc(var(--point-font) * .64));
  }

  .tpc__map-card:not(.is-idf) .tpc__point::before {
    inset: 4px;
  }
}

@media (max-width: 450px) {
  .tpc__map-card:not(.is-idf) .tpc__point {
    width: calc(var(--point-size) * .50);
    height: calc(var(--point-size) * .50);
    font-size: max(9px, calc(var(--point-font) * .55));
  }

  .tpc__map-card:not(.is-idf) .tpc__point::before {
    inset: 4px;
  }
}