/* sub4.html — 오시는 길·진료시간 페이지 전용 스타일 */
.hours-location-page {
  box-sizing: border-box;
  word-break: keep-all;
  display: flex;
  flex-direction: column;

  p {
    word-break: keep-all;
  }
}

.hours-section,
.location-section,
.location-detail-section {
  padding: 100px 0 0;
}

.location-detail-section {
  padding: 100px 0 100px;
}

/* Figma: location overview */
.location-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-flow: initial;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.location-grid__image-wrap {
  width: 100%;
  aspect-ratio: 754 / 400;
  overflow: hidden;
}

.location-grid__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.location-grid__details {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.location-info-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
  box-sizing: border-box;
}

.location-info-block__title,
.location-contact__number,
.location-notice__title,
.location-notice p,
.location-hours__table,
.location-hours__holiday {
  margin: 0;
}

.location-info-block__title {
  color: #400805;
  font-family: 'Pretendard', sans-serif !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.location-contact__number {
  color: #000;
  font-family: 'Pretendard', sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.6px;
}

.location-contact__actions {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.location-hours-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.location-hours__table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #000;
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.36px;
}

.location-hours__row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.location-hours__row > span:first-child {
  flex: 0 0 150px;
}

.location-hours__row > span:last-child {
  min-width: 0;
}

.location-notices {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #000;
  font-family: 'Pretendard', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  letter-spacing: -0.32px;
}

.location-notice {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.location-notice__title {
  color: #000;
  font-family: 'Pretendard', sans-serif !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.location-overview__map-column,
.location-overview__details {
  min-width: 0;
}

.location-overview__map-column {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.location-map {
  position: relative;
  width: 100%;
  aspect-ratio: 633 / 294;
  overflow: hidden;
}

.location-map__iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
}

.location-map-links {
  display: flex;
  gap: 16px;
  width: 100%;
  white-space: nowrap;
}

.location-map-links .jyoon-link-button {
  flex: 1 0 0;
}

.location-map-links .jyoon-link-button:first-child {
  flex: 0 0 auto;
}

.location-overview__details {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.location-overview p {
  margin: 0;
  color: #000;
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.36px;
}

.location-address__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.location-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #000;
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.36px;
}

.location-bullet-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.location-bullet-list img {
  display: block;
  flex: 0 0 4px;
  width: 4px;
  height: 4px;
}

.location-visits-section .jyoon-step-card__step {
  font-family: 'GowunBatang-Regular' !important;
  font-weight: 700 !important;
}

.contactw2 {
  width: 100%;
  background-size: cover;
  height: auto;
  display: inline-block;
  margin-top: -10px;
}
.contact {
  max-width: px;
  margin: 0 auto;
}
.cons_t1s {
  width: 40%;
  padding-left: 10%;
  float: left;
}
.cons_t2s {
  width: 60%;
  padding-left: 5%;
  float: left;
  position: relative;
}
.index_color3 {
  color: #fff9cb;
}

/* 탭 전체 스타일 */
.tabs {
  margin-top: 0px;
  padding-bottom: 0px;

  width: 100%;
  margin: 0 auto;
}

/* 탭 스타일 */
.tab_item {
  width: calc(100% / 2);
  height: 50px;

  background-color: #6f6f6f;
  line-height: 50px;
  font-size: 16px;
  text-align: center;
  color: #f1f1f1;
  display: block;
  float: left;
  text-align: center;
  font-weight: bold;
  transition: all 0.2s ease;
}
.tab_item:hover {
  opacity: 0.75;
}

/* 라디오 버튼 UI삭제*/
input[name='tab_item'] {
  display: none;
}

/* 탭 컨텐츠 스타일 */
.tab_content {
  display: none;
  padding: 0px 0px 0;
  margin: 0px;
  clear: both;
  overflow: hidden;
}

/* 선택 된 탭 콘텐츠를 표시 */
#all:checked ~ #all_content,
#programming:checked ~ #programming_content,
#design:checked ~ #design_content {
  display: block;
}

/* 선택된 탭 스타일 */
.tabs input:checked + .tab_item {
  background-color: #8c775e;
  color: #fff;
}
.line_base2 {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
}
.ov_hs {
  height: 100%;
}

.warts {
  margin: 0 auto;
}
.warts2 {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: block;
}
.box_info {
  width: 49%;
  float: left;
  margin: 0.15%;
}
.box_info1 {
  height: 60px;
  line-height: 60px;
  width: 100%;
  background: #f1f1f1;
  text-align: center;
  font-size: 18px;
}
.box_info2 {
  height: 60px;
  line-height: 60px;
  background: rgba(255, 255, 255, 0.3);
  text-align: center;
  font-size: 18px;
}
.info_texts {
  width: 100%;
  height: auto;
  padding: 10px 30px 0px 10px;
}
.cy_icons {
  width: 3px;
  height: 3px;
  background: #333;
  line-height: 80px;
  float: left;
  margin-right: 20px;
  margin-top: 18px;
}

.box_ft2 {
  width: 100%;
  margin: 0 auto;
  display: block;
}
.box_ft2_warp {
  width: 100%;
  display: inline-block;
  height: auto;
  background: #f1f1f1;
  height: auto;
}
.ft_allscs2 {
  float: left;
  width: 50%;
  padding: 5% 5% 0% 5%;
}
/*.ft_cons11{width: }*/
.line_addressss {
  width: 100%;
  height: 1px;
  background: #444;
  opacity: 0.1;
}
.left_boxs {
  width: 50%;
  float: left;
  padding: 2%;
}
.cons_t1s1sb {
  width: 100%;
  padding-left: 0%;
  float: left;
}

.ft_line_box2_sub2 {
  width: 100%;
  height: auto;
  padding: 0px 0 0px 0;
  height: 70px;
}
.ft_line_tit222 {
  width: 15%;
  float: left;
  line-height: 70px;
}
.ft_line_content22 {
  width: 85%;
  float: left;
}
.tel_line22 {
  line-height: 70px;
}
.line_base22 {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
}
.more_view_btnn22 {
  width: 100%;
  max-width: 180px;
  border: 2px solid #e0e0e0;
  height: 50px;
  text-align: center;
  line-height: 50px;
  float: left;
  border-radius: 30px;
  margin: 5px;
}
.ttm0111 {
  width: auto;
  padding: 0px 20px 0 0px;
  float: left;
}
.ttm0222 {
  width: auto;
  padding: 0px 20px 0 0px;
  float: left;
}
#tabssbs {
  overflow: auto;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

#tabssbs li {
  width: 110px;
  margin: 0px;
  padding: 0px;
  float: left;
  text-align: center;
  padding: 10px 20px 10px 20px;
  border-radius: 20px;
}

#tabssbs a {
  width: 110px;
  padding: 10px 20px 10px 20px;
  border-radius: 20px;
  background: #f1f1f1;

  color: #333;
  float: left;

  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;

  text-decoration: none;
}

#tabssbs a:hover {
  background: #333;
  color: #fff;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

#tabssbs a:focus {
  outline: 0;
}

#tabssbs #current a {
  background: #400805;
  z-index: 10;

  text-shadow: none;
  color: #fff;
}

#content_2 {
  padding: 0px;
}

/* Remove the rule below if you want the content_2 to be "organic" */
#content_2 div {
}

.tabssb_text {
}

.sub_plus_title3 {
  width: 100%;
  padding: 5px 5px 5px 10px;
  color: #fff;
  font-size: 18px;
  float: left;
  border-radius: 10px;
}
.bus1 {
  background: #50a232;
  padding: 2px 8px 2px 8px;
  border-radius: 5px;
  float: left;
  color: #fff;
}
.bus2 {
  background: #385ab0;
  padding: 2px 8px 2px 8px;
  border-radius: 5px;
  float: left;
  color: #fff;
}
.nomberss {
  float: left;
  width: 20px;
  height: 20px;
  background: #fff;
  color: #000;
}
.add {
  width: 100%;
  height: auto;
  display: inline-blocki;
  text-align: center;
}
.add_boxs {
  width: 49%;
  padding: 2% 5% 2% 5%;
  float: left;
  margin: 0.5%;
  height: auto;
  min-height: 480px;
  background: #fff;
  border-radius: 15px;
}
.left_add_res {
  width: 49%;
  float: left;
  background: #fff;
  border-radius: 15px;
  margin: 0.5%;
  min-height: 320px;
}
.bus_ar {
  width: 32.33%;
  padding: 2%;
  float: left;
  background: #fafafa;
  margin: 0.5%;
}
.boxxx {
  width: 99%;
  float: left;
  margin: 0.5%;
  height: auto;
  display: inline-block;
  padding: 0px;
  padding: 20px;
  border-radius: 20px;
}
.img_mas {
  margin-top: -10px;
}

/* Figma: location detail transport and parking grid */
.location-detail-grid,
.location-detail-grid * {
  box-sizing: border-box;
}

.location-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  width: 100%;
}

.location-detail-card {
  min-width: 0;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  color: #000;
  font-family: 'Pretendard', sans-serif;
  height: 100%;
}

.location-detail-card--subway {
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 800px;
}

.location-detail-card--bus,
.location-detail-card--parking {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.location-detail-card__intro,
.location-detail-card__transport-groups,
.location-detail-card__bus-groups,
.location-detail-card__parking-inner,
.location-detail-card__parking-content,
.location-detail-card__parking-additional {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.location-detail-card__intro {
  gap: 20px;
}

.location-detail-card__heading-row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
  border-bottom: 1px solid #e5e5e5;
}

.location-detail-card__heading-icon {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 46px;
  object-fit: cover;
  pointer-events: none;
}

.location-detail-card__heading {
  margin: 0;
  color: #000;
  font-family: 'Pretendard', sans-serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0;
  white-space: nowrap;
}

.location-detail-card__heading strong {
  font-weight: 700;
}

.location-detail-card__lead,
.location-detail-card__station p,
.location-detail-card__bus-stop > p,
.location-detail-card__route p,
.location-detail-card__parking-summary p,
.location-detail-card__parking-list p {
  margin: 0;
  color: #000;
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.36px;
}

.location-detail-card__transport-groups,
.location-detail-card__bus-groups {
  gap: 20px;
}

.location-detail-card__transport-group,
.location-detail-card__bus-group,
.location-detail-card__station,
.location-detail-card__bus-stop,
.location-detail-card__route {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.location-detail-card__station-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #ff7d21;
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.36px;
}

.location-detail-card__station-heading--pink {
  color: #d83c6e;
}

.location-detail-card__line-number {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2.55px solid currentColor;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

.location-detail-card__route {
  color: #000;
  font-family: 'Pretendard', sans-serif;
  font-size: 16px;
  letter-spacing: -0.32px;
}

c .location-detail-card__parking-summary h4,
.location-detail-card__parking-additional > h4 {
  margin: 0;
  color: #000;
  font-family: 'Pretendard', sans-serif !important;
  font-size: 16px;
  font-weight: 700 !important;
  line-height: 1.4;
  letter-spacing: -0.32px;
}

.location-detail-card__route p,
.location-detail-card__parking-summary p,
.location-detail-card__parking-list p {
  font-size: 16px;
  line-height: 25px;
  letter-spacing: -0.32px;
}

.location-detail-card__bus-stop > strong {
  color: #000;
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.36px;
}

.location-detail-card__bus-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-detail-card__bus-list li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  padding: 20px;
  color: #000;
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.36px;
}

.location-detail-card__bus-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 2px;
  color: #fff;
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.36px;
  white-space: nowrap;
}

.location-detail-card__bus-badge--blue {
  background: #1d4c79;
}

.location-detail-card__bus-badge--brown {
  background: #752926;
}

.location-detail-card__bus-badge--black {
  background: #333;
}

.location-detail-photo {
  position: relative;
  display: block;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  width: 100%;
  aspect-ratio: 784 / 576;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #f5f4f1;
}

.location-detail-photo__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
  border-radius: inherit;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.location-detail-photo__image.is-active {
  z-index: 1;
  opacity: 1;
}

.location-detail-photo__image.is-changing {
  opacity: 0.25;
}

.location-detail-photo__caption-wrap {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 2;
  display: flex;
  width: auto;
}

.location-detail-photo__caption {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 158px;
  min-height: 40px;
  padding: 10px 40px;
  border-radius: 100px;
  background: rgba(116, 72, 64, 0.92);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: 'Pretendard', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 19.6px */
  letter-spacing: -0.28px;
  white-space: nowrap;
}

.location-detail-photo__pagination {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
  transform: translateX(-50%);
}

.location-detail-photo__dot {
  display: block;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition:
    width 0.2s ease,
    flex-basis 0.2s ease,
    background-color 0.2s ease;
}

.location-detail-photo__dot.is-active {
  flex-basis: 34px;
  width: 34px;
  background: #744840;
}

.location-detail-photo__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.location-detail-card__parking-inner {
  gap: 30px;
}

.location-detail-card__parking-content {
  gap: 30px;
  align-items: flex-end;
}

.location-detail-card__parking-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.location-detail-card__parking-summary > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.location-detail-card__parking-additional {
  gap: 14px;
}

.location-detail-card__parking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-detail-card__parking-list li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.location-detail-card__parking-note-heading {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 20px;
}

.location-detail-card__parking-note-heading img {
  display: block;
  flex: 0 0 4px;
  width: 4px;
  height: 4px;
  margin-top: 7px;
}

.location-detail-card__parking-note-heading strong {
  color: #000;
  font-family: 'Pretendard', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.28px;
}

.location-detail-card__parking-list p {
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.28px;
}

/* Responsive layout: 900px and below */
@media (max-width: 1199px) {
  .location-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-detail-card--subway {
    height: auto;
  }

  .location-detail-photo {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 784 / 576;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  /* Figma: location overview */
  .location-grid__image-wrap {
    max-width: 754px;
  }

  .location-bullet-list li {
    align-items: flex-start;
  }

  .location-detail-card {
    border-radius: 16px;
  }

  .location-detail-photo,
  .location-detail-photo__image {
    border-radius: 16px;
  }

  .location-detail-card__heading {
    font-size: 18px !important;
  }
  .location-hours__table {
    font-size: 16px;
    letter-spacing: -0.32px;
  }
  .location-hours__row {
    gap: 20px;
  }
  .location-hours__row > span:first-child {
    flex-basis: 130px;
  }

  /* Contact layout */
  .contactw2 {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  .contact {
    max-width: 1200px;
    margin: 0 auto;
  }
  .cons_t1s {
    width: 100%;
    padding-left: 0%;
    float: left;
    text-align: center;
  }
  .cons_t2s {
    width: 95%;
    padding-left: 5%;
    float: left;
    position: relative;
  }

  /* Location information cards */
  .warts {
    max-width: 1300px;
    width: 95%;
    margin: 0 auto;
  }
  .box_info {
    width: 48%;
    float: left;
    border: 1px solid #f9f9f9;
  }
  .box_info1 {
    height: 60px;
    line-height: 60px;
    width: 100%;
    background: #ffff;
    text-align: center;
    font-size: 14px;
  }
  .box_info2 {
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 14px;
  }
  .info_texts {
    width: 100%;
    height: auto;
    padding: 10px 30px 0px 30px;
  }
  .cy_icons {
    width: 3px;
    height: 3px;
    background: #333;
    line-height: 80px;
    float: left;
    margin-right: 3px;
    margin-top: 15px;
  }
  .ov_hs {
    height: 100%;
  }

  /* Address and consultation information */
  .box_ft2 {
    width: 95%;
    margin: 0 auto;
    display: block;
  }
  .box_ft2_warp {
    width: 100%;
    display: inline-block;
    height: auto;
    background: #fff;
  }
  .ft_allscs2 {
    float: left;
    width: 100%;
    padding: 5% 5% 5% 5%;
    border-bottom: 1px solid #fafafa;
  }
  /*.ft_cons11{width: }*/

  .left_boxs {
    width: 100%;
    float: left;
    padding: 1%;
  }
  .cons_t1s1sb {
    width: 100%;
    padding-left: 0%;
    float: left;
    text-align: center;
  }
  .left_btn22 {
    float: left;
    width: 50%;
    padding: 2%;
  }
  .more_view_btnn22 {
    width: 98%;
    max-width: 98%;
    float: left;
    border: 2px solid #e0e0e0;
    height: 50px;
    text-align: center;
    line-height: 50px;
    float: left;
    border-radius: 30px;
    margin: 5px;
  }
  .ft_line_box2_sub2 {
    width: 100%;
    height: auto;
    padding: 0px 0 0px 0;
    height: 90px;
  }
  .ft_line_tit222 {
    width: 100%;
    float: none;
    text-align: left;
    line-height: auto;
  }
  .ft_line_content22 {
    width: 100% !important;
    float: none;
    text-align: left;
  }
  .tel_line22 {
    line-height: auto;
    padding-top: 0px;
  }
  .line_base22 {
    width: 100%;
    height: 1px;
    background: #e5e5e5;
  }
  .ov_hs {
    height: 100%;
  }

  /* Opening hours */
  .ttm {
    width: 100%;
    position: relative;
  }
  .ttm0111 {
    width: 30%;
    padding: 0px 20px 0 0px;
    float: left;
  }
  .ttm0222 {
    width: 70%;
    padding: 0px 0px 0 0px;
    float: left;
  }

  /* Transportation information */
  .bus_ar {
    width: 100%;
    padding: 2%;
    float: left;
    background: #fafafa;
    margin: 0.5%;
  }
  .left_add_res {
    width: 100%;
    float: left;
    background: #fff;
    border-radius: 15px;
    margin: 0.5%;
    min-height: auto;
  }
  .add_boxs {
    width: 100%;
    padding: 2% 5% 2% 5%;
    float: left;
    margin: 0.5%;
    height: auto;
    min-height: auto;
    background: #fff;
    border-radius: 15px;
  }
  .boxxx {
    width: 100%;
    float: none;
    margin-left: 0%;
    height: auto;
    display: block;
    padding: 20px;
    border-radius: 20px;
  }
  .img_mas {
    margin-top: -10px;
  }
}

@media (max-width: 767px) {
  .location-map-links .jyoon-link-button,
  .location-map-links .jyoon-link-button:first-child {
    flex: none;
    min-width: 0;
    padding: 12px 24px;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 21px */
  }

  .location-map-links .jyoon-link-button,
  .location-map-links .jyoon-link-button:first-child {
    height: 45px;
    width: 173px;
  }

  .location-detail-section {
    padding: 80px 0;
  }
  .location-detail-card__station p,
  .location-detail-card__bus-stop > p {
    font-size: 16px;
    letter-spacing: -0.32px;
  }

  .location-detail-card__lead {
    font-size: 16px;
    letter-spacing: -0.8px;
  }

  .location-detail-card__bus-stop > p {
    margin-top: -6px;
  }

  .location-detail-card__route p,
  .location-notices {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 19.6px */
    letter-spacing: -0.28px;
  }

  .location-notices {
    gap: 16px;
  }

  .location-hours__table {
    gap: 8px;
  }

  .location-notice {
    gap: 3px;
  }

  .location-notice__title {
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 19.6px */
    letter-spacing: -0.28px;
  }
  .location-detail-card__bus-badge {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 19.6px */
    letter-spacing: -0.28px;
    border-radius: 1.6px;
    padding: 0 8px;
    height: 24px;
    width: 64px;
  }

  .location-detail-card__bus-list li {
    padding: 16px;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 19.6px */
    letter-spacing: -0.28px;
  }

  .location-detail-card__route h4 {
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 19.6px */
    letter-spacing: -0.28px;
  }

  .location-detail-card__bus-stop > strong {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 22.4px */
    letter-spacing: -0.32px;
  }

  .location-detail-card__line-number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
    letter-spacing: -0.32px;
  }

  .location-detail-card__station-heading {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 22.4px */
    letter-spacing: -0.32px;
  }
  .location-detail-card__route,
  .location-detail-card__parking-summary > div {
    gap: 3px;
  }

  .location-detail-card__bus-stop,
  .location-detail-card__intro {
    gap: 16px;
  }

  .location-detail-card {
    padding: 16px;
  }

  .location-detail-card--subway,
  .location-detail-card--bus,
  .location-detail-card--parking {
    gap: 24px;
  }

  .location-detail-card__heading-icon {
    flex-basis: 46px;
    width: 46px;
    height: 40px;
  }

  .location-detail-card__heading-row {
    height: 40px;
  }

  .location-detail-card__transport-groups,
  .location-detail-card__bus-groups,
  .location-detail-card__parking-inner,
  .location-detail-card__parking-content {
    gap: 24px;
  }

  .location-detail-card__parking-summary,
  .location-detail-card__parking-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-detail-card__parking-list {
    row-gap: 14px;
  }

  .location-detail-photo {
    border-radius: 16px;
  }
}

@media (max-width: 767px) {
  .location-detail-grid {
    gap: 20px;
  }
  .location-detail-photo__caption-wrap {
    top: 16px;
    left: 16px;
  }

  .location-detail-photo__caption {
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 0 24px;
    font-size: 16px;
  }

  .location-detail-photo__pagination {
    bottom: 18px;
  }

  .location-detail-photo__dot {
    flex-basis: 8px;
    width: 8px;
    height: 8px;
  }

  .location-detail-photo__dot.is-active {
    flex-basis: 28px;
    width: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-detail-photo__image,
  .location-detail-photo__dot {
    transition: none;
  }
}

.location-visits-section .jyoon-step-card__step {
  font-family: 'GowunBatang-Regular', sans-serif !important;
  font-weight: 700 !important;
}

.location-previsit-grid {
  display: flex;
  gap: 64px;
  align-items: stretch;
  width: 100%;
}

.location-previsit-grid__image-wrap {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  overflow: hidden;
}

.location-previsit-grid__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-previsit-grid__content {
  display: flex;
  flex: 0 0 784px;
  flex-direction: column;
  gap: 30px;
  width: 784px;
  min-width: 0;
}

.location-previsit-grid__heading {
  width: 100%;
  padding: 0;
  border-bottom: 1px solid #e5e5e5;
  color: #000;
  font-family: 'Pretendard', sans-serif !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.location-previsit-grid__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #000;
  font-family: 'Pretendard', sans-serif;
  font-size: 16px;
  letter-spacing: -0.32px;
}

.location-previsit-grid__list li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.location-previsit-grid__list strong,
.location-previsit-grid__list p {
  margin: 0;
}

.location-previsit-grid__list strong {
  font-weight: 700;
  line-height: 1.4;
}

.location-previsit-grid__list p {
  font-weight: 400;
  line-height: 25px;
}

.location-previsit-section {
  padding: 100px 0 100px;
  background-color: white;
}

@media (min-width: 768px) and (max-width: 1199px) {
  /* Figma: location overview — place the map below the location details on tablet */
  .location-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-overview__details {
    order: 1;
  }

  .location-overview__map-column {
    order: 2;
  }

  /* Figma: sub4 step-card-grid-section tablet layout */
  .hours-location-page .step-card-grid-section {
    padding: 100px 0 0;
  }

  .hours-location-page .jyoon-section-heading-step-card-grid .title-container {
    margin-bottom: 0;
  }

  .location-visits-section .jyoon-step-card-grid {
    grid-template-columns: repeat(2, minmax(0, 240px));
    justify-content: center;
  }

  .location-visits-section .jyoon-step-card-grid > :last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .location-previsit-grid {
    flex-direction: column;
    gap: 64px;
  }

  .location-previsit-grid__image-wrap {
    width: 100%;
    aspect-ratio: 752 / 400;
  }

  .location-previsit-grid__content {
    flex-basis: auto;
    width: 100%;
  }

  .location-map-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .location-map {
    min-height: 304px;
  }
  .location-overview__details {
    order: 1;
  }

  .location-overview__map-column {
    order: 2;
  }

  .location-previsit-section {
    padding: 0 0 80px;
  }
  .location-visits-section .jyoon-step-card-grid {
    padding: 0 20px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .location-previsit-grid {
    flex-direction: column;
    gap: 64px;
  }

  .location-previsit-grid__image-wrap {
    width: 100%;
    aspect-ratio: 752 / 423;
  }

  .location-previsit-grid__content {
    flex-basis: auto;
    gap: 30px;
    width: 100%;
  }

  .location-previsit-grid__heading {
    font-size: 18px;
    font-weight: 700;
    line-height: 140%; /* 25.2px */
    height: 36px;
  }

  .location-previsit-grid__list {
    gap: 20px;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 19.6px */
    letter-spacing: -0.28px;
  }

  .location-previsit-grid__list p {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 19.6px */
    letter-spacing: -0.28px;
  }

  .location-previsit-grid__list li {
    gap: 3px;
  }

  .location-map-links {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 173px));
  }

  .location-overview__map-column {
    gap: 25px;
  }

  .location-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .location-info-block__title {
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 25.2px */
    margin-top: 20px;
  }

  .location-bullet-list,
  .location-overview p {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
    letter-spacing: -0.32px;
  }

  .location-bullet-list li {
    align-items: flex-start;
  }

  .location-bullet-list img {
    margin-top: 0.55em;
  }

  .location-info-block {
    gap: 16px;
    padding-bottom: 16px;
  }

  .location-overview__details {
    gap: 32px;
  }

  .location-section,
  .hours-section {
    padding: 80px 0 0;
  }

  .location-contact__number {
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 28px */
    letter-spacing: -0.4px;
  }

  .location-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
}

/* Keep the main content off the legacy Pretendard font faces on mobile and
   desktop. The page-specific Gowun subset remains for display headings. */
html.jyoon-location-page .hours-location-page .mj2,
html.jyoon-location-page .hours-location-page .jyoon-section-heading h2.title,
html.jyoon-location-page .hours-location-page .faq-accordion__title,
html.jyoon-location-page .hours-location-page .location-visits-section .jyoon-step-card__step {
  font-family: 'GowunBatang-Regular' !important;
}
