/* HF Mainpage Engine patch: 기본 페이지 제목/테마 헤더 숨김 */
.entry-title,
.page-title,
.wp-block-post-title,
.entry-header,
.page-header,
.site-title,
.wp-site-blocks > header,
header.site-header,
#masthead,
.site-header,
.elementor-location-header,
.site-branding {
    display: none !important;
}

body.page .entry-content,
body.page .wp-block-post-content,
body.page .site-main,
body.page .site-content,
body.page article,
body.page .type-page {
    margin: 0 !important;
    padding: 0 !important;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #1e1e1e;
    overflow-y: scroll;
}

.hf-location-page-root {
    width: 100%;
    background: #1e1e1e;
    color: #fff;
    overflow-x: clip;
}

.hf-location-page-root,
.hf-location-page-root * {
    box-sizing: border-box;
    font-family: "Helvetica", "Helvetica Neue", Arial, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif !important;
}

/* =================================================================
   [1] 상단 인트로
================================================================= */
.full-cinema-container {
    background-color: #1e1e1e;
    width: 100%;
    margin: 0;
    overflow: hidden;
    padding-top: 200px;
    padding-bottom: 100px;
}

.headline-wrapper {
    text-align: left;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
    padding-left: 8vw;
    padding-right: 20px;
}

.headline-text {
    font-family: 'Pretendard', sans-serif;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    color: #ffffff;
    word-break: keep-all;
    word-wrap: break-word;
    font-size: 4.5rem;
}

.m-br { display: none; }

.text-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(-60px);
    animation: softLanding 7.5s cubic-bezier(0.1, 0.9, 0.1, 1) forwards;
}

.line-1 { animation-delay: 0.2s; }
.line-2 { animation-delay: 0.8s; margin-top: 20px; }

@keyframes softLanding {
    0% { opacity: 0; transform: translateY(-60px); }
    100% { opacity: 1; transform: translateY(0); }
}

.cinema-frame-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    aspect-ratio: 2.39 / 1;
    overflow: hidden;
    opacity: 0;
    display: block;
    line-height: 0;
    background-color: #1e1e1e;
}

.simple-fade-in {
    animation: imageFadeOnly 1.5s ease-out forwards;
    animation-delay: 0.7s;
}

@keyframes imageFadeOnly {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.parallax-img-target {
    width: 100%;
    height: 140%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform, opacity;
    transition: opacity 1.5s ease-in-out;
}

.slide-img { opacity: 0; z-index: 1; }
.slide-img.active { opacity: 1; z-index: 2; }

/* =================================================================
   [2] 지역 핀 스크롤 공통
================================================================= */
.pin-scroll-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #1e1e1e;
    height: 700px; /* 절대값 고정 — 브라우저 높이 변화에 무관 */
    opacity: 1;
    transform: none;
    transition: none;
}

.pin-scroll-section.visible {
    opacity: 1;
    transform: none;
}

.pin-sticky-wrapper {
    position: sticky;
    top: calc(50vh - 210px); /* 래퍼 중앙(210px)이 뷰포트 중앙(50vh)에 고정 */
    height: 420px;
    width: 100%;
    background-color: #1e1e1e;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.fixed-text-box {
    position: absolute;
    z-index: 100;
    background-color: #1e1e1e;
    box-sizing: border-box;
    border-radius: 0;
}

.ft-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.ft-desc {
    font-family: 'Pretendard', sans-serif;
    color: #fff;
    line-height: 1.6;
    word-break: keep-all;
}

.ft-btn {
    display: inline-flex;
    align-items: center;
    background-color: #2c2c2c;
    padding: 10px 24px 10px 10px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 500;
    color: #fff !important;
    font-size: 1rem;
    transition: color 0.3s, background-color 0.3s;
}

.ft-btn:hover { background-color: #3a3a3a; color: rgba(255,255,255,1) !important; }

.btn-icon-wrap {
    width: 32px;
    height: 32px;
    background-color: #00AB8E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-icon {
    display: block;
    width: 14px;
    height: 14px;
    background:
        linear-gradient(currentColor, currentColor) top center / 1.5px 5.5px no-repeat,
        linear-gradient(currentColor, currentColor) bottom center / 1.5px 5.5px no-repeat,
        linear-gradient(currentColor, currentColor) center left / 5.5px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center right / 5.5px 1.5px no-repeat;
}
.btn-icon::before, .btn-icon::after { content: none; }
.ft-btn:hover .btn-icon-wrap { transform: rotate(90deg); }
.btn-text { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }

.pin-track {
    display: flex;
    gap: 20px;
    height: 100%;
    align-items: center;
    will-change: transform;
}

.pin-item {
    flex: 0 0 auto;
    position: relative;
    width: 44vw;
    max-height: 405px; /* 래퍼 420px보다 작게 고정 → 상하 테두리 항상 보임 */
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0;
}

.pin-item::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
    box-sizing: border-box;
    pointer-events: none;
    z-index: 999;
}

.pin-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mo-br { display: none; }

/* =================================================================
   [2-A] 지역별 데스크톱 오버라이드
================================================================= */
#gansu .fixed-text-box {
    left: 5vw;
    top: 50%;
    transform: translateY(-50%);
    width: 30vw;
    padding: 2.5vw;
}
#gansu .ft-title { font-size: 3.5vw; margin-bottom: 1.5vw; }
#gansu .ft-desc { font-size: 1.1vw; margin-bottom: 3vw; }
#gansu .pin-track { padding-left: max(35vw, 550px); padding-right: 0vw; }

#qinghai .fixed-text-box {
    left: auto;
    right: 5vw;
    top: 50%;
    transform: translateY(-50%);
    width: 30vw;
    padding: 2.5vw;
}
#qinghai .ft-title { font-size: 3.5vw; margin-bottom: 1.5vw; }
#qinghai .ft-desc { font-size: 1.1vw; margin-bottom: 3vw; }
#qinghai .pin-track { padding-left: 1vw; padding-right: max(40vw, 550px); }

#xinjiang .fixed-text-box {
    left: 15vw;
    top: 45%;
    transform: translateY(-50%);
    width: 30vw;
    padding: 2.5vw;
}
#xinjiang .ft-title { font-size: 3.5vw; margin-bottom: 1.5vw; }
#xinjiang .ft-desc { font-size: 1.1vw; margin-bottom: 3vw; }
#xinjiang .pin-track { padding-left: 30vw; padding-right: 1.5vw; }

#sichuan .fixed-text-box {
    left: auto;
    right: 10vw;
    top: 50%;
    transform: translateY(-50%);
    width: 30vw;
    padding: 2.5vw;
}
#sichuan .ft-title { font-size: 3.5vw; margin-bottom: 1.5vw; }
#sichuan .ft-desc { font-size: 1.1vw; margin-bottom: 3vw; }
#sichuan .pin-track { padding-left: 2vw; padding-right: 25vw; }

#chongqing .fixed-text-box {
    left: 5vw;
    top: 50%;
    transform: translateY(-50%);
    width: 35vw;
    padding: 2.5vw;
}
#chongqing .ft-title { font-size: 3.5vw; margin-bottom: 1.5vw; }
#chongqing .ft-desc { font-size: 1.1vw; margin-bottom: 3vw; }
#chongqing .pin-track { padding-left: max(35vw, 550px); padding-right: 5vw; }

/* =================================================================
   [3] 견적문의
================================================================= */
.hk-quote-btn {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translate(-50%, 0) scale(0.9);
    z-index: 999999 !important;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.6s, transform 0.6s, background-color 0.3s;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
}

.hk-quote-btn.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
}

.hk-quote-btn:hover {
    background-color: #fff;
    color: #000;
    transform: translate(-50%, -5px) scale(1.05);
}

.hk-quote-btn.is-ending {
    position: absolute;
    bottom: 4vh;
    top: auto;
    transform: translate(-50%, 50%) scale(1);
    transition: none !important;
}

/* =================================================================
   [4] Footer
================================================================= */
#hk-location-footer {
    --big-size-pc: 70px;
    --big-size-mo: 30px;
    --big-weight: 700;
    --big-line-height: 1.2;
    --big-spacing: -0.5px;
    --city-size: 30px;
    --city-weight: 700;
    --city-line-height: 1.2;
    --desc-size: 25px;
    --desc-weight: 400;
    --desc-line-height: 1.6;
    --menu-size: 15px;
    --menu-weight: 500;
    --menu-spacing: 0.5px;
    --legal-size: 13px;
    --legal-weight: 400;
    --logo-width: 180px;
    --logo-bottom-space-pc: 5px;
    --side-padding-pc: 50px;
    --side-padding-mo: 20px;
    --logo-width-mo: 130px;
    --mo-logo-area-top: 30px;
    --mo-logo-bottom: 10px;
    --mo-legal-bottom: 0px;
    --logo-width-tab: 150px;
    --tab-logo-bottom: 15px;
    --tab-legal-bottom: 5px;
    --big-size-tab: 55px;

    width: 100% !important;
    background-color: #000 !important;
    color: #fff !important;
    font-family: 'Helvetica Neue', Helvetica, 'Pretendard', sans-serif !important;
    padding: 80px var(--side-padding-pc) 40px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 9999 !important;
    clear: both !important;
}

#hk-location-footer .hk-footer-inner { max-width: 1400px; margin: 0 auto; }
#hk-location-footer .hk-contact-section { margin-bottom: 50px; cursor: pointer; }
#hk-location-footer .hk-email { font-size: var(--big-size-pc); font-weight: var(--big-weight); line-height: var(--big-line-height); letter-spacing: var(--big-spacing); margin: 0 0 5px 0; transition: color 0.3s; color: #fff; }
#hk-location-footer .hk-email a { text-decoration: none !important; color: inherit !important; }
#hk-location-footer .hk-pc-only { display: inline-block !important; }
#hk-location-footer .hk-mo-only { display: none !important; }
#hk-location-footer .hk-phone { font-size: var(--big-size-pc); font-weight: var(--big-weight); line-height: var(--big-line-height); letter-spacing: var(--big-spacing); margin: 0; transition: color 0.3s; color: #999; }
#hk-location-footer .hk-phone a { text-decoration: none !important; color: inherit !important; display: inline-block; }
#hk-location-footer .hk-contact-section:hover .hk-email { color: #999; }
#hk-location-footer .hk-contact-section:hover .hk-phone { color: #fff; }

#hk-location-footer .hk-office-section { display: flex; gap: 80px; margin-bottom: 60px; }
#hk-location-footer .hk-office-city { font-size: var(--city-size); font-weight: var(--city-weight); line-height: var(--city-line-height); margin: 0 0 10px 0; }
#hk-location-footer .hk-office-city a { text-decoration: none !important; color: #fff !important; pointer-events: auto; }
#hk-location-footer .hk-office-desc { margin: 0; color: #ccc; font-size: var(--desc-size); font-weight: var(--desc-weight); line-height: var(--desc-line-height); transition: color 0.3s; cursor: pointer; }
#hk-location-footer .hk-office-desc a { text-decoration: none !important; color: inherit !important; }
#hk-location-footer .hk-office-desc:hover { color: #fff; }

#hk-location-footer .hk-bottom-nav { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 40px; position: relative; }
#hk-location-footer .hk-nav-left { display: flex; flex-direction: column; gap: 12px; }
#hk-location-footer .hk-nav-right { display: flex; flex-direction: column; gap: 12px; text-align: right; align-items: flex-end; }
#hk-location-footer .hk-nav-center { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }

#hk-location-footer .hk-link { color: #fff !important; text-decoration: none !important; font-size: var(--menu-size); font-weight: var(--menu-weight); display: inline-block; perspective: 1000px; cursor: pointer; }
#hk-location-footer .hk-link span { display: block; position: relative; transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1); transform-style: preserve-3d; transform-origin: 50% 50% -0.6em; -webkit-backface-visibility: hidden; backface-visibility: hidden; will-change: transform; background-color: transparent; }
#hk-location-footer .hk-link span::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; transform: rotateX(-90deg); transform-origin: 50% 50% -0.6em; color: #fff !important; -webkit-backface-visibility: hidden; backface-visibility: hidden; will-change: transform; background-color: transparent; }
#hk-location-footer .hk-link:hover span { transform: rotateX(90deg); }

#hk-location-footer .hk-logo-img { width: var(--logo-width); margin-bottom: var(--logo-bottom-space-pc); border: none !important; }
#hk-location-footer .hk-copyright, #hk-location-footer .hk-legal-text { font-size: var(--legal-size); font-weight: var(--legal-weight); color: #555 !important; }
#hk-location-footer .hk-legal-text { color: #666 !important; text-decoration: none !important; transition: color 0.3s; }
#hk-location-footer .hk-legal-text:hover { color: #fff !important; }
#hk-location-footer .hk-bar { font-size: 10px; color: #333 !important; }
#hk-location-footer .hk-legal-group-pc { margin-top: 20px; display: flex; gap: 10px; align-items: center; }
#hk-location-footer .hk-legal-group-mobile { display: none; }

/* =================================================================
   [5] 반응형
================================================================= */
@media (min-width: 768px) and (max-width: 1024px) {
    #gansu .ft-desc,
    #qinghai .ft-desc,
    #xinjiang .ft-desc,
    #sichuan .ft-desc,
    #chongqing .ft-desc {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        display: block;
    }

    #gansu .ft-desc br,
    #qinghai .ft-desc br,
    #xinjiang .ft-desc br,
    #sichuan .ft-desc br,
    #chongqing .ft-desc br { display: none !important; }

    .hk-quote-btn { bottom: 30px; }
    .hk-quote-btn.is-ending { bottom: 2.3vh; transform: translate(-50%, 50%) scale(1); }
}

@media (max-width: 1024px) {
    .full-cinema-container {
        padding-top: 150px;
        padding-bottom: 80px;
    }

    .headline-wrapper {
        padding-left: 4vw;
        padding-right: 20px;
    }

    .headline-text { font-size: 4rem; }

    .pin-sticky-wrapper {
        position: relative;
        top: auto;
        height: auto;
        min-height: 0;
        display: block;
        overflow: visible;
        padding: 0 0 40px;
    }

    .fixed-text-box {
        position: relative !important;
        left: 0 !important;
        right: auto !important;
        top: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        padding: 40px 20px 30px 20px !important;
    }

    .ft-title {
        font-size: 3rem !important;
        margin-bottom: 16px !important;
    }

    .ft-desc {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }

    .pin-track {
        padding-left: 0 !important;
        padding-right: 20px !important;
        padding-bottom: 60px;
        display: flex;
        align-items: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 15px !important;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
        transform: none !important;
        will-change: auto;
    }

    .pin-track::-webkit-scrollbar { display: none; }
    .pin-item:first-child { margin-left: 15px !important; }
    .pin-item {
        width: 60vw;
        scroll-snap-align: start;
    }

    #hk-location-footer .hk-email, #hk-location-footer .hk-phone { font-size: var(--big-size-tab); }
    #hk-location-footer .hk-legal-group-pc { display: none; }
    #hk-location-footer .hk-legal-group-mobile { display: flex; gap: 10px; margin-bottom: var(--tab-legal-bottom); align-items: center; justify-content: center; width: 100%; }
    #hk-location-footer .hk-logo-img { width: var(--logo-width-tab); margin-bottom: var(--tab-logo-bottom); }
}

@media (max-width: 768px) {
    .full-cinema-container {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .headline-wrapper {
        text-align: left;
        padding-left: 20px;
        padding-right: 20px;
    }

    .headline-text {
        font-size: 3.2rem;
        line-height: 1.3;
        font-weight: 800;
    }

    .m-br { display: block; }
    .line-2 { margin-top: 0; }

    .pin-item { width: 70vw; }

   #hk-location-footer {
    padding: 50px var(--side-padding-mo) 40px !important;
}

#hk-location-footer .hk-email,
#hk-location-footer .hk-phone {
    font-size: var(--big-size-mo);
}

#hk-location-footer .hk-office-section {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

/* 모바일 하단 메뉴: 홈 메인페이지와 동일하게 좌/우 2열 배치 */
#hk-location-footer .hk-bottom-nav {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
}

#hk-location-footer .hk-nav-right {
    width: auto;
    order: 2;
    align-items: flex-end;
    text-align: right;
    gap: 12px;
}

#hk-location-footer .hk-nav-right {
    width: auto;
    order: 2;
    align-items: flex-end;
    text-align: right;
    gap: 12px;
}

#hk-location-footer .hk-nav-center {
    position: static;
    transform: none;
    width: 100%;
    order: 3;
    margin-top: var(--mo-logo-area-top);
}

#hk-location-footer .hk-legal-group-mobile {
    display: flex;
    gap: 10px;
    margin-bottom: var(--mo-legal-bottom);
    align-items: center;
    justify-content: center;
    width: 100%;
}

#hk-location-footer .hk-logo-img {
    width: var(--logo-width-mo);
    margin-bottom: var(--mo-logo-bottom);
}

    .hk-quote-btn {
        bottom: 10px;
        padding: 10px 24px;
        font-size: 16px;
    }

    .hk-quote-btn.is-ending {
        bottom: 3.3vh;
        transform: translate(-50%, 50%) scale(1);
    }
}

@media (max-width: 480px) {
    .pin-item { width: 85vw; }
}

@media (max-width: 767px), (orientation: landscape) and (max-height: 600px) {
    #hk-location-footer .hk-pc-only { display: none !important; }
    #hk-location-footer .hk-mo-only { display: inline-block !important; }
}

.pin-item { position: relative; }
.pin-item img.hf-location-rotating-image,
.pin-item img.hf-location-rotating-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
