/* 
 * Odyssey - Award Winning Aesthetic 
 * Design Concept: Minimal, Deep Nature, Typographic
 */

:root {
    /* Colors */
    --c-bg: #0F1C19;
    /* Deepest Forest - Almost Black */
    --c-surface: #1A2F2B;
    /* Moss - Elevation */
    --c-text: #EBE5CE;
    /* Sand - Primary Text */
    --c-text-muted: #8A9A96;
    --c-accent: #E07A5F;
    /* Safari Orange - Subtle usage */

    /* Typography */
    --f-en: 'Manrope', sans-serif;
    --f-jp: 'Zen Kaku Gothic New', sans-serif;
    --f-serif: 'Shippori Mincho', serif;

    /* Fluid Type Scale */
    --fs-display: clamp(2.5rem, 6vw, 7rem);
    --fs-h2: clamp(2rem, 4vw, 4rem);
    --fs-body: clamp(0.9rem, 1vw, 1.1rem);

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    background-color: var(--c-bg);
}

body {
    font-family: var(--f-en);
    color: var(--c-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--c-text);
}

.cursor-circle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--c-text);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

body:hover .cursor-circle.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(235, 229, 206, 0.1);
    border-color: transparent;
}

/* Lightbox active: make cursor visible */
body.lightbox-open .cursor-dot,
body.lightbox-open .cursor-circle {
    z-index: 10002;
    mix-blend-mode: normal;
}

body.lightbox-open .cursor-dot {
    background: #fff;
}

body.lightbox-open .cursor-circle {
    border-color: #fff;
}

/* Gallery */
.gallery-teaser {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-header {
    margin-bottom: 2rem;
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--c-bg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s var(--ease-in-out-quart);
}

.loader.loaded {
    transform: translateY(-100%);
}

.loader-text {
    font-family: var(--f-en);
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.loader-line {
    width: 200px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: var(--c-text);
    transform: translateX(-100%);
    animation: loadLine 1.5s var(--ease-out-expo) forwards;
}

@keyframes loadLine {
    to {
        transform: translateX(0);
    }
}

/* Layout */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: var(--c-surface);
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: #EBE5CE;
}

.menu-trigger {
    background: none;
    border: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    cursor: pointer;
}

.menu-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.menu-line {
    width: 40px;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.menu-trigger:hover .menu-line {
    width: 60px;
}

/* Menu open state */
.menu-trigger.active .menu-text {
    content: 'Close';
}

.menu-trigger.active .menu-line {
    width: 30px;
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--c-bg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-inner {
    text-align: left;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    overflow: hidden;
}

.nav-link {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1rem 0;
    text-decoration: none;
    color: var(--c-text);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, color 0.3s ease;
}

.nav-overlay.active .nav-link {
    transform: translateY(0);
    opacity: 1;
}

.nav-overlay.active .nav-links li:nth-child(1) .nav-link { transition-delay: 0.1s; }
.nav-overlay.active .nav-links li:nth-child(2) .nav-link { transition-delay: 0.2s; }
.nav-overlay.active .nav-links li:nth-child(3) .nav-link { transition-delay: 0.3s; }
.nav-overlay.active .nav-links li:nth-child(4) .nav-link { transition-delay: 0.4s; }
.nav-overlay.active .nav-links li:nth-child(5) .nav-link { transition-delay: 0.5s; }

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

.nav-num {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    letter-spacing: 0.1em;
    min-width: 2rem;
}

.nav-label {
    font-family: var(--f-en);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Hero */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;
}

/* Hero Leaflet Map */
#hero-map {
    width: 100%;
    height: 50vh;
    max-height: 500px;
    pointer-events: none;
    border-radius: 8px;
    background: var(--c-bg);
    min-height: 200px;
}

/* Leaflet controls hidden for hero */
#hero-map .leaflet-control-container {
    display: none;
}

/* Custom marker styles */
.leaflet-marker-current {
    background: #3b82f6;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #3b82f6, 0 0 30px rgba(59, 130, 246, 0.5);
    animation: pulseGlow 1.5s infinite ease-in-out;
}

.leaflet-marker-visited {
    background: #4ade80;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
}

.leaflet-marker-planned {
    background: #ff3333;
    border: none;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px #fff, 0 0 10px #3b82f6;
    }
    50% {
        box-shadow: 0 0 15px #fff, 0 0 40px #fff, 0 0 80px #3b82f6, 0 0 140px rgba(59, 130, 246, 0.8), 0 0 200px rgba(59, 130, 246, 0.5), 0 0 280px rgba(59, 130, 246, 0.3);
    }
}

/* Dark popup style for Leaflet */
.dark-popup .leaflet-popup-content-wrapper {
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.dark-popup .leaflet-popup-tip {
    background: rgba(20, 20, 20, 0.95);
}

.dark-popup .leaflet-popup-content {
    margin: 10px 14px;
    font-size: 14px;
}

.leaflet-container {
    background: #e8e8e8;
}

/* Dark ocean, bright continents */
.leaflet-tile-pane {
    filter: brightness(0.85) contrast(1.1);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.hero-title .line {
    display: block;
    font-size: var(--fs-display);
    font-family: var(--f-serif);
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.hero-title .line span {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    animation: slideUp 1.2s var(--ease-out-expo) forwards;
}

.hero-title .line:nth-child(1) span {
    animation-delay: 2.2s;
}

.hero-title .line:nth-child(2) span {
    animation-delay: 2.4s;
}

.hero-subtitle {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--c-text-muted);
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2.6s;
    font-family: var(--f-jp);
}

.hero-meta {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2.8s;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.meta-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--c-text-muted);
}

.meta-item .value {
    font-size: 1.1rem;
    font-family: var(--f-jp);
}


@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Intro */
.intro {
    padding: 15vh 0;
    background-color: var(--c-bg);
    /* Keep minimalist */
}

.intro-text {
    font-family: var(--f-jp);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 2;
    text-align: center;
    font-weight: 300;
    opacity: 0.9;
}

/* Supporters Ticker */
.supporters-ticker {
    padding: 2rem 0;
    background: var(--c-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 5%;
    margin-bottom: 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--c-text-muted);
}

.ticker-wrap {
    overflow: hidden;
    width: 100%;
}

.ticker-wrap + .ticker-wrap {
    margin-top: 0.3rem;
}

.ticker-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: tickerScroll 60s linear infinite;
}

.ticker-row-2 {
    animation: tickerScrollReverse 55s linear infinite;
}

@keyframes tickerScrollReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.ticker-name {
    flex-shrink: 0;
    padding: 0.4rem 1.5rem;
    font-family: var(--f-jp);
    font-size: 0.85rem;
    color: var(--c-text);
    opacity: 0.7;
    white-space: nowrap;
    position: relative;
}

.ticker-name::after {
    content: '·';
    position: absolute;
    right: 0;
    color: var(--c-text-muted);
    opacity: 0.3;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.supporters-ticker:hover .ticker-track {
    animation-play-state: paused;
}

.supporters-ticker:hover .ticker-name {
    opacity: 1;
}

/* Chat CTA Banner */
.chat-cta-banner {
    background: transparent;
    padding: 2rem 5%;
    display: flex;
    justify-content: center;
}

.chat-cta-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 2rem;
    background: transparent;
    border: 1px solid rgba(224, 122, 95, 0.3);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.chat-cta-link:hover {
    background: rgba(224, 122, 95, 0.1);
    border-color: var(--c-accent);
    transform: translateY(-2px);
}

.chat-cta-badge {
    font-family: var(--f-jp);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-accent);
    background: rgba(224, 122, 95, 0.15);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
}

.chat-cta-text {
    font-family: var(--f-en);
    font-size: 0.95rem;
    color: var(--c-text);
    letter-spacing: 0.03em;
}

.quote-author {
    display: block;
    font-size: 1rem;
    margin-top: 1.5rem;
    color: var(--c-text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Journey Route */
.route-section {
    padding: 15vh 0;
}

.route-section .section-header {
    margin-bottom: 4rem;
}

.route-map-wrapper {
    position: relative;
    width: 100%;
    height: 50vh;
    max-height: 500px;
    min-height: 200px;
    background: var(--c-bg);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

#route-map {
    width: 100%;
    height: 100%;
    z-index: 1;
    background: var(--c-bg);
}

/* Leaflet controls stay above map layers */
.route-map-wrapper .leaflet-top,
.route-map-wrapper .leaflet-bottom {
    z-index: 1000 !important;
}

/* Hide zoom controls on route map (home page) */
.route-section #route-map .leaflet-control-zoom {
    display: none;
}

/* Full size route map (map page) */
.route-map-full {
    height: 50vh;
    max-height: 500px;
    min-height: 200px;
}

.route-map-full #route-map .leaflet-control-zoom {
    display: block;
}

/* Route Overlay CTA Position */
.route-overlay-cta {
    position: relative;
    width: 100%;
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.route-overlay-cta .circle-btn {
    width: 200px;
    height: 200px;
}


.preview-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.preview-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text);
}

/* Journal Strip */
.journal-strip {
    padding: 10vh 0;
}

.strip-header {
    margin-bottom: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.section-label-wrapper {
    position: absolute;
    top: 4vh;
    left: 5%;
    z-index: 10;
}

.section-label {
    font-size: 0.7rem;
    font-weight: inherit;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--c-text-muted);
    margin: 0;
}

.horizontal-scroll-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 5%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .horizontal-scroll-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.journal-item {
    width: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

.journal-img {
    width: 100%;
    aspect-ratio: 3/4;
    background: #111;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.journal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out-expo);
    filter: grayscale(20%);
}

.journal-item:hover .journal-img img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.journal-info h3 {
    font-family: var(--f-jp);
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 0.5rem;
}

.journal-info .date {
    font-family: var(--f-jp);
    font-size: 0.8rem;
    color: var(--c-accent);
    letter-spacing: 0.1em;
}

/* Status Dashboard */
.status-dashboard {
    padding: 2rem 0;
    /* Positioned right after hero, keep tight */
    background: var(--c-surface);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.dash-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.dash-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.dash-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-muted);
}

.dash-value-group {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    font-family: var(--f-jp);
}

.dash-number {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
}

.currency,
.unit {
    font-size: 1rem;
    color: var(--c-text-muted);
}

/* Responsive Dash */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .dash-item:not(:last-child)::after {
        display: none;
    }
}

/* About Section */
.about-section {
    padding: 15vh 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

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

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.section-title {
    font-size: var(--fs-h2);
    font-weight: 300;
    line-height: 1.1;
}

.about-text {
    font-family: var(--f-jp);
    font-size: var(--fs-body);
    font-weight: 300;
    line-height: 1.8;
    color: var(--c-text-muted);
}

.text-link {
    color: var(--c-text);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    width: fit-content;
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--c-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.text-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Contact Page */
.contact-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.contact-content {
    max-width: 600px;
}

.contact-intro {
    font-family: var(--f-jp);
    font-size: 1.1rem;
    line-height: 2;
    color: var(--c-text-muted);
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-text-muted);
}

.contact-value {
    font-family: var(--f-en);
    font-size: 1.3rem;
    color: var(--c-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--c-accent);
}

/* Gallery Teaser (Marquee) */
.gallery-teaser {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-surface);
    overflow: hidden;
}

.gallery-marquee {
    position: absolute;
    width: 100%;
    transform: rotate(-5deg) scale(1.2);
    /* Slight angle for style */
    opacity: 0.6;
    /* Fade it back so CTA pops */
    transition: opacity 0.3s ease;
}

.gallery-teaser:hover .gallery-marquee {
    opacity: 0.8;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    width: 300px;
    height: 400px;
    flex-shrink: 0;
    overflow: hidden;
    background: #000;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.marquee-item:hover img {
    transform: scale(1.05);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assumes 2 sets of images, moves halfway */
}

.center-cta {
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-btn {
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--c-text);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.5s var(--ease-out-expo);
    background: transparent;
}

.circle-btn:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
    transform: scale(1.1);
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--c-text-muted);
}

.footer-nav a {
    margin-left: 2rem;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

section {
    position: relative;
}

.footer-nav a:hover {
    color: var(--c-text);
}

/* Utility Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Route Detail Page Styles */
.route-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 10vh 0;
}

.route-hero-content {
    text-align: center;
    margin-bottom: 4rem;
    z-index: 2;
    position: relative;
}

.page-title {
    font-family: var(--f-serif);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-family: var(--f-jp);
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--c-text-muted);
    font-weight: 300;
}

/* Route Details Section */
.route-details {
    padding: 15vh 0;
    background: var(--c-surface);
}

.section-title {
    font-size: var(--fs-h2);
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.route-intro {
    font-family: var(--f-jp);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 2;
    text-align: center;
    color: var(--c-text-muted);
    margin-bottom: 6rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Route Timeline */
.route-timeline {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.timeline-section {
    width: 100%;
}

.timeline-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 3rem;
    font-family: var(--f-jp);
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    font-family: var(--f-en);
}

.status-badge.visited {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-badge.planned {
    background: rgba(255, 255, 255, 0.1);
    color: var(--c-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Route List */
.route-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.route-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: var(--c-bg);
    border-left: 3px solid #4ade80;
    transition: all 0.3s ease;
    opacity: 1;
}

.route-item.planned {
    border-left-color: rgba(255, 255, 255, 0.2);
    opacity: 0.7;
}

.route-item.current {
    border-left-color: #ff3333;
    background: rgba(255, 51, 51, 0.05);
}

.current-badge {
    display: inline-block;
    background: #ff3333;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.route-item:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateX(0.5rem);
}

.route-number {
    font-family: var(--f-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-text-muted);
    min-width: 3rem;
    line-height: 1;
}

.route-info {
    flex: 1;
}

.route-city {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--f-en);
}

.country-jp {
    font-size: 0.7em;
    font-weight: 400;
    color: var(--c-text-muted);
    margin-left: 0.5em;
    font-family: var(--f-jp);
}

.route-desc {
    font-family: var(--f-jp);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--c-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .route-item {
        flex-direction: column;
        gap: 1rem;
    }

    .route-number {
        font-size: 1.5rem;
    }

    .timeline-heading {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Gallery Detail Page Styles */
.gallery-hero {
    padding: 15vh 0;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-cell {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--c-surface);
    position: relative;
    cursor: pointer;
}

.gallery-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-cell:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-cell:hover .gallery-caption {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 20px;
    color: #fff;
    font-size: 18px;
    text-align: center;
    max-width: 600px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.lightbox.active .lightbox-caption {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10001;
}

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

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 20px;
    z-index: 10001;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        font-size: 32px;
        padding: 10px;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 36px;
    }
    .lightbox-caption {
        font-size: 14px;
        padding: 0 20px;
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
}

/* About Page (standalone) */
.about-page {
    padding: 15vh 0;
    min-height: 80vh;
}

.about-page .page-header {
    margin-bottom: 3rem;
}

.about-content-full {
    max-width: 700px;
    margin: 0 auto;
    font-family: var(--f-jp);
    font-size: var(--fs-body);
    line-height: 2;
    color: var(--c-text-muted);
    text-align: center;
}

/* Journal Page */
.journal-page {
    padding: 15vh 0;
    min-height: 80vh;
}

.journal-page .page-header {
    margin-bottom: 3rem;
}

.journal-content {
    max-width: 700px;
    margin: 0 auto;
    font-family: var(--f-jp);
    font-size: var(--fs-body);
    line-height: 2;
    color: var(--c-text-muted);
    text-align: center;
}

/* 404 Error Page */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-page-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
}

.error-page-inner .text-link {
    margin-top: 2rem;
}

/* ============================================
   Touch Device: Hide Custom Cursor
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-circle {
        display: none !important;
    }
}

/* ============================================
   Tablet / Small Laptop — max-width: 768px
   ============================================ */
@media (max-width: 768px) {
    /* Header */
    .site-header {
        padding: 1rem 1.2rem;
    }

    /* Hero */
    .hero {
        padding: 80px 16px 40px;
    }

    #hero-map {
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: none;
    }

    .hero-meta {
        margin-top: 2rem;
        gap: 2rem;
    }

    /* Maps */
    .route-map-wrapper {
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: none;
    }

    .route-map-full {
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: none;
    }

    /* Gallery Marquee */
    .marquee-item {
        width: 200px;
        height: 270px;
    }

    .gallery-marquee {
        transform: rotate(-3deg) scale(1.1);
    }

    /* Circle CTA */
    .circle-btn {
        width: 140px;
        height: 140px;
        font-size: 1rem;
    }

    .route-overlay-cta .circle-btn {
        width: 140px;
        height: 140px;
    }

    /* Contact */
    .contact-section {
        padding: 80px 16px 60px;
    }

    .contact-value {
        font-size: 1.1rem;
        word-break: break-all;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .footer-nav a {
        margin-left: 0;
        margin: 0 0.8rem;
    }

    /* Nav overlay */
    .nav-label {
        font-size: clamp(2rem, 7vw, 4rem);
    }

    /* Intro */
    .intro-text {
        font-size: clamp(0.85rem, 2.8vw, 2rem);
    }

    .intro {
        padding: 10vh 0;
    }

    /* Gallery Teaser */
    .gallery-teaser {
        height: 80vh;
    }

    /* Lightbox touch targets */
    .lightbox-prev,
    .lightbox-next {
        padding: 24px;
        min-width: 48px;
        min-height: 48px;
    }

    .lightbox-close {
        min-width: 48px;
        min-height: 48px;
    }

    /* Sections padding */
    .route-section {
        padding: 10vh 0;
    }

    .about-section {
        padding: 10vh 0;
    }

    .journal-strip {
        padding: 8vh 0;
    }

    .route-details {
        padding: 10vh 0;
    }
}

/* ============================================
   Small Phone — max-width: 480px
   ============================================ */
@media (max-width: 480px) {
    /* Header */
    .site-header {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        padding: 70px 12px 30px;
    }

    #hero-map {
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    /* Maps */
    .route-map-wrapper {
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .route-map-full {
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    /* Marquee */
    .marquee-item {
        width: 160px;
        height: 220px;
    }

    /* Circle CTA */
    .circle-btn {
        width: 120px;
        height: 120px;
        font-size: 0.85rem;
    }

    .route-overlay-cta .circle-btn {
        width: 120px;
        height: 120px;
    }

    /* Dashboard */
    .dash-number {
        font-size: 2rem;
    }

    /* Sections padding */
    .intro {
        padding: 8vh 0;
    }

    .route-section {
        padding: 8vh 0;
    }

    .about-section {
        padding: 8vh 0;
    }

    .journal-strip {
        padding: 6vh 0;
    }

    .route-details {
        padding: 8vh 0;
    }

    .contact-section {
        padding: 70px 12px 40px;
    }

    .contact-value {
        font-size: 1rem;
    }

    /* Lightbox */
    .lightbox-content {
        max-width: 95vw;
    }

    .lightbox-content img {
        max-width: 95vw;
    }

    /* Gallery Teaser */
    .gallery-teaser {
        height: 70vh;
    }

    /* Nav */
    .nav-label {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

    .nav-link {
        gap: 1rem;
    }
}