/* place_section */
.place_section {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 160px;
    padding-bottom: 300px;
    padding-right: 200px;
    padding-left: 200px;
    /* background: linear-gradient(to top, #ECE8E000,#ECE8E060),
    url(/public/image/brand_story/intro_bg.jpg);
    background-blend-mode: multiply; */
}
.place_section .title {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 60px;
}
.place_wrap {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    width: 100%;
}
.transportation_wrap {
    flex: 2;
}
.map_wrap {
    height: 650px;
    flex: 8;
}
.trans_title { 
    margin-bottom: 30px; 
    font-size: 32px;
    font-weight: 600;
}
.trans_head {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    margin-bottom: 80px;
}
.trans_head li {
    cursor: pointer;
    transition: all 0.3s;
    padding: 10px;
    position: relative;
    height: 100px;
}

.btn_off {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* hover */
.trans_head li:hover,
.trans_head li.active {
    background-color: var(--main-green);
    color: var(--main-cream);
}

.trans_head li:hover .btn_off,
.trans_head li.active .btn_off {
    opacity: 0;
}

.trans_head li:hover .btn_on,
.trans_head li.active .btn_on {
    opacity: 1;
}

.trans_contents {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

/* trans-버튼 */
.btn {
    width: 100%;
    padding: 8px 16px;
    font-size: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    border: 1px solid var(--main-black);
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}
.icon_on,
.icon_off {
    position: absolute;
    right: 16px;
}
.btn:hover,
.trans_contents .btn.active {
    background-color: var(--main-green);
    color: var(--main-cream);
}

.trans_contents .btn:hover .icon_off,
.trans_contents .btn.active .icon_off {
    opacity: 0;
}

.trans_contents .btn:hover .icon_on,
.trans_contents .btn.active .icon_on {
    opacity: 1;
}
.trans_contents .btn.active {
    background-color: var(--main-green);
    color: var(--main-cream);
}


/* map */
.map_image {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: 0.3s;
}


/* 기본 */

.map_image.car {
    background-image: url(../public/image/place/map_car.jpg);
}

.map_image.bus {
    background-image: url(../public/image/place/map_bus.jpg);
}

.map_image.subway {
    background-image: url(../public/image/place/map_subway.jpg);
}


/* 버스 상세 */

.map_image.bus_1 {
    background-image: url(../public/image/place/map_bus1.jpg);
}

.map_image.bus_2 {
    background-image: url(../public/image/place/map_bus2.jpg);
}

.map_image.bus_3 {
    background-image: url(../public/image/place/map_bus3.jpg);
}

.map_image.bus_4 {
    background-image: url(../public/image/place/map_bus4.jpg);
}


/* 지하철 상세 */

.map_image.subway_1 {
    background-image: url(../public/image/place/map_subway1.jpg);
}

.map_image.subway_2 {
    background-image: url(../public/image/place/map_subway2.jpg);
}

.map_image.subway_3 {
    background-image: url(../public/image/place/map_subway3.jpg);
}


/* map_text */
.map_text {
    display: flex;
    flex-direction: row;
    gap: 60px;
    padding-top: 30px;
}
.map_text ul{
    display: grid;
    grid-template-rows: repeat(3, 1fr);
}
.map_text ul li {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 4px 0;
}
.map_txt_tit {
    transform: translateX(20px);
    font-weight: 700;
}
.map_tit {
    font-weight: 700;
}

@media screen and (max-width: 1024px) {
    .place_section {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 160px;
        padding-bottom: 300px;
        padding-right: 30px;
        padding-left: 30px;
    }
    .place_section .title {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: flex-start;
        margin-bottom: 60px;
    }
    .trans_head {
        margin-bottom: 30px;
    }
    .place_wrap{
        flex-direction:column;
    }
    .transportation_wrap {
        flex: 2;
    }
    .map_wrap {
        width: 100%;
        height: 400px;
        flex: none;
    }
    .map_image {
        width: 100%;
        height: 100%;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        transition: 0.3s;
    }
}
@media screen and (max-width: 768px) {
    .transportation_wrap {
        height: 100px;
    }
    .trans_head {
        margin-bottom: 30px;
    }
    .map_wrap {
        width: 100%;
        height: 300px;
        flex: none;
    }
    .trans_title {
        font-size: 26px;
    }
}
@media screen and (max-width: 500px) {
    .place_section {
        padding-bottom: 400px;
    }
    .transportation_wrap {
        height: 100px;
    }
    .trans_head {
        margin-bottom: 30px;
    }
    .map_wrap {
        width: 100%;
        height: 200px;
        flex: none;
    }
    .map_text {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-top: 30px;
    }
    .map_txt_tit {
        transform: translateX(0px);
    }
    .trans_title {
        font-size: 18px;
    }
}