/* ================================
   CSS Variables & Root Styles
================================ */
:root {
    /* Colors - Dark Elegant Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: #16161f;
    --bg-hover: #1e1e2a;

    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --accent-glow: rgba(99, 102, 241, 0.4);

    /* Category Colors */
    --color-restaurant: #f97316;
    --color-cafe: #eab308;
    --color-tourism: #22c55e;
    --color-culture: #3b82f6;
    --color-shopping: #ec4899;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Border & Shadow */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);

    /* Spacing */
    --header-height: 70px;
    --nav-height: 70px;
    --panel-width: 380px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ================================
   Reset & Base Styles
================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: -.6px;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* index.html만 세로 스크롤 비활성화 (PC 버전만, 1025px 이상) */
@media (min-width: 1025px) {
    html.no-scroll {
        overflow: hidden !important;
        height: 100% !important;
        position: fixed;
        width: 100%;
    }

    html.no-scroll body {
        overflow-y: hidden !important;
        overflow-x: hidden !important;
        height: 100vh !important;
        max-height: 100vh !important;
        position: relative;
        width: 100%;
    }

    body.no-scroll {
        overflow-y: hidden !important;
        overflow-x: hidden !important;
        height: 100vh !important;
        max-height: 100vh !important;
        position: relative;
        width: 100%;
    }

    body.no-scroll .main-container {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }
}

/* 모바일에서는 세로 스크롤 허용 */
@media (max-width: 1024px) {

    html.no-scroll,
    html.no-scroll body,
    body.no-scroll {
        /* overflow-y: auto !important; */
        /* height: auto !important; */
        /* max-height: none !important; */
        /* position: relative !important; */
    }
}

/* ================================
   Loading Screen
================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.loading-icon {
    width: 100%;
    height: 100%;
    color: var(--accent-primary);
}

.loading-circle {
    transform-origin: center;
    animation: loadingCircle 2s ease-in-out infinite;
}

.loading-pin {
    animation: loadingPin 1s ease-in-out infinite;
}

@keyframes loadingCircle {
    0% {
        stroke-dashoffset: 251.2;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -251.2;
    }
}

@keyframes loadingPin {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.loading-text {
    font-size: 28px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.loading-subtext {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    animation: loadingProgress 2s ease-in-out forwards;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* ================================
   Main Container
================================ */
.main-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 200px);
    opacity: 0;
    flex: 1;
    padding-right: 320px;
    /* 푸터 공간 확보 */
}

/* ================================
   Header
================================ */
.header {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
    z-index: 100;
    gap: 20px;
}

.header-left,
.header-right {
    /* flex: 1; */
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

.header-left a {
    display: block;
    text-decoration: none;
}

.header-center {
    flex: 2;
    /* max-width: 500px; */
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search Box */
.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 46px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0 46px;
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--bg-hover);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.search-clear svg {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
}

.search-clear:hover {
    background: var(--accent-primary);
}

.search-clear:hover svg {
    color: white;
}

.search-input:not(:placeholder-shown)+.search-clear {
    display: flex;
}

/* Location Button */
.btn-location {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 42px;
    padding: 0 18px;
    background: var(--bg-tertiary);
    background: var(--accent-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

/* 모바일용 내 위치 버튼 (PC에서 숨김) */
.btn-location-mobile {
    display: none;
}

.btn-location svg {
    width: 18px;
    height: 18px;
}

.btn-location:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

/* ================================
   Category Navigation
================================ */
.category-nav {
    height: var(--nav-height);
    min-height: var(--nav-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 90;
    overflow: visible;
}

.category-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    width: 100%;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
}

.category-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 18px;
    height: 18px;
}

.category-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.category-item.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow);
}

/* Category Color Variants */
.category-item[data-category="restaurant"]:hover .category-icon,
.category-item[data-category="restaurant"].active .category-icon {
    color: var(--color-restaurant);
}

.category-item[data-category="cafe"]:hover .category-icon,
.category-item[data-category="cafe"].active .category-icon {
    color: var(--color-cafe);
}

.category-item[data-category="tourism"]:hover .category-icon,
.category-item[data-category="tourism"].active .category-icon {
    color: var(--color-tourism);
}

.category-item[data-category="culture"]:hover .category-icon,
.category-item[data-category="culture"].active .category-icon {
    color: var(--color-culture);
}

.category-item[data-category="shopping"]:hover .category-icon,
.category-item[data-category="shopping"].active .category-icon {
    color: var(--color-shopping);
}

.category-item.active .category-icon {
    color: white !important;
}

/* ================================
   Content Wrapper
================================ */
.content-wrapper {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 200px + 100px);
    /* 지도 높이 100px 증가 */
}

/* ================================
   Map Container
================================ */
.map-container {
    flex: 1;
    position: relative;
    width: 100%;
    transition: width var(--transition-base);
    min-height: calc(100vh - 200px + 100px);
    /* 지도 높이 100px 증가 */
}

.content-wrapper.panel-open .map-container {
    width: calc(100% - var(--panel-width));
}

.map {
    width: 100%;
    height: 100%;
}

/* Map Controls */
.map-controls {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.map-control-btn {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.map-control-btn svg {
    width: 20px;
    height: 20px;
}

.map-control-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Place Counter */
.place-counter {
    position: absolute;
    left: 20px;
    top: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.place-counter span {
    color: var(--accent-primary);
    font-weight: 700;
}

/* ================================
   Side Panel
================================ */
.side-panel {
    width: var(--panel-width);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 50;
}

.side-panel.open {
    transform: translateX(0);
    position: relative;
}

.panel-header {
    height: 60px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
}

.panel-close {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.panel-close svg {
    width: 18px;
    height: 18px;
}

.panel-close:hover {
    background: var(--accent-primary);
    color: white;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* 카카오애드핏 광고 영역 스타일 */
.kakao-ad-container {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 10px;
    position: relative;
    z-index: 10;
}

.kakao-ad-container ins {
    display: block !important;
    width: 300px;
    height: 250px;
    margin: 0 auto;
}

/* 모바일에서 광고 크기 조정 */
@media (max-width: 768px) {
    .kakao-ad-container {
        min-height: 200px;
        padding: 8px;
    }

    .kakao-ad-container ins {
        width: 100%;
        max-width: 300px;
        height: auto;
        min-height: 250px;
    }
}

/* Panel Placeholder */
.panel-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.placeholder-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

/* Place Detail Card */
.place-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.place-detail-image {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
}

.place-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.place-detail-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.place-detail-badge.restaurant {
    color: #fff;
    background: rgba(249, 115, 22, 0.9);
}

.place-detail-badge.cafe {
    color: #000;
    background: rgba(234, 179, 8, 0.9);
}

.place-detail-badge.tourism {
    color: #fff;
    background: rgba(34, 197, 94, 0.9);
}

.place-detail-badge.culture {
    color: #fff;
    background: rgba(59, 130, 246, 0.9);
}

.place-detail-badge.shopping {
    color: #fff;
    background: rgba(236, 72, 153, 0.9);
}

.place-detail-distance-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-primary);
    backdrop-filter: blur(8px);
}

.place-detail-category-detail {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: -8px;
}

.place-detail-name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.place-detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-star {
    width: 18px;
    height: 18px;
    color: #fbbf24;
}

.rating-star.empty {
    color: var(--text-muted);
}

.rating-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.rating-count {
    font-size: 14px;
    color: var(--text-muted);
}

.place-detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.info-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.place-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tag {
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
}

.place-detail-actions {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.kakao-share-container {
    margin-top: 16px;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: none;
}

.kakao-share-btn {
    display: inline-block;
    transition: transform 0.2s ease;
}

.kakao-share-btn:hover {
    transform: scale(1.05);
}

.kakao-share-btn img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
}

.action-btn {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-base);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.action-btn.primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.action-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.action-btn.secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

/* ================================
   Place List Container
================================ */
.place-list-container {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: var(--panel-width);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    transform: translateY(calc(100% - 60px));
    transition: transform var(--transition-base);
    z-index: 110;
}

.place-list-container.expanded {
    transform: translateY(0);
    bottom: -10px !important;
}

.place-list-container.panel-closed {
    right: 0;
    /* bottom: 0px; */
}

.place-list-header {
    height: 60px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.list-toggle {
    width: 36px;
    height: 36px;
    background: var(--accent-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    animation: shimmer 3s ease-in-out infinite;
}

.list-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer-slide 3s ease-in-out infinite;
}

.list-toggle:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.list-toggle svg {
    width: 30px;
    height: 30px;
    color: white;
    position: relative;
    z-index: 1;
    animation: arrow-bounce 2s ease-in-out infinite;
    transition: transform 0.3s ease;
    transform-origin: center;
}

@keyframes shimmer {

    0%,
    100% {
        background: var(--accent-primary);
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    }

    50% {
        background: var(--accent-secondary);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    }
}

@keyframes shimmer-slide {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes arrow-bounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(3px) rotate(0deg);
    }
}

/* 확장 상태일 때 화살표가 위로 향하도록 */
.place-list-container.expanded .list-toggle svg {
    animation: arrow-bounce-up 2s ease-in-out infinite;
}

@keyframes arrow-bounce-up {

    0%,
    100% {
        transform: translateY(0) rotate(180deg);
    }

    50% {
        transform: translateY(-3px) rotate(180deg);
    }
}

.place-list-header h3 {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.place-list-count {
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 500;
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.place-list-hint {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    /* color: var(--text-muted); */
    font-weight: 400;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    /* background: rgba(0, 0, 0, 0.6); */
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.place-list-container.expanded .place-list-hint {
    display: flex;
}

.place-list-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 8px 24px;
}

.place-list-nav {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 12px));
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.place-list-nav:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.place-list-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.place-list-nav svg {
    width: 20px;
    height: 20px;
}

.place-list-nav.prev {
    left: 16px;
}

.place-list-nav.next {
    right: 16px;
}

.place-list {
    display: flex;
    gap: 16px;
    flex: 1;
    padding: 10px 50px 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
}

.place-list:active {
    cursor: grabbing;
}

/* 가로 스크롤바 스타일 */
.place-list::-webkit-scrollbar {
    height: 8px;
}

.place-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

.place-list::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: var(--radius-full);
}

.place-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Place Card */
.place-card {
    flex-shrink: 0;
    width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-base);
}

.place-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

.place-card-image {
    width: 100%;
    height: 110px;
    position: relative;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.place-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.place-card:hover .place-card-image img {
    transform: scale(1.05);
}

.place-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.place-card-category.restaurant {
    color: #fff;
    background: rgba(249, 115, 22, 0.85);
}

.place-card-category.cafe {
    color: #000;
    background: rgba(234, 179, 8, 0.85);
}

.place-card-category.tourism {
    color: #fff;
    background: rgba(34, 197, 94, 0.85);
}

.place-card-category.culture {
    color: #fff;
    background: rgba(59, 130, 246, 0.85);
}

.place-card-category.shopping {
    color: #fff;
    background: rgba(236, 72, 153, 0.85);
}

.place-card-content {
    padding: 10px;
}

.place-card-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.place-card-address {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.place-card-phone {
    font-size: 11px;
    color: var(--text-secondary);
}

.place-card-distance {
    font-size: 12px;
    color: var(--accent-primary);
    font-weight: 600;
}

.place-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    width: 100%;
}

.place-list-empty p {
    margin: 4px 0;
}

/* ================================
   Custom Overlay Styles
================================ */
.custom-overlay {
    position: relative;
    bottom: 10px;
}

.overlay-content {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition-base);
    min-width: 100px;
    max-width: 200px;
    text-align: center;
}

.overlay-content:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

.overlay-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overlay-category {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
    /* display: none; */
}

.overlay-distance {
    font-size: 10px;
    color: var(--accent-primary);
    margin-top: 2px;
    font-weight: 500;
    /* display: none; */
}

.overlay-arrow {
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    /* border-top: 8px solid var(--bg-card); */
}

/* Category colored overlays */
.overlay-content.restaurant {
    border-color: var(--color-restaurant);
}

.overlay-content.cafe {
    border-color: var(--color-cafe);
}

.overlay-content.tourism {
    border-color: var(--color-tourism);
}

.overlay-content.culture {
    border-color: var(--color-culture);
}

.overlay-content.shopping {
    border-color: var(--color-shopping);
}

/* ================================
   Toast Messages
================================ */
.toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
}

/* ================================
   Top Button
================================ */
.top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.top-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.top-button:active {
    transform: translateY(-1px);
}

.top-button svg {
    width: 24px;
    height: 24px;
}

/* PC 버전에서 푸터가 우측에 있을 때 탑 버튼 위치 조정 */
@media (min-width: 1025px) {
    body.no-scroll .top-button {
        right: 360px;
    }
}

/* 모바일에서 푸터 아래에 위치 */
@media (max-width: 768px) {
    .top-button {
        bottom: 100px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px);
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-icon.success {
    color: #22c55e;
}

.toast-icon.error {
    color: #ef4444;
}

.toast-icon.info {
    color: var(--accent-primary);
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
}

/* ================================
   Custom Marker Styles
================================ */
.marker-wrapper {
    position: relative;
    cursor: pointer;
}

.marker-pin {
    width: 40px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-fast);
}

.marker-pin:hover {
    transform: scale(1.1) translateY(-4px);
}

.marker-pin svg {
    width: 100%;
    height: 100%;
}

.marker-pin.restaurant svg {
    color: var(--color-restaurant);
}

.marker-pin.cafe svg {
    color: var(--color-cafe);
}

.marker-pin.tourism svg {
    color: var(--color-tourism);
}

.marker-pin.culture svg {
    color: var(--color-culture);
}

.marker-pin.shopping svg {
    color: var(--color-shopping);
}

/* ================================
   Scrollbar Styles
================================ */
.panel-content::-webkit-scrollbar {
    width: 6px;
}

.panel-content::-webkit-scrollbar-track {
    background: transparent;
}

.panel-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* ================================
   Responsive Design
================================ */
@media (max-width: 1024px) {
    .side-panel {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        max-width: 400px;
    }

    .place-list-container {
        right: 0;
    }
}

@media (max-width: 768px) {
    .logo {
        gap: 8px;
        margin-right: 10px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        border-radius: var(--radius-sm);
    }

    .header {
        padding: 0 10px;
        gap: 0;
    }

    .header-left,
    .header-right {
        flex: none;
    }

    .header-right {}

    .header-left .logo-text {
        /* display: none; */
        font-size: 18px;
    }

    .header-center {
        flex: 3;
    }

    .search-icon {
        width: 18px;
        height: 18px;
        left: 10px;
    }

    .btn-location span {
        /* display: none; */
    }

    /* 모바일에서 헤더의 내 위치 버튼 숨기기 */
    .header-right .btn-location {
        display: none;
    }

    /* 모바일용 내 위치 버튼 스타일 */
    .btn-location-mobile {
        display: flex !important;
        align-items: center;
        gap: 5px;
        height: 42px;
        padding: 0 14px;
        background: var(--accent-primary);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-full);
        color: var(--text-primary);
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: var(--transition-base);
        margin-right: 8px;
        flex-shrink: 0;
    }

    .btn-location-mobile svg {
        width: 18px;
        height: 18px;
    }

    .btn-location-mobile:hover {
        background: var(--accent-primary);
        border-color: var(--accent-primary);
        box-shadow: var(--shadow-glow);
    }

    .btn-location {
        padding: 0 12px;
    }

    .search-input {
        font-size: 13px;
        padding: 0 30px;
    }

    .search-clear {
        right: 5px;
        width: 20px;
        height: 20px;
    }

    .category-nav {
        padding: 0 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .category-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        flex: 1;
    }

    .category-item span {
        display: inline;
    }

    .category-item {
        padding: 0 16px;
        font-size: 13px;
    }

    .place-card {
        width: 240px;
    }

    .side-panel {
        max-width: 100%;
    }
}

/* ================================
   Animations
================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease infinite;
}

.animate-bounce {
    animation: bounce 1s ease infinite;
}

/* ================================
   Current Location Marker Pulse
================================ */
@keyframes locationPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.current-location-marker {
    animation: locationPulse 2s infinite;
}

/* ================================
   Footer
================================ */
.footer {
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    padding: 40px 24px 30px;
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

/* 푸터 스크롤바 스타일 */
.footer::-webkit-scrollbar {
    width: 6px;
}

.footer::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.footer::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

.footer::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.footer-container {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* height: 100%; */
}

.footer-content {
    display: flex;
    /* flex-direction: column; */
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
    flex: 1;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-section.footer-logo a {
    display: block;
    text-decoration: none;
}

.footer-title {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.footer-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    /* margin: 0 0 12px 0; */
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.footer-contact .contact-icon.inquiry {
    color: #3b82f6;
    /* 파란색 */
}

.footer-contact .contact-icon.website {
    color: #3b82f6;
    /* 파란색 */
}

.footer-contact .contact-icon.disclaimer {
    color: #ec4899;
    /* 핑크색 */
}

.footer-contact .contact-link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-contact .contact-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-copyright {
    width: 100%;
}

.footer-copyright p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
    display: none;
}

.sns-links-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .main-container {
        padding-right: 0;
    }

    .footer {
        position: relative;
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid var(--border-color);
        top: auto;
        right: auto;
        z-index: 1;
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* 태블릿에서도 매장 리스트 위치 조정 */
    .place-list-container {
        position: relative;
        bottom: auto;
        transform: none;
        margin-bottom: 0;
        border-radius: 0;
        border-top: 1px solid var(--border-color);
        z-index: 2;
    }

    .place-list-container.expanded {
        transform: none;
        bottom: auto;
    }
}

@media (max-width: 768px) {

    /* 모바일에서 매장 리스트 위치 조정 - 토글 기능 유지 */
    .place-list-container {
        position: absolute;
        bottom: 60px;
        left: 0;
        right: 0;
        transform: translateY(calc(100% - 60px));
        margin-bottom: 0;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        border-top: 1px solid var(--border-color);
        z-index: 110;
        max-height: 80vh;
        transition: transform var(--transition-base);
    }

    .place-list-container.panel-closed {
        bottom: 0;
    }

    .place-list-container.expanded {
        position: absolute;
        transform: translateY(0);
        bottom: 0;
        margin-bottom: 0;
        border-radius: 0;
        max-height: 80vh;
    }

    .place-list-hint {
        display: none !important;
    }

    /* 모바일에서 place-list 스크롤 활성화 */
    .place-list {
        overflow-x: scroll;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-scroll-snap-type: x proximity;
    }

    /* 모바일에서 스크롤바 표시 */
    .place-list::-webkit-scrollbar {
        height: 6px;
        display: block;
    }

    .place-list::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: var(--radius-full);
    }

    .place-list::-webkit-scrollbar-thumb {
        background: var(--accent-primary);
        border-radius: var(--radius-full);
        opacity: 0.8;
    }

    /* 모바일에서 푸터가 매장 리스트 바로 아래에 위치하도록 */
    .content-wrapper {
        padding-bottom: 0;
        width: 90%;
        margin: 0 auto;
    }

    .footer {
        padding: 30px 0;
        position: relative;
        z-index: 1;
        margin-top: 0;
        margin-bottom: 0;
    }

    .main-footer {
        padding: 70px 0 20px;
        padding-top: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-social {
        width: 100%;
        justify-content: center;
    }

    /* 매장 리스트가 확장되었을 때 푸터를 위로 올림 */
    .footer.has-expanded-list {
        margin-top: calc(-80vh + 60px);
        transition: margin-top 0.3s ease;
        padding-top: 90px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 16px;
    }

    .footer-content {
        gap: 24px;
    }

    .footer-section-title {
        font-size: 15px;
    }

    .footer-links a,
    .footer-contact li {
        font-size: 13px;
    }
}

/* ================================
   공통 페이지 스타일
================================ */

/* 공통 컨테이너 */
.page-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: calc(100vh - 200px);
}

/* 공통 헤더 */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 공통 뒤로가기 링크 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    margin-bottom: 24px;
    transition: var(--transition-base);
}

.back-link:hover {
    color: var(--accent-secondary);
}

/* ================================
   About 페이지 스타일
================================ */
.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition-base);
}

.feature-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.highlight-box {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 32px 0;
}

.highlight-box h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.highlight-box p {
    margin: 0;
}

/* About 페이지 반응형 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }

    .section h2 {
        font-size: 24px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Features 페이지 스타일
================================ */
.feature-section {
    margin-bottom: 80px;
}

.feature-section:last-child {
    margin-bottom: 0;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.feature-icon-large {
    width: 64px;
    height: 64px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-large svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-header h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.feature-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 24px;
}

.feature-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.feature-content ul {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 24px;
    margin-bottom: 16px;
}

.feature-content li {
    margin-bottom: 8px;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Features 페이지 반응형 */
@media (max-width: 768px) {
    .feature-header h2 {
        font-size: 24px;
    }

    .feature-icon-large {
        width: 48px;
        height: 48px;
    }

    .feature-icon-large svg {
        width: 24px;
        height: 24px;
    }

    .feature-content {
        padding: 24px;
    }
}

/* ================================
   FAQ 페이지 스타일
================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item:hover {
    border-color: var(--accent-primary);
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    flex: 1;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-base);
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 24px 24px 24px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

.faq-answer ul {
    margin-top: 12px;
    padding-left: 24px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

/* FAQ 페이지 반응형 */
@media (max-width: 768px) {
    .faq-question {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 16px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }
}

/* ================================
   Contact 페이지 스타일
================================ */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group .required {
    color: #ef4444;
    margin-left: 4px;
}

.form-group .help-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.btn-submit {
    flex: 1;
    flex: auto;
    height: 50px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-glow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-reset {
    padding: 0 24px;
    height: 50px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-reset:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

.success-message {
    display: none;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 24px;
    text-align: center;
}

.success-message.show {
    display: block;
}

.success-message svg {
    width: 48px;
    height: 48px;
    color: #22c55e;
    margin-bottom: 12px;
}

.success-message h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.success-message p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Contact 페이지 반응형 */
@media (max-width: 768px) {
    .contact-form {
        padding: 24px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-reset {
        width: 100%;
    }
}

/* ================================
   Privacy 페이지 스타일
================================ */
.privacy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: calc(100vh - 200px);
}

.privacy-header {
    margin-bottom: 40px;
}

.privacy-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.privacy-section p,
.privacy-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.privacy-section ul {
    padding-left: 24px;
}

.privacy-section li {
    margin-bottom: 8px;
}

/* ================================
   Terms 페이지 스타일
================================ */
.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: calc(100vh - 200px);
}

.terms-header {
    margin-bottom: 40px;
}

.terms-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.terms-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.terms-section {
    margin-bottom: 40px;
}

.terms-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.terms-section p,
.terms-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.terms-section ul {
    padding-left: 24px;
}

.terms-section li {
    margin-bottom: 8px;
}

/* Contact 페이지 컨테이너 너비 조정 */
.page-container:has(.contact-form) {
    /* max-width: 800px; */
}

/* FAQ 페이지 컨테이너 너비 조정 */
.page-container:has(.faq-list) {
    max-width: 900px;
}

/* ================================
   사이트맵 페이지 스타일
================================ */
.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list li {
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.sitemap-list li:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.sitemap-list a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.sitemap-list a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}