/* Kyoto access and experiences on the homepage. */
.home-journey-block {
  max-width: var(--content-width, 1320px);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 104px) var(--content-gutter, 26px);
  color: #25372f;
}
.home-journey-block h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 55px);
  line-height: 1.08;
}
.home-journey-block figure { margin: 0; }

.journey-access-diagrams {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 2.3vw, 36px);
  margin-top: clamp(24px, 3vw, 40px);
}
.journey-map {
  min-width: 0;
  align-self: center;
}
.journey-access-map {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.journey-map-place { color: #3e5349; }
.journey-map-place--airports { color: #825630; }
.journey-map-place circle,
.journey-map-kyoto circle {
  fill: currentColor;
  stroke: #f5f1e9;
  stroke-width: 1.6px;
}
.journey-map-place line,
.journey-map-kyoto line {
  stroke: currentColor;
  stroke-width: 1px;
  opacity: .58;
}
.journey-map-place text,
.journey-map-kyoto text {
  fill: currentColor;
  paint-order: stroke;
  stroke: #f5f1e9;
  stroke-width: 3px;
  font: 500 20px var(--display);
}
.journey-map-place--airports text {
  font-size: 18px;
  letter-spacing: .06em;
}
.journey-map-kyoto { color: #263e34; }
.journey-map-kyoto text { font-size: 28px; }
.journey-map-routes {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}
.journey-map-routes--airports { stroke: #a36737; }
.journey-map-routes--cities { stroke: #456d61; }
.journey-map-routes path {
  opacity: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: opacity .2s ease, stroke-dashoffset .52s ease;
}
.journey-access-diagrams[data-active-route="airports"] .journey-map-routes--airports path,
.journey-access-diagrams[data-active-route="cities"] .journey-map-routes--cities path {
  opacity: 1;
  stroke-dashoffset: 0;
}
@media (hover: hover) {
  .journey-access-diagrams:has(.journey-route-column:hover) .journey-map-routes path {
    opacity: 0;
    stroke-dashoffset: 1;
  }
  .journey-access-diagrams:has(.journey-route-column--airports:hover) .journey-map-routes--airports path,
  .journey-access-diagrams:has(.journey-route-column--cities:hover) .journey-map-routes--cities path {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .journey-map-routes path { transition: none; }
}
.journey-route-column {
  min-width: 0;
  padding-top: 4px;
}
.journey-route-column h3 { margin: 0; }
.journey-route-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid #aeb8ac;
  background: transparent;
  color: #293e34;
  font-size: clamp(23px, 2.3vw, 32px);
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.journey-route-arrow {
  position: relative;
  flex: 0 0 18px;
  height: 18px;
  color: #546d60;
}
.journey-route-arrow::before,
.journey-route-arrow::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
}
.journey-route-arrow::before {
  width: 15px;
  border-top: 1px solid;
  transform: rotate(-45deg);
  transform-origin: right center;
}
.journey-route-arrow::after {
  width: 8px;
  height: 8px;
  border-top: 1px solid;
  border-right: 1px solid;
}
.journey-route-column:hover .journey-route-toggle,
.journey-route-toggle[aria-pressed="true"] {
  border-color: currentColor;
  color: #345d50;
}
.journey-route-column--airports:hover .journey-route-toggle,
.journey-route-column--airports .journey-route-toggle[aria-pressed="true"] { color: #825630; }
.journey-route-column ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.journey-route {
  padding: 12px 0;
  border-bottom: 1px solid #d9d9cb;
}
.journey-route-origin {
  margin-bottom: 4px;
  line-height: 1.25;
}
.journey-route-origin strong {
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 500;
}
.journey-route-origin span {
  color: #59665b;
  font-size: 12px;
}
.journey-route-leg {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1px 9px;
  color: #47574d;
  font-size: clamp(13px, 1.12vw, 15px);
  line-height: 1.4;
}
.journey-route-transfer {
  margin: 4px 0;
  color: #825630;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
  line-height: 1.4;
}
.journey-route-time {
  color: #293e34;
  font-weight: 500;
  white-space: nowrap;
}

.journey-experiences > header {
  margin: 0 auto clamp(24px, 4vw, 42px);
  text-align: center;
  max-width: 560px;
}
.journey-experiences .spot-carousel-shell {
  padding-inline: 52px;
}
.journey-experiences .spot-carousel-rail {
  --card-gap: clamp(14px, 1.8vw, 24px);
  grid-auto-columns: calc((100% - 2 * var(--card-gap)) / 3);
  gap: var(--card-gap);
}
.journey-experiences .spot-carousel-arrow {
  width: 42px;
  height: 44px;
  top: calc(var(--spot-image-height) / 2 - 22px);
  background: #fffefa;
  color: #324e63;
  border-color: #c9d0d1;
}
.journey-experiences .spot-carousel-arrow:not([aria-disabled="true"]):hover {
  background: #324e63;
  color: #fff;
  border-color: #324e63;
}
.journey-experiences .spot-carousel-arrow[aria-disabled="true"] {
  color: #829092;
  background: #f6f3eb;
  border-color: #d8d8ce;
}
.journey-experience {
  display: grid;
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid #e2ded3;
  background: #fffefa;
}
.journey-experience > a {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.journey-experience > a:focus-visible {
  outline-offset: -3px;
}
.journey-experience-cover {
  display: grid;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e9e5db;
}
.journey-experience-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease;
}
.journey-experience-placeholder {
  display: grid;
  place-items: center;
  margin: 12px;
  padding: 14px;
  border: 1px solid #cdc5b5;
  color: #4d5c4e;
  text-align: center;
  font: 400 clamp(20px, 2.3vw, 30px)/1.12 var(--display);
}
.journey-experience-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 17px clamp(11px, 1.7vw, 20px) 18px;
  text-align: center;
}
.journey-experience-copy h3 {
  margin: 0;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.15;
}
.journey-experience-copy p {
  margin: 7px 0 14px;
  color: #536153;
  font: 400 16px/1.45 var(--display);
  text-wrap: pretty;
}
.journey-experience-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: auto;
  padding: 8px 13px;
  background: #324e63;
  color: #fff;
  font: 500 14px/1.4 var(--sans);
}
.journey-experience > a:is(:hover, :focus-visible) .journey-experience-action { background: #253d50; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .journey-experience > a:hover img { transform: scale(1.035); }
}

@media (max-width: 980px) {
  .journey-access-diagrams {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .journey-access-diagrams .journey-map {
    grid-column: 1 / -1;
    width: min(100%, 650px);
    justify-self: center;
  }
}

@media (max-width: 767px) {
  .journey-experiences .spot-carousel-shell { padding-inline: 48px; }
  .journey-experiences .spot-carousel-rail { grid-auto-columns: calc((100% - var(--card-gap)) / 2); }
  .home-journey-block { padding-inline: 5%; }
}
@media (max-width: 540px) {
  .journey-experiences .spot-carousel-rail { grid-auto-columns: 100%; }
}
@media (max-width: 470px) {
  .journey-experience-cover { aspect-ratio: 4 / 3; }
}

@media (max-width: 480px) {
  .journey-route-toggle { font-size: 22px; }
  .journey-route { padding-block: 9px; }
}
