/* ============================================================
   C2E — Closer to Earth
   ============================================================ */

:root {
    --bg-color: #04070d;
    --bg-elev: #0a1018;
    --text-color: #eaf2f8;
    --text-muted: rgba(234, 242, 248, 0.6);
    --accent: #00c6ff;
    --accent-2: #0072ff;
    --accent-soft: rgba(0, 198, 255, 0.12);
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.035);
    --font-main: 'Montserrat', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
    --font-logo: 'Syncopate', sans-serif;
    --maxw: 1140px;
    --nav-h: 74px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-main);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease;
}

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

/* Ambient background glow */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(60vw 60vw at 80% -10%, rgba(0, 114, 255, 0.10), transparent 60%),
        radial-gradient(50vw 50vw at -10% 40%, rgba(0, 198, 255, 0.08), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    padding: 0 clamp(20px, 5vw, 50px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(4, 7, 13, 0.85) 0%, rgba(4, 7, 13, 0) 100%);
    backdrop-filter: blur(6px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(4, 7, 13, 0.9);
    box-shadow: 0 1px 0 var(--border-color);
    backdrop-filter: blur(14px);
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 1200;
    background: linear-gradient(to right, var(--accent), var(--accent-2));
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.55);
    transition: width 0.08s linear;
    pointer-events: none;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-logo);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}

.nav-logo-img {
    height: 46px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: auto;
}

/* Always-visible action group (cart · language · hamburger) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 30px;
}

.nav-links li a {
    font-family: var(--font-main);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.7;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    opacity: 1;
    color: #fff;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(4, 7, 13, 0.35), rgba(4, 7, 13, 0.55) 70%, var(--bg-color) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeUp 1.6s ease;
}

.logo-text {
    font-family: var(--font-logo);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-logo-text {
    font-size: clamp(4rem, 16vw, 9rem);
    line-height: 1;
    background: linear-gradient(to right, #ffffff, #8be9fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(0, 163, 255, 0.5));
    animation: glow 3.5s infinite alternate;
}

.hero-tagline {
    font-family: var(--font-main);
    font-size: clamp(0.9rem, 2.4vw, 1.25rem);
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 8px;
}

.hero-scroll {
    display: inline-block;
    margin-top: 48px;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    position: relative;
}

.hero-scroll span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: #fff;
    border-radius: 2px;
    animation: scrollDot 1.6s infinite;
}

@keyframes scrollDot {
    0% { opacity: 0; transform: translateY(0); }
    40% { opacity: 1; }
    80% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 0; }
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(0, 163, 255, 0.3)); }
    to { filter: drop-shadow(0 0 28px rgba(0, 163, 255, 0.85)); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Layout / Sections ---------- */
.main-content {
    position: relative;
    z-index: 10;
    background: var(--bg-color);
}

.section {
    padding: clamp(80px, 12vw, 140px) 20px;
    border-bottom: 1px solid var(--border-color);
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 7vw, 80px);
}

.section-header h2 {
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    margin-bottom: 10px;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header .subtitle {
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- About ---------- */
.minimal-card {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.text-lead {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    margin-bottom: 26px;
    font-weight: 500;
    color: #fff;
}

.text-body {
    font-size: 1.08rem;
    color: var(--text-muted);
}

.activity-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.activity-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

/* ---------- Journey (History + Map) ---------- */
.journey-stats {
    display: flex;
    justify-content: center;
    gap: clamp(30px, 8vw, 80px);
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-logo);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-main);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.journey-layout {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.journey-map-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    min-height: 460px;
    position: relative;
}

#journeyMap {
    width: 100%;
    height: 100%;
    min-height: 460px;
    background: #071019;
}

/* Timeline list beside map */
.journey-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
}

.journey-timeline::-webkit-scrollbar {
    width: 6px;
}

.journey-timeline::-webkit-scrollbar-thumb {
    background: rgba(0, 198, 255, 0.3);
    border-radius: 3px;
}

.journey-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.journey-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.journey-item.active {
    border-left-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.15);
}

.journey-item .j-icon {
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
}

.journey-item .j-date {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--accent);
    min-width: 62px;
}

.journey-item .j-place {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.02rem;
    color: #fff;
}

.journey-item .j-country {
    margin-left: auto;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.journey-item.upcoming {
    border-left-color: #ffd166;
    background: rgba(255, 209, 102, 0.06);
}

.j-next {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #ffd166;
    color: #04070d;
    font-family: var(--font-main);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    vertical-align: middle;
}

.j-next.planned {
    background: transparent;
    color: #ffd166;
    border: 1px solid rgba(255, 209, 102, 0.55);
}

.j-detail-btn {
    margin-left: 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: 1px solid transparent;
    color: #04070d;
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: itinPulse 2s ease-in-out infinite;
}

.j-detail-btn:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 6px 22px rgba(0, 198, 255, 0.55);
    animation: none;
}

.j-detail-arrow {
    display: inline-block;
    font-weight: 700;
    animation: arrowNudge 1.1s ease-in-out infinite;
}

.j-detail-btn:hover .j-detail-arrow {
    animation-duration: 0.6s;
}

@keyframes itinPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(0, 198, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 198, 255, 0); }
}

@keyframes arrowNudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Leaflet dark overrides */
.leaflet-container {
    background: #071019 !important;
    font-family: var(--font-body);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: #0d1826;
    color: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-content {
    font-family: var(--font-main);
    font-weight: 600;
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.4) !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

.leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.6) !important;
}

.leaflet-bar a {
    background: #0d1826 !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Glowing map marker */
.c2e-pin {
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 rgba(0, 198, 255, 0.6);
    animation: pinPulse 2s infinite;
}

.c2e-pin.active {
    background: #fff;
    border-color: var(--accent);
}

/* Snow (ski/board) trips get a warm marker */
.c2e-pin.snow {
    background: #ffd166;
    box-shadow: 0 0 0 rgba(255, 209, 102, 0.6);
    animation: pinPulseSnow 2s infinite;
}

@keyframes pinPulseSnow {
    0% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(255, 209, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); }
}

/* Upcoming (next) tour marker */
.c2e-pin.next {
    background: #ffd166;
    border-color: #fff;
    animation: pinPulseSnow 1.4s infinite;
}

@keyframes pinPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(0, 198, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 198, 255, 0); }
}

/* ---------- Album (Spotify embed) ---------- */
.album-embed {
    max-width: 560px;
    margin: 0 auto;
}

.album-embed iframe {
    width: 100%;
    display: block;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
}

/* ---------- Video Grid ---------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.video-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
    aspect-ratio: 16 / 9;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 198, 255, 0.55);
    box-shadow: 0 20px 46px rgba(0, 163, 255, 0.28);
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease, filter 0.4s ease;
}

.video-card:hover img {
    transform: scale(1.07);
    filter: brightness(0.82) saturate(1.08);
}

/* Depth scrim */
.video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(4, 7, 13, 0.55), rgba(4, 7, 13, 0) 55%);
    opacity: 0.85;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

/* Glass play button */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.play-btn::after {
    content: '';
    margin-left: 5px;
    border-style: solid;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #fff;
    transition: border-color 0.4s ease;
}

.video-card:hover .play-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 8px rgba(0, 198, 255, 0.14), 0 12px 32px rgba(0, 163, 255, 0.55);
    transform: translate(-50%, -50%) scale(1.08);
}

/* Watch label */
.video-tag {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(4, 7, 13, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: var(--font-main);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.video-card:hover .video-tag {
    opacity: 1;
    transform: translateY(0);
}

.video-title {
    margin-top: 14px;
    text-align: center;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.2px;
    transition: color 0.25s ease;
}

.video-item:hover .video-title {
    color: var(--accent);
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: saturate(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 114, 255, 0.35), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 5, 10, 0.92);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 30px;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 34px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 2.6rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Lightbox prev/next + counter */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0.85;
    transition: background 0.2s ease, opacity 0.2s ease;
    z-index: 2;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.16); opacity: 1; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-count {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-main);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.35);
    padding: 5px 14px;
    border-radius: 20px;
}

@media (max-width: 560px) {
    .lightbox-nav { width: 44px; height: 44px; font-size: 1.6rem; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* Gallery "load more" */
.gallery-more {
    text-align: center;
    margin-top: 34px;
}
.gallery-more .btn-outline { cursor: pointer; }
.gallery-more-count { opacity: 0.7; }

/* Enlarged store image: click again to shrink back */
#storeLbImg { cursor: zoom-out; }

/* ---------- Tour detail modal ---------- */
.detail-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.detail-modal.open {
    opacity: 1;
    visibility: visible;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 10, 0.8);
    backdrop-filter: blur(6px);
}

.detail-panel {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: 90vh;
    background: linear-gradient(180deg, #0b1420, #070c14);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.detail-modal.open .detail-panel {
    transform: none;
}

.detail-close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.detail-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.detail-body {
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
}

.detail-body::-webkit-scrollbar {
    width: 8px;
}

.detail-body::-webkit-scrollbar-thumb {
    background: rgba(0, 198, 255, 0.3);
    border-radius: 4px;
}

.detail-head {
    margin-bottom: 24px;
    padding-right: 40px;
}

.detail-flag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--accent-soft);
    border: 1px solid rgba(0, 198, 255, 0.25);
    color: var(--accent);
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.detail-head h2 {
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    color: #fff;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #8be9fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-meta {
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.85rem;
}

/* Modal tabs */
.detail-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 4;
    margin: 0 -40px 4px;
    padding: 2px 40px 0;
    background: #0b1420;
    border-bottom: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.detail-tabs::-webkit-scrollbar {
    display: none;
}

.detail-tab {
    flex-shrink: 0;
    padding: 14px 16px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.detail-tab:hover {
    color: #fff;
}

.detail-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.detail-tabpanel {
    display: none;
}

.detail-tabpanel.active {
    display: block;
}

.detail-tabpanel > .detail-sec:first-child,
.detail-tabpanel > .check-card:first-child,
.detail-tabpanel > .itin:first-child {
    margin-top: 22px;
}

.detail-sec {
    margin-top: 34px;
}

/* Muted helper note */
.detail-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 6px;
}

.detail-sec .detail-note + .detail-list,
.detail-sec .detail-note + .detail-table {
    margin-top: 16px;
}

/* Highlighted info card (cost balance, key notes) */
.detail-callout {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--accent-soft);
    border: 1px solid rgba(0, 198, 255, 0.28);
    color: var(--text-color);
    font-size: 0.88rem;
    line-height: 1.6;
}

.detail-callout b {
    color: var(--accent);
    font-family: var(--font-main);
    font-weight: 700;
}

.detail-sec h3 {
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-src {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: auto;
}

.itin {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.itin-day {
    padding: 16px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
}

.itin-when {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.itin-d {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
}

.itin-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.itin-title {
    margin-left: auto;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
}

.itin-rows {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.itin-row {
    display: flex;
    gap: 14px;
    align-items: baseline;
}

.itin-time {
    flex-shrink: 0;
    min-width: 78px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--accent);
}

.itin-text {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.55;
}

.itin-day-note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.itin-text b,
.itin-day-note b,
.detail-list b,
.detail-note b {
    color: #fff;
    font-weight: 700;
}

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-list li {
    padding-left: 20px;
    position: relative;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.detail-list li b {
    color: var(--accent);
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.detail-table td {
    padding: 10px 6px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.detail-table td:nth-child(2) {
    text-align: center;
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.detail-table td:nth-child(3) {
    text-align: right;
    white-space: nowrap;
    color: #fff;
    font-weight: 600;
}

.detail-table tr.total td {
    border-bottom: none;
    border-top: 2px solid rgba(0, 198, 255, 0.3);
    padding-top: 14px;
    font-size: 1rem;
}

.detail-table tr.total td:last-child {
    color: var(--accent);
    font-family: var(--font-logo);
}

.food-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.food-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.food-info {
    flex: 1;
    min-width: 0;
}

.food-item b {
    display: block;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.92rem;
    margin-bottom: 3px;
}

.food-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.food-map {
    flex-shrink: 0;
    padding: 7px 12px;
    border-radius: 20px;
    background: var(--accent-soft);
    border: 1px solid rgba(0, 198, 255, 0.3);
    color: var(--accent);
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.food-map:hover {
    background: var(--accent);
    color: #04070d;
}

.detail-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-links a {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.detail-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

@media (max-width: 680px) {
    .detail-body {
        padding: 28px 20px;
    }

    .detail-tabs {
        margin: 0 -20px 4px;
        padding: 2px 20px 0;
    }

    .food-grid {
        grid-template-columns: 1fr;
    }

    .itin-row {
        flex-direction: column;
        gap: 2px;
    }

    .itin-time {
        min-width: 0;
    }

    .itin-title {
        margin-left: 0;
        width: 100%;
    }
}

/* ---------- Members ---------- */
.members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 760px;
    margin: 0 auto;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--card-bg);
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.member-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 198, 255, 0.4);
    box-shadow: 0 12px 30px rgba(0, 198, 255, 0.18);
}

.member-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(0, 198, 255, 0.4);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    text-align: left;
}

.member-card h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #fff;
}

.member-role {
    font-family: var(--font-main);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    margin: 3px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

/* ---------- Upcoming ---------- */
.upcoming-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 56px 40px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 198, 255, 0.12), transparent 60%),
        var(--card-bg);
    border: 1px solid var(--border-color);
}

.upcoming-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(0, 198, 255, 0.3);
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.upcoming-card h3 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    color: #fff;
    margin-bottom: 14px;
}

.upcoming-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.upcoming-shop {
    display: inline-block;
    margin: 0 auto 18px;
    color: var(--accent);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-outline {
    display: inline-block;
    padding: 13px 32px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 30px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--accent);
    color: #04070d;
    box-shadow: 0 0 24px rgba(0, 198, 255, 0.4);
}

/* ---------- Hero D-day pill ---------- */
.hero-dday {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 9px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: #fff;
    transition: all 0.25s ease;
}

.hero-dday:hover {
    border-color: var(--accent);
    background: rgba(0, 198, 255, 0.12);
}

.hero-dday .dd-label {
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.hero-dday b {
    color: var(--accent);
    font-family: var(--font-logo);
}

#upcomingDday {
    color: var(--accent);
}

/* ---------- Scroll to top ---------- */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1500;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 198, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 198, 255, 0.4);
    color: var(--accent);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--accent);
    color: #04070d;
    box-shadow: 0 8px 24px rgba(0, 198, 255, 0.4);
}

/* ---------- KakaoTalk contact ---------- */
.kakao-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding: 15px 30px;
    border-radius: 14px;
    background: #FEE500;
    color: #191600;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(254, 229, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kakao-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(254, 229, 0, 0.4);
    color: #191600;
}

.kakao-ic {
    font-size: 1.2rem;
}

.kakao-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.kakao-qr img {
    width: 160px;
    height: 160px;
    border-radius: 14px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.kakao-qr span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-main);
    letter-spacing: 1px;
}

/* ---------- Prep checklist ---------- */
.check-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 30px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.check-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.check-title {
    font-family: var(--font-main);
    font-weight: 600;
    color: #fff;
    font-size: 0.98rem;
}

.check-progress {
    font-family: var(--font-logo);
    color: var(--accent);
    font-size: 1rem;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.check-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.check-box {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #04070d;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.check-item.done .check-box {
    background: var(--accent);
    border-color: var(--accent);
}

.check-label {
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.check-item.done .check-label {
    color: var(--text-muted);
    text-decoration: line-through;
}

.check-reset {
    margin-top: 18px;
    padding: 8px 18px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.check-reset:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- Contact ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: clamp(32px, 5vw, 60px);
    border-radius: 22px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-layout::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 163, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-info {
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 18px;
    background: linear-gradient(to right, #fff, #8be9fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p {
    color: var(--text-muted);
}

/* ---------- Connect (social channels) ---------- */
.connect {
    padding: clamp(56px, 9vw, 100px) 20px;
    text-align: center;
    background:
        radial-gradient(60vw 46vw at 50% 128%, rgba(0, 198, 255, 0.14), transparent 62%),
        linear-gradient(180deg, rgba(0, 114, 255, 0.05), transparent 70%);
    border-bottom: 1px solid var(--border-color);
}

.connect-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.connect-title {
    font-size: clamp(1.7rem, 5vw, 2.6rem);
    background: linear-gradient(to right, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.connect-sub {
    color: var(--text-muted);
    max-width: 52ch;
    margin: 0 auto 34px;
}

.social-row {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-ic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.social-ic:hover,
.social-ic:focus-visible {
    transform: translateY(-4px);
    color: #04070d;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(0, 163, 255, 0.35);
    outline: none;
}

.social-share {
    color: var(--accent);
}

/* Add-to-home (PWA install) button */
.install-btn {
    margin-top: 30px;
    padding: 14px 30px;
    border-radius: 30px;
    border: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04070d;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 163, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 163, 255, 0.45);
}

/* Add-to-home help dialog */
.ihelp {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
}
.ihelp.open { visibility: visible; }

.ihelp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 10, 0.78);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.28s ease;
}
.ihelp.open .ihelp-backdrop { opacity: 1; }

.ihelp-card {
    position: relative;
    max-width: 420px;
    width: 100%;
    background: var(--bg-elev);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 32px 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.ihelp.open .ihelp-card { opacity: 1; transform: none; }

.ihelp-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 18px;
}

.ihelp-steps {
    margin: 0 0 24px;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.55;
    text-align: left;
}
.ihelp-steps li { padding-left: 4px; }
.ihelp-steps li b { color: #fff; font-weight: 700; }
.ihelp-steps .ih-key {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}
.ihelp-card .store-btn { width: 100%; }

/* ---------- Footer ---------- */
footer {
    padding: 50px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .journey-layout {
        grid-template-columns: 1fr;
    }

    .journey-timeline {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .journey-map-wrap {
        min-height: 380px;
    }
}

/* Timeline rows wrap on phones so country + Itinerary never clip */
@media (max-width: 620px) {
    .journey-item {
        flex-wrap: wrap;
        row-gap: 8px;
        column-gap: 12px;
    }
    .journey-item .j-date {
        min-width: 52px;
    }
    .journey-item .j-place {
        flex: 1 1 auto;
        min-width: 0;
    }
    .journey-item .j-detail-btn {
        margin-left: auto;
        margin-top: 2px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78vw, 320px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 30px;
        padding: 0 40px;
        background: rgba(6, 10, 18, 0.97);
        backdrop-filter: blur(16px);
        border-left: 1px solid var(--border-color);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links li a {
        font-size: 1.05rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

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

    .members-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .hero {
        height: 88vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   Store  (layout only — no cart logic yet)
   ============================================================ */
.store-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 60px);
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

/* ---- Media / gallery ---- */
.store-media {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}

.store-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-elev);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    cursor: zoom-in;
}

/* Zoom hint badge (only when a real photo is shown) */
.store-photo:not(.is-ph)::after {
    content: '🔍';
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(4, 7, 13, 0.55);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    opacity: 0.85;
    pointer-events: none;
}

.store-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

/* Wide images (e.g. the collage): frame matches the image's own ratio, no crop */
.store-photo.fit-natural {
    aspect-ratio: auto;
    background: var(--bg-color);
}
.store-photo.fit-natural img {
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Branded fallback shown when a product photo is missing */
.store-photo.is-ph img,
.store-thumb.is-ph img { display: none; }

.store-photo.is-ph,
.store-thumb.is-ph {
    background:
        radial-gradient(circle at 50% 38%, rgba(0, 198, 255, 0.14), transparent 60%),
        linear-gradient(160deg, #0c141d, #05090f);
}

.store-photo.is-ph::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(image/logo.png) center 42% / 40% no-repeat;
    opacity: 0.5;
}

.store-photo.is-ph::after {
    content: 'PHOTO COMING SOON';
    position: absolute;
    left: 0; right: 0; bottom: 26%;
    text-align: center;
    font-family: var(--font-main);
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.store-thumb.is-ph::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url(image/logo.png) center / 52% no-repeat;
    opacity: 0.35;
}

.store-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: 30px;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    color: #04070d;
    background: #f5a623;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
}

.store-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.store-thumb {
    position: relative;
    flex: 0 0 84px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-elev);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.store-thumb img { width: 100%; height: 100%; object-fit: cover; }
.store-thumb:hover { transform: translateY(-2px); }
.store-thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

/* ---- Info ---- */
.store-info { display: flex; flex-direction: column; }

.store-brand {
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #f5a623;
    text-transform: uppercase;
}

.store-name {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    color: #fff;
    margin: 8px 0 12px;
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.store-stars { color: #f5a623; letter-spacing: 2px; font-size: 0.95rem; }
.store-reviews { color: var(--text-muted); font-size: 0.85rem; }

.store-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-color);
}

.store-price-now {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.9rem;
    color: #fff;
}

.store-price-was {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1rem;
}

.store-price-off {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.8rem;
    color: #f5a623;
    background: rgba(245, 166, 35, 0.14);
    padding: 3px 9px;
    border-radius: 8px;
}

.store-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 26px; }

.store-opt { margin-bottom: 22px; }

.store-opt-label {
    display: block;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.store-swatches { display: flex; gap: 12px; }

.store-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--sw);
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.store-swatch:hover { transform: scale(1.08); }

.store-swatch.is-active {
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--accent);
}

.store-sizes { display: flex; flex-wrap: wrap; gap: 10px; }

.store-size {
    min-width: 50px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.store-size:hover { border-color: var(--accent); }
.store-size.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #04070d;
}

.store-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 6px 0 12px;
}

.store-btn {
    padding: 15px 20px;
    border-radius: 12px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.store-btn-primary {
    background: linear-gradient(to right, var(--accent), var(--accent-2));
    color: #04070d;
}

.store-btn-ghost {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-color);
}

.store-btn:disabled { cursor: not-allowed; opacity: 0.55; }
.store-btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }

.store-metalist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}

.store-metalist li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ---- Coming-soon grid ---- */
.store-more {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: clamp(48px, 7vw, 72px);
}

.store-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.store-card:hover { transform: translateY(-4px); border-color: rgba(0, 198, 255, 0.35); }

.store-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(0, 198, 255, 0.10), transparent 65%),
        var(--bg-elev);
}

.store-card-emoji { font-size: 2.6rem; opacity: 0.85; }

.store-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-card-flag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: var(--font-main);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.store-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
}

.store-card-body h4 {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.store-card-price { color: var(--text-muted); font-size: 0.88rem; font-family: var(--font-main); }

@media (max-width: 860px) {
    .store-product { grid-template-columns: 1fr; max-width: 460px; }
    .store-media { position: static; }
    .store-more { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
    .store-actions { grid-template-columns: 1fr; }
}

/* ============================================================
   Store — cart & checkout flow
   ============================================================ */

/* ---- Nav cart button ---- */
.nav-cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    padding: 6px;
    color: var(--text-color);
    display: inline-flex;
    transition: transform 0.2s ease;
}
.nav-cart-btn:hover { transform: translateY(-1px); }
.nav-cart-count {
    position: absolute;
    top: -3px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: #f5a623;
    color: #04070d;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.64rem;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ---- Quantity stepper (product) ---- */
.store-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
}
.store-qty-btn {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.store-qty-btn:hover { background: rgba(255, 255, 255, 0.06); }
.store-qty-val {
    min-width: 46px;
    text-align: center;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
}

.store-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ---- Shared overlay shells ---- */
.cart-drawer, .checkout-modal, .soon-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    visibility: hidden;
}
.cart-drawer.open, .checkout-modal.open, .soon-modal.open { visibility: visible; }

.cart-backdrop, .checkout-backdrop, .soon-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 10, 0.72);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cart-drawer.open .cart-backdrop,
.checkout-modal.open .checkout-backdrop,
.soon-modal.open .soon-backdrop { opacity: 1; }

/* ---- Cart drawer ---- */
.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(430px, 100%);
    display: flex;
    flex-direction: column;
    background: var(--bg-elev);
    border-left: 1px solid var(--border-color);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-drawer.open .cart-panel { transform: translateX(0); }

.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border-color);
}
.cart-head h3 { font-size: 1.15rem; color: #fff; }
.cart-head-count { color: var(--text-muted); font-weight: 400; font-size: 0.9rem; }
.cart-x, .checkout-x {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}
.cart-x:hover, .checkout-x:hover { color: #fff; }

.cart-scroll { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-items { list-style: none; }

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    color: var(--text-muted);
    padding: 60px 20px;
}
.cart-empty-ic { font-size: 2.4rem; opacity: 0.7; }
.cart-empty-btn { padding: 10px 22px; }

.cart-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
.cart-item-thumb {
    flex: 0 0 66px;
    width: 66px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cart-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cart-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cart-item-name { font-family: var(--font-main); font-weight: 600; font-size: 0.92rem; color: var(--text-color); }
.cart-item-x { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.cart-item-x:hover { color: #ff6b6b; }
.cart-item-opt { font-size: 0.8rem; color: var(--text-muted); }
.cart-item-bot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.cart-item-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.cart-item-qty button {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
}
.cart-item-qty button:hover { background: rgba(255, 255, 255, 0.06); }
.cart-item-qty span { min-width: 30px; text-align: center; font-size: 0.85rem; font-family: var(--font-main); }
.cart-item-price { font-family: var(--font-main); font-weight: 700; font-size: 0.92rem; }

.cart-foot {
    padding: 18px 22px 22px;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.015);
}
.cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
    margin-bottom: 8px;
    color: var(--text-color);
}
.cart-row-muted { color: var(--text-muted); }
.cart-row span:last-child { font-family: var(--font-main); }
.cart-total {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--border-color);
}
.cart-checkout { width: 100%; margin-top: 14px; }

/* ---- Checkout ---- */
.checkout-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.checkout-modal.open .checkout-panel { opacity: 1; transform: none; }

.checkout-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(4, 7, 13, 0.9);
}
.checkout-head h2 { font-size: 1.15rem; color: #fff; }
.checkout-back {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.checkout-back:hover { color: var(--accent); }
.checkout-x { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }

.checkout-body {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 22px 60px;
}
@media (min-width: 820px) {
    .checkout-body { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.checkout-sec { margin-bottom: 26px; }
.checkout-sec h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 16px;
}
.checkout-step {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.8rem;
}

.field { margin-bottom: 14px; }
.field > label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-family: var(--font-main);
}
.field input, .field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color-scheme: dark;
}
.field input::placeholder { color: rgba(234, 242, 248, 0.35); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-zip { display: flex; gap: 10px; align-items: flex-end; }
.field-zip > div { flex: 1; }
.zip-btn { padding: 12px 16px; white-space: nowrap; font-size: 0.72rem; }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-method {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.pay-method input { accent-color: var(--accent); }
.pay-method:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.checkout-agree { margin-top: 8px; }
.agree-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-muted); cursor: pointer; }
.agree-row input { margin-top: 3px; accent-color: var(--accent); }

.checkout-summary {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px;
}
@media (min-width: 820px) {
    .checkout-summary { position: sticky; top: 20px; }
}
.checkout-summary h3 { font-size: 1rem; color: #fff; margin-bottom: 16px; }
.summary-items { list-style: none; margin-bottom: 16px; }
.summary-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}
.summary-item-name em { display: block; color: var(--text-muted); font-style: normal; font-size: 0.78rem; margin-top: 2px; }
.summary-item-q { color: var(--text-muted); font-size: 0.8rem; }
.summary-item-p { font-family: var(--font-main); font-weight: 700; }
.summary-rows { margin: 16px 0 20px; }
.pay-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.checkout-secure { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; }

/* ---- Coming-soon dialog ---- */
.soon-modal { display: grid; place-items: center; padding: 24px; }
.soon-card {
    position: relative;
    max-width: 400px;
    width: 100%;
    text-align: center;
    background: var(--bg-elev);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 40px 30px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.soon-modal.open .soon-card { opacity: 1; transform: none; }
.soon-emoji { font-size: 2.8rem; display: block; margin-bottom: 14px; }
.soon-card h3 { font-size: 1.3rem; color: #fff; margin-bottom: 12px; }
.soon-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 18px; }
.soon-note {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 22px;
}
.soon-card .store-btn { width: 100%; }

/* ---- Toast ---- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translate(-50%, 20px);
    z-index: 3000;
    background: rgba(10, 16, 24, 0.96);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 13px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-family: var(--font-main);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: calc(100% - 40px);
    text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 520px) {
    .pay-methods { grid-template-columns: 1fr; }
}
