/* Directions page v2: one route map, two clearly separated destinations. */
body:not(.home) main.detail-page--directions > .directions-visit {
  display: grid !important;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, .78fr) !important;
  gap: 18px !important;
  width: min(1240px, calc(100% - 64px)) !important;
  max-width: 1240px !important;
  margin: clamp(48px, 5vw, 76px) auto clamp(72px, 7vw, 112px) !important;
  padding: 16px !important;
  background: #f3f4f1 !important;
  color: #263241 !important;
  overflow: visible !important;
}

body:not(.home) main.detail-page--directions .directions-visit-map {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  margin: 0 !important;
  padding: clamp(26px, 3vw, 42px) !important;
  border: 0 !important;
  background: #fff !important;
}

body:not(.home) main.detail-page--directions .directions-visit-map > a {
  display: block;
  width: min(100%, 650px);
  margin: 0 auto;
  background: transparent !important;
}

body:not(.home) main.detail-page--directions .directions-visit-map > img {
  width: min(100%, 650px);
}

body:not(.home) main.detail-page--directions .directions-visit-map img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 16px 42px rgba(38, 50, 65, .08);
}

body:not(.home) main.detail-page--directions .directions-visit-map figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 650px);
  margin: 0 auto;
  padding: 17px 0 0;
  color: #52605f !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  letter-spacing: -.02em !important;
}

body:not(.home) main.detail-page--directions .directions-visit-map figcaption span,
body:not(.home) main.detail-page--directions .directions-visit-map figcaption a {
  color: #263241 !important;
  text-decoration: none !important;
}

body:not(.home) main.detail-page--directions .directions-visit-info {
  display: grid !important;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  min-width: 0;
}

body:not(.home) main.detail-page--directions .directions-visit-info > article {
  position: relative;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start !important;
  min-height: 290px !important;
  padding: clamp(34px, 3.3vw, 48px) !important;
  border: 1px solid transparent !important;
  overflow: hidden;
}

body:not(.home) main.detail-page--directions .directions-visit-info > article:first-child {
  color: #263241 !important;
  border-color: #d8ddd7 !important;
  background: #f1f3ef !important;
  box-shadow: inset 4px 0 0 #98a58f;
}

body:not(.home) main.detail-page--directions .directions-visit-info > article:last-child {
  color: #263241 !important;
  border-color: #d9c9bb !important;
  background: #e6d9cd !important;
  box-shadow: inset 4px 0 0 #b98261;
}

body:not(.home) main.detail-page--directions .directions-visit-info article::before,
body:not(.home) main.detail-page--directions .directions-visit-info article::after {
  display: none !important;
}

body:not(.home) main.detail-page--directions .directions-visit-info span {
  margin: 0 0 20px !important;
  color: #8a6b35 !important;
  font-family: Pretendard, sans-serif !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: .17em !important;
}

body:not(.home) main.detail-page--directions .directions-visit-info h2 {
  margin: 0 0 18px !important;
  color: inherit !important;
  font-family: Pretendard, sans-serif !important;
  font-size: clamp(30px, 2.55vw, 42px) !important;
  font-weight: 720 !important;
  line-height: 1.18 !important;
  letter-spacing: -.055em !important;
}

body:not(.home) main.detail-page--directions .directions-visit-info p {
  margin: 0 0 28px !important;
  color: #52605f !important;
  font-size: 14px !important;
  font-weight: 550 !important;
  line-height: 1.75 !important;
  letter-spacing: -.025em !important;
}

body:not(.home) main.detail-page--directions .directions-visit-info > article:last-child p {
  color: #4c565c !important;
}

body:not(.home) main.detail-page--directions .directions-visit-info > article:last-child span {
  color: #8a593d !important;
}

body:not(.home) main.detail-page--directions .directions-visit-info > article:last-child h2 {
  color: #263241 !important;
}

body:not(.home) main.detail-page--directions .directions-visit-info > article:last-child p {
  color: #4c565c !important;
}

body:not(.home) main.detail-page--directions .directions-visit-info a {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 1px solid currentColor !important;
  color: #263241 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
}

body:not(.home) main.detail-page--directions .directions-visit-info > article:last-child a {
  color: #263241 !important;
}

@media (max-width: 880px) {
  body:not(.home) main.detail-page--directions > .directions-visit {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: calc(100% - 32px) !important;
    margin: 42px auto 76px !important;
    padding: 12px !important;
  }

  body:not(.home) main.detail-page--directions .directions-visit-map {
    padding: 16px !important;
  }

  body:not(.home) main.detail-page--directions .directions-visit-map figcaption {
    padding-top: 13px;
    font-size: 12px !important;
  }

  body:not(.home) main.detail-page--directions .directions-visit-info {
    gap: 12px;
  }

  body:not(.home) main.detail-page--directions .directions-visit-info > article {
    min-height: 250px !important;
    padding: 30px 25px !important;
  }

  body:not(.home) main.detail-page--directions .directions-visit-info h2 {
    font-size: 32px !important;
  }
}

@media (min-width: 640px) and (max-width: 880px) {
  body:not(.home) main.detail-page--directions .directions-visit-info {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
}
