/* =========================================================
   Badaon - 바다온 해양레저관광 정보시스템
   Modern Redesign (Hanatour-inspired, Ocean Theme)
   ========================================================= */

/* ---------------------------------------------------------
   1. Design Tokens (CSS Custom Properties)
   --------------------------------------------------------- */
:root {
    /* Color: Primary ocean blues */
    --primary: #0066CC;
    --primary-dark: #004D99;
    --primary-light: #0088FF;
    --primary-50: rgba(0, 102, 204, 0.05);
    --primary-100: rgba(0, 102, 204, 0.1);
    --primary-200: rgba(0, 102, 204, 0.2);

    /* Color: Secondary / CTA warm coral */
    --secondary: #FF6B35;
    --secondary-dark: #E55A25;
    --secondary-light: #FF8F65;

    /* Color: Accent turquoise (gamification, stamps) */
    --accent: #00C9A7;
    --accent-dark: #00A88A;
    --accent-light: #33E0C0;
    --accent-glow: rgba(0, 201, 167, 0.4);

    /* Color: Neutrals */
    --white: #FFFFFF;
    --gray-50: #F7F9FC;
    --gray-100: #EEF2F7;
    --gray-200: #D9E2EC;
    --gray-300: #BCCCDC;
    --gray-400: #9FB3C8;
    --gray-500: #7B8FA3;
    --gray-600: #64748B;
    --gray-700: #486581;
    --gray-800: #334E68;
    --gray-900: #1A2B42;
    --text: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;

    /* Color: Semantic */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Color: Gradients */
    --gradient-ocean: linear-gradient(135deg, #0066CC 0%, #00B4D8 50%, #00C9A7 100%);
    --gradient-hero: linear-gradient(180deg, rgba(0, 26, 51, 0.1) 0%, rgba(0, 26, 51, 0.75) 100%);
    --gradient-dark: linear-gradient(135deg, #0A1628 0%, #0F2847 50%, #0A1628 100%);
    --gradient-card: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
    --gradient-stamp: linear-gradient(135deg, #0A1628 0%, #0D2240 40%, #081830 100%);

    /* Spacing (8pt grid) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 56px;
    --space-12: 64px;
    --space-16: 80px;
    --space-20: 96px;

    /* Typography */
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-xs: 0.75rem;    /* 12px */
    --font-sm: 0.8125rem;  /* 13px */
    --font-base: 0.9375rem;/* 15px */
    --font-md: 1rem;       /* 16px */
    --font-lg: 1.125rem;   /* 18px */
    --font-xl: 1.25rem;    /* 20px */
    --font-2xl: 1.5rem;    /* 24px */
    --font-3xl: 1.875rem;  /* 30px */
    --font-4xl: 2.25rem;   /* 36px */
    --font-5xl: 3rem;      /* 48px */
    --line-tight: 1.3;
    --line-normal: 1.6;
    --line-relaxed: 1.8;

    /* Layout */
    --container: 1200px;
    --container-wide: 1400px;
    --header-height: 72px;
    --nav-height: 48px;

    /* Radii */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(0, 201, 167, 0.3);
    --shadow-primary: 0 4px 20px rgba(0, 102, 204, 0.25);
    --shadow-float: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.15s;
    --duration: 0.25s;
    --duration-slow: 0.4s;
    --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-index scale */
    --z-dropdown: 50;
    --z-sticky: 80;
    --z-header: 100;
    --z-overlay: 200;
    --z-modal: 300;
}


/* ---------------------------------------------------------
   2. CSS Reset & Base
   --------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-base);
    background: var(--white);
    color: var(--text);
    line-height: var(--line-normal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ---------------------------------------------------------
   3. Layout: Container
   --------------------------------------------------------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-6);
}


/* ---------------------------------------------------------
   4. Header: Glassmorphism Sticky Header
   --------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 102, 204, 0.08);
    transition: background var(--duration) ease, box-shadow var(--duration) ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* Header top row */
.header-top {
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: var(--space-6);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-wave {
    font-size: 1.75rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 102, 204, 0.2));
}

.logo-text {
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

/* Header search (center) */
.header-search {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.header-search-input {
    width: 100%;
    height: 42px;
    padding: 0 var(--space-4) 0 44px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    color: var(--text);
    background: var(--gray-50);
    transition: all var(--duration) ease;
    outline: none;
}

.header-search-input::placeholder {
    color: var(--text-muted);
}

.header-search-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.header-search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Header actions (right side) */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

/* Navigation bar (below header) */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    height: var(--nav-height);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--nav-height);
    padding: 0 var(--space-5);
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--space-5);
    right: var(--space-5);
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--duration) var(--ease-out);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-link.active::after {
    transform: scaleX(1);
}


/* ---------------------------------------------------------
   5. Buttons
   --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--duration) var(--ease-out);
    white-space: nowrap;
    line-height: 1.4;
}

.btn:active {
    transform: scale(0.97);
}

.btn-sm {
    padding: 7px 16px;
    font-size: var(--font-xs);
    border-radius: var(--radius-xs);
}

.btn-lg {
    padding: 14px 32px;
    font-size: var(--font-md);
    border-radius: var(--radius);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-accent:hover {
    background: var(--accent-dark);
    box-shadow: 0 4px 16px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 7px 14px;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--text);
}

.btn-pill {
    border-radius: var(--radius-full);
}

.btn-gradient {
    background: var(--gradient-ocean);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
}

.btn-gradient:hover {
    box-shadow: 0 6px 28px rgba(0, 102, 204, 0.4);
    transform: translateY(-2px);
}

.btn-glow {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 0 20px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-glow:hover {
    box-shadow: 0 0 30px var(--accent-glow), 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   6. Language Switcher (Minimal Dropdown)
   --------------------------------------------------------- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 3px;
}

.lang-link {
    padding: 4px 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: var(--font-xs);
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) ease;
    line-height: 1.4;
}

.lang-link:hover {
    color: var(--text-secondary);
}

.lang-link.active {
    color: var(--primary);
    font-weight: 700;
    background: var(--white);
    box-shadow: var(--shadow-xs);
}


/* ---------------------------------------------------------
   7. Hero Section: Full-Viewport with Search Card
   --------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    background-color: #0A2540;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Parallax-like subtle movement */
.hero::before {
    content: '';
    position: absolute;
    inset: -10%;
    background: inherit;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Gradient overlay - bottom-heavy, transparent top */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

/* Decorative wave pattern at bottom of hero */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
    pointer-events: none;
}

.hero-wave-svg {
    width: 100%;
    height: 80px;
    display: block;
}

@media (min-width: 768px) {
    .hero-wave-svg {
        height: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-wave-svg animate {
        animation: none;
    }
    .wave-back, .wave-mid, .wave-front {
        animation: none !important;
    }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: var(--space-20) 0 calc(var(--space-20) + 40px);
}

.hero-text {
    text-align: center;
    margin-bottom: var(--space-10);
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-sm);
    font-weight: 500;
    margin-bottom: var(--space-6);
    animation: fadeInDown 0.8s var(--ease-out) 0.2s both;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(var(--font-3xl), 5vw, var(--font-5xl));
    font-weight: 800;
    line-height: var(--line-tight);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(var(--font-md), 2vw, var(--font-lg));
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s var(--ease-out) 0.45s both;
}

/* Floating search card */
.search-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-7);
    box-shadow: var(--shadow-float);
    animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.search-bar {
    display: flex;
    gap: var(--space-3);
    align-items: stretch;
}

.search-input-group {
    flex: 1;
    position: relative;
}

.search-input-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 52px;
    padding: 0 var(--space-4) 0 44px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: var(--font-base);
    color: var(--text);
    background: var(--gray-50);
    outline: none;
    transition: all var(--duration) ease;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.search-select {
    height: 52px;
    padding: 0 var(--space-9) 0 var(--space-4);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text);
    background: var(--gray-50) url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: all var(--duration) ease;
    min-width: 140px;
}

.search-select:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.search-bar .btn {
    height: 52px;
    min-width: 120px;
    border-radius: var(--radius);
    font-size: var(--font-base);
}

/* Quick tags below search */
.hero-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
    flex-wrap: wrap;
}

.hero-tags-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
    font-weight: 600;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    color: var(--text-secondary);
    transition: all var(--duration-fast) ease;
    cursor: pointer;
    text-decoration: none;
}

.hero-tag:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary);
}


/* ---------------------------------------------------------
   8. Sections: Alternating White / Off-White
   --------------------------------------------------------- */
.section {
    padding: var(--space-16) 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-8);
    gap: var(--space-4);
}

.section-title {
    font-size: clamp(var(--font-2xl), 3vw, var(--font-3xl));
    font-weight: 800;
    color: var(--text);
    line-height: var(--line-tight);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: var(--font-base);
    color: var(--text-secondary);
    margin-top: var(--space-2);
    line-height: var(--line-relaxed);
}

.section-action {
    flex-shrink: 0;
}

.section-action-center {
    text-align: center;
    margin-top: var(--space-9);
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--duration) var(--ease-out);
}

.section-link:hover {
    gap: var(--space-3);
}

.section-link-arrow {
    transition: transform var(--duration) var(--ease-out);
}

.section-link:hover .section-link-arrow {
    transform: translateX(4px);
}


/* ---------------------------------------------------------
   9. Destination Cards: 3-Column Grid with Hover Effects
   --------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.dest-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-slow) var(--ease-out);
}

.dest-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Card image with 16:10 ratio */
.card-image {
    position: relative;
    padding-top: 62.5%; /* 16:10 aspect ratio */
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.dest-card:hover .card-image img {
    transform: scale(1.06);
}

/* Gradient overlay on image */
.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--duration-slow) ease;
}

.dest-card:hover .card-image::after {
    opacity: 1;
}

/* Region badge - glassmorphism pill */
.card-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--white);
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Card body */
.card-body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1;
}

.card-body h3 {
    font-size: var(--font-md);
    font-weight: 700;
    line-height: var(--line-tight);
    letter-spacing: -0.01em;
    color: var(--text);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: auto;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--warning);
    font-weight: 700;
    font-size: var(--font-sm);
}

.rating::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23F59E0B' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 500;
    border: 1px solid var(--primary-100);
}


/* ---------------------------------------------------------
   10. Stamp Tour Section: Dark Theme with Glow Effects
   --------------------------------------------------------- */
.section-stamp {
    background: var(--gradient-stamp);
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

/* Decorative background particles */
.section-stamp::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-stamp::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-stamp .section-header {
    position: relative;
    z-index: 1;
}

.section-stamp .section-title {
    color: var(--white);
}

.section-stamp .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

/* Stamp card grid */
.stamp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    position: relative;
    z-index: 1;
}

.stamp-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-7);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--white);
    transition: all var(--duration-slow) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.stamp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.3), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--duration-slow) ease;
    pointer-events: none;
}

.stamp-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.stamp-card:hover::before {
    opacity: 1;
}

.stamp-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius);
    font-size: 1.5rem;
    margin-bottom: var(--space-5);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.stamp-card h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: var(--space-3);
    line-height: var(--line-tight);
}

.stamp-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: auto;
    padding-top: var(--space-5);
}

.stamp-stat {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-sm);
    color: rgba(255, 255, 255, 0.6);
}

.stamp-stat-icon {
    font-size: var(--font-base);
}

.stamp-stat-value {
    color: var(--accent);
    font-weight: 700;
}

.stamp-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(0, 201, 167, 0.12);
    border: 1px solid rgba(0, 201, 167, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 500;
    color: var(--accent-light);
}

.stamp-section-action {
    text-align: center;
    margin-top: var(--space-9);
    position: relative;
    z-index: 1;
}

.spot-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-sm);
}


/* ---------------------------------------------------------
   11. Footer: Dark with Wave Border
   --------------------------------------------------------- */
.site-footer {
    background: var(--gradient-dark);
    color: rgba(255, 255, 255, 0.7);
    margin-top: auto;
    position: relative;
}

/* Wave SVG border at top */
.footer-wave {
    position: relative;
    top: 1px;
    width: 100%;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    width: 100%;
    height: auto;
    display: block;
}

.footer-inner {
    padding: var(--space-12) 0 var(--space-7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-10);
}

/* Footer brand column */
.footer-brand {
    max-width: 320px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.footer-brand-logo .logo-wave {
    font-size: 1.5rem;
}

.footer-brand-logo span {
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--white);
}

.footer-brand p {
    font-size: var(--font-sm);
    line-height: var(--line-relaxed);
    color: rgba(255, 255, 255, 0.5);
}

/* Footer social icons */
.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-lg);
    transition: all var(--duration) ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-2px);
}

/* Footer link columns */
.footer-col-title {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: var(--font-sm);
    transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* Footer bottom bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-7);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: var(--font-xs);
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-5);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

.footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}


/* ---------------------------------------------------------
   12. Animations & Keyframes
   --------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--accent-glow);
    }
    50% {
        box-shadow: 0 0 35px var(--accent-glow), 0 0 60px rgba(0, 201, 167, 0.15);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Scroll-triggered animation utility classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------------------------------------------------------
   13. Utility Classes
   --------------------------------------------------------- */
.text-primary { color: var(--primary); }
.text-secondary-color { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

.bg-primary { background-color: var(--primary); }
.bg-gray { background-color: var(--gray-50); }
.bg-white { background-color: var(--white); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }


/* ---------------------------------------------------------
   14. Responsive: Tablet (max-width: 1024px)
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --header-height: 64px;
    }

    .header-search {
        max-width: 360px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stamp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-7);
    }

    .footer-brand {
        grid-column: span 2;
        max-width: none;
    }

    .section {
        padding: var(--space-12) 0;
    }

    .section-stamp {
        padding: var(--space-12) 0;
    }
}


/* ---------------------------------------------------------
   15. Responsive: Mobile (max-width: 768px)
   --------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
        --nav-height: 44px;
    }

    .container,
    .container-wide {
        padding: 0 var(--space-4);
    }

    /* Header mobile */
    .header-top {
        flex-wrap: wrap;
        height: auto;
        padding: var(--space-3) 0;
        gap: var(--space-3);
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .header-search-input {
        height: 38px;
        font-size: var(--font-sm);
    }

    .main-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
    }

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

    .nav-link {
        padding: 0 var(--space-4);
        font-size: var(--font-xs);
    }

    .header-actions .btn span {
        display: none;
    }

    /* Hero mobile */
    .hero {
        min-height: 70vh;
    }

    .hero-content {
        padding: var(--space-12) 0 calc(var(--space-12) + 40px);
    }

    .hero h1 {
        font-size: var(--font-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-base);
    }

    .hero-label {
        font-size: var(--font-xs);
    }

    .search-card {
        padding: var(--space-5);
        border-radius: var(--radius-lg);
    }

    .search-bar {
        flex-direction: column;
        gap: var(--space-2);
    }

    .search-input,
    .search-select {
        height: 48px;
    }

    .search-select {
        min-width: auto;
    }

    .search-bar .btn {
        height: 48px;
        min-width: auto;
    }

    .hero-tags {
        gap: var(--space-2);
    }

    /* Sections mobile */
    .section {
        padding: var(--space-10) 0;
    }

    .section-stamp {
        padding: var(--space-10) 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
        margin-bottom: var(--space-6);
    }

    .section-title {
        font-size: var(--font-2xl);
    }

    /* Cards mobile */
    .card-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .stamp-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .stamp-card {
        padding: var(--space-5);
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}


/* ---------------------------------------------------------
   16. Responsive: Small Mobile (max-width: 480px)
   --------------------------------------------------------- */
@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: var(--font-2xl);
    }

    .search-card {
        margin: 0 calc(-1 * var(--space-2));
        border-radius: var(--radius);
    }

    .stamp-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
}


/* ---------------------------------------------------------
   17. Responsive: Large Desktop (min-width: 1440px)
   --------------------------------------------------------- */
@media (min-width: 1440px) {
    .hero {
        min-height: 90vh;
    }

    .hero h1 {
        font-size: var(--font-5xl);
    }
}


/* ---------------------------------------------------------
   18. Print Styles
   --------------------------------------------------------- */
@media print {
    .site-header,
    .site-footer,
    .hero-wave,
    .footer-wave,
    .search-card,
    .header-search,
    .header-actions,
    .section-stamp::before,
    .section-stamp::after {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section-stamp {
        background: #f5f5f5;
        color: black;
    }
}


/* ---------------------------------------------------------
   19. Accessibility: Focus Styles
   --------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

.nav-link:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero::before {
        display: none;
    }

    .dest-card:hover {
        transform: none;
    }

    .stamp-card:hover {
        transform: none;
    }
}


/* ---------------------------------------------------------
   20. Dark Mode Support (system preference)
   --------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    /* Future: Dark mode tokens can be added here */
}

/* =====================================================
   SNS FEED - INSTAGRAM EMBED STYLE
   ===================================================== */

.ig-embed {
    background: #fff;
    border: 1px solid #DBDBDB;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Pretendard Variable', 'Segoe UI', sans-serif;
}

/* Profile Header */
.ig-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #EFEFEF;
}

.ig-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ig-avatar-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.ig-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066CC, #00B4D8);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.ig-profile-name {
    font-size: 1rem;
    font-weight: 700;
    color: #262626;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ig-profile-handle {
    font-size: 0.82rem;
    color: #8E8E8E;
    margin-top: 1px;
}

.ig-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 20px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ig-follow-btn:hover { opacity: 0.85; }

.ig-follow-btn svg { stroke: white; width: 14px; height: 14px; }

/* Stats Row */
.ig-stats {
    display: flex;
    border-bottom: 1px solid #EFEFEF;
    text-align: center;
}

.ig-stat {
    flex: 1;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ig-stat-num {
    font-size: 1.05rem;
    font-weight: 700;
    color: #262626;
}

.ig-stat-label {
    font-size: 0.75rem;
    color: #8E8E8E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stories Row */
.ig-stories {
    display: flex;
    gap: 16px;
    padding: 16px;
    overflow-x: auto;
    border-bottom: 1px solid #EFEFEF;
    scrollbar-width: none;
}

.ig-stories::-webkit-scrollbar { display: none; }

.ig-story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
}

.ig-story-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    transition: transform 0.2s;
}

.ig-story-item:hover .ig-story-ring { transform: scale(1.08); }

.ig-story-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #F1F5F9;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #8E8E8E;
}

.ig-story-label {
    font-size: 0.7rem;
    color: #262626;
    max-width: 64px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tab Bar */
.ig-tab-bar {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #EFEFEF;
}

.ig-tab {
    flex: 1;
    max-width: 120px;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8E8E8E;
    transition: all 0.2s;
}

.ig-tab.active {
    color: #262626;
    border-bottom-color: #262626;
}

.ig-tab:hover { color: #262626; }

/* Grid View (Instagram classic 3-column) */
.ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.ig-grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: #FAFAFA;
}

.ig-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.15s;
}

.ig-grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.2s;
}

.ig-grid-item:hover .ig-grid-overlay { opacity: 1; }

.ig-grid-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

/* List View (Instagram post style) */
.ig-list {
    border-top: 1px solid #EFEFEF;
}

.ig-post {
    border-bottom: 1px solid #EFEFEF;
}

.ig-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
}

.ig-post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.ig-post-user { flex: 1; }

.ig-post-username {
    font-size: 0.85rem;
    font-weight: 600;
    color: #262626;
    display: flex;
    align-items: center;
    gap: 3px;
}

.ig-post-location {
    font-size: 0.75rem;
    color: #8E8E8E;
}

.ig-post-more {
    font-size: 1.2rem;
    color: #262626;
    cursor: pointer;
    letter-spacing: 2px;
    font-weight: 700;
}

.ig-post-image {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #FAFAFA;
}

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

.ig-post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
}

.ig-post-actions-left {
    display: flex;
    gap: 14px;
}

.ig-post-actions svg {
    cursor: pointer;
    color: #262626;
    transition: color 0.15s;
}

.ig-post-actions svg:hover { color: #8E8E8E; }

.ig-post-likes {
    padding: 0 12px 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #262626;
}

.ig-post-caption {
    padding: 0 12px 8px;
    font-size: 0.85rem;
    color: #262626;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ig-post-caption strong {
    font-weight: 600;
    margin-right: 4px;
}

.ig-post-time {
    padding: 0 12px 12px;
    font-size: 0.7rem;
    color: #8E8E8E;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Footer */
.ig-footer {
    padding: 16px;
    text-align: center;
    font-size: 0.88rem;
    color: #8E8E8E;
    border-top: 1px solid #EFEFEF;
    background: #FAFAFA;
}

.ig-footer span {
    font-weight: 700;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .ig-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .ig-follow-btn { align-self: stretch; justify-content: center; }
    .ig-grid { gap: 2px; }
    .ig-story-ring { width: 52px; height: 52px; }
    .ig-avatar-ring { width: 48px; height: 48px; }
}

/* =====================================================
   MAP STYLES (deck.gl + MapLibre)
   ===================================================== */

.detail-map {
    height: 360px;
    border-radius: var(--radius-lg, 12px);
    border: 1px solid var(--neutral-200, #E2E8F0);
    overflow: hidden;
    position: relative;
    background: #E8F4F8;
}

.detail-map canvas {
    border-radius: inherit;
}

.detail-map .maplibregl-map {
    border-radius: inherit;
}

.detail-map .maplibregl-ctrl-attrib {
    font-size: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
}

.detail-map .maplibregl-ctrl-group {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.course-map-placeholder {
    height: 420px;
}

/* Numbered marker for stamp spots */
.map-numbered-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00C9A7, #0088FF);
    color: white;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,201,167,0.4);
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.2s;
}

.map-numbered-marker:hover {
    transform: scale(1.2);
}

/* Map view toggle for destinations list */
.map-view-toggle {
    display: flex;
    gap: 4px;
    background: var(--neutral-100, #F1F5F9);
    border-radius: 8px;
    padding: 3px;
}

.map-view-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-500, #64748B);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.map-view-btn.active {
    background: white;
    color: var(--primary, #0066CC);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Map popup styles */
.maplibregl-popup-content {
    border-radius: 10px !important;
    padding: 8px 12px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
    font-family: 'Pretendard Variable', sans-serif !important;
}

.maplibregl-popup-tip {
    border-top-color: white !important;
}

/* Destinations list + map split view */
.destinations-map-view {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--neutral-200, #E2E8F0);
    margin-bottom: 32px;
    display: none;
}

.destinations-map-view.active {
    display: block;
}

/* Planner map */
.planner-map {
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--neutral-200, #E2E8F0);
}

/* Responsive */
@media (max-width: 768px) {
    .detail-map { height: 280px; }
    .course-map-placeholder { height: 320px; }
    .destinations-map-view { height: 350px; }
    .planner-map { height: 200px; }
}

/* =========================================================
   Admin Area Styles
   ========================================================= */

:root {
    --admin-sidebar-width: 240px;
    --admin-sidebar-bg: #1A1A2E;
    --admin-sidebar-hover: #16213E;
    --admin-sidebar-active: #0F3460;
    --admin-sidebar-text: rgba(255,255,255,0.75);
    --admin-sidebar-text-active: #fff;
    --admin-topbar-bg: #fff;
    --admin-topbar-border: #E5E7EB;
    --admin-topbar-height: 60px;
    --admin-bg: #F3F4F6;
    --admin-card-bg: #fff;
    --admin-text: #111827;
    --admin-text-muted: #6B7280;
    --admin-border: #E5E7EB;
    --admin-radius: 8px;
    --admin-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Layout */
.admin-body {
    background: var(--admin-bg);
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: var(--admin-sidebar-width);
    background: var(--admin-sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--admin-sidebar-text-active);
    font-size: 1.1rem;
    font-weight: 700;
}

.admin-logo-icon { font-size: 1.4rem; }
.admin-logo-text { letter-spacing: -0.3px; }

.admin-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--admin-sidebar-text);
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}

.admin-nav-link:hover {
    background: var(--admin-sidebar-hover);
    color: var(--admin-sidebar-text-active);
}

.admin-nav-link.active {
    background: var(--admin-sidebar-active);
    color: var(--admin-sidebar-text-active);
    font-weight: 600;
}

.admin-nav-icon {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.admin-sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-version {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}

/* Main Area */
.admin-main {
    margin-left: var(--admin-sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Topbar */
.admin-topbar {
    height: var(--admin-topbar-height);
    background: var(--admin-topbar-bg);
    border-bottom: 1px solid var(--admin-topbar-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--admin-shadow);
}

.admin-topbar-left { display: flex; align-items: center; gap: 16px; }
.admin-topbar-right { display: flex; align-items: center; gap: 16px; }

.admin-page-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--admin-text);
}

.admin-topbar-link {
    color: var(--admin-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s;
}

.admin-topbar-link:hover { color: var(--primary); }

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-user-badge {
    background: var(--admin-sidebar-active);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.admin-user-name {
    font-size: 0.85rem;
    color: var(--admin-text);
    font-weight: 500;
}

.btn-outline-admin {
    background: transparent;
    color: var(--admin-text-muted);
    border: 1px solid var(--admin-border);
}

.btn-outline-admin:hover {
    background: var(--admin-bg);
    color: var(--admin-text);
}

/* Content Area */
.admin-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Alert / Flash Messages */
.admin-alert {
    padding: 12px 16px;
    border-radius: var(--admin-radius);
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.admin-alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Stat Cards */
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.admin-stat-card {
    background: var(--admin-card-bg);
    border-radius: var(--admin-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.admin-stat-icon--blue  { background: #DBEAFE; }
.admin-stat-icon--green { background: #D1FAE5; }
.admin-stat-icon--yellow { background: #FEF3C7; }
.admin-stat-icon--purple { background: #EDE9FE; }

.admin-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--admin-text);
    line-height: 1;
}

.admin-stat-label {
    font-size: 0.82rem;
    color: var(--admin-text-muted);
    margin-top: 4px;
}

/* Card */
.admin-card {
    background: var(--admin-card-bg);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
    overflow: hidden;
}

.admin-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--admin-text);
}

.admin-card-body {
    padding: 20px;
}

/* Row layout */
.admin-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

/* Season Badge */
.admin-season-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
}

.admin-season-badge--spring  { background: #FEE2E2; color: #9D174D; }
.admin-season-badge--summer  { background: #DBEAFE; color: #1E40AF; }
.admin-season-badge--autumn  { background: #FEF3C7; color: #92400E; }
.admin-season-badge--winter  { background: #EDE9FE; color: #4C1D95; }

/* Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-table thead th {
    background: #F9FAFB;
    padding: 10px 16px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--admin-border);
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: none; }

.admin-table tbody tr:hover { background: #F9FAFB; }

/* Status Badges */
.admin-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-status-badge--approved { background: #D1FAE5; color: #065F46; }
.admin-status-badge--pending  { background: #FEF3C7; color: #92400E; }
.admin-status-badge--rejected { background: #FEE2E2; color: #991B1B; }

/* Toolbar */
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-toolbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-toolbar-right { display: flex; align-items: center; gap: 12px; }

.admin-search-input {
    padding: 8px 14px;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    font-size: 0.88rem;
    background: var(--admin-card-bg);
    color: var(--admin-text);
    outline: none;
    min-width: 200px;
}

.admin-search-input:focus { border-color: var(--primary); }

.admin-select {
    padding: 8px 12px;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    font-size: 0.88rem;
    background: var(--admin-card-bg);
    color: var(--admin-text);
    cursor: pointer;
    outline: none;
}

.admin-select:focus { border-color: var(--primary); }

/* Thumbnail */
.admin-thumb {
    width: 56px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.admin-thumb-placeholder {
    width: 56px;
    height: 40px;
    background: var(--admin-bg);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-text-muted);
    font-size: 1.1rem;
}

.admin-dest-name { font-weight: 500; color: var(--admin-text); }

.admin-gallery-preview { display: flex; gap: 4px; align-items: center; justify-content: center; }

.admin-gallery-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
}

.admin-tag {
    display: inline-block;
    background: #EFF6FF;
    color: #1D4ED8;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin: 1px;
}

.admin-badge {
    display: inline-block;
    background: var(--admin-bg);
    color: var(--admin-text-muted);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Action Buttons */
.admin-btn-approve {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.admin-btn-approve:hover {
    background: #10B981;
    color: #fff;
    border-color: #10B981;
}

.admin-btn-reject {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.admin-btn-reject:hover {
    background: #EF4444;
    color: #fff;
    border-color: #EF4444;
}

/* Empty State */
.admin-empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--admin-text-muted);
}

/* UGC Grid */
.admin-ugc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.admin-ugc-card {
    background: var(--admin-card-bg);
    border-radius: var(--admin-radius);
    border: 1px solid var(--admin-border);
    overflow: hidden;
    box-shadow: var(--admin-shadow);
    display: flex;
    flex-direction: column;
}

.admin-ugc-thumb {
    position: relative;
    height: 160px;
    background: var(--admin-bg);
    overflow: hidden;
}

.admin-ugc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-ugc-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--admin-text-muted);
}

.admin-ugc-status-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
}

.admin-ugc-info {
    padding: 12px;
    flex: 1;
}

.admin-ugc-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.admin-ugc-uploader,
.admin-ugc-dest {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
}

.admin-ugc-date {
    font-size: 0.78rem;
    color: var(--admin-text-muted);
    margin-bottom: 6px;
}

.admin-ugc-caption {
    font-size: 0.85rem;
    color: var(--admin-text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.admin-ugc-actions {
    display: flex;
    gap: 8px;
    padding: 8px 12px 12px;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--admin-border);
    padding-bottom: 0;
}

.admin-tab {
    padding: 8px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--admin-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.admin-tab:hover { color: var(--admin-text); }

.admin-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.admin-tab-count {
    background: var(--admin-bg);
    color: var(--admin-text-muted);
    font-size: 0.75rem;
    padding: 1px 6px;
    border-radius: 10px;
}

.admin-tab.active .admin-tab-count {
    background: #DBEAFE;
    color: var(--primary);
}

/* Language Tabs */
.admin-lang-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.admin-lang-tab {
    padding: 8px 20px;
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--admin-text-muted);
    transition: all 0.15s;
}

.admin-lang-tab:hover { border-color: var(--primary); color: var(--primary); }

.admin-lang-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}

/* Form Elements */
.admin-form-group {
    margin-bottom: 16px;
}

.admin-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--admin-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-input {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    font-size: 0.9rem;
    color: var(--admin-text);
    background: var(--admin-card-bg);
    outline: none;
    transition: border-color 0.15s;
}

.admin-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,119,182,0.1); }

.admin-textarea {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    font-size: 0.9rem;
    color: var(--admin-text);
    background: var(--admin-card-bg);
    outline: none;
    resize: vertical;
    line-height: 1.6;
    transition: border-color 0.15s;
    font-family: inherit;
}

.admin-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,119,182,0.1); }

/* Admin Responsive */
@media (max-width: 1024px) {
    .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-row { flex-direction: column; }
}

@media (max-width: 768px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-main { margin-left: 0; }
    .admin-stat-grid { grid-template-columns: 1fr 1fr; }
    .admin-topbar { padding: 0 16px; }
    .admin-content { padding: 16px; }
}

/* =====================================================
   BADAON FRONT EXTENDED STYLES
   ===================================================== */

/* ----- Page Header ----- */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 56px 0 48px;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 40, 80, 0.75), rgba(0, 102, 204, 0.6));
    z-index: 0;
}
.page-header .container {
    position: relative;
    z-index: 1;
}
.page-header-title {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--white);
}
.page-header-sub {
    color: rgba(255,255,255,0.88);
    font-size: 1rem;
    line-height: 1.7;
}
.page-header-stamp::before {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.8), rgba(0, 66, 128, 0.65));
}
.page-header-planner::before {
    background: linear-gradient(135deg, rgba(0, 50, 100, 0.75), rgba(0, 180, 216, 0.55));
}
.stamp-hero-icon { display: none; }
.page-header-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.stamp-hero-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.btn-white { color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-white:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.btn-white-fill { background: var(--white); color: var(--primary); }
.btn-white-fill:hover { background: var(--bg-alt); }

/* ----- Filter Bar ----- */
.section-filter { padding: 20px 0; background: var(--white); border-bottom: 1px solid var(--border); }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-search { flex: 1; min-width: 200px; }
.filter-search .search-input {
    width: 100%;
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}
.filter-result-info { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }
.card-image-placeholder {
    width: 100%; height: 100%;
    background: var(--bg-alt);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
}
.card-location { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }

/* ----- Empty State ----- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state-text { color: var(--text-light); font-size: 1rem; margin-bottom: 20px; line-height: 1.7; }

/* ----- Utility ----- */
.text-muted { color: var(--text-muted); }
.btn-xs { padding: 4px 10px; font-size: 0.78rem; }

/* ----- Detail Layout ----- */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 60px;
    align-items: start;
}
.detail-hero {
    background-size: cover;
    background-position: center;
    background-color: var(--primary);
    position: relative;
    min-height: 340px;
}
.detail-hero-overlay {
    background: linear-gradient(to bottom, rgba(0,60,100,0.55), rgba(0,30,60,0.75));
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 32px;
}
.detail-hero-breadcrumb {
    display: flex;
    gap: 6px;
    align-items: center;
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.detail-hero-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.detail-hero-breadcrumb a:hover { color: var(--white); }
.detail-hero-title { color: var(--white); font-size: 2rem; margin-bottom: 12px; }
.detail-hero-meta { display: flex; align-items: center; gap: 12px; }
.detail-region-badge {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
}
.detail-section { margin-bottom: 40px; }
.detail-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}
.detail-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.detail-section-header .detail-section-title { margin-bottom: 0; }
.detail-description { color: var(--text-light); line-height: 1.8; font-size: 0.97rem; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }

/* Gallery */
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-radius: var(--radius);
    overflow: hidden;
}
.gallery-item { aspect-ratio: 4/3; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery-placeholder { background: var(--bg-alt); }
.gallery-placeholder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 2rem;
    aspect-ratio: 4/3;
    color: var(--text-muted);
}
.gallery-placeholder-item p { font-size: 0.78rem; }

/* Map */
.detail-map {
    height: 280px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.map-placeholder { text-align: center; color: var(--text-muted); }
.map-pin { font-size: 2.5rem; display: block; margin-bottom: 12px; }

/* Reviews */
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item {
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-author { font-weight: 600; font-size: 0.9rem; }
.review-rating { color: #F59E0B; }
.review-date { font-size: 0.8rem; }
.review-body { font-size: 0.92rem; color: var(--text-light); line-height: 1.6; }

/* Sidebar Info Card */
.detail-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.detail-info-title { font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.detail-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.detail-info-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.88rem; color: var(--text-light); }
.detail-info-list a { color: var(--primary); text-decoration: none; }
.detail-info-list a:hover { text-decoration: underline; }
.info-icon { flex-shrink: 0; }
.detail-cat-list { display: flex; flex-wrap: wrap; gap: 6px; }
.nearby-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.nearby-link { color: var(--primary); text-decoration: none; font-size: 0.88rem; }
.nearby-link:hover { text-decoration: underline; }

/* ----- Difficulty Badge ----- */
.difficulty-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}
.difficulty-easy   { background: #D1FAE5; color: #065F46; }
.difficulty-normal { background: #FEF3C7; color: #92400E; }
.difficulty-hard   { background: #FEE2E2; color: #991B1B; }

/* ----- Stat Grid ----- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}
.stat-item {
    background: var(--white);
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); }

/* ----- How It Works ----- */
.how-it-works {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.how-step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    flex: 1;
    min-width: 160px;
    max-width: 200px;
    box-shadow: var(--shadow);
}
.how-step-num { font-size: 0.75rem; font-weight: 800; color: var(--primary); letter-spacing: 1px; margin-bottom: 8px; }
.how-step-icon { font-size: 2rem; margin-bottom: 12px; }
.how-step h3 { font-size: 0.95rem; margin-bottom: 6px; }
.how-step p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.how-step-arrow { font-size: 1.5rem; color: var(--primary); flex-shrink: 0; }

/* ----- Stamp Course Grid ----- */
.stamp-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.stamp-course-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.stamp-course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stamp-course-cover { position: relative; height: 180px; overflow: hidden; background: var(--bg-alt); }
.stamp-course-cover img { width: 100%; height: 100%; object-fit: cover; }
.stamp-cover-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 100%; font-size: 3rem;
}
.stamp-course-cover .difficulty-badge { position: absolute; top: 12px; right: 12px; }
.stamp-course-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.stamp-course-theme { margin-bottom: 8px; }
.stamp-course-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.stamp-course-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; flex: 1; }
.stamp-course-meta {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px;
}
.stamp-spot-count { color: var(--primary); font-weight: 600; }
.stamp-points { color: #D97706; font-weight: 600; }
.stamp-course-actions { display: flex; gap: 8px; }
.stamp-course-actions .btn { flex: 1; justify-content: center; }

/* Course Detail */
.course-header-meta { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.course-cta-card { border: 2px solid var(--primary); }

/* ----- Stamp Spot List ----- */
.stamp-spot-list { display: flex; flex-direction: column; gap: 12px; }
.stamp-spot-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stamp-spot-num {
    width: 36px; height: 36px;
    background: var(--primary); color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.95rem; flex-shrink: 0;
}
.stamp-spot-stamp { flex-shrink: 0; }
.stamp-img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: var(--bg-alt); }
.stamp-img-placeholder {
    width: 52px; height: 52px;
    background: var(--bg-alt); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.stamp-spot-info { flex: 1; }
.stamp-spot-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.stamp-spot-name a { color: var(--text); text-decoration: none; }
.stamp-spot-name a:hover { color: var(--primary); }
.stamp-spot-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.stamp-pts-badge {
    background: #FEF9C3; color: #92400E;
    padding: 4px 10px; border-radius: 12px;
    font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.course-map-placeholder { height: 300px; }

/* ----- Progress Bar ----- */
.progress-bar-wrap { display: flex; align-items: center; gap: 8px; flex: 1; }
.progress-bar { flex: 1; height: 8px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.4s ease; }
.progress-pct { font-size: 0.82rem; font-weight: 700; color: var(--primary); min-width: 36px; text-align: right; }
.course-progress-list { display: flex; flex-direction: column; gap: 12px; }
.course-progress-item {
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 12px;
    align-items: center;
}
.course-progress-info h3 { font-size: 0.95rem; margin-bottom: 4px; }
.course-progress-info h3 a { color: var(--text); text-decoration: none; }
.course-progress-info h3 a:hover { color: var(--primary); }

/* My Stamps */
.my-stamp-section { margin-bottom: 40px; }
.completed-course-list { display: flex; flex-direction: column; gap: 8px; }
.completed-course-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.completed-icon { font-size: 1.2rem; }
.completed-course-item > div { flex: 1; }
.completed-course-item a { color: var(--text); text-decoration: none; }
.completed-course-item a:hover { color: var(--primary); }
.stamp-record-list { display: flex; flex-direction: column; gap: 8px; }
.stamp-record-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.stamp-record-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stamp-record-icon img { width: 36px; height: 36px; object-fit: contain; }
.stamp-record-info { flex: 1; }
.stamp-record-info a { color: var(--text); text-decoration: none; }
.stamp-record-info a:hover { color: var(--primary); }

/* Badge Grid */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 12px; }
.badge-grid-sm { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
.badge-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.badge-item img { width: 56px; height: 56px; object-fit: contain; }
.badge-placeholder {
    width: 56px; height: 56px;
    background: var(--bg-alt); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.badge-label { font-size: 0.72rem; color: var(--text-muted); text-align: center; }

/* ----- Leaderboard ----- */
.leaderboard-podium {
    display: flex; justify-content: center; align-items: flex-end;
    gap: 20px; margin-bottom: 40px; padding: 24px 0;
}
.podium-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.podium-1 { order: 2; }
.podium-2 { order: 1; }
.podium-3 { order: 3; }
.podium-crown { font-size: 1.5rem; }
.podium-avatar {
    width: 64px; height: 64px;
    border-radius: 50%; overflow: hidden;
    border: 3px solid var(--border); background: var(--bg-alt);
}
.podium-avatar-lg { width: 80px; height: 80px; border-color: #F59E0B; }
.podium-avatar img { width: 100%; height: 100%; object-fit: cover; }
.podium-rank {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem;
}
.podium-rank-gold { background: #F59E0B; }
.podium-name { font-size: 0.88rem; font-weight: 600; }
.podium-pts { font-size: 0.8rem; color: var(--text-muted); }
.leaderboard-table-wrap {
    overflow-x: auto; border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow);
}
.leaderboard-table { width: 100%; border-collapse: collapse; background: var(--white); }
.leaderboard-table th {
    background: var(--bg-alt); color: var(--text-muted);
    font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border);
}
.lb-row td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.lb-row:last-child td { border-bottom: none; }
.lb-row-me { background: linear-gradient(90deg, rgba(0,119,182,0.05), transparent); }
.lb-row-me td { font-weight: 600; }
.lb-rank { width: 60px; }
.lb-rank-num { font-size: 1.1rem; }
.lb-user-info { display: flex; align-items: center; gap: 10px; }
.lb-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.lb-nickname { font-weight: 600; }
.lb-me-badge {
    background: var(--primary); color: var(--white);
    padding: 1px 6px; border-radius: 8px; font-size: 0.72rem; margin-left: 6px;
}
.lb-points strong { color: var(--primary); }
.level-badge { background: var(--primary); color: var(--white); padding: 3px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 700; }
.level-badge-sm { font-size: 0.72rem; padding: 2px 8px; }
.leaderboard-my-rank { text-align: center; margin-top: 20px; }
.leaderboard-cta { text-align: center; padding: 32px; border: 1px dashed var(--border); border-radius: var(--radius); margin-top: 24px; }
.leaderboard-cta p { margin-bottom: 12px; color: var(--text-light); }

/* Avatar Placeholder */
.avatar-placeholder {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700;
}
.avatar-placeholder.avatar-lg { width: 80px; height: 80px; font-size: 2rem; }
.avatar-placeholder.avatar-sm { width: 48px; height: 48px; font-size: 1.2rem; }
.avatar-placeholder.avatar-xs { width: 36px; height: 36px; font-size: 0.9rem; }

/* ----- Planner ----- */
.planner-form-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.planner-intro h2 { font-size: 1.5rem; margin-bottom: 12px; }
.planner-intro p { color: var(--text-light); margin-bottom: 20px; line-height: 1.7; }
.planner-feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.planner-feature-list li { font-size: 0.95rem; color: var(--text-light); }
.planner-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; color: var(--text); }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text);
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,119,182,0.12); }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }

/* Days Selector */
.days-selector { display: flex; gap: 6px; flex-wrap: wrap; }
.days-option { cursor: pointer; }
.days-option input { display: none; }
.days-option span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 40px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 600;
    transition: var(--transition); background: var(--white); color: var(--text);
}
.days-option input:checked + span { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Theme Checkboxes */
.theme-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-checkbox-item { cursor: pointer; }
.theme-checkbox-item input { display: none; }
.theme-checkbox-item span {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px;
    border: 1px solid var(--border); border-radius: 20px;
    font-size: 0.85rem; transition: var(--transition); background: var(--white);
}
.theme-checkbox-item:has(input:checked) span { background: var(--primary); color: var(--white); border-color: var(--primary); }
.theme-check-icon { font-size: 1rem; }

/* Style Radios */
.style-radios { display: flex; gap: 8px; flex-wrap: wrap; }
.style-radio-item { cursor: pointer; }
.style-radio-item input { display: none; }
.style-radio-item span { display: inline-block; padding: 8px 18px; border: 1px solid var(--border); border-radius: 20px; font-size: 0.88rem; transition: var(--transition); }
.style-radio-item:has(input:checked) span { background: var(--primary); color: var(--white); border-color: var(--primary); }
.planner-submit { margin-top: 8px; }
.planner-btn { font-size: 1rem; padding: 14px 28px; width: 100%; justify-content: center; }

/* Planner Result */
.planner-actions-bar {
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 12px 0; position: sticky; top: 64px; z-index: 50;
}
.planner-actions-bar .container { display: flex; justify-content: space-between; align-items: center; }
.planner-actions-right { display: flex; gap: 8px; }
.planner-result-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.planner-itinerary { display: flex; flex-direction: column; gap: 24px; }
.itinerary-day {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.itinerary-day-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; background: var(--primary); color: var(--white);
}
.itinerary-day-num { font-weight: 800; font-size: 1rem; }
.itinerary-day-date { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.itinerary-spots { padding: 12px; }
.itinerary-spot {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border-radius: var(--radius-sm); transition: var(--transition);
}
.itinerary-spot:hover { background: var(--bg-alt); }
.itinerary-spot-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--bg-alt); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
}
.itinerary-spot-thumb { width: 72px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--bg-alt); }
.itinerary-spot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.itinerary-spot-info { flex: 1; }
.itinerary-spot-info h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.itinerary-spot-info h3 a { color: var(--text); text-decoration: none; }
.itinerary-spot-info h3 a:hover { color: var(--primary); }
.itinerary-connector { display: flex; align-items: center; gap: 8px; padding: 0 20px; color: var(--text-muted); }
.itinerary-arrow { font-size: 1.2rem; }

/* ----- Profile ----- */
.profile-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    display: flex; align-items: center; gap: 20px;
    box-shadow: var(--shadow); flex-wrap: wrap;
}
.profile-avatar { position: relative; flex-shrink: 0; }
.profile-avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); }
.profile-info { flex: 1; }
.profile-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.profile-level { display: flex; align-items: center; }
.profile-actions { display: flex; gap: 8px; margin-left: auto; }
.profile-stats {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 1px; background: var(--border);
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; width: 100%; margin-top: 16px;
}
.provider-badge { position: absolute; bottom: -4px; right: -4px; font-size: 0.65rem; padding: 2px 6px; border-radius: 8px; font-weight: 700; }
.provider-kakao { background: #FEE500; color: #3C1E1E; }
.provider-naver  { background: #03C75A; color: var(--white); }

/* Mypage Grid */
.mypage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.mypage-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.mypage-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mypage-card-header h3 { font-size: 1rem; font-weight: 700; }
.review-mini-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.review-mini-item { font-size: 0.88rem; }
.review-mini-item a { color: var(--text); text-decoration: none; font-weight: 600; }
.review-mini-item a:hover { color: var(--primary); }
.saved-dest-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.stamp-mini-stats { display: flex; gap: 20px; }
.stamp-mini-stat { display: flex; flex-direction: column; gap: 2px; }
.stamp-mini-stat .stat-value { font-size: 1.2rem; }

/* Quick Links */
.mypage-quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mypage-quick-link {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 12px;
    text-decoration: none; color: var(--text); text-align: center;
    transition: var(--transition);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    box-shadow: var(--shadow);
}
.mypage-quick-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.quick-link-icon { font-size: 1.6rem; }
.mypage-quick-link span:last-child { font-size: 0.85rem; font-weight: 600; }

/* Edit Form */
.edit-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-bottom: 24px; }
.privacy-toggles { display: flex; flex-direction: column; gap: 12px; }
.toggle-item {
    display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
    padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-alt);
}
.toggle-item input { display: none; }
.toggle-switch {
    width: 40px; height: 22px; background: var(--border);
    border-radius: 11px; flex-shrink: 0; margin-top: 2px;
    position: relative; transition: var(--transition);
}
.toggle-switch::after {
    content: ''; position: absolute;
    width: 18px; height: 18px; background: var(--white);
    border-radius: 50%; top: 2px; left: 2px;
    transition: var(--transition); box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-item input:checked ~ .toggle-switch { background: var(--primary); }
.toggle-item input:checked ~ .toggle-switch::after { left: 20px; }
.toggle-label strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.toggle-label small { color: var(--text-muted); font-size: 0.8rem; }
.danger-zone { border: 1px solid #FEE2E2; border-radius: var(--radius); padding: 20px; background: #FFF5F5; }
.danger-zone-title { color: #DC2626; font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; }
.danger-zone-body p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 12px; }

/* Alert */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* ----- Auth / Login ----- */
.login-page {
    min-height: calc(100vh - 200px);
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-alt); padding: 40px 20px;
}
.login-container {
    background: var(--white); border-radius: var(--radius);
    padding: 40px 36px; width: 100%; max-width: 440px;
    box-shadow: 0 8px 40px rgba(0,119,182,0.12);
}
.login-header { text-align: center; margin-bottom: 28px; }
.login-logo {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; font-size: 1.4rem; font-weight: 800;
    color: var(--primary); margin-bottom: 12px;
}
.login-title { font-size: 1.6rem; margin-bottom: 6px; color: var(--text); }
.login-subtitle { font-size: 0.9rem; color: var(--text-muted); }
.login-benefits { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 24px; }
.login-benefits-title { font-size: 0.85rem; font-weight: 700; color: var(--text-light); margin-bottom: 10px; }
.login-benefits-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.login-benefits-list li { font-size: 0.85rem; color: var(--text-light); }
.social-login { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 20px; border-radius: var(--radius-sm);
    text-decoration: none; font-size: 0.95rem; font-weight: 700;
    transition: var(--transition); cursor: pointer;
}
.social-btn-icon { display: flex; align-items: center; flex-shrink: 0; }
.social-btn-kakao { background: #FEE500; color: #3C1E1E; }
.social-btn-kakao:hover { background: #e6cf00; }
.social-btn-naver { background: #03C75A; color: var(--white); }
.social-btn-naver:hover { background: #02a84b; }
.login-notice { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.login-notice a { color: var(--primary); text-decoration: none; }
.login-notice a:hover { text-decoration: underline; }
.login-back { text-align: center; }
.login-back a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.login-back a:hover { color: var(--primary); }

/* ----- Planner Card (hanatour search panel) ----- */
.ht-planner-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    padding: 40px 44px;
    border: 1px solid var(--gray-200);
}

.ht-planner-header {
    text-align: center;
    margin-bottom: 32px;
}

.ht-planner-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.ht-planner-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.ht-planner-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ht-form-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.ht-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ht-form-grow { flex: 1; }

.ht-form-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gray-800);
}

.ht-form-select,
.ht-form-input {
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--duration) var(--ease-out);
    outline: none;
}

.ht-form-select:focus,
.ht-form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
}

/* Day Selector */
.ht-day-selector {
    display: flex;
    gap: 6px;
}

.ht-day-option {
    cursor: pointer;
}

.ht-day-option input { display: none; }

.ht-day-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 44px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    background: var(--white);
    transition: all var(--duration) var(--ease-out);
}

.ht-day-option input:checked + span {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.ht-day-option:hover span {
    border-color: var(--primary);
}

/* Theme Grid */
.ht-theme-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ht-theme-item {
    cursor: pointer;
}

.ht-theme-item input { display: none; }

.ht-theme-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    transition: all var(--duration) var(--ease-out);
    background: var(--white);
}

.ht-theme-item input:checked + .ht-theme-content {
    background: var(--primary-50);
    border-color: var(--primary);
    color: var(--primary);
}

.ht-theme-item:hover .ht-theme-content {
    border-color: var(--primary-light);
    background: var(--primary-50);
}

.ht-theme-icon { font-size: 1.1rem; }
.ht-theme-name { font-size: 0.88rem; font-weight: 600; color: var(--gray-800); }
.ht-theme-item input:checked + .ht-theme-content .ht-theme-name { color: var(--primary); }

/* Style Selector */
.ht-style-selector {
    display: flex;
    gap: 6px;
}

.ht-style-option {
    cursor: pointer;
}

.ht-style-option input { display: none; }

.ht-style-option span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--white);
    transition: all var(--duration) var(--ease-out);
}

.ht-style-option input:checked + span {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.ht-style-option:hover span {
    border-color: var(--primary);
}

/* Submit Button */
.ht-planner-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
    margin-top: 4px;
}

.ht-planner-submit:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.ht-planner-notice {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Feature Grid */
.ht-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ht-feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--duration) var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px;
}

.ht-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.ht-feature-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.ht-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.ht-feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: auto;
}

/* Steps (How It Works - ht variant) */
.ht-steps {
    display: flex;
    align-items: stretch;
    gap: 0;
    justify-content: center;
    max-width: 960px;
    margin: 0 auto;
}

.ht-step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    flex: 1;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
}

.ht-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.ht-step-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.ht-step h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ht-step p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: auto;
}

.ht-step-arrow {
    color: var(--primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 8px;
    align-self: center;
}

/* ----- Front Responsive ----- */
@media (max-width: 960px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { order: -1; }
    .planner-form-wrap { grid-template-columns: 1fr; }
    .planner-result-layout { grid-template-columns: 1fr; }
    .planner-sidebar { order: -1; }
    .mypage-grid { grid-template-columns: 1fr; }
    .mypage-quick-links { grid-template-columns: repeat(2, 1fr); }
    .profile-stats { grid-template-columns: repeat(3, 1fr); }
    .ht-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .page-header-title { font-size: 1.5rem; }
    .how-it-works { flex-direction: column; }
    .how-step-arrow { transform: rotate(90deg); }
    .leaderboard-podium { gap: 12px; }
    .stamp-course-grid { grid-template-columns: 1fr; }
    .detail-gallery { grid-template-columns: repeat(2, 1fr); }
    .course-progress-item { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; }
    .filter-search { min-width: unset; }
    .mypage-quick-links { grid-template-columns: repeat(2, 1fr); }
    .profile-card { flex-direction: column; text-align: center; }
    .profile-actions { margin-left: 0; }
    .planner-actions-bar .container { flex-direction: column; gap: 8px; }
    .itinerary-spot-thumb { width: 56px; height: 44px; }
    /* Planner ht- responsive */
    .ht-planner-card { padding: 28px 20px; }
    .ht-form-row { flex-direction: column; }
    .ht-theme-grid { gap: 8px; }
    .ht-theme-content { padding: 10px 16px; }
    .ht-style-selector { flex-wrap: wrap; }
    .ht-style-option span { padding: 10px 16px; }
    .ht-feature-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ht-feature-card { min-height: 170px; padding: 24px 16px; }
    .ht-day-selector { flex-wrap: wrap; }
    .ht-steps { flex-direction: column; }
    .ht-step-arrow { transform: rotate(90deg); }
    .ht-step { max-width: 100%; min-width: unset; }
}

/* =====================================================
   HANATOUR-INSPIRED STYLES
   ===================================================== */

/* Quick Stats Bar */
.ht-quick-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.ht-quick-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px 28px;
    flex: 1;
    max-width: 240px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    min-width: 0;
}

.ht-quick-stat-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.ht-quick-stat-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0066CC;
    line-height: 1.2;
    white-space: nowrap;
}

.ht-quick-stat-label {
    display: block;
    font-size: 0.78rem;
    color: #6B7280;
    margin-top: 3px;
    white-space: nowrap;
}

/* Steps (hanatour horizontal clean) */
.ht-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 960px;
    margin: 0 auto;
}

.ht-step {
    text-align: center;
    flex: 1;
    padding: 24px 16px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
}

.ht-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0066CC;
    color: white;
    font-weight: 800;
    font-size: 0.82rem;
    margin-bottom: 14px;
}

.ht-step-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.ht-step h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.ht-step p {
    font-size: 0.82rem;
    color: #6B7280;
    line-height: 1.5;
    margin-top: auto;
}

.ht-step-arrow {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: #D1D5DB;
    flex-shrink: 0;
    align-self: center;
}

/* Course Cards (hanatour product card style) */
.ht-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.ht-course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.ht-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: transparent;
}

.ht-course-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #F3F4F6;
}

.ht-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ht-course-card:hover .ht-course-image img {
    transform: scale(1.06);
}

.ht-course-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.ht-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ht-badge-easy { background: #D1FAE5; color: #065F46; }
.ht-badge-normal { background: #FEF3C7; color: #92400E; }
.ht-badge-hard { background: #FEE2E2; color: #991B1B; }

.ht-course-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

.ht-course-theme-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.ht-course-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.ht-course-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}

.ht-course-desc {
    font-size: 0.85rem;
    color: #6B7280;
}

.ht-course-info {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 0.88rem;
    margin-top: 6px;
}

.ht-course-spots {
    color: #0066CC;
    font-weight: 600;
}

.ht-course-points {
    color: #D97706;
}

.ht-course-points strong {
    font-weight: 800;
}

.ht-course-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
}

.ht-tag {
    background: #F0F4FF;
    color: #3B5998;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* CTA Section */
.ht-cta-section {
    background: linear-gradient(135deg, #0066CC, #00B4D8);
    padding: 64px 0;
    color: white;
}

.ht-cta-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.ht-cta-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
}

/* Hanatour-style Responsive */
@media (max-width: 768px) {
    .ht-quick-stats { flex-wrap: wrap; gap: 10px; }
    .ht-quick-stat { min-width: calc(50% - 5px); max-width: none; padding: 16px 20px; }
    .ht-steps { flex-wrap: wrap; gap: 12px; }
    .ht-step-arrow { display: none; }
    .ht-step { min-width: calc(50% - 6px); min-height: 160px; padding: 16px 12px; }
    .ht-course-grid { grid-template-columns: 1fr; }
    .ht-cta-title { font-size: 1.3rem; }
    .ht-cta-sub { font-size: 0.9rem; }
}

/* =====================================================
   LEGAL PAGES (Privacy, Terms)
   ===================================================== */

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #374151;
}

.legal-updated {
    background: #F0F4FF;
    border: 1px solid #DBEAFE;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.88rem;
    color: #1E40AF;
    margin-bottom: 28px;
}

.legal-intro {
    font-size: 0.95rem;
    margin-bottom: 32px;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 8px;
    border-left: 4px solid #0066CC;
}

/* TOC */
.legal-toc {
    background: #FAFAFA;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px 32px;
    margin-bottom: 40px;
}

.legal-toc h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

.legal-toc ol {
    columns: 2;
    column-gap: 24px;
    padding-left: 20px;
}

.legal-toc li {
    font-size: 0.88rem;
    margin-bottom: 6px;
    break-inside: avoid;
}

.legal-toc a {
    color: #0066CC;
    text-decoration: none;
}

.legal-toc a:hover {
    text-decoration: underline;
}

/* Articles */
.legal-article {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #E5E7EB;
}

.legal-article:last-child {
    border-bottom: none;
}

.legal-article h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0066CC;
    display: inline-block;
}

.legal-article h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    margin: 20px 0 10px;
}

.legal-article p {
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.legal-article ol,
.legal-article ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-article li {
    font-size: 0.92rem;
    margin-bottom: 8px;
}

/* Tables */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.88rem;
}

.legal-table th {
    background: #F3F4F6;
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    color: #374151;
    border: 1px solid #D1D5DB;
    font-size: 0.85rem;
}

.legal-table td {
    padding: 10px 14px;
    border: 1px solid #D1D5DB;
    vertical-align: top;
}

/* Contact cards */
.legal-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0 24px;
}

.legal-contact-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 20px;
}

.legal-contact-card h3 {
    font-size: 0.92rem;
    margin: 0 0 10px;
    color: #0066CC;
}

.legal-contact-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-contact-card li {
    font-size: 0.88rem;
    margin-bottom: 4px;
}

/* GDPR special section */
.legal-gdpr {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.legal-gdpr h2 {
    border-bottom-color: #D97706;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-toc ol { columns: 1; }
    .legal-contact-grid { grid-template-columns: 1fr; }
    .legal-content { padding: 0 8px; }
    .legal-table { font-size: 0.82rem; }
    .legal-table th, .legal-table td { padding: 8px 10px; }
}
