/* 가맹점 — Figma 2176:103 골격 + 공통 로고 + 카테고리 폴리시 */
.r2go-page--franchise {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
    padding-top: 14px;
    padding-bottom: 28px;
    background: #fff;
}

/* 카테고리 2×5 — 피그마 초안 회색블록 대신 라이트 칩 */
.r2go-franchise__cats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.r2go-franchise__cat {
    margin: 0;
}
.r2go-franchise__cat-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 6px 4px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    text-decoration: none;
    text-align: center;
    font-family: Pretendard, "Noto Sans KR", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 15px;
    letter-spacing: -0.03em;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
    -webkit-tap-highlight-color: transparent;
}
.r2go-franchise__cat-link:active {
    transform: scale(0.97);
}
.r2go-franchise__cat-link.is-active {
    background: #3887fe;
    border-color: #3887fe;
    color: #fff;
    box-shadow: 0 6px 14px rgba(56, 135, 254, 0.28);
}
.r2go-franchise__cat-line {
    display: block;
}

/* 매장 리스트 */
.r2go-franchise__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.r2go-franchise__item {
    animation: r2go-franchise-fade 220ms ease;
}
.r2go-franchise__item.is-hidden {
    display: none;
}
.r2go-franchise__item:not(.is-hidden) + .r2go-franchise__item:not(.is-hidden) {
    border-top: 8px solid rgba(156, 163, 175, 0.2);
}
@keyframes r2go-franchise-fade {
    from {
        opacity: 0.35;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .r2go-franchise__cat-link,
    .r2go-franchise__item {
        transition: none;
        animation: none;
    }
    .r2go-franchise__cat-link:active {
        transform: none;
    }
}

.r2go-franchise__card {
    display: block;
    text-decoration: none;
    color: inherit;
}
.r2go-franchise__media {
    width: calc(100% + 40px);
    margin: 0 -20px;
    overflow: hidden;
    background: #e8edf3;
}
.r2go-franchise__photo {
    display: block;
    width: 100%;
    aspect-ratio: 440 / 304;
    max-height: 320px;
    object-fit: cover;
    background: #e5e7eb;
}
.r2go-franchise__photo-fallback {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    aspect-ratio: 440 / 304;
    max-height: 320px;
    padding: 22px 20px;
    background:
        linear-gradient(180deg, rgba(17, 17, 17, 0) 42%, rgba(17, 17, 17, 0.42) 100%),
        radial-gradient(120% 80% at 12% 18%, rgba(255, 255, 255, 0.55), transparent 55%),
        var(--r2go-fallback-tone, #e5e7eb);
}
.r2go-franchise__photo-fallback-label {
    font-family: "Gmarket Sans", Pretendard, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.r2go-franchise__body {
    padding: 14px 0 20px;
}
.r2go-franchise__badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.r2go-franchise__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 10px;
    border-radius: 10px;
    background: #d0e3ff;
    color: #3887fe;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}
.r2go-franchise__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.r2go-franchise__name {
    margin: 0;
    font-family: Pretendard, "Noto Sans KR", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.03em;
    color: #111;
}
.r2go-franchise__points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 15px;
    padding: 0 8px;
    border: 0.5px solid #c50018;
    border-radius: 10px;
    color: #c50018;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
}
.r2go-franchise__tagline {
    margin: 0 0 12px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #c55200;
}
.r2go-franchise__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.r2go-franchise__meta-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.r2go-franchise__meta-icon {
    display: block;
    width: 17px;
    height: 17px;
    margin-top: 3px;
    flex-shrink: 0;
    object-fit: contain;
    opacity: 0.88;
}
.r2go-franchise__meta-text {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.02em;
    color: #111;
}
.r2go-franchise__transit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.r2go-franchise__subway {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 16px;
    padding: 0 8px;
    border-radius: 5px;
    background: #0ccf0c;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}
.r2go-franchise__subway-note {
    font-size: 12px;
    color: #111;
    line-height: 24px;
    letter-spacing: -0.02em;
}
.r2go-franchise__empty {
    margin: 28px 0;
    padding: 28px 16px;
    text-align: center;
    border-radius: 14px;
    background: var(--r2go-surface-soft, #f3f4f6);
    color: var(--r2go-body, #374151);
    font-size: 14px;
}
.r2go-franchise__empty[hidden] {
    display: none !important;
}

body.r2go-franchise-page {
    overflow: hidden;
}
body.r2go-franchise-page .shell {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body.r2go-franchise-page .shell::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.r2go-franchise__map {
    width: 100%;
    height: 180px;
    margin: 8px 0 4px;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
}
