.bagis{
  background-color: #f8f5f2;
}

/* 700px~1150px 범위에서 부모 섹션의 패딩을 무시하고 전체 너비로 확장 */
@media (min-width: 700px) and (max-width: 1150px) {
  .tab-content .bagis {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* 체험 코스 페이지의 titbox 상단 여백 */
.inner_sub.titbox {
  margin-top: 60px;
}

.using{
  padding: 2rem;
  border: 1px solid #d1e3dc;
  border-radius: 120px 0 0 120px;
  margin-top: 60px;
}
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: #161616;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;

}
.info-left{
    width: 150px;
    /* background-image: url(/img/); */
}
.info-left.ttt{
    width: 200px;
    border-radius: 0 40px 0 40px;
    overflow: hidden;
}
.info-m{
  display: none;
}
.info-text{
      width: calc(100% - 260px);
}
.info-text.ttt{
  width: calc(100% - 260px);
}

.info-text h2 {
  margin-bottom: 0.5rem;
}
.info-text p {
}
.info-text ul {
  list-style: none;
  padding: 1rem;
  margin: 0;
}

.times img{
  width: 22px;
  margin-right: 10px;
}
.times.two{
  display: flex;
  align-items: center;
}

.grid {
  color: #161616;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 0 auto;
  margin-top: 60px;
}

.section h3 {
  font-weight: 800;
  color: #161616;
  margin-bottom: 1rem;
  border-bottom: 2px solid #222;
  padding-bottom: 0.5rem;
}

.section ul {
  padding-left: 1rem;
}

.section ul li {
  margin-bottom: 0.5rem;
  position: relative;
}

.section ul li::before {
  content: "•";
  color: #444;
  font-weight: bold;
  position: absolute;
  left: -1rem;
}


.rules-grid {
    display: flex;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 7rem 2rem;
    margin-top: 120px;
}

.rule-card {
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e6e6e6;
  width: 31%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  text-align: center;
  position: relative;
}
.rule-card .par{
  position: absolute;
  left: 50%;
  top: -50px;
  transform: translate(-50%,0);
}
.rule-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.rule-title {
  font-weight: 700;
  color: #161616;margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.rule-desc {
  line-height: 1.5;
  color: #161616;
}


  .faq-number {
    font-weight: bold;
    color: #fff;
    background-color: #387f6d;
    margin-right: 10px;
    border-radius: 13px;
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    }


  .accordion h4{
    padding-bottom: 20px;
  }

  .accordion-header div:last-child{
    border-bottom: 1px solid #bbbbbb;
  }

/* 탭 */


.tab_big{
    position:relative;
    width:100%;
    z-index:21;
}
.tab_big .tab_ti{
    margin-bottom:3rem;
}

.tab_big .tab_ti .section-title{
  color: #212121;
}
.tab-content-wrap{
    width: 100%;margin-top: 100px;
}
.tab-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.tab-menu {
  display: flex;
  list-style: none;
  padding: 0;
  width: 100%;
  font-weight: 400;
}

.tab-menu li {
  width: 50%;
}

.tab-menu li a {
    text-decoration: none;
    color: #555;
    padding: 15px 20px;
    min-width: 100px;
    display: inline-block;
    text-align: center;
    display: flex;
    border:1px solid #555;
    align-items: center;
    background-color: #fff;
    justify-content: space-between;
    font-weight: 500;

}


.tab-menu li a img{
  margin-right: 10px;
}
.tab-menu li:last-child{
  margin-right: 0;
}
.tab-menu li img{
    width:22px; 
}
.tab-menu li.active a {
 border: 1px solid #387f6d;
    color: #387f6d;
}
.tab_ti ul.li:first-child{
  border-right: 0;
}
/*.tab-menu li.active img{
  opacity:1;

    filter: invert(0%) sepia(11%) saturate(1647%) hue-rotate(131deg) brightness(94%) contrast(137%);
}*/
.tab-content {
  display: none;
  /* padding: 1rem; */
  height: 200px;
  border-top: none;
  position:relative;
}

.tab-content.active {
  display: block;
}

.tab-content .map_warp{
  position: absolute;
  width: 56%;
  left: 0;
  max-width: 600px;
}

.tab-content .map_warp .map_text {
    min-height: 400px;
    border-radius: 0px 120px 0 120px;
    border: 1px solid #e8e8e8;
    width: 100%;
    z-index: 20;
    display: flex;
    padding: 25px;
    align-items: center;
    position: relative;
    background-color: #387f6d;
    color: #fff;
}

.tab-content .map_warp .map_text .tex01{
  /* padding:20px; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width:100%;
  padding-right: 10px;
}
.tab-content .map_warp .map_text .text-flow{
  line-height: 1.8;
  /* padding: 10px 0; */
}
.tab-content .map_warp .map_text .te_top{
  display:flex;
  align-items: center;
}
.tab-content .map_warp .map_text .icon{
  width:22px;
  height:22px;
  margin-right:10px;
}
.tab-content .map01{
    position: absolute;
    max-width: 1000px;
    width: 57%;
    left: 83%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}
.tab-content .map01 img{
  position:relative;
  display:block;
}
svg {
  margin-top: 20px;
  width:100%;
  position:absolute;
}
/* #tab1 svg, #tab2 svg 고정 크기 규칙 제거 - img + SVG overlay 구조에서는 불필요 */
/* #tab1 svg{
  opacity: 0.5;
  height: 503px;
    width: auto;
    left: 109px;
    bottom: -44px;
}
#tab2 svg{
  opacity: 0.5;
height: 683px;
    width: auto;
    bottom: -96px;
    left: -3px;
} */

.tab-menu li.rb_n a {
  border-right: none;
}

.tab-menu li.active.rb_n a {
  border-right: none;
}

.draw-line {
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset:0;
  transition: stroke-dashoffset 1.5s ease-in-out;
}

.draw-line.reverse-line{
    stroke-dasharray:0;
  stroke-dashoffset:200;
  transition: stroke-dashoffset 1.5s ease-in-out;

}
.squre{
    width:70%;
}
.round{
    border-radius:50%;
    aspect-ratio:1 / 1;
    overflow:hidden;
    width: 100%;           /* 기본 너비는 꽉 차게 */
    max-width: 180px;      /* 최대 너비 제한 */
    max-height: 180px;  
}
.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  /* height:600px; */
  /* background-image:url(/img/map01.png); - CloudFront 대응을 위해 주석 처리 */
  /* background-size: auto 100%; */
  background-repeat: no-repeat;
}
.map-image {
  width: 100%;
  display: block;
}
.map-background-image {
  width: 100%;
  height: auto;
  display: block;
}
.map-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
  margin-top: 0;
}
.shw {
  position: absolute;
  cursor: pointer;
  z-index: 10;
}
.hover-box {
  display: none;
  position: absolute;
  top: 60%;
  left: 70%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.hotspot-hover:hover + .hover-box {
  display: block;
}

/* ====== Route Map (일반 CSS) ====== */
.route-map{
  border-radius:14px;
  color:#1a1a1a;
  width: 100%;
  overflow: hidden;
}

/* 공통 레일 박스 */
.route-map .rail{
  position:relative;
  margin:12px 0 28px;
  padding:24px 28px 8px;          /* 좌우 28px이 선의 시작/끝 여백 */
}
.route-map.tw .rail{
  margin: 12px 0 90px;
}
/* 회색 점선 레일 */
.route-map .rail::before{
    content: "";
    position: absolute;
    left: 16px;
    right: 10px;
    top: 50%;
    border-top: 2px dashed #c9c9c9;
    transform: translate(0, -50%);
}

/* 화살표(삼각형) */
.route-map .arrow{
  position:absolute;
   top: 50%;
    transform: translate(0, -50%);
  width:0; height:0;
  border-top:10px solid transparent;
  border-bottom:10px solid transparent;
}
.route-map .arrow.right{ right:8px;  border-left:10px solid #111; }
.route-map .arrow.left{  left:8px;   border-right:10px solid #111; }

/* 검은 시작/끝 점 */
.route-map .endpoint{
    position: absolute;
    top: 50%;
    width: 11px;
    height: 11px;
    background: #000;
    border-radius: 50%;
    transform: translate(0, -50%);
}
.route-map .endpoint.left{  left:12px; }
.route-map .endpoint.right{ right:12px; }

.route-map.mobile .endpoint.right{
  right: 0;
  width: 20px;
  height: 20px;
  background:transparent;
  border-radius: unset;
}

.route-map.mobile .arrow.left{
  width: 20px;
  height: 20px;
  background:transparent;
  border-radius: unset;
  border: 0;
}

/* 정류장(점 + 라벨) */
.route-map .stops{
  display:grid;
  gap:0;
  list-style:none;
  padding:0;
  margin:0;
  align-items:start;
  text-align:center;
}

/* 열 수(상단 7개, 하단 5개) */
.route-map .stops.cols-7{ grid-template-columns:repeat(7,1fr); }
.route-map .stops.cols-5{ grid-template-columns:repeat(5,1fr); }
.route-map.four{
      width: 81%;
      margin: 0 auto;
      padding-bottom: 80px;
}
.route-map.four .stops.cols-7{
  grid-template-columns:repeat(4,1fr);
}
.route-map.mobile .stops.cols-5{
grid-template-columns:repeat(4,1fr);
}

.route-map .stops li{
  position:relative;
  padding-top:30px;               /* 점 아래 라벨 여백 */
  min-width:0;                    /* 라벨 줄바꿈 허용 */
}

/* 초록 점 */
.route-map .stops li::before{
  content:"";
  position:absolute;
  left:50%; top:18px;             /* 레일 중앙과 맞춤 */
  transform:translate(-50%,-50%);
  width:14px; height:14px;
  background:#1a978b; border-radius:50%;
}

/* 라벨 */
.route-map .label{
  display:block;
  line-height:1.4;
  word-break:keep-all;
}
.route-map.mobile{
  display: none;
}

.boxroll {
    width: 80%;
    background-color: #226352;
    padding: 10px;
    margin: 0 auto;
    margin-top: 20px;
}
.boxroll .roll_le{
  margin-bottom: 10px;

}
.boxroll span{
  margin-right: 10px;
}

.boxroll img{
width: 20px;
}
.tab-content-wrap.qna{
  margin-top: 0;
}
.tab-content-wrap.qna .tab-content{
  height: auto;
}
.tab-content-wrap.qna .tab-content .map01{
  top: 150px;
}
.tab-content-wrap.qna .tab-content .map_warp .map_text{
    padding: 20px 40px;
}
.qna_title{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 0 30px;
    color: #121211;
}

.nim img{
    max-width: 45px;
    min-width: 20px;
    width: 100%;
    margin-bottom: 10px;
}

.l_line{
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.tab-content-wrap.qna .map_box{
  /* margin-bottom: 150px; */
  min-height: 500px;
  position: relative;
  height: auto;
}
.tab-content-wrap.qna .stone_tit{
  width: auto;
  max-width: 100%;
  margin-bottom: 10px;
}
.layout-section.tabr .stone_tit{
  width: auto;
  max-width: 100%;
  margin-bottom: 10px;
  margin-top: 20px;
}

.layout-section.tabr2 .stone_tit{
  width: auto;
  max-width: 100%;
  margin-bottom: 10px;
  margin-top: 20px;
}
.tabr .stone_tit::after,
.layout-section.tabr2 .stone_tit::after{
  display: none;
  width: 85px;
  margin-bottom: 10px;
}

/* 설명글과 이미지 사이 간격 */
.layout-section2 .mar_mini p{
  margin-bottom: 20px;
}

.tab-content-wrap.qna .go_tree{
  padding-left: 0;

}

.tab-content-wrap.qna .go_tree button{
  background-color: #387f6d;
  color: #fff;
  border: 0;
}

.tab-content-wrap.qna .twin{
  height:700px;
}
.tab-content-wrap.qna .twin .two{
      top: 570px;
}


.par3.erx .parleft{
  width: 50%;
}
.par3.erx .parright{
  width: 49%;
}
/* 작은 화면 보완 */
@media (max-width:520px){
  .route-map{ padding:18px; }
  .route-map .rail{ padding-left:20px; padding-right:20px; }
  .route-map .rail::before{ left:20px; right:20px; }
}

@media (max-width:1000px){
.tab-content-wrap.qna .twin{
  height: auto !important;
}
.tab-content-wrap.qna .twin .two{
  top: 0;
}
.twin .two .mov{
  width: 100%;
}
}

@media (max-width: 950px) {
  .rules-grid{
    gap: 2rem;
  }
  .route-map.pc{
    display: none;
  }
  .route-map.mobile{
    display: block;
  }
  /* 모바일에서 route-map 간격을 축소 */
  .route-map.mobile .rail{
    margin: 6px 0 5px; /* 기본 12px 0 28px을 대폭 축소 */
  }
  .tab-content-wrap.qna{
    margin-top: 0;
  }
.tab-content-wrap.qna .tab-content{
   /* display: none; */
    border-top: none;
    position: relative;
    height: auto;
}
.tab-content-wrap.qna .tab-content.active{
  /* display: flex; */
    /* flex-direction: column-reverse; */
}

.tab-content-wrap.qna .tab-content .map_warp{
  position: relative;
  width: 100%;
  left: unset;
  max-width: 100%;
}
.tab-content-wrap.qna .tab-content .map01{
  position: relative;
    max-width: unset;
    width: 100%;
    left: unset;
    top: unset;
    transform: unset;
}

.tab-content-wrap.qna .map-wrapper{
  /* height: 538px; */
    /* background-size: 100% auto; */
}
/* 미디어 쿼리 SVG 고정 크기 규칙 제거 - img + SVG overlay 구조에서는 불필요 */
/* .tab-content-wrap.qna #tab2 svg{
         opacity: 0.5;
        height: 690px;
        width: auto;
        bottom: -101px;
        left: -9px;
}

.tab-content-wrap.qna #tab1 svg{
  opacity: 0.5;
    height: 321px;
    width: auto;
    left: 64px;
    bottom: -35px;
} */
.tab-content-wrap.qna .map_box{
  display: flex;
  flex-direction: column-reverse;
}
.tab-content-wrap.qna .titbox.inner{
padding: 0;
margin-top: 40px;
  width: 100%;
}
.tab-content-wrap.qna .titbox .inner{
padding: 0;
/* width: 100%; */
}

.par3.erx .parleft,
.par3.erx .parright{
  width: 100%;
  margin: 0;
}


}
@media (max-width: 768px) {
  .grid {
      grid-template-columns: 1fr;
      margin-top: 30px;
  }
  .info-box {
      flex-direction: column;
      align-items: flex-start;
  }
  .faq-item {
      flex-direction: column;
      align-items: flex-start;
  }
  .faq-img {
      width: 100%;
      height: auto;
  }
  .info-text{
    width: 100%;
  }
  .using{
    border-radius: 70px 0 0 0px;
  }

  .info-pc{
    display: none;
  }
  .info-left.ttt{
    width: 100%;
  }
    .info-pc.ttt{
    display: block !important;
  }
  .info-text.ttt{
    width: 100%;
  }
  .info-m{
      width: 100%;
      display: flex;
        align-items: center;
  }
 
  .info-m img{
    width: 50px;margin-right: 20px;
  }
  
  .times.two{
    align-items: flex-start;
  }
  .rules-grid{
    gap: 1rem;
  }
  .rule-card{
    width: 47.33%;padding: 1rem;
    margin-bottom: 60px;
  }

  .layout-section.tabr2 .stone_tit{
  width: 360px;
}
}
@media (max-width: 650px) {
  .tab-content-wrap.qna .map-wrapper{
    /* height: 335px; */
  }
  /* .tab-content-wrap.qna #tab2 svg{
            height: 453px;
        width: auto;
        bottom: -79px;
        left: -9px;
  } */
}
@media (max-width: 380px) {
      .tab-content-wrap.qna .map-wrapper {
        /* height: 272px; */
    }
    /* .tab-content-wrap.qna #tab2 svg {
        height: 369px;
        width: auto;
        bottom: -62px;
        left: -9px;
    } */
}