/* 지도
========================================================= */

.location-page__map-wrap {
    margin-top: 48px;
}

.location-page__map {
    position: relative;
    width: 100%;
    height: 435px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--soft);
    box-sizing: border-box;
}


/* 다음 지도 반응형
========================================================= */

.location-page__map .root_daum_roughmap,
.location-page__map .root_daum_roughmap .wrap_map,
.location-page__map .root_daum_roughmap .map {
    width: 100% !important;
    height: 100% !important;
}

.location-page__map .root_daum_roughmap .wrap_controllers {
    width: 100% !important;
}


/* 주소 패널
========================================================= */

.location-page .location-page__address-panel {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.location-page
.location-page__address-panel
.location-page__address-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 24px !important;

    width: 100% !important;
    min-width: 0;
    min-height: 112px;
    margin: 0 !important;
    padding: 24px 40px !important;

    border: 0 !important;
    text-align: left !important;
    box-sizing: border-box;
}

.location-page__address-content {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.location-page
.location-page__address-content
.info-panel__title {
    display: block;
    margin: 0;
    color: var(--white);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
}

.location-page
.location-page__address-content
.info-panel__desc {
    display: block;
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}


/* 연락처 (주소 패널 바깥)
========================================================= */

.location-page__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 18px;
    padding: 0 4px;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.6;
}

.location-page__contact-label {
    margin-right: 6px;
    font-weight: 700;
}

.location-page__contact-value {
    font-weight: 400;
}

.location-page__contact-sep {
    color: var(--line);
    font-weight: 400;
}

/* 위치 아이콘
========================================================= */

.location-page__pin {
    display: flex !important;
    position: relative;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;

    width: 64px !important;
    min-width: 64px;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;
    border: 0 !important;
    border-radius: 14px;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

/* 기존 CSS로 만든 위치 핀 제거 */
.location-page__pin::before,
.location-page__pin::after {
    display: none !important;
    content: none !important;
}

.location-page__pin-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;

    border: 0;
    object-fit: cover;
    object-position: center;

    /* 원본 PNG 안쪽의 넓은 여백 제거 */
    transform: scale(2.3);
    transform-origin: center;
    pointer-events: none;
}


/* 대중교통 안내 박스
========================================================= */

.location-page__guide-list {
    display: grid;
    gap: 20px;
    margin-top: 52px;
}

.location-page__guide {
    padding: 32px 36px;
    border: 1px solid var(--line);
    background: var(--white);
    box-sizing: border-box;
}

.location-page__guide-title {
    margin: 0;
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
}

.location-page__guide-main {
    margin: 14px 0 0;
    color: var(--navy);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.location-page__guide-desc {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}


/* 버스 노선 카드
========================================================= */

.location-page__transport-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.location-page__transport-item {
    --location-route-color: var(--navy);

    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 26px;

    min-width: 0;
    min-height: 220px;
    padding: 38px 30px;
    box-sizing: border-box;
}

.location-page__transport-item +
.location-page__transport-item {
    border-left: 1px solid var(--line);
}

.location-page__transport-item--green {
    --location-route-color: #149a2f;
}

.location-page__transport-item--blue {
    --location-route-color: #075dab;
}

.location-page__transport-item--red {
    --location-route-color: #d71920;
}


/* 버스 이미지
========================================================= */

.location-page__bus-visual {
    width: 104px;
    height: 104px;
    overflow: hidden;
    border-radius: 50%;
    background: #e9edf0;
}

.location-page__bus-visual img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    transform: translateY(8px);
}


/* 버스 정보
========================================================= */

.location-page__transport-content {
    min-width: 0;
}

.location-page__transport-eyebrow {
    margin: 0 0 5px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
}

.location-page__transport-title {
    margin: 0;
    color: var(--location-route-color);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.45;
}

.location-page__route-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.location-page__route-list li {
    min-width: 56px;
    padding: 8px 11px;
    background: var(--location-route-color);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
}


/* 참고 안내
========================================================= */

.location-page__notice {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 42px;
    padding: 25px 30px;
}

.location-page__notice::before,
.location-page__notice::after {
    display: none;
    content: none;
}

.location-page__notice-icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;
    background: var(--navy);
    color: var(--white);

    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
}

.location-page__notice-content {
    min-width: 0;
    text-align: left;
}

.location-page__notice-content strong {
    display: block;
    color: var(--navy);
    font-size: 17px;
    line-height: 1.5;
}

.location-page__notice-content p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}


/* 태블릿
========================================================= */

@media (max-width: 1024px) {

    .location-page__guide {
        padding: 28px 28px;
    }

    .location-page__transport-grid {
        grid-template-columns: 1fr;
    }

    .location-page__transport-item {
        grid-template-columns: 104px minmax(0, 1fr);
        min-height: 180px;
        padding: 32px 30px;
    }

    .location-page__transport-item +
    .location-page__transport-item {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

}


/* 모바일
========================================================= */

@media (max-width: 768px) {

    .location-page__map-wrap {
        margin-top: 34px;
    }

    .location-page__map {
        height: 360px;
    }

    .location-page
    .location-page__address-panel
    .location-page__address-item {
        align-items: center !important;
        gap: 18px !important;
        min-height: 100px;
        padding: 20px !important;
    }

    .location-page__pin {
        flex-basis: 56px;
        width: 56px !important;
        min-width: 56px;
        height: 56px !important;
        border-radius: 13px;
    }

    .location-page__pin-image {
        transform: scale(2.3);
    }

    .location-page
    .location-page__address-content
    .info-panel__title {
        font-size: 16px;
    }

    .location-page
    .location-page__address-content
    .info-panel__desc {
        font-size: 13px;
    }

    .location-page__contact {
        margin-top: 14px;
        font-size: 14px;
    }

    .location-page__guide-list {
        gap: 16px;
        margin-top: 38px;
    }

    .location-page__guide {
        padding: 24px 20px;
    }

    .location-page__guide-title {
        font-size: 18px;
    }

    .location-page__guide-main {
        margin-top: 12px;
        font-size: 16px;
    }

    .location-page__guide-desc {
        font-size: 14px;
    }

    .location-page__transport-grid {
        margin-top: 22px;
    }

    .location-page__transport-item {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 20px;
        min-height: 150px;
        padding: 28px 20px;
    }

    .location-page__bus-visual {
        width: 84px;
        height: 84px;
    }

    .location-page__transport-title {
        font-size: 20px;
    }

    .location-page__notice {
        align-items: flex-start;
        margin-top: 30px;
        padding: 22px 20px;
    }

}


/* 작은 모바일
========================================================= */

@media (max-width: 480px) {

    .location-page__map {
        height: 310px;
    }

    .location-page
    .location-page__address-panel
    .location-page__address-item {
        align-items: flex-start !important;
        gap: 14px !important;
        padding: 18px 16px !important;
    }

    .location-page__pin {
        flex-basis: 50px;
        width: 50px !important;
        min-width: 50px;
        height: 50px !important;
        border-radius: 11px;
    }

    .location-page__pin-image {
        transform: scale(2.3);
    }

    .location-page__guide {
        padding: 20px 16px;
    }

    .location-page__transport-item {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 16px;
        padding: 24px 16px;
    }

    .location-page__bus-visual {
        width: 68px;
        height: 68px;
    }

    .location-page__route-list {
        gap: 6px;
        margin-top: 14px;
    }

    .location-page__route-list li {
        min-width: 52px;
        padding: 7px 9px;
        font-size: 13px;
    }

    .location-page__notice-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

}