/* ============================================
   Design System – ReplyAlba Style
   ============================================ */
:root {
    --red: #FF3333;
    --red-dark: #cc0000;
    --gray-bg: #f5f5f5;
    --gray-tag: #888888;
    --white: #FFFFFF;
    --text-dark: #1a1a1a;
    --text-mid: #444444;
    --text-light: #888888;
    --border: #E0E0E0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --nav-height: 60px;
    --sidebar-width: 180px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--gray-bg);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration:none; color:inherit; }

/* ── Header ── */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top:0; z-index:100;
}
.nav-container {
    max-width: 1400px;
    margin:0 auto;
    padding: 0 1.5rem;
    height: var(--nav-height);
    display:flex;
    align-items:center;
    justify-content:space-between;
}
.logo {
    font-size:1.3rem;
    font-weight:700;
    color: var(--red);
}
.logo span { color: #333; }
.nav-menu {
    display:flex;
    gap:1.5rem;
    list-style:none;
}
.nav-menu a {
    font-size:0.9rem;
    font-weight:500;
    color: var(--text-mid);
    transition: color .2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--red); }

/* ── Hero ── */
.hero {
    background: #2d2d2d;
    color: var(--white);
    text-align:center;
    padding: 3.5rem 1rem;
}
.hero h1 { font-size:clamp(1.6rem,3vw,2.4rem); font-weight:700; margin-bottom:.6rem; }
.hero p  { font-size:clamp(.9rem,1.5vw,1rem); opacity:.8; }

/* ── Container ── */
.container {
    max-width:1400px;
    margin:0 auto;
    padding: 2rem 1.5rem;
}

/* ── 메인 레이아웃 (사이드바 + 콘텐츠) ── */
.page-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

/* ── 왼쪽 사이드바 ── */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.sidebar-title {
    padding: .7rem 1rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: .06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}
.sidebar-menu {
    list-style: none;
}
.sidebar-menu li {
    padding: .7rem 1rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-mid);
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all .18s;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-menu li:last-child { border-bottom: none; }
.sidebar-menu li:hover {
    background: #fff5f5;
    color: var(--red);
    border-left-color: var(--red);
}
.sidebar-menu li.active {
    background: #fff5f5;
    color: var(--red);
    border-left-color: var(--red);
    font-weight: 700;
}
/* 지역별 개수 배지 */
.sidebar-menu li {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-count {
    font-size: .72rem;
    font-weight: 600;
    color: #aaa;
    background: #f0f0f0;
    border-radius: 10px;
    padding: .1rem .45rem;
    min-width: 1.4rem;
    text-align: center;
    flex-shrink: 0;
    transition: background .18s, color .18s;
}
.sidebar-menu li.active .sidebar-count,
.sidebar-menu li:hover .sidebar-count {
    background: #ffe0e0;
    color: var(--red);
}

/* ── 콘텐츠 영역 ── */
.content-area {
    flex: 1;
    min-width: 0;
}

/* ── Card Grid ── */
.section-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:1.25rem;
}
.section-header h2 {
    font-size:1.1rem;
    font-weight:700;
    color: var(--text-dark);
}
.count-badge {
    font-size:.82rem;
    color: var(--text-light);
}

.card-grid {
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap:1.25rem;
}

/* ── Card ── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display:flex;
    flex-direction:column;
    overflow:hidden;
    transition: box-shadow .2s, transform .2s;
    animation: fadeUp .3s ease both;
}
.card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
@keyframes fadeUp {
    from { opacity:0; transform:translateY(8px); }
    to   { opacity:1; transform:translateY(0); }
}

/* Region tag bar */
.card-region {
    background: #f0f0f0;
    color: var(--gray-tag);
    font-size:.75rem;
    font-weight:500;
    padding:.35rem .75rem;
    border-bottom:1px solid var(--border);
}

/* Expo image */
.card-img-wrap {
    width:100%;
    aspect-ratio: 1 / 1;
    overflow:hidden;
    background: #eee;
}
.card-img-wrap img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition: transform .3s;
}
.card:hover .card-img-wrap img { transform:scale(1.04); }

/* 이미지 로드 실패 시 placeholder */
.card-img-placeholder {
    width:100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f8f8f8, #ececec);
    display:flex;
    align-items:center;
    justify-content:center;
    color: #ccc;
    font-size:2.5rem;
}
/* onerror 대체 이미지 */
.card-img-wrap img.img-error {
    display:none;
}
.card-img-wrap.img-fallback {
    background: linear-gradient(135deg, #f8f8f8, #ececec);
    font-size:2.5rem;
    color:#ccc;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Card body */
.card-body {
    padding:.85rem .9rem;
    flex-grow:1;
    display:flex;
    flex-direction:column;
    gap:.35rem;
}
.card-name {
    font-size:.9rem;
    font-weight:700;
    color: var(--text-dark);
    line-height:1.45;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.card-date {
    font-size:.78rem;
    color: var(--red);
    font-weight:600;
}
.card-addr {
    font-size:.72rem;
    color: var(--text-light);
    line-height:1.4;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* Apply button */
.apply-btn {
    display:block;
    background: var(--red);
    color: var(--white);
    text-align:center;
    padding:.8rem;
    font-size:.85rem;
    font-weight:700;
    transition: background .2s;
    border:none;
    cursor:pointer;
    font-family:inherit;
}
.apply-btn:hover { background: var(--red-dark); }

/* No results */
.no-results {
    display:none;
    grid-column:1/-1;
    text-align:center;
    padding:4rem 2rem;
    color: var(--text-light);
}

/* ── Info / Honeymoon content pages ── */
.page-title {
    font-size:1.5rem;
    font-weight:700;
    margin-bottom:1.5rem;
    padding-bottom:.75rem;
    border-bottom:3px solid var(--red);
    display:inline-block;
}
.content-box {
    background: var(--white);
    border:1px solid var(--border);
    border-radius:4px;
    padding:2rem;
    margin-bottom:1.25rem;
    box-shadow: var(--shadow);
}
.content-box h3 { color: var(--red); font-size:1.1rem; margin-bottom:.75rem; }
.content-box p  { color: var(--text-mid); font-size:.9rem; margin-bottom:1rem; line-height:1.7; }
.content-box ul { list-style:none; }
.content-box li {
    font-size:.88rem;
    color: var(--text-mid);
    padding-left:1.2rem;
    position:relative;
    margin-bottom:.5rem;
    line-height:1.6;
}
.content-box li::before { content:'·'; position:absolute; left:0; color: var(--red); font-size:1.2rem; line-height:1.1; }

/* ── Footer ── */
.footer {
    background:#222;
    color:rgba(255,255,255,.5);
    text-align:center;
    padding:2rem 1rem;
    font-size:.8rem;
    line-height:2;
}

/* ── Loading skeleton ── */
.skeleton { background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%); background-size:200% 100%; animation:shimmer 1.4s infinite; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width:1100px) {
    .card-grid { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:900px) {
    .card-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px) {
    .nav-container { padding:0 1rem; }
    .hero { padding:2.5rem 1rem; }
    .content-box { padding:1.5rem 1rem; }

    /* 모바일: 사이드바 → 상단 가로 스크롤 탭으로 변환 */
    .page-layout {
        flex-direction: column;
        padding: 1rem;
        gap: .75rem;
    }
    .sidebar {
        width: 100%;
        position: static;
        box-shadow: none;
    }
    .sidebar-title { display: none; }
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-top: none;
    }
    .sidebar-menu::-webkit-scrollbar { display: none; }
    .sidebar-menu li {
        flex-shrink: 0;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: .6rem 1rem;
    }
    .sidebar-menu li:last-child { border-bottom: 3px solid transparent; }
    .sidebar-menu li.active {
        background: none;
        border-left-color: transparent;
        border-bottom-color: var(--red);
        color: var(--red);
    }
    .card-grid { grid-template-columns:repeat(2,1fr); gap:.75rem; }
}
@media (max-width:480px) {
    .card-grid { grid-template-columns:1fr; }
}
