/* Yokohama preview only. Existing header, footer and map styles are retained. */
.map-intro {
  padding-bottom: 32px;
}

.map-format-choice {
  padding: 0 0 48px;
}

.map-format-choice h2 {
  color: var(--map-navy);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 20px;
}

.map-format-choice__cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-format-choice__card {
  background: var(--map-white);
  border: 1px solid var(--map-line);
  border-top: 4px solid var(--map-blue);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
}

.map-format-choice__heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.map-format-choice__heading h3 {
  color: var(--map-navy);
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
}

.map-format-choice__price {
  align-items: baseline;
  color: var(--map-navy);
  display: flex;
  gap: 5px;
  line-height: 1.2;
  margin: 0;
}

.map-format-choice__price strong {
  font-size: 34px;
  font-weight: 700;
}

.map-format-choice__price span {
  font-size: 13px;
}

.map-format-choice__name {
  color: var(--map-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 8px;
}

.map-format-choice__formats {
  color: var(--map-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  margin: 0 0 10px;
}

.map-format-choice__purpose {
  color: var(--map-muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 16px;
}

.map-format-choice__maps-label {
  color: var(--map-muted);
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 6px;
}

.map-format-choice__maps {
  color: var(--map-ink);
  font-size: 14px;
  line-height: 1.8;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.map-format-choice__maps li + li {
  margin-top: 4px;
}

.map-format-choice__button {
  align-items: center;
  background: var(--map-blue);
  border: 1px solid var(--map-blue);
  border-radius: 5px;
  color: var(--map-white);
  display: flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.5;
  margin-top: auto;
  min-height: 52px;
  padding: 12px;
  text-align: center;
}

.map-format-choice__button:hover {
  background: var(--map-navy);
  border-color: var(--map-navy);
}

@media (max-width: 640px) {
  .map-intro {
    padding-bottom: 24px;
  }

  .map-format-choice {
    padding-bottom: 28px;
  }

  .map-format-choice h2 {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .map-format-choice__cards {
    gap: 10px;
  }

  .map-format-choice__card {
    border-top-width: 3px;
    padding: 14px 12px;
  }

  .map-format-choice__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 10px;
  }

  .map-format-choice__heading h3 {
    font-size: 16px;
  }

  .map-format-choice__price strong {
    font-size: 26px;
  }

  .map-format-choice__price span {
    font-size: 11px;
  }

  .map-format-choice__name {
    font-size: 13px;
    line-height: 1.6;
  }

  .map-format-choice__formats {
    font-size: 12px;
    line-height: 1.65;
  }

  .map-format-choice__purpose {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 12px;
  }

  .map-format-choice__maps-label {
    font-size: 11px;
  }

  .map-format-choice__maps {
    font-size: 12px;
    line-height: 1.65;
    margin-bottom: 16px;
  }

  .map-format-choice__maps li + li {
    margin-top: 5px;
  }

  .map-format-choice__button {
    font-size: 12px;
    min-height: 54px;
    padding: 10px 5px;
  }
}

/* Yokohama PC: let lead copy use the same right edge as the section content. */
@media (min-width: 961px) {
  .map-intro > .section-inner > p,
  .free-download .section-heading > p,
  .editable-map .section-heading > p {
    max-width: none;
    width: 100%;
  }
}

/* Narrow phones: keep the complete price on one readable line. */
@media (max-width: 360px) {
  .map-format-choice__price {
    gap: 3px;
    white-space: nowrap;
  }

  .map-format-choice__price strong {
    flex: 0 0 auto;
    font-size: 24px;
  }

  .map-format-choice__price span {
    flex: 0 0 auto;
  }
}
