/* Kaart van de Japan-reis */

.japan-map {
  position: relative;
  z-index: 0;              /* houdt de kaartlagen onder het uitklapmenu */
  isolation: isolate;
  height: clamp(240px, 34vh, 340px);
  margin: 0 0 40px;
  border: 1px solid var(--border, #e2e2e2);
  background: #f2f2f2;
}

/* Smallere variant boven een blogpost, even breed als de tekst */
.japan-map.japan-map--post {
  max-width: 760px;
  margin: 40px auto 0;
}

.japan-map.leaflet-container {
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 0.95rem;
}

.japan-map .leaflet-popup-content a {
  color: inherit;
  text-decoration: underline;
}

.japan-map-label.leaflet-tooltip {
  font-weight: 500;
  border: 1px solid var(--border, #e2e2e2);
  border-radius: 0;
  box-shadow: none;
}

/* Wijken binnen een stop */

.japan-map .japan-map-place.leaflet-tooltip {
  font-size: 0.8rem;
  padding: 1px 6px;
  border: 1px solid var(--border, #e2e2e2);
  border-radius: 0;
  box-shadow: none;
}

/* Namen van wijken pas tonen als je ver genoeg bent ingezoomd */
.japan-map:not(.show-place-labels) .japan-map-place {
  display: none;
}

.japan-map-reset,
.japan-map .japan-map-zoom {
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 0.85rem;
  background: #fff;
  color: #111;
  border: 1px solid var(--border, #cfcfcf);
  border-radius: 0;
  padding: 4px 10px;
  cursor: pointer;
}

.japan-map .japan-map-zoom {
  margin-top: 8px;
}

/* Stop met wijken: stip met cijfer-badge */

.japan-map-city {
  background: none;
  border: 0;
}

.japan-map-city-dot {
  display: block;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
}

.japan-map-city-dot.is-last {
  background: #111;
}

.japan-map-city-badge {
  position: absolute;
  top: -9px;
  right: -11px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 9px;
  background: #111;
  color: #fff;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
}

/* Japan-blogpost: titel en kaart even breed als de tekst */

.page-heading.japan-post-title {
  max-width: 760px;
  margin: 0 auto;
}

.japan-map--post + .post-body {
  margin-top: 32px;
}

/* Japan-blogpost met hoofdfoto: menu en titel in wit over de foto, met een donkere gloed voor de leesbaarheid */

.japan-hero img {
  object-position: 50% 60%;
}

.japan-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 65% at 50% 50%, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 22%);
}

.japan-hero .post-hero-title {
  z-index: 2;
  top: 50%;
  bottom: auto;
  left: 50%;
  right: auto;
  width: min(900px, calc(100% - 2 * var(--gutter)));
  transform: translate(-50%, -50%);
  text-align: center;
}

.japan-hero .post-hero-title h1 {
  margin: 0 auto;
}

.japan-hero .site-header,
.japan-hero .site-header a {
  color: #fff;
}

.japan-hero .site-header .submenu a {
  color: #111;
}

/* Intro onder de hoofdfoto */

.post-lead {
  max-width: 760px;
  margin: 40px auto 0;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Tussenkopjes in een blogpost: dikgedrukt, op tekstgrootte */

.post-body .post-subhead {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 2em 0 0.6em;
}
