:root {
    --primary-color: #3730a3; /* Deep Indigo for luxury feel */
    --accent-gold: #c5a059; /* Luxury Gold accent */
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-gray: #f9fafb;
    --white: #ffffff;
}

/* Navigation Tabs */
    nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    padding: 14px 10px;
    border-bottom: 1px solid #f3f4f6;
    overflow-x: auto;
    scrollbar-width: none;
}

nav::-webkit-scrollbar { display: none; }

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #9ca3af;
    min-width: 64px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item i {
    width: 22px;
    height: 22px;
    margin-bottom: 5px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 600;
}

.nav-item.active {
    color: var(--text-main);
}

.nav-item.active i {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.main_content_wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#logo_wrap { 
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);    
}


/* 전체 컨테이너 */
.stylebook-container {  background-color: var(--bg-gray); max-width: 700px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.1); }

.sb-header {
background-color: var(--white);
    padding: 32px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;    
    position: relative;    
    flex-direction: column;
}

.sb-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 2px;
    background: var(--accent-gold);
}    


.sb-header .profile-img { width: 75px; height: 75px; border-radius: 100%; background: #f0f0f0; object-fit: cover;}
.sb-header h1 { font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }
.sb-header span { 
display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;    
}

.sb-desc-wrap { display:flex; gap:5px; }
.sb-header .comment { font-size:14px; font-weight: 500; padding-top:5px;}
.profile-image {
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    padding: 3px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.list-container {  margin:10px;}

/* 카테고리 탭: 아이콘 형태 */
.category-tabs { display: flex; justify-content: space-around; padding: 20px 10px; border-bottom: 1px solid #f0f0f0; overflow-x: auto; }
.category-tabs li { list-style: none; text-align: center; min-width: 60px; }
.category-tabs a { text-decoration: none; color: #666; font-size: 11px; }
.category-tabs i { display: block; font-size: 24px; margin-bottom: 5px; color: #ccc; }
.category-tabs a.active i { color: #4a55a2; }
.category-tabs a.active span { color: #4a55a2; font-weight: bold; }

/* 리스트 스타일: 가로형 카드 */
.post-item { display: flex; padding: 15px; border-bottom: 1px solid #f8f8f8; align-items: center;  background:#fff; border-radius: 15px; margin:10px;}
.post-item .thumb { width: 100px; height: 100px; border-radius: 12px; overflow: hidden; margin-right: 15px; flex-shrink: 0; }
.post-item .thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-info { flex-grow: 1; }
.post-info .location { font-size: 13px; color: #999; margin-bottom: 2px; }
.post-info .subject { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 5px; }
.post-info .price { font-size: 16px; font-weight: 700; color: #000; }

/* 하단 메뉴 */
.action-section {
background-color: var(--white);
padding: 24px 16px;
border-top: 1px solid var(--border-light);
}

.action-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px;
max-width: 440px;
margin: 0 auto;
}

.action-button {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px;
border-radius: 12px;
background: var(--white);
border: 1px solid #e2e8f0;
color: var(--text-main);
text-decoration: none;
font-size: 13px;
font-weight: 700;
transition: all 0.2s;
}

.action-button:active {
background-color: #f8fafc;
transform: scale(0.98);
}

.action-button i { width: 16px; height: 16px; }


.pagination-container {
display: flex;
justify-content: center;
align-items: center;
gap: 6px;
margin: 20px 0;
}

.pg_wrap { background-color:transparent; }
.pg_page {
width: 32px;
height: 32px;
border-radius: 8px;
background-color: var(--white);
border: 1px solid #e2e8f0;
color: var(--text-muted);
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
.pg_current{
background: var(--text-main);
color: var(--white);
border-color: var(--text-main);
border-radius: 8px;
}
#logo_wrap,
#main_intro,
.footer-info { display:none; }        



.map_wrap {
display: none; /* 초기값 */
position: fixed;
z-index: 10001;
background: #fff;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
overflow: hidden;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 90%;
max-width: 600px;
}

/* 지도 영역 높이 - 너비가 600px로 제한되므로 높이도 적절히 조절 */
.map-container {
    width: 100%;
    height: 400px;         /* 600px 너비에 적당한 높이 */
    min-height: 300px;
}

#map_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    transition: all 0.3s ease;
}

.map-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid #f0f0f0;
        }
        .shop-name {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 17px;
            color: #111;
        }
        .shop-name i { width: 18px; color: #ff4d4d; }
        .close-map { background: none; border: none; cursor: pointer; color: #999; transition: 0.2s; }
        .close-map:hover { color: #000; }
.naver-map-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    background: #fff;
}

/* 정보 바 디자인 (주소 및 연락처) */
.map-info-content {
    padding: 15px 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}
.info-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
    align-items: flex-start;
}
.info-row:last-child { margin-bottom: 0; }
.info-label {
    width: 65px;
    font-weight: 600;
    color: #888;
    flex-shrink: 0;
}
.info-text {
    color: #333;
    line-height: 1.4;
    word-break: keep-all;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.info-text a { color: #007bff; text-decoration: none; font-weight: 500; }

/* 복사 버튼 */
.copy-btn {
    padding: 2px 8px;
    font-size: 11px;
    margin-left: 8px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: 0.2s;
}
.copy-btn:hover { background: #f0f0f0; border-color: #ccc; }

.rank-sub-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.style-footer {
max-width:400px;margin:0 auto;
padding:16px 10px;
font-size: 14px;
line-height: 1.6;
}
.style-footer g { display: inline-block; padding:0 10px;}


/* 지도관련 */
#map_wrap #map { height:400px; }
.custom-overlay {
    position: relative;
    bottom: 0px; /* 마커와 텍스트 사이의 간격 */
    border-radius: 4px;
    border: 1px solid #777;
    border-bottom: 2px solid #ccc;
    background: #fff;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.2);

    /* 핵심: 요소를 수평 중앙으로 정렬 */
    /* transform: translateX(-50%); */
}




/* [2. 모바일/반응형 설정] 768px 이하 */
@media (max-width: 499px) {
    /*
    nav {
        justify-content: flex-start; // 아이템들 사이의 간격을 최소화하거나 고정합니다 
        gap: 0; 
    }

    .nav-item {
        // [중요] 22.2%로 설정하면 4.5개가 화면에 배치되어 5번째가 절반 잘립니다 
        flex: 0 0 18.5%; 
        min-width: 18.5%;
    }
    */

#categoryNav {
        flex-wrap: wrap;
        justify-content: flex-start; /* 왼쪽 정렬로 변경 */
        padding: 10px 0; /* 좌우 여백 조정 */
    }

    .nav-item {
        /* 중요: flex-1을 해제하고 너비를 25%로 고정 */
        flex: 0 0 25%; 
        margin-bottom: 15px;
    }
    .sb-header { border-bottom:none;}
    .sb-header::after { display:none; }

}
