/***************************************************************************************
    Detail Page
****************************************************************************************/
.title-h2 {
    color: #000;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 4.4rem;
    margin-bottom: .9rem;
}

.facility-address {
    color: #000;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 400;
    line-height: 2.5rem;
    opacity: 0.4;
}

.detail-info-area {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 7.5rem;
    flex-wrap: nowrap;
}

.detail-info-wrap {
    flex: 0 0 auto;
    width: 82rem;
}

.detail-info-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.detail-info-summary li {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-left: 1px solid #D9D9D9;
    height: 4.9rem;
}

.detail-info-summary li:first-child {
    border-left: none;
}

.detail-info-summary li span {
    color: #000;
    font-size: 1.6rem;
    font-weight: 500;
    opacity: 0.4;
}

.detail-info-summary li strong {
    color: #000;
    font-size: 1.6rem;
    font-weight: 700;
}

/***************************************************************************************
    이미지 겔러리
****************************************************************************************/
.image-gallery-wrap {
    position: relative;
    margin-top: 2.2rem;
}
.image-gallery-wrap > a {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: block;
    border-radius: 1.2rem;
    background: #FFF;
    box-shadow: 0 0.4rem 2rem 0 rgba(0, 0, 0, 0.15);
    width: 16.4rem;
    height: 5.6rem;
    line-height: 5.6rem;
    color: #000;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
}
.image-gallery-wrap ul {
    display: grid;
    width: 124rem;
    height: 45rem;
    grid-template-columns: 60.4rem 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.8rem;
}
.image-gallery-wrap ul li {
    border-radius: 2rem;
    overflow: hidden;
}
.image-gallery-wrap ul li:first-child {
    grid-row: 1 / span 2;
}

/***************************************************************************************
    상세정보
****************************************************************************************/
.detail-info-list {
    display: grid;
    grid-template-columns: 16.5rem 1fr;
    gap: 10rem 0;
    margin-top: 10rem;
}

.detail-info-list > dt {
    color: #000;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 2.5rem;
}

.detail-info-list > dd .map-wrap {
    border-radius: 1.8rem;
    margin-top: 2rem;
    overflow: hidden;
}

.detail-info-list > dd > p {
    color: #000;
    font-size: 1.8rem;
    font-weight: 400;
    word-break: keep-all;
}

.detail-info-sub {
    display: grid;
    grid-template-columns: 19.5rem 1fr;
    gap: 5rem 0;
}

.detail-info-sub dt {
    color: #000;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 2.5rem;
}

.detail-info-sub dd > p {
    color: #000;
    font-size: 1.8rem;
    font-weight: 400;
    word-break: keep-all;
    line-height: 2.5rem;
}

/***************************************************************************************
    파이프라인 리스트
****************************************************************************************/
.list-pipe {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}
.list-pipe li {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 5.8rem;
    color: #000;
}
.list-pipe li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    background: #D9D9D9;
    width: 1px;
    height: 3rem;
    transform: translateY(-50%)
}
.list-pipe li:first-child::before {
    display: none;
}

.list-pipe li span {
    font-size: 1.6rem;
    font-weight: 400;
}

.list-pipe li strong {
    font-size: 2rem;
    font-weight: 700;
}

/***************************************************************************************
    상세 페이지 : 입소현황
****************************************************************************************/
.state-chart-wrap {
    display: flex;
    align-items: center;
}

.state-chart-wrap .chart-summary {
    flex: 0 0 auto;
    width: 15.7rem;
    height: 20rem;
    color: #000;
    padding: 3rem;
}

.state-chart-wrap .chart-summary span {
    display: block;
    font-size: 1.6rem;
    font-weight: 400;
}

.state-chart-wrap .chart-summary strong {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2.9rem;
}

.state-chart-wrap .chart-summary p {
    font-size: 1.6rem;
    font-weight: 400;
}

.state-chart-wrap .chart-summary p em {
    font-weight: 700
}

.state-chart-wrap .state-chart {
    flex: 1;
}

.state-chart ul {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 3.9rem;
    height: 18rem;
    overflow: hidden;
}

.state-chart ul li {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    width: 6rem;
    height: 100%;
    color: #000;
}

.state-chart ul li > span {
    display: block;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 400;
}

.state-chart ul li div {
    position: relative;
    border-radius: .8rem .8rem 0 0;
    width: 100%;
    max-height: 100%;
    margin-bottom: .8rem;
    overflow: visible;
}

.state-chart ul li div span {
    position: absolute;
    top: -3.8rem;
    left: 0;
    border-radius: 2rem;
    border: 1px solid #000;
    width: 6.2rem;
    height: 3rem;
    line-height: 2.8rem;;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
}

.state-chart ul li.red div {
    background: #FF5252;
}
.state-chart ul li.red div span {
    border-color: #FF5252;
    background: rgba(255, 82, 82, 0.20);
    color: #FF5252;
}
.state-chart ul li.blue div {
    background: #258FFF;
}
.state-chart ul li.blue div span {
    border-color: #258FFF;
    background: rgba(37, 143, 255, 0.20);
    color: #258FFF;
}
.state-chart ul li.gray div {
    background: #E2E2E2;
}
.state-chart ul li.gray div span {
    border-color: #BFBFBF;
    background: rgba(220, 220, 220, 0.40);
    color: #888;
}

/***************************************************************************************
    장기요양 비용
****************************************************************************************/
.price-summary {
    display: flex;
    border-top: 2px solid #000;
    margin-top: 5rem;
    padding-top: 5rem;
}

.price-summary h3 {
    flex: 0 0 auto;
    width: 19.5rem;
    color: #000;
}

.price-summary i,
.price-summary strong {
    display: block;
    line-height: 2.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: .3rem;
}

.price-summary span {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.4;
}

.price-summary .price {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.price-summary .price > div {
    text-align: center;
}

.price-summary .price > i {
    flex: 0 0 auto;
    width: 2rem;
    text-align: center;
}

.price-summary .total-price {
    color: #258FFF;
    font-size: 3rem;
    font-weight: 700;
    padding-left: .5rem;
}

/***************************************************************************************
    상세 페이지 우측 퀵 버튼
****************************************************************************************/
.detail-quick-menu {
    position: sticky;
    top: 15rem;
    right: 0;
    flex: 0 0 auto;
    width: 29.9rem;
}

.detail-quick-menu .btn-area {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.detail-quick-menu .btn-area button {
    border-radius: 1.2rem;
    height: 7rem;
    color: #000;
    font-size: 1.6rem;
    font-weight: 700;
}

.detail-quick-menu .btn-area button.bg-blue {
    color: #fff;
}

.detail-quick-menu p {
    text-align: center;
    margin-top: 4rem;
}
.detail-quick-menu p strong {
    display: block;
    line-height: 3.3rem;
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.detail-quick-menu p strong em {
    color: #258FFF;
}
.detail-quick-menu p span {
    display: block;
    line-height: 2.5rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 400;
}

/***************************************************************************************
        360도
    ****************************************************************************************/
#panorama {
    width: 100%;
    height: 620px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}


@media all and (max-width:1439px) {


    /***************************************************************************************
        이미지 갤러리
    ****************************************************************************************/
    .image-gallery-wrap ul {
        display: block;
    }
    .image-gallery-wrap ul li {
        display: none;
    }
    .image-gallery-wrap ul li:first-child {
        display: block;
        width: 81.6rem;
        height: 45rem;
        overflow: hidden;
    }

    .detail-quick-menu {
        display: none;
    }
}

/***************************************************************************************
    미디어 쿼리 : max-width:1023px
****************************************************************************************/
@media all and (max-width:1023px) {

    /***************************************************************************************
        360도
    ****************************************************************************************/
    #panorama {
        width: 100%;
        height: 500px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    
    /***************************************************************************************
        이미지 갤러리
    ****************************************************************************************/
    .image-gallery-wrap {
        margin-top: 2.4rem;
    }

    .image-gallery-wrap > a {
        bottom: 1.2rem;
        right: 1.2rem;
        border-radius: 8px;
        width: 10.5rem;
        height: 3.6rem;
        line-height: 3.6rem;
        font-size: 1.2rem;
    }

    .image-gallery-wrap ul {
        display: block;
        /*width: 33.5rem;*/
        height: 25rem;
        width:100%

    }
    .image-gallery-wrap ul li {
        display: none;
    }
    .image-gallery-wrap ul li:first-child {
        display: block;
        /*width: 33.5rem;*/
        width:100%;
        height: 25rem;
        overflow: hidden;
    }

    .detail-info-wrap {
/*        width: 33.5rem;*/
        width:100%;
    }

    .detail-info-area {
        margin-top: 3.7rem;
    }

    /***************************************************************************************
        상세 페이지 우측 퀵 버튼
    ****************************************************************************************/
    .detail-quick-menu {
        position: fixed;
        top: inherit;
        bottom: 0;
        left: 50%;
        display: block;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 40%);
        width: 33.5rem;
        height: 7rem;
        transform: translateX(-50%);
        z-index: 40;
    }

    .detail-quick-menu .btn-area {
        display: grid;
        /*grid-template-columns: 2fr 2fr 1fr;*/
        grid-template-columns: 2fr 2fr;*/
        gap: 1rem;
    }

    .detail-quick-menu .btn-area button {
        border-radius: .8rem;
        height: 5.6rem;
        font-size: 1.6rem;
    }

    .detail-quick-menu p {
        display: none;
    }

    /***************************************************************************************
        상세페이지 타이틀, 주소
    ****************************************************************************************/
    .title-h2 {
        font-size: 2.2rem;
        line-height: 3rem;
        margin-bottom: .8rem;
    }

    .facility-address {
        font-size: 1.4rem;
        line-height: 1.9rem;
    }

    .detail-info-summary {
        flex-wrap: wrap;
        gap: 2.9rem 0;
    }

    .detail-info-summary li {
        position: relative;
        flex: 0 0 auto;
        border: none;
        width: 50%;
        height: 4.5rem;
    }

    .detail-info-summary li:nth-child(even):before {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        left: 0;
        background: #D9D9D9;
        width: 1px;
        height: 3.5rem;
        transform: translateY(-50%);
    }

    .detail-info-summary li span {
        color: #000;
        font-size: 1.4rem;
        font-weight: 500;
        opacity: 0.4;
    }

    .detail-info-summary li strong {
        color: #000;
        font-size: 1.6rem;
        font-weight: 700;
    }

    /***************************************************************************************
        상세정보
    ****************************************************************************************/
    .detail-info-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 8rem;
    }

    .detail-info-list > dt {
        font-size: 2rem;
        line-height: 2.7rem;
        margin-bottom: 12px;
    }

    .detail-info-list > dd {
        margin-bottom: 6rem;
    }
    .detail-info-list > dd .map-address {
        display: none;
    }
    .detail-info-list > dd .map-wrap {
        margin-top: 0;
    }

    .detail-info-list > dd > p {
        font-size: 1.6rem;
        margin-bottom: 2.5rem;
        word-break: break-all;
    }

    .detail-info-list > dd > p:last-child {
        margin: 0;
    }


    .detail-info-sub {
        display: flex;
        flex-direction: column;
        gap: .4rem 0 !important;
        margin-top: 1.2rem;
    }

    .detail-info-sub dt {
        font-size: 1.6rem;
        line-height: 2.2rem;
    }

    .detail-info-sub dd {
        margin-bottom: 3rem;
    }

    .detail-info-sub dd:last-child {
        margin-bottom: 0;
    }

    .detail-info-sub dd > p {
        font-size: 1.6rem;
        line-height: 2.2rem;
    }

    .detail-info-sub .select-flex-radio {
        margin-top: 2rem;
    }
    .detail-info-sub .price-box {
        text-align: center;
        padding: 0;
        margin-bottom: 1rem;
    }


    /***************************************************************************************
        파이프라인 리스트
    ****************************************************************************************/
    .list-pipe {
        display: flex;
        flex-wrap: wrap;
        padding: 1.2rem 0;
        gap: 2.4rem 0;
    }
    .list-pipe li {
        flex: 0 0 auto;
        width: 50%;
        height: 5rem;
    }
    .list-pipe li:nth-child(odd)::before {
        display: none;
    }
    .list-pipe li:nth-child(even)::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        display: block;
        background: #D9D9D9;
        width: 1px;
        height: 3.5rem;
        transform: translateY(-50%)
    }

    .list-pipe li span {
        font-size: 1.4rem;
    }

    /***************************************************************************************
        상세 페이지 : 입소현황
    ****************************************************************************************/
    .state-chart-wrap {
        flex-direction: column;
    }

    .state-chart-wrap .chart-summary {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 14.2rem;
        padding: 2.4rem 0;
    }

    .state-chart-wrap .chart-summary div {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0 1.3rem;
    }

    .state-chart-wrap .chart-summary span {
        font-size: 1.4rem;
        margin-bottom: .6rem;
    }

    .state-chart-wrap .chart-summary strong {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .state-chart-wrap .chart-summary p {
        font-size: 1.4rem;
    }

    .state-chart ul {
        margin-top: 1rem;
    }

    .state-chart ul li > span {
        font-size: 1.4rem;
    }

    .state-chart ul li div span {
        top: -3.7rem;
        width: 6rem;
        height: 2.7rem;
        line-height: 2.5rem;;
        font-size: 1.4rem;
    }

    /***************************************************************************************
        라디오 선택 목록 : flex
    ****************************************************************************************/
    .select-flex-radio {
        gap: .8rem;
    }
    .select-flex-radio li {
        min-width: 7.4rem;
        height: 3.9rem;
    }
    .select-flex-radio li label {
        font-size: 1.4rem;
        padding: 1rem 1.8rem;
        opacity: 0.3;
    }

    /***************************************************************************************
        장기요양 비용
    ****************************************************************************************/
    .price-summary {
        flex-direction: column;
        border: none;
        padding-top: 0;
    }

    .price-summary h3 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #000;
        width: 100%;
        padding-bottom: 1.2rem;
        margin-bottom: 2.4rem;
    }

    .price-summary i {
        display: none;
    }

    .price-summary strong {
        line-height: 2.2rem;
        font-size: 1.6rem;
        margin-bottom: 0;
    }

    .price-summary .price {
        flex-direction: column;
        gap: .4rem 0;
    }
    .price-summary .price > div {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .price-summary .total-price {
        border-top: 2px solid #E6E6E6;
        width: 100%;
        font-size: 2.2rem;
        text-align: right;
        padding-top: 2.4rem;
        margin-top: 2.4rem;

    }
}

/***************************************************************************************
    미디어 쿼리 : max-width:639px
****************************************************************************************/
@media all and (max-width:639px) {

    /***************************************************************************************
        360도
    ****************************************************************************************/
    #panorama {
        width: 100%;
        height: 300px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }


    .layer-facility-type ul {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: calc(50vw - 2.6rem) calc(50vw - 2.6rem);
        gap: 1.1rem;
        width: 100%;
        padding: 0 2rem;
    }

    .layer-facility-type ul li {
        width: 100%;
        height: 100%;
    }

    .layer-facility-type ul li label {
        width: 100%;
        height: 100%;
    }

    .layer-facility-type ul li .icon {
        width: 38.46%;
        height: 38.46%;
    }

    .layer-facility-type .layer-controller {
        gap: 2.4rem;
        max-width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 calc(25% - 6.5rem);
        margin-top: 2.4rem;
    }

    .layer-facility-type .layer-controller > div {
        align-self: flex-end;
    }
}
