/* 다양한 폰트 옵션 제공 (프리스탠다드, 노토산스, 나눔고딕) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', 'Nanum Gothic', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    letter-spacing: -0.5px; /* 자간 좁히기 */
    background: #f5f5f5;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* 반응형 컨테이너 */
.mobile-container {
    width: 400px;
    max-width: 400px;
    margin: 0 auto;
    background: white;
    min-height: 95vh;
    max-height: 900px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* PC에서 박스 형태로 표시 */
body {
    background: #2c2c2c;
    margin: 0;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* 모바일에서는 전체 화면 사용 */
@media (max-width: 768px) {
    body {
        background: white;
        padding: 0;
        align-items: flex-start;
        overflow-x: hidden;
        width: 100vw;
        max-width: 100vw;
    }
    
    .mobile-container {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        height: 100vh;
        max-height: none;
        box-shadow: none;
        overflow-x: hidden;
    }
    
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        z-index: 1000;
    }
}

/* PC 화면에서 박스 형태 유지 */
@media (min-width: 768px) {
    body {
        background: #333;
        padding: 20px 0;
    }
    
    .mobile-container {
        width: 400px;
        max-width: 400px;
        border-radius: 0;
        box-shadow: 0 0 30px rgba(0,0,0,0.3);
    }
}

/* 헤더 스타일 */
.header {
    background: #FFD700;
    padding: 20px;
    text-align: center;
    position: relative;
    flex-shrink: 0;
    z-index: 100;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.header h1 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
}

.back-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

/* 위치 표시 */
.location-input {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.current-location {
    flex: 1;
    padding: 12px;
    background: white;
    border: 2px solid #FFA500;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

.refresh-btn {
    padding: 12px 20px;
    background: #FFA500;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.refresh-btn:hover {
    background: #FF8C00;
}

/* 매장 리스트 */
.store-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0;
    padding: 0 0 15px 0;
    background: white;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.store-item {
    background: white;
    border-radius: 0;
    padding: 18px;
    margin-bottom: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: none;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
}

/* 오픈예정 매장 박스 스타일 */
.store-item.coming-soon {
    border: 3px solid #FFD700;
    background: #FFFBF0;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
    order: -1; /* 상단에 배치 */
    border-radius: 8px;
    margin-bottom: 15px;
}

.store-item:hover {
    background: #f8f9fa;
    box-shadow: none;
    transform: none;
}

.store-item:last-child {
    border-bottom: none;
}

.store-item .store-image {
    width: 75px;
    height: 75px;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.store-item .store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 이미지 최적화 스타일 */
.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.image-container.loaded .image-placeholder {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.store-img {
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.store-img.lazy {
    opacity: 0;
}

.image-container.loaded .store-img {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}



.no-results {
    text-align: center;
    padding: 50px;
    color: #999;
    font-size: 16px;
}

.store-item.featured {
    border-color: #FFD700;
    background: #FFFBF0;
}

.store-item.featured .store-badge {
    background: #FFD700;
    color: #333;
    padding: 5px 10px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
    border: 1px solid #F4C430;
}



.store-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.store-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.store-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: 12px;
}

.store-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.store-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
}

.store-address {
    color: #666;
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.4;
    word-break: keep-all;
}

.store-distance {
    color: #666;
    font-size: 12px;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 0;
    white-space: nowrap;
    border: 1px solid #e0e0e0;
}

.store-status {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 0;
    white-space: nowrap;
    border: 1px solid transparent;
}

.store-status.open {
    background: #e8f5e8;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.store-status.closed {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.store-status.unknown {
    background: #f5f5f5;
    color: #666;
    border-color: #e0e0e0;
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    color: #FFD700;
    font-size: 14px;
}

.rating-text {
    font-size: 12px;
    color: #666;
    letter-spacing: -0.2px;
}

.distance {
    font-size: 12px;
    color: #999;
    letter-spacing: -0.2px;
}

/* 매장 상세 페이지 */
.store-detail {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f5f5f5;
    padding-bottom: 80px; /* 고정 버튼 공간 확보 */
}

/* 매장 히어로 섹션 */
.store-hero {
    position: relative;
    background: white;
}

.store-image-large {
    width: 100%;
    height: 250px;
}

.store-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    padding-top: 40px;
}

.store-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.store-address-detail {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/* 액션 버튼 */
.action-buttons {
    display: flex;
    justify-content: space-around;
    background-color: #fff;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    flex: 1;
    padding: 10px 0;
}

.action-btn:not(:last-child) {
    border-right: 1px solid #eee;
}

/* 채널추가 버튼 카카오 스타일 */
.action-btn.kakao-channel {
    background: #FFE812;
    color: #3C1E1E;
    border-radius: 8px;
    margin: 5px;
    border: 1px solid #FFD700;
    transition: all 0.2s ease;
}

.action-btn.kakao-channel:hover {
    background: #FFD700;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.action-btn.kakao-channel .action-icon {
    stroke: #3C1E1E;
}

.action-btn.kakao-channel span {
    font-weight: 600;
    color: #3C1E1E;
}

/* 오늘의시세 섹션 스타일 */
.today-news-container {
    margin-top: 15px;
}

.today-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: none;
    width: 100%;
    justify-content: center;
    margin-bottom: 15px;
    border: 2px solid #2563eb;
}

.today-news-btn:hover {
    background: #1d4ed8;
    transform: none;
    box-shadow: none;
    color: white;
    text-decoration: none;
    border-color: #1d4ed8;
}

.today-news-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.external-link-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    flex-shrink: 0;
}

.today-news-description {
    margin-top: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.today-news-description p {
    margin: 0 0 10px 0;
    font-weight: 500;
}

.news-info-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.news-info-list li {
    margin: 6px 0;
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 채널 추가 안내 섹션 */
.channel-add-notice {
    margin-top: 12px;
    padding: 16px;
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 0;
    text-align: center;
}

.channel-notice-text {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #856404;
    font-weight: 500;
}

.channel-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #ffc107;
    color: #212529;
    text-decoration: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid #ffc107;
}

.channel-add-btn:hover {
    background: #e0a800;
    transform: none;
    box-shadow: none;
    color: #212529;
    text-decoration: none;
    border-color: #e0a800;
}

.no-news-message {
    color: #999;
    font-style: italic;
    font-size: 14px;
    margin-top: 10px;
}

.action-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    stroke: #555;
}

.action-btn span {
    font-weight: 500;
}

/* 매장 콘텐츠 섹션 */
.store-content-detail {
    padding: 20px;
    background-color: #f9f9f9;
}

/* 매장 상세 페이지의 네이버 예약하기 버튼 - 화면 하단 고정 */
.fixed-reserve-btn-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* PC 화면에서는 모바일 컨테이너 내부 하단에 배치 */
@media (min-width: 768px) {
    .fixed-reserve-btn-container {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: none;
        width: 100%;
        border-radius: 0 0 12px 12px;
        margin: 0;
        border-top: 1px solid #eee;
    }
}

/* 모바일에서는 전체 너비 */
@media (max-width: 767px) {
    .fixed-reserve-btn-container {
        padding: 15px;
    }
}

.fixed-reserve-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    background-color: #00C73C;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.fixed-reserve-btn:hover {
    background-color: #00B235;
}

.naver-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.info-section {
    padding: 20px;
    background: white;
    margin-bottom: 10px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.store-description {
    color: #555;
    line-height: 1.7;
    font-size: 14px;
    white-space: pre-wrap; /* 줄바꿈 적용 */
}

.address-text {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 14px;
}

/* 지도 컨테이너 */
.map-container {
    height: 200px;
    background: #f5f5f5;
    border: 1px solid #eee;
}

.map-link-btn {
    width: 100%;
    padding: 12px;
    background: #FF6B35;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin: 5px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.map-link-btn:hover {
    background: #FF5722;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.tmap-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 영업 정보 */
.business-info {
    font-size: 14px;
}

.business-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.business-row:last-child {
    margin-bottom: 0;
}

.business-row .label {
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 20px;
}

.business-row .value {
    color: #333;
    text-align: right;
    flex: 1;
}

/* 사전승낙서 버튼 */
.approval-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    box-shadow: none;
    letter-spacing: -0.2px;
}

.approval-btn:hover {
    background: #e8e8e8;
    border-color: #ccc;
    transform: none;
    box-shadow: none;
}

.approval-btn:last-child {
    margin-bottom: 0;
}

/* SNS 링크 섹션 */
.sns-links {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #e8e8e8;
    justify-content: center;
}

.sns-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: -0.2px;
}

.sns-btn:hover {
    background: #e9ecef;
    border-color: #ccc;
    transform: translateY(-1px);
}

.sns-btn.instagram:hover {
    background: #e1306c;
    color: white;
    border-color: #e1306c;
}

.sns-btn.carrot:hover {
    background: #ff6f0f;
    color: white;
    border-color: #ff6f0f;
}

.sns-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* 뒤로가기 버튼 */
.back-to-list {
    width: 100%;
    padding: 15px;
    background: #333;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    letter-spacing: -0.3px;
}

.back-to-list:hover {
    background: #555;
}

/* 하단 네비게이션 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #FFD700;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 400px;
    box-sizing: border-box;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: #000;
    transform: scale(1.05);
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    fill: #333;
    transition: fill 0.2s ease;
}

.nav-item:hover .nav-icon {
    fill: #000;
}

/* 모바일에서 하단 네비게이션 조정 */
@media (max-width: 480px) {
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
}

/* 에러 메시지 */
.error {
    text-align: center;
    padding: 50px 20px;
    color: #666;
    font-size: 16px;
    letter-spacing: -0.3px;
}

/* 로딩 스피너 - 투명배경의 가는선 동그라미 */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #333;
    font-size: 15px;
    letter-spacing: -0.3px;
    font-weight: 500;
}

.loading:before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 1px solid transparent;
    border-radius: 50%;
    border-top: 1px solid #666;
    animation: cleanSpin 1s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}

/* 위치 로딩 전용 스타일 - 투명배경의 가는선 동그라미 */
.location-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.location-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 40px 30px;
    color: #333;
    text-align: center;
    max-width: 320px;
    margin: 20px;
}

.location-loading .spinner {
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 50%;
    border-top: 1px solid #666;
    animation: cleanSpin 1s linear infinite;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.location-loading .text {
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 8px;
    color: #333;
    letter-spacing: -0.3px;
}

.location-loading .subtext {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    letter-spacing: -0.2px;
    opacity: 0.8;
}

/* 주소 표시 부분 간단한 로딩 텍스트 */
.location-simple-loading {
    color: #666;
    font-size: 14px;
    font-weight: 400;
}

/* Footer 스타일 */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 0;
    margin-top: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    padding: 0 8px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.footer-links .separator {
    color: #ccc;
    margin: 0 4px;
}

.footer-copyright {
    color: #999;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

/* 모달 스타일 */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    margin: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-header .close {
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-header .close:hover {
    color: #333;
}

.modal-body {
    padding: 20px 24px 24px;
    line-height: 1.6;
}

.modal-body h4 {
    margin: 20px 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .footer {
        padding: 12px 0 15px 0;
        margin-top: 20px;
        margin-bottom: 70px; /* 하단 네비게이션 공간 확보 */
    }
    
    .footer-links a {
        font-size: 10px;
        padding: 0 4px;
    }
    
    .footer-links .separator {
        font-size: 8px;
        margin: 0 2px;
    }
    
    .footer-copyright {
        font-size: 9px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10px;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 16px 20px 12px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 16px 20px 20px;
    }
    
    .modal-body h4 {
        font-size: 14px;
    }
    
    .modal-body p {
        font-size: 13px;
    }
}

/* 매장 로딩 스타일 - 투명배경의 가는선 동그라미 */
.store-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: #333;
    background: transparent;
    margin: 20px;
}

.store-loading .spinner {
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: 50%;
    border-top: 1px solid #666;
    animation: cleanSpin 1s linear infinite;
    margin-bottom: 24px;
}

.store-loading .title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.store-loading .subtitle {
    font-size: 14px;
    color: #666;
    letter-spacing: -0.2px;
    opacity: 0.8;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cleanSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes modernSpin {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 반응형 조정 */
@media (max-width: 374px) {
    .mobile-container {
        max-width: 100%;
    }
    
    .header {
        padding: 15px;
    }
    
    .store-list {
        padding: 15px;
    }
    
    .store-detail {
        padding: 15px;
    }
    
    .action-row {
        gap: 8px;
    }
    
    .action-btn {
        padding: 12px 8px;
        font-size: 12px;
    }
}

/* 이벤트 카드 - 직각사각형 심플 스타일 */
.event-card {
    background: white;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.2s ease;
    border: 1px solid #e0e0e0;
    position: relative;
}

.event-card:hover {
    background-color: #f8f9fa;
}

.event-card.expired {
    opacity: 0.6;
    background: #f5f5f5;
}

.event-card.expired:hover {
    background-color: #f0f0f0;
}

.event-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    padding: 20px;
    position: relative;
}

.event-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -0.2px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.event-status.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.event-status.upcoming {
    background: linear-gradient(135deg, #FF9800, #f57c00);
    color: white;
}

.event-status.expired {
    background: linear-gradient(135deg, #9E9E9E, #757575);
    color: white;
}

.event-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
    letter-spacing: -0.3px;
    padding-right: 100px;
}

.event-card.expired .event-title {
    color: #999;
}

/* 이벤트 모달 스타일 */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.event-modal-content {
    background: white;
    border-radius: 0;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #ddd;
}

.event-modal-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.event-modal-close {
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.event-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.event-modal-body {
    padding: 0;
}

.event-detail {
    padding: 20px;
}

.event-detail-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.event-detail-status.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.event-detail-status.upcoming {
    background: linear-gradient(135deg, #FF9800, #f57c00);
    color: white;
}

.event-detail-status.expired {
    background: linear-gradient(135deg, #9E9E9E, #757575);
    color: white;
}

.event-detail-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.event-detail-dates {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.event-detail-image {
    margin-bottom: 20px;
    text-align: center;
}

.event-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.event-detail-image img:hover {
    transform: scale(1.02);
}

.event-detail-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.event-detail-description img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.event-detail-description img:hover {
    transform: scale(1.02);
}

.event-detail-description strong {
    font-weight: 700;
}

.event-detail-description em {
    font-style: italic;
}

.event-detail-description u {
    text-decoration: underline;
}

.event-detail-description del {
    text-decoration: line-through;
}

.event-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #666;
}

.event-error {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
}

/* 이미지 모달 스타일 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    box-sizing: border-box;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

.image-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.2s ease;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* PC에서 하단 네비게이션 위치 조정 */
@media (min-width: 768px) {
    .bottom-nav {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 400px;
        max-width: 400px;
    }
    
    .mobile-container {
        padding-bottom: 0;
        min-height: 100vh;
        position: relative;
    }
    
    .footer {
        margin-bottom: 60px; /* 하단 네비게이션 공간 확보 */
        margin-top: 30px;
    }
    
    .event-modal-content {
        max-width: 700px;
    }
}

/* 오픈예정 매장 스타일 */
.coming-soon-badge {
    background: #FFD700;
    color: #333;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 15px;
    margin-left: 10px;
    display: inline-block;
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.5);
    animation: pulse 2s infinite;
    white-space: nowrap;
    z-index: 15;
    position: relative;
    border: 2px solid #FFD700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.opening-date {
    color: #FF8C00;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 8px;
    background: rgba(255, 215, 0, 0.15);
    padding: 6px 10px;
    border-radius: 8px;
    display: block;
    border-left: 3px solid #FFD700;
    clear: both;
}

.coming-soon-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.coming-soon-text {
    color: #FFD700;
    font-size: 28px;
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
    letter-spacing: 1px;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px #FFD700); }
    to { filter: drop-shadow(0 0 15px #FFD700); }
}

.coming-soon-default-image {
    width: 100%;
    height: 250px;
    background: #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 3px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.coming-soon-default-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.coming-soon-content {
    text-align: center;
    z-index: 1;
}

.coming-soon-main-text {
    display: block;
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.coming-soon-sub-text {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}