/* BASIC css start */
/* ========================================
   문구대통령 오프라인 매장 안내
======================================== */

.store-guide,
.store-guide *,
.store-guide *::before,
.store-guide *::after {
    box-sizing: border-box;
}

.store-guide {
    --store-text: #181818;
    --store-sub-text: #6f7175;
    --store-light-text: #96989c;
    --store-line: #ddd;
    --store-line-strong: #d2d4cf;
    --store-background: #f6f6f3;
    --store-card: #ffffff;
    --store-accent: #e13d4f;
    --store-mint: #0c8f89;
    --store-mint-dark: #08716d;
    --store-mint-soft: #e9f5f2;

    width: 100%;
    max-width: none;
    margin: 0;
    padding: 100px 0;
    color: var(--store-text);
    background: #ffffff;
    font-family:
        Pretendard,
        "Pretendard Variable",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans KR",
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: keep-all;
}

.store-guide :where(h2, h3, h4, p, ol, ul) {
    margin: 0;
}

.store-guide :where(ol, ul) {
    padding: 0;
    list-style: none;
}

.store-guide > .store-guide__header,
.store-guide > .store-tabs,
.store-guide > .store-item {
    width: 100%;
    max-width: 1400px;
    margin-right: auto;
    margin-left: auto;
}

/* ========================================
   상단 제목
======================================== */

.store-guide__header {
    margin-bottom: 60px;
    text-align: center;
}

.store-guide__eyebrow {
    margin: 0 0 13px;
    color: var(--store-accent);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
}

.store-guide__title {
    color: var(--store-text);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.055em;
}

.store-guide__description {
    margin-top: 24px;
    color: #5f6165;
    font-size: 19px;
    line-height: 1.7;
    letter-spacing: -0.025em;
}

/* ========================================
   지점 선택
======================================== */

.store-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 40px;
}

.store-guide--single .store-tabs {
    display: none;
}

.store-tabs__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 48px;
    padding: 0 24px;
    border: 1px solid var(--store-line);
    border-radius: 999px;
    background: var(--store-card);
    color: var(--store-sub-text);
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(20, 20, 20, 0.025);
    transition: border-color 0.25s, background-color 0.25s, color 0.25s, transform 0.25s;
}

.store-tabs__button:hover {
    border-color: var(--store-line-strong);
    background: #fcfcfb;
    color: var(--store-text);
    transform: translateY(-2px);
}

.store-tabs__button.is-active {
    border-color: #202020;
    background: #202020;
    color: #ffffff;
}

/* ========================================
   매장 카드 및 제목
======================================== */

.store-item {
    padding: 50px;
    border: 1px solid var(--store-line);
    border-radius: 24px;
    background: var(--store-card);
}

.store-item + .store-item {
    margin-top: 50px;
}

.store-item__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.store-item__heading-text {
    min-width: 0;
}

.store-item__label {
    margin-bottom: 8px;
    color: var(--store-accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
}

.store-item__name {
    color: var(--store-text);
    font-size: 30px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.045em;
}

.store-status {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    min-height: 36px;
    padding: 0 15px;
    border-radius: 999px;
    background: var(--store-mint-soft);
    color: var(--store-mint-dark);
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
}

.store-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--store-mint);
    box-shadow: 0 0 0 4px rgba(12, 143, 137, 0.12);
}

/* ========================================
   매장정보 + 지도 레이아웃
======================================== */

.store-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(650px, 750px);
    align-items: start;
    gap: 30px;
    width: 100%;
}

.store-layout > *, .store-map__viewport {
    min-width: 0;
}

/* ========================================
   매장정보
======================================== */

.store-info__item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--store-line);
}

.store-info__item:first-child {
    padding-top: 5px;
}

.store-info__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--store-mint-soft);
    color: var(--store-mint-dark);
}

.store-info__icon svg,
.store-actions__button svg,
.store-notice__icon svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.store-info__icon svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.7;
}

.store-info__content {
    min-width: 0;
    padding-top: 1px;
}

.store-info__title {
    margin: 0 0 7px;
    color: var(--store-light-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.store-info__text {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: -0.025em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.store-info__phone {
    display: inline-block;
    color: var(--store-text);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    text-decoration: none;
}

/* 운영시간 */

.store-hours {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.store-hours p {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 15px;
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.store-hours span {
    color: var(--store-sub-text);
}

.store-hours strong {
    min-width: 0;
    font-weight: 650;
    word-break: keep-all;
}

/* 지도 및 전화 버튼 */

.store-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.store-actions__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    height: 52px;
    padding: 0 14px;
    overflow: hidden;
    border: 1px solid var(--store-line);
    border-radius: 14px;
    background: var(--store-card);
    color: var(--store-text);
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.25s, background-color 0.25s, color 0.25s, transform 0.25s;
}

.store-actions__button:hover {
    border-color: var(--store-line-strong);
    background: #fcfcfb;
    transform: translateY(-2px);
}

.store-actions__button svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.store-actions__button--primary {
    border-color: var(--store-text);
    background: var(--store-text);
    color: #ffffff;
}

.store-actions__button--primary:hover {
    border-color: #333333;
    background: #333333;
    color: #ffffff;
}

.store-actions__button--call {
    display: none;
}

/* ========================================
   카카오맵
======================================== */

.store-map {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    max-width: 750px;
    margin-left: auto;
    overflow: hidden;
    border-radius: 20px;
    isolation: isolate;
    contain: layout paint;
}

.store-map__viewport {
    position: relative;
    flex: 0 1 750px;
    width: 100%;
    max-width: 750px;
    overflow: hidden;
    border-radius: 20px;
    background: #eeeeee;
    isolation: isolate;
    contain: layout paint;
    transform: translateZ(0);
}

.store-map__viewport::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1000;
    border: 1px solid var(--store-line);
    border-radius: inherit;
    pointer-events: none;
}

.store-map__viewport > .root_daum_roughmap {
    position: relative !important;
    display: block !important;
    width: 750px !important;
    max-width: 750px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.store-map__viewport .root_daum_roughmap .wrap_map,
.store-map__viewport .root_daum_roughmap .wrap_controllers {
    max-width: none !important;
}

.store-map__viewport .root_daum_roughmap img {
    min-width: 0 !important;
    max-width: none !important;
}

.store-map__viewport .root_daum_roughmap a {
    margin: 0;
    padding: 0;
    border: 0;
    text-decoration: none;
}

.store-map__viewport .root_daum_roughmap .cont,
.store-map__viewport .root_daum_roughmap .map_border {
    display: none !important;
}

/* 공통 CSS의 button span 숨김 규칙 무효화 */
.store-map__viewport .root_daum_roughmap .wrap_btn_zoom .img_zoom {
    visibility: visible !important;
}

/* 모바일 지도 잠금 버튼은 기본적으로 숨김 */
.store-map__unlock-layer,
.store-map__lock-button {
    display: none;
    font-family: inherit;
}

/* ========================================
   방문 전 안내
======================================== */

.store-notice {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    margin-top: 35px;
    padding: 30px;
    border: 1px solid var(--store-line);
    border-radius: 18px;
    background: #fafaf8;
}

.store-notice__heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.store-notice__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 1px solid var(--store-line);
    border-radius: 50%;
    background: var(--store-card);
    color: var(--store-mint-dark);
}

.store-notice__icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.store-notice__heading h4 {
    margin: 6px 0 0;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: -0.025em;
}

.store-notice__list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.store-notice__list li {
    position: relative;
    padding-left: 14px;
    color: var(--store-sub-text);
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.store-notice__list li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--store-mint);
}

/* 공통 푸터의 기본 상단 여백 제거 */
.footer {
    margin-top: 0 !important;
}

/* ========================================
   PC
======================================== */

@media screen and (min-width: 1230px) {
    .store-guide {
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }

    .store-layout {
        align-items: stretch;
    }

    .store-map, .store-map__viewport {
        height: 100%;
    }

    .store-map__viewport > .root_daum_roughmap {
        height: 100% !important;
    }

    .store-map__viewport .root_daum_roughmap .wrap_map {
        height: calc(100% - 32px) !important;
    }
}

/* ========================================
   태블릿 이하
======================================== */

@media screen and (max-width: 1229px) {
    .store-guide {
        padding-top: 40px !important;
        padding-right: 15px;
        padding-bottom: 40px !important;
        padding-left: 15px;
    }

    .store-guide__header {
        margin-bottom: 40px !important;
    }

    .store-guide__title {
        font-size: 42px;
    }

    .store-item {
        padding: 40px;
    }

    .store-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    /* 한 줄로 내려온 지도 영역을 전체 너비로 확장 */
    .store-map, .store-map__viewport {
        width: 100%;
        max-width: none;
    }

    .store-map {
        justify-content: flex-start;
        margin-left: 0;
    }

    /* 기존 750px flex 제한 해제 */
    .store-map__viewport {
        flex: 1 1 auto;
    }

    /* 카카오맵 본체의 750px 고정 너비 해제 */
    .store-map__viewport > .root_daum_roughmap {
        width: 100% !important;
        max-width: none !important;
    }

    .store-map__viewport .root_daum_roughmap .wrap_map,
    .store-map__viewport .root_daum_roughmap .wrap_controllers {
        width: 100% !important;
    }

    .store-notice {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 공통 모바일 푸터의 기본 상단 여백 제거 */
    .shop-footer {
        margin-top: 0 !important;
    }
}

/* ========================================
   모바일
======================================== */

@media screen and (max-width: 767px) {
    .store-guide__header {
        padding: 0 5px;
    }

    .store-guide__eyebrow {
        margin-bottom: 12px;
        font-size: 11px;
    }

    .store-guide__title {
        font-size: 34px;
        line-height: 1.22;
    }

    .store-guide__description {
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.65;
    }

    .store-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        margin-right: -15px;
        margin-bottom: 25px;
        padding-right: 15px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .store-tabs::-webkit-scrollbar {
        display: none;
    }

    .store-tabs__button {
        flex-shrink: 0;
        min-width: auto;
        height: 43px;
        padding: 0 20px;
        font-size: 14px;
    }

    .store-item {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .store-item + .store-item {
        margin-top: 30px;
    }

    .store-item__heading {
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }

    .store-item__label {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .store-item__name {
        font-size: 23px;
    }

    .store-status {
        min-height: 31px;
        padding: 0 11px;
        font-size: 11px;
    }

    .store-status__dot {
        width: 6px;
        height: 6px;
    }

    .store-layout {
        gap: 25px;
    }

    .store-info__item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 13px;
        padding: 18px 0;
    }

    .store-info__icon {
        width: 40px;
        height: 40px;
    }

    .store-info__icon svg {
        width: 19px;
        height: 19px;
    }

    .store-info__title {
        margin-bottom: 5px;
        font-size: 11px;
    }

    .store-info__text {
        font-size: 14px;
        line-height: 1.6;
    }

    .store-info__phone {
        font-size: 19px;
    }

    .store-hours {
        gap: 5px;
    }

    .store-hours p {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 10px;
        font-size: 13px;
    }

    .store-actions {
        gap: 8px;
        margin-top: 20px;
    }

    .store-actions__button {
        height: 48px;
        padding: 0 10px;
        font-size: 13px;
    }

    .store-actions__button--call {
        display: inline-flex;
        grid-column: 1 / -1;
    }

    .store-map,
    .store-map__viewport {
        border-radius: 18px;
    }

    .store-map__viewport .root_daum_roughmap .wrap_btn_zoom {
        right: 8px !important;
    }

    /* 지도 잠금 중에는 카카오맵이 터치 이벤트를 받지 않음 */
    .store-map__viewport:not(.is-map-active) > .root_daum_roughmap {
        pointer-events: none;
    }

    /* 지도 전체를 덮는 모바일 잠금 레이어 */
    .store-map__unlock-layer {
        position: absolute;
        inset: 0;
        z-index: 1100;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 20px;
        border: 0;
        border-radius: inherit;
        appearance: none;
        -webkit-appearance: none;
        background: rgba(0, 0, 0, 0.08);
        color: #ffffff;
        text-align: center;
        cursor: pointer;
        touch-action: pan-y;
        -webkit-tap-highlight-color: transparent;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.2s, visibility 0.2s;
    }

    .store-map__unlock-layer span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 17px;
        border-radius: 100px;
        background: rgba(17, 17, 17, 0.88);
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
        font-size: 13px;
        font-weight: 700;
        line-height: 1.4;
        visibility: visible !important;
    }

    /* 지도를 활성화한 뒤 다시 잠그는 버튼 */
    .store-map__lock-button {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 1200;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        margin: 0;
        padding: 0 13px;
        border: 0;
        border-radius: 100px;
        appearance: none;
        -webkit-appearance: none;
        background: rgba(17, 17, 17, 0.88);
        color: #ffffff;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .store-map__viewport.is-map-active .store-map__unlock-layer {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .store-map__viewport.is-map-active .store-map__lock-button {
        display: inline-flex;
    }

    .store-notice {
        gap: 15px;
        margin-top: 25px;
        padding: 22px 20px;
        border-radius: 16px;
    }

    .store-notice__heading {
        gap: 10px;
    }

    .store-notice__icon {
        width: 31px;
        height: 31px;
    }

    .store-notice__heading h4 {
        margin-top: 4px;
        font-size: 15px;
    }

    .store-notice__list {
        gap: 6px;
    }

    .store-notice__list li {
        padding-left: 12px;
        font-size: 13px;
    }
}

/* ========================================
   작은 모바일
======================================== */

@media screen and (max-width: 420px) {
    .store-item {
        padding: 23px 17px;
    }

    .store-item__heading {
        flex-direction: column;
        gap: 12px;
    }

    .store-status {
        align-self: flex-start;
    }

    .store-actions {
        grid-template-columns: 1fr;
    }

    .store-actions__button--call {
        grid-column: auto;
    }
}


/* BASIC css end */

