/* =========================================
   TONE:FIT Store Page Styles (store.css)
========================================= */

/* =========================================
   1. PAGE LAYOUT
========================================= */

.store-main {
    padding-top: 5.25rem; /* 헤더 높이만큼 오프셋 */
}

/* store 페이지는 히어로 없이 흰 배경이므로 헤더 항상 고정 스타일 적용 */
.page-store .header {
    background-color: #fff !important;
    color: #4C4948 !important;
}
/* =========================================
   2. PAGE TITLE SECTION
========================================= */

.store-title-section {
    padding: 8.125rem 0 5rem 0;  /* 130px 0 80px 0 */
    text-align: center;
}

.store-page-title {
    font-size: 3.375rem;         /* 54px */
    font-weight: 400;
    color: #1E2022;
    font-family: 'jalnan gothic ttf', sans-serif;
}

/* =========================================
   3. MAP SECTION
========================================= */

.store-map-section {
    padding: 0 0 5rem;
}

.store-map-wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2.5rem;          /* 좌우 40px */
    box-sizing: border-box;
}

#kakao-map {
    width: 100%;
    height: 31.25rem; /* 500px */
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #e8e8e8;
}

/* =========================================
   4. STORE LIST SECTION
========================================= */

.store-list-section {
    padding: 0 0 8.125rem;
}

.store-list-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2.5rem;          /* 좌우 40px */
    box-sizing: border-box;
}

/* 매장 현황 헤더 */
.store-list-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 0 2.5rem 0;      /* 0 0 40px 0 */
    border-bottom: 1px solid #4C4948;
    margin-bottom: 0;
}

.store-list-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 2rem;        /* 32px */
    font-weight: 500;       /* Medium */
    color: #1E2022;
}

.store-list-count {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.25rem;     /* 20px */
    font-weight: 400;       /* Regular */
    color: #4C4948;
}

/* =========================================
   5. ACCORDION ITEM
========================================= */

.store-accordion-item {
    border-bottom: 1px solid #D9D9D9;
}

.store-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 1.25rem;    /* 40px 20px */
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 0.625rem;              /* 10px */
    transition: background-color 0.2s ease;
}

.store-accordion-trigger:hover {
    background-color: #FAFAFA;
}

.store-accordion-trigger:focus-visible {
    outline: 2px solid #D4734A;
    outline-offset: 2px;
}

/* 매장명 */
.store-name {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.75rem;     /* 28px */
    font-weight: 400;       /* Regular */
    color: #1E2022;
    flex-shrink: 0;
    min-width: 10rem;
}

/* 기본 주소 (닫힌 상태에서 오른쪽에 표시) */
.store-address-preview {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.25rem;     /* 20px */
    font-weight: 400;       /* Regular */
    color: #4C4948;
    text-align: right;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}

/* 열린 상태에서 주소 미리보기 숨김 */
.store-accordion-item.is-open .store-address-preview {
    opacity: 0;
    pointer-events: none;
}

/* 화살표 아이콘 */
.store-accordion-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #4C4948;
}

.store-accordion-icon svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.store-accordion-item.is-open .store-accordion-icon {
    transform: rotate(180deg);
    color: #D4734A;
}

/* =========================================
   6. ACCORDION PANEL (상세 정보)
========================================= */

.store-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
}

.store-accordion-item.is-open .store-accordion-panel {
    max-height: 60rem; /* 콘텐츠가 1컬럼으로 늘어나는 모바일 대응 */
}

.store-detail {
    padding: 2.5rem 1.25rem;    /* 40px 20px */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;                /* 24px */
}

/* 상세 정보 각 항목 */
.store-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.store-detail-label {
    font-size: 1.125rem;        /* 18px */
    font-weight: 600;
    color: #D4734A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-detail-value {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.25rem;     /* 20px */
    font-weight: 400;       /* Regular */
    color: #1E2022;
    line-height: 1.5;
}

/* 지도 링크 버튼 */
.store-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 1.25rem;         /* 20px */
    font-weight: 600;
    color: #D4734A;
    text-decoration: none;
    margin-top: 0.25rem;
    transition: opacity 0.2s ease;
}

.store-map-link:hover {
    opacity: 0.75;
}

.store-map-link svg {
    width: 1em;                 /* 텍스트 폰트 사이즈와 동일한 크기 (20px) */
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* =========================================
   7. FOOTER (기존 footer 스타일 보완)
========================================= */

/* store 페이지 전용 footer 여백 없음 — 기존 footer 그대로 사용 */

/* =========================================
   8. RESPONSIVE
========================================= */

@media (max-width: 1024px) {
    .store-map-wrap,
    .store-list-wrap {
        padding: 0 1.5rem;
    }

    #kakao-map {
        height: 25rem;
    }

    .store-detail {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .store-main {
        padding-top: 4rem;
    }

    .store-title-section {
        padding: 5rem 0 3.75rem;
    }

    .store-page-title {
        font-size: 2.5rem;      /* 54px → 40px */
    }

    .store-map-wrap,
    .store-list-wrap {
        padding: 0 1rem;
    }

    #kakao-map {
        height: 18.75rem;
    }

    .store-list-title {
        font-size: 1.5rem;      /* 32px → 24px */
    }

    .store-list-count {
        font-size: 1rem;        /* 20px → 16px */
    }

    .store-name {
        font-size: 1.25rem;     /* 28px → 20px */
        min-width: 7rem;
    }

    .store-address-preview {
        font-size: 0.9375rem;   /* 20px → 15px */
        display: none;          /* 768px 이하 주소 숨김 */
    }

    .store-detail-value {
        font-size: 1rem;        /* 20px → 16px */
    }

    .store-detail {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .store-accordion-trigger {
        padding: 1.25rem 1rem;  /* 모바일: 20px 16px */
    }

    .store-map-link {
        font-size: 1rem;        /* 20px → 16px */
    }
}
