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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, 'Noto Sans KR', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    -webkit-overflow-scrolling: touch;
}

.hidden {
    display: none !important;
}

/* ==================== HEADER ==================== */
header {
    background: white;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;  /* 수정: center → space-between */
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 50px;
}

header.header-with-back {
    justify-content: space-between;
    position: relative;  /* 추가 */
}

header .logo {
    height: 100%;
    max-height: 50%;
    width: auto;
    display: block;
    object-fit: contain;
    position: absolute;  /* 추가 */
    left: 50%;  /* 추가 */
    transform: translateX(-50%);  /* 추가 */
    cursor: pointer;  /* 추가 */
}

header .header-back {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #343a40;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;  /* 추가 - 로고보다 위에 */
}

header .header-back:active {
    opacity: 0.6;
}

/* 햄버거 버튼 */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #343a40;
    z-index: 1;
}

.hamburger-btn:active {
    opacity: 0.6;
}

/* 사이드 메뉴 */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s;
}

.side-menu.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s;
}

.side-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.side-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85%;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.side-menu.active .side-menu-content {
    transform: translateX(0);
}

.side-menu-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.side-menu-logo {
    height: 28px;
    width: auto;
}

.side-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #343a40;
}

.side-menu-close:active {
    opacity: 0.6;
}

.side-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.side-menu-nav {
    display: flex;
    flex-direction: column;
}

.side-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 15px;
    font-weight: 700;
    font-family: 'pretendard', sans-serif;
    color: #343a40;
}

.side-menu-item:active {
    background: #f8f9fa;
}

.side-menu-section {
    margin-top: 8px;
    border-top: 1px solid #e9ecef;  /* 추가: 섹션 상단 구분선 */
}

.side-menu-section-title {
    padding: 16px 8px 8px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #343a40;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'pretendard', sans-serif;
}

.side-menu-section .side-menu-item {
    padding-left: 36px;
    font-size: 15px;
    font-weight: 500;
    color: #343a40;
    font-family: 'pretendard', sans-serif;
}

/* ==================== HOME PAGE ==================== */
#homePage {
    min-height: 100vh;
}

.title-section {
    padding: 20px 16px 20px 16px;
    background: white;
}

.title-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}


.scroll-container {
    display: flex;
    overflow-x: scroll;
    gap: 10px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;  
    scrollbar-width: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    scroll-padding: 0 16px;  
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-container::after {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    margin: 0 16px 0 0;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* 드래그 가능 표시 */
.scroll-container {
    cursor: grab;
}

.scroll-container:active {
    cursor: grabbing;
}

.location-card {
    flex-shrink: 0;
    width: 220px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease-out;
    scroll-snap-align: start;  
    scroll-snap-stop: always;   
}

.location-card:active {
    transform: scale(0.98);
}

.location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-card .label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
}

.search-section {
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    height: 80px;
}

.search-box {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    border: 1px solid #DDDDDD;
    border-radius: 50px;
    background: white;
    cursor: pointer;
    font-family: 'fretendard', sans-serif;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.05);
}
.search-box-wrapper {
    position: sticky;
    top: 66px;
    z-index: 99;
    margin: -60px 16px 0 16px;
}

.search-box::placeholder {
    color: #6c757d;
    font-family: 'pretendard', sans-serif;
    font-weight: 500;
}

.search-box:focus {
    outline: none;
    border-color: #343a40;
    background-color: #fafafa;
}

.search-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: currentColor;
}

.search-box:active {
    transform: scale(0.98);
}

.search-placeholder {
    font-size: 14px;
    font-weight: 400;
    color: #222222;
    text-align: left;
}

/* 검색 모달 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    flex-direction: column;
}

.search-modal-header {
    background: white;
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.search-modal-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 44px;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    color: #343a40;
}

.search-modal-input:focus {
    outline: none;
    border-color: #343a40;
}

.search-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0 8px;
    font-weight: 600;
    color: #343a40;
}

.search-modal-content {
    flex: 1;
    overflow-y: auto;
    background: white;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:active {
    background: #f5f5f5;
}

.search-result-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.search-result-meta {
    font-size: 12px;
    color: #6c757d;
    font-weight: 400;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.category-item:active {
    background: #f0f0f0;
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden; 
}

.category-icon img {
    display: block;
    max-width: 80%; 
    max-height: 60%; 
    object-fit: contain;     
}

.category-label {
    font-family: arial;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-align: center;
    color: #343a40;
}

.banner-section {
    padding: 0;
    background: white;
    margin-bottom: 0;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;  /* cover → contain으로 변경 */
}

.popular-section {
    padding: 40px 16px;
    background: white;
}

.popular-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.popular-scroll {
    display: flex;
    overflow-x: scroll;
    gap: 10px;
    padding: 0 0 10px 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.popular-scroll::-webkit-scrollbar {
    display: none;
}

/* 드래그 가능 표시 */
.popular-scroll {
    cursor: grab;
}

.popular-scroll:active {
    cursor: grabbing;
}

/* 드래그 중 카드 클릭 방지 */
.location-card,
.popular-card {
    pointer-events: auto;
}

.scroll-container.dragging .location-card,
.popular-scroll.dragging .popular-card {
    pointer-events: none;
}

.popular-card {
    flex-shrink: 0;
    width: 160px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease-out;
    background: white;
    scroll-snap-align: start;  
    scroll-snap-stop: always;  
}

/* .popular-card:nth-child(odd) 부분은 삭제 */

.popular-card:nth-child(odd) {
    scroll-snap-align: start;  /* 홀수 카드(1, 3, 5...)만 스냅 */
}
.popular-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px; 
    display: block;  
}


.popular-card:active {
    transform: scale(0.98);
}


.popular-card-info {
    padding: 8px;
    background: white;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #343a40;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-card-location {
    font-size: 14px;
    color: #6c757d;
    margin-top: 2px;
    font-weight: 400;
}

/* ==================== 지역별 페이지 ==================== */
#locationPage {
    min-height: 100vh;
}

.location-page-content {
    padding: 0;
}

/* ==================== 카테고리 필터 섹션 ==================== */
.category-filter-section {
    background: white;
    padding: 16px;
}

.category-filter-title {
    font-size: 14px;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 12px;
}

.category-filter-scroll {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scroll-behavior: smooth;
}

.category-filter-scroll::-webkit-scrollbar {
    height: 4px;
}

.category-filter-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #343a40;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-filter-btn:active {
    background: #f0f0f0;
    border-color: #cd2e3a;
}

.cat-dot {
    width: 12px;
    height: 12px;
    background: #cd2e3a;
    border-radius: 50%;
}

/* 가게 그리드 */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    background: white;
}

.shop-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
    background: white;
}

.shop-card:active {
    transform: translateY(-4px);
}

.shop-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.shop-card-info {
    padding: 12px;
}

.shop-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 4px;
}

.shop-card-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #cd2e3a;
    color: white;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 6px;
}

.shop-card-price {
    font-size: 13px;
    font-weight: 700;
    color: #343a40;
}

/* ==================== 카테고리별 섹션 ==================== */
.category-shops-section {
    background: white;
    padding: 20px 16px;
    border-bottom: 8px solid #f8f9fa;
}

.category-shops-title {
    font-size: 16px;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 12px;
}

.category-shops-desc {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 16px;
    font-weight: 400;
}

/* ==================== 카테고리 필터 페이지 ==================== */
#categoryFilterPage {
    min-height: 100vh;
}

.filter-page-content {
    padding: 0;
}

.filter-intro-title {
    font-size: 24px;
    font-weight: 700;
    color: #343a40;
    padding: 20px 16px 8px 16px;
    background: white;
}

.filter-intro-desc {
    font-size: 14px;
    color: #6c757d;
    padding: 0 16px 20px 16px;
    background: white;
    margin-bottom: 8px;
    font-weight: 400;
}

#filteredShopsGrid {
    background: white;
}

/* ==================== 상세 페이지 ==================== */
#detailPage {
    background: white;
}

/* ==================== 상세 페이지 ==================== */
#detailPage {
    background: white;
}

.detail-floating-nav {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    z-index: 200;
    pointer-events: none;
}

.detail-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    pointer-events: auto;
    color: #343a40;
}

.detail-nav-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 1);
}

.detail-nav-btn svg {
    display: block;
}

.detail-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.3s ease-out;
}

.carousel-slide {
    min-width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.detail-content {
    padding: 20px 16px;
}

.breadcrumb {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 12px;
    font-weight: 400;
}

.detail-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #343a40;
}

.detail-price {
    font-size: 16px;
    font-weight: 700;
    color: #cd2e3a;
    margin-bottom: 20px;
}

.detail-video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.detail-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.detail-features {
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    font-weight: 400;
    color: #343a40;
}

.feature-icon {
    font-size: 20px;
    min-width: 24px;
}

.detail-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 20px;
    color: #343a40;
}

.detail-description {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
    font-weight: 400;
    margin-bottom: 20px;
}

.detail-map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.map-button {
    width: 100%;
    padding: 12px;
    background: #cd2e3a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
    margin-bottom: 30px;
}

.map-button:active {
    background: #a02329;
}

/* ==================== 관리자 대시보드 ==================== */
#adminPage {
    padding: 20px 16px;
}

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

.admin-header-custom h1 {
    font-size: 20px;
    font-weight: 700;
    color: #343a40;
}

.admin-header-custom .back-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #343a40;
}

.admin-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #343a40;
}

.admin-header .back-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #343a40;
}

.admin-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.admin-tab {
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
}

.admin-tab.active {
    color: #343a40;
    border-bottom-color: #cd2e3a;
}

.admin-tab-content {
    display: block;
}

.admin-tab-content.hidden {
    display: none;
}

.admin-form {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #343a40;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    color: #343a40;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #cd2e3a;
    background: #fafafa;
}

.form-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn-primary {
    background: #cd2e3a;
    color: white;
}

.btn-primary:active {
    background: #a02329;
}

.btn-secondary {
    background: #e9ecef;
    color: #343a40;
}

.btn-secondary:active {
    background: #dee2e6;
}

.shop-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-item {
    background: white;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-item-info {
    flex: 1;
}

.shop-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #343a40;
}

.shop-item-meta {
    font-size: 12px;
    color: #6c757d;
    font-weight: 400;
}

.shop-item-actions {
    display: flex;
    gap: 8px;
}

.shop-item-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
}

.shop-item-edit {
    background: #343a40;
    color: white;
}

.shop-item-edit:active {
    background: #495057;
}

.shop-item-delete {
    background: #ffdbdb;
    color: #cd2e3a;
}

.shop-item-delete:active {
    background: #ffb3b3;
}

/* ==================== 푸터 ==================== */
footer {
    background: #F7F7F7;
    color: #343a40;
    padding: 48px 16px 100px;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    height: 28px;
    width: auto;
    display: block;
    margin-bottom: 24px;
}

.footer-top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.footer-links-group {
    display: flex;
    gap: 24px;
}

.footer-links-group a {
    font-size: 15px;
    font-weight: 400;
    color: #343a40;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-group a:hover {
    color: #cd2e3a;
}

.footer-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-select-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #F7F7F7;
    border: 1px solid #c6c6c6;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #343a40;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
}

.footer-select-btn:hover {
    border-color: #343a40;
}

.footer-select-btn svg {
    flex-shrink: 0;
}

.footer-currency {
    font-size: 14px;
    font-weight: 500;
    color: #343a40;
}

.footer-company-info {
    margin-bottom: 16px;
}

.footer-company-info p {
    font-size: 11px;
    line-height: 1.1;
    color: #6c757d;
    font-weight: 300;
}

.footer-disclaimer {
    font-size: 11px;
    line-height: 1.1;
    color: #6c757d;
    font-weight: 300;
    margin-bottom: 16px;
}

.footer-copyright {
    font-size: 11px;
    color: #9aa0a6;
    font-weight: 300;
    margin-bottom: 26px;
}

.footer-bottom {
    text-align: center;
    color: #6c757d;
    margin-top: 15px;
}

/* ==================== 카테고리 페이지 (category.html) ==================== */
.category-page-header {
    background: white;
    padding: 20px 16px;
}

.category-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0;
}

.category-tabs-section {
    background: white;
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
}

.category-tabs-title {
    display: none;  /* 카테고리 문구 숨김 */
}

.category-tabs-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-behavior: auto;
}

.category-tabs-scroll::after {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 16px;
}

.category-tabs-scroll::-webkit-scrollbar {
    display: none;  /* 스크롤바 숨김 */
}

.category-tab {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;  /* 추가 */
    gap: 4px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #343a40;
    font-family: 'Noto Sans KR', sans-serif;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-tab-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;  /* 추가: 아이콘 크기 고정 */
}

.category-tab-icon img {
    max-width: 20px;
    max-height: 16px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;  /* 추가: 이미지 하단 여백 제거 */
}

.category-tab span {
    display: flex;  /* 추가 */
    align-items: center;  /* 추가 */
}

.category-tab.active {
    background: #343a40;
    color: white;
    border-color: #343a40;
}

.category-tab.active .category-tab-icon img {
    filter: brightness(0) invert(1);
}

.category-tab-dot {
    display: none;
}

.category-section {
    padding: 20px 16px 52px 16px;
    background: white;
}

.category-section-header {
    padding: 20px 0 12px 0;
}

.category-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 6px;
}

.category-section-desc {
    font-size: 13px;
    color: #6c757d;
    font-weight: 400;
}

.category-shops-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-shop-card {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: white;
}

.category-shop-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.category-shop-info {
    padding: 12px 0;
}

.category-shop-name {
    font-size: 14px;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 2px;
}

.category-shop-badges {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.category-shop-badge {
    padding: 2px 6px;
    background: #cd2e3a;
    color: white;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.category-shop-badge.coupon {
    background: #4285f4;
}

.category-shop-badge.closed {
    background: #adb5bd;
}

.category-shop-price {
    font-size: 14px;
    font-weight: 700;
    color: #343a40;
}

/* ==================== 카테고리 전체 페이지 (category-all.html) ==================== */
.category-all-content {
    padding: 0;
}

.category-all-header {
    background: white;
    padding: 20px 16px;
    border-bottom: 1px solid #e9ecef;
}

.category-all-title {
    font-size: 28px;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 8px;
}

.category-all-desc {
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

.category-all-shops {
    background: white;
    padding: 20px 16px;
}

/* ==================== 플로팅 버튼 ==================== */
.floating-btn {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    background: #e83d39;
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 4px 12px rgba(205, 46, 58, 0.4);
    cursor: pointer;
    z-index: 150;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
}

.floating-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-btn:active {
    transform: scale(0.98) translateY(0);  /* 수정 */
    background: #a02329;
}

.floating-btn svg {
    display: block;
    flex-shrink: 0;  /* 추가 */
}

/* 약관/정책 페이지 */
.policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    min-height: calc(100vh - 200px);
}

.policy-title {
    font-size: 28px;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 32px;
    text-align: center;
}

.policy-content {
    line-height: 1.8;
    color: #343a40;
}

.policy-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #343a40;
    margin-top: 32px;
    margin-bottom: 12px;
}

.policy-content p {
    font-size: 14px;
    margin-bottom: 12px;
    color: #495057;
}

.policy-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.policy-content ul li {
    font-size: 14px;
    margin-bottom: 8px;
    color: #495057;
}

.policy-content ul ul {
    margin-top: 8px;
}

.policy-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.policy-footer p {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 6px;
}

/* ==================== 지도 모달 ==================== */
.map-modal {
    position: fixed;
    top: 50px; /* 헤더 높이만큼 */
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.map-modal.active {
    transform: translateY(0);
}

/* 드래그 핸들 */
.map-modal-drag-handle {
    width: 100%;
    padding: 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 20px 20px 0 0;
    cursor: grab;
    position: relative;
    z-index: 10;
}

.map-modal-drag-handle:active {
    cursor: grabbing;
}

.map-modal-drag-bar {
    width: 40px;
    height: 4px;
    background: #d0d0d0;
    border-radius: 2px;
}

/* 카테고리 필터 - 지도 위에 배치 */
.map-category-filter {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 0 16px;
    overflow-x: auto;
    z-index: 1000;
    scrollbar-width: none;
    pointer-events: none;
}

.map-category-filter::-webkit-scrollbar {
    display: none;
}

.map-filter-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #343a40;
    font-family: 'Noto Sans KR', sans-serif;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
}

.map-filter-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.map-filter-btn.active {
    background: #343a40;
    color: white;
}

.map-filter-btn.active img {
    filter: brightness(0) invert(1);
}

.map-filter-btn:active {
    transform: scale(0.95);
}

/* 지도 컨테이너 */
.map-container {
    flex: 1;
    width: 100%;
    position: relative;
}

/* 내 위치 버튼 */
.my-location-btn {
    position: absolute;
    bottom: 180px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s;
}

.my-location-btn:active {
    transform: scale(0.95);
    background: #f0f0f0;
}

.my-location-btn svg {
    width: 20px;
    height: 20px;
}

/* 가게 정보 카드 */
.shop-info-card {
    position: absolute;
    bottom: 20px;
    left: 16px;
    right: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 12px;
    padding: 12px;
    z-index: 100;
    transition: transform 0.3s, opacity 0.3s;
}

.shop-info-card.hidden {
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
}

.shop-info-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.shop-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-info-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #343a40;
    margin: 0;
}

.shop-info-content p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

.shop-info-detail-btn {
    margin-top: 8px;
    padding: 8px 16px;
    background: #cd2e3a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: background 0.2s;
}

.shop-info-detail-btn:active {
    background: #a02329;
}