/* place_mini_map — 매장 목록 헤더 · 입점안내 버튼 */

/* 모바일만 — 휠·터치 스크롤 유지, 스크롤바 숨김 */
@media (max-width: 600px) {
    .store_info {
        -ms-overflow-style: none;
        scrollbar-width: none;
        scrollbar-gutter: auto;
        padding-right: 0;
    }

    .store_info::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}

/* PC·태블릿 — 스크롤바 표시 (place_mini_map.php 인라인과 동일) */
@media (min-width: 601px) {
    .store_info {
        scrollbar-gutter: stable;
        -ms-overflow-style: auto;
        scrollbar-width: thin;
        scrollbar-color: #b9bfd1 transparent;
        padding-right: 10px;
    }

    .store_info::-webkit-scrollbar {
        display: block;
        width: 8px;
        height: 8px;
    }

    .store_info::-webkit-scrollbar-track {
        background: transparent;
    }

    .store_info::-webkit-scrollbar-thumb {
        background: #b9bfd1;
        border-radius: 999px;
        border: 2px solid rgba(255, 255, 255, 0.6);
    }

    .store_info::-webkit-scrollbar-thumb:hover {
        background: #9ea6bd;
    }
}

@media (min-width: 768px) {
    .store_info {
        max-height: min(64vh, 680px);
    }
}

@media (min-width: 1200px) {
    .store_info {
        max-height: min(70vh, 760px);
    }
}

/* index 검색 — 더보기 (흰색 낮은 버튼) */
.store_info_more[hidden] {
    display: none !important;
}

.store_info_more {
    margin-top: 10px;
    padding: 0;
}

.store_info_more_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 9px 14px;
    border: 1px solid #eeedf8;
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(22, 27, 80, 0.05);
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.store_info_more_btn:hover:not(:disabled),
.store_info_more_btn:focus-visible {
    color: #7452f6;
    border-color: #e3e7fc;
    box-shadow: 0 2px 8px rgba(116, 82, 246, 0.08);
    outline: none;
}

.store_info_more_btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* 더보기로 새로 붙은 카드 — 잠깐 강조 */
@keyframes store_card_chunk_reveal {
    0% {
        background-color: #f3f0ff;
        box-shadow: 0 0 0 2px rgba(116, 82, 246, 0.22);
    }
    100% {
        background-color: #fff;
        box-shadow: 0 4px 14px rgba(22, 27, 80, 0.06);
    }
}

.store_card.store_card--chunk-new,
a.store_card--link.store_card--chunk-new {
    animation: store_card_chunk_reveal 1.2s ease-out forwards;
}

.store_info_wrap {
    background: #fafaff;
    border-radius: 20px;
    border: 1px solid #eeedf8;
    box-shadow: 0 2px 14px rgba(116, 82, 246, 0.06);
    padding: 22px 10px 20px;
    margin: 10px 0 0 0;
}

.store_info_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.store_info_header-left {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.store_info_title {
    font-size: 16px;
    font-weight: 700;
    color: #171b2e;
    letter-spacing: -0.01em;
}

.store_info_desc {
    font-size: 12px;
    color: #a0a8c4;
    font-weight: 500;
}

.store_info_entrance_btn {
    --entrance-btn-bg: #ebeffd;
    --entrance-btn-bg-hover: #e3e7fc;
    --entrance-btn-grad: linear-gradient(135deg, #5044ef 0%, #9168f9 52%, #a662fb 100%);

    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 14px 8px 12px;
    border: 0;
    border-radius: 999px;
    background: var(--entrance-btn-bg);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.store_info_entrance_btn:hover,
.store_info_entrance_btn:focus-visible {
    background: var(--entrance-btn-bg-hover);
    box-shadow: 0 2px 10px rgba(80, 68, 239, 0.12);
    outline: none;
}

.store_info_entrance_btn__label {
    background: var(--entrance-btn-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.store_info_entrance_btn__icon,
.store_info_entrance_btn__chevron {
    flex-shrink: 0;
    background: var(--entrance-btn-grad);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.store_info_entrance_btn__icon {
    width: 18px;
    height: 18px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 10.2 6.4 5.6c2.8-1.1 5.8-1.1 8.6 0L21 10.2V20H4v-9.8zm2.2 2.3v5.5h3.8v-3.8H6.2zm8 0v5.5h3.8v-3.8h-3.8z'/%3E%3Cpath fill='%23000' d='M5.8 5.9C7.9 4.9 10 4.5 12 4.5s4.1.4 6.2 1.4L19.2 5H4.8l1-0.1z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 10.2 6.4 5.6c2.8-1.1 5.8-1.1 8.6 0L21 10.2V20H4v-9.8zm2.2 2.3v5.5h3.8v-3.8H6.2zm8 0v5.5h3.8v-3.8h-3.8z'/%3E%3Cpath fill='%23000' d='M5.8 5.9C7.9 4.9 10 4.5 12 4.5s4.1.4 6.2 1.4L19.2 5H4.8l1-0.1z'/%3E%3C/svg%3E");
}

.store_info_entrance_btn__chevron {
    width: 6px;
    height: 10px;
    margin-left: 1px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath fill='%23000' d='M1.2 0 8 6l-6.8 6L0 10.5 5.2 6 0 1.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath fill='%23000' d='M1.2 0 8 6l-6.8 6L0 10.5 5.2 6 0 1.5z'/%3E%3C/svg%3E");
}

@media (max-width: 600px) {
    .store_info_wrap {
        padding: 16px 14px 16px;
    }
}

@media (max-width: 420px) {
    .store_info_header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 8px;
        row-gap: 3px;
    }

    .store_info_header-left {
        display: contents;
    }

    .store_info_title {
        grid-column: 1;
        grid-row: 1;
        line-height: 1.3;
    }

    .store_info_desc {
        grid-column: 1;
        grid-row: 2;
        line-height: 1.35;
    }

    .store_info_entrance_btn {
        grid-column: 2;
        grid-row: 1 / -1;
        align-self: center;
        padding: 7px 12px 7px 10px;
        font-size: 13px;
        gap: 5px;
    }

    .store_info_entrance_btn__icon {
        width: 16px;
        height: 16px;
    }

    .store_info_entrance_btn__chevron {
        width: 5px;
        height: 9px;
    }
}
