/* ============================================
   JAPAN TRIP 2026 - Premium Light Theme
   ============================================ */
:root {
    --bg-page: #f5f5f7;
    --bg-card: #ffffff;
    --bg-card-alt: #fafbfc;
    --bg-surface: #eef0f3;
    --text-primary: #1d1d1f;
    --text-secondary: #555e68;
    --text-muted: #8e8e93;
    --border: rgba(0,0,0,0.07);
    --border-strong: rgba(0,0,0,0.12);
    --sakura: #d63384;
    --sakura-light: #ff6b9d;
    --sakura-bg: rgba(214,51,132,0.06);
    --sakura-border: rgba(214,51,132,0.15);
    --gold: #c98a0e;
    --gold-bg: rgba(201,138,14,0.08);
    --green: #198754;
    --green-bg: rgba(25,135,84,0.08);
    --blue: #0d6efd;
    --blue-bg: rgba(13,110,253,0.07);
    --purple: #6f42c1;
    --purple-bg: rgba(111,66,193,0.07);
    --orange: #e67e22;
    --red: #dc3545;
    --work-color: #0d6efd;
    --work-bg: rgba(13,110,253,0.06);
    --pto-color: #198754;
    --pto-bg: rgba(25,135,84,0.06);
    --weekend-color: #c98a0e;
    --weekend-bg: rgba(201,138,14,0.06);
    --holiday-color: #d63384;
    --holiday-bg: rgba(214,51,132,0.06);
    --travel-color: #6f42c1;
    --travel-bg: rgba(111,66,193,0.06);
    --font: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-jp-serif: 'Noto Serif JP', serif;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.07);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    background: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   LIVE HERO (inside sky header)
   ============================================ */
.live-hero {
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px 22px 16px;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.live-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.live-emoji { font-size: 2.2rem; line-height: 1; flex-shrink: 0; }

.live-status-text {
    font-family: var(--font-jp-serif);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
}

.live-call-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.live-call-tag.can-call {
    background: rgba(52,199,89,0.2);
    color: #6ee7a0;
    border: 1px solid rgba(52,199,89,0.25);
}

.live-call-tag.no-call {
    background: rgba(255,69,58,0.15);
    color: rgba(255,160,155,0.9);
    border: 1px solid rgba(255,69,58,0.2);
}

.live-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.live-info-item {
    text-align: center;
    padding: 8px 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

.live-info-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.live-info-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.live-weather-icon { font-size: 1rem; }
.live-weather-temp { font-weight: 800; }

.live-next-value {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Day progress bar */
.live-progress-row { padding-top: 0; }

.live-progress-bar {
    height: 5px;
    background: rgba(255,255,255,0.12);
    border-radius: 5px;
    position: relative;
    overflow: visible;
}

.live-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #ff4778);
    border-radius: 5px;
    transition: width 0.8s ease;
    width: 0%;
}

.live-progress-plane {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.82rem;
    transition: left 0.8s ease;
    left: 0%;
    filter: drop-shadow(0 0 6px rgba(255,107,157,0.6));
}

.live-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.35);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 5px;
    padding: 0 2px;
}

.live-progress-day {
    color: rgba(255,255,255,0.55);
    font-weight: 600;
}

/* Title area after live hero */
.header-title-area {
    padding-top: 4px;
}

/* Footer lang toggle - visible on mobile */
.footer-lang-toggle {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .live-hero { padding: 16px 16px 14px; }
    .live-info-value { font-size: 1rem; }
    .live-status-text { font-size: 1rem; }
}

@media (min-width: 769px) {
    .live-hero { max-width: 560px; }
    .live-info-grid { gap: 12px; }
}

/* ============================================
   SKY HEADER (kept dark for contrast)
   ============================================ */
#sky-header {
    position: relative;
    width: 100%;
    min-height: 440px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sky-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 44px 20px 32px;
    width: 100%;
    max-width: 820px;
}

.header-kanji {
    font-family: var(--font-jp-serif);
    font-size: 7rem;
    font-weight: 900;
    color: rgba(255,180,200,0.08);
    line-height: 1;
    margin-bottom: -20px;
    letter-spacing: 0.1em;
    user-select: none;
    pointer-events: none;
}

.title-glow {
    font-family: var(--font-jp-serif);
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #ffb3c6 35%, #ff6b9d 65%, #ff4778 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-shadow: none;
}

.subtitle-jp {
    font-family: var(--font-jp-serif);
    font-size: 1.15rem;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    letter-spacing: 6px;
    margin-bottom: 2px;
}

.subtitle-year {
    font-family: var(--font-jp-serif);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 26px;
}

/* Language toggle (footer) */
.lang-toggle {
    display: none;
}

.lang-btn {
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    letter-spacing: 0.5px;
}

.lang-btn.active {
    background: var(--sakura);
    color: #fff;
    border-color: var(--sakura);
}

.lang-btn:hover:not(.active) { color: var(--text-primary); border-color: var(--text-muted); }

/* Clocks */
.clocks-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}

.clock-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 14px 28px;
    min-width: 170px;
}

.clock-flag { font-size: 1.3rem; margin-bottom: 1px; }

.clock-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
}

.clock-time {
    font-size: 1.9rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
    letter-spacing: 1px;
}

.clock-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

.clock-separator { display: flex; align-items: center; }

.timezone-diff {
    font-size: 0.78rem;
    color: #ffd700;
    font-weight: 700;
    background: rgba(255,215,0,0.12);
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

/* Status banner */
.status-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 30px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
}

/* Countdown */
.countdown-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
}

.countdown-item {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Progress bar */
.progress-wrap {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.progress-bar {
    width: 220px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #ff4778, #e84a5f);
    border-radius: 4px;
    transition: width 0.6s ease;
    width: 0%;
}

.progress-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}

/* ============================================
   PHASE NAVIGATION
   ============================================ */
#phase-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
}

.phase-tabs {
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.phase-btn {
    flex: 1;
    min-width: 120px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 14px 12px 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.phase-btn:hover { color: var(--text-primary); }

.phase-btn.active {
    color: var(--sakura);
    border-bottom-color: var(--sakura);
}

.phase-emoji { font-size: 1.2rem; }
.phase-name { font-size: 0.78rem; font-weight: 600; }
.phase-dates { font-size: 0.62rem; color: var(--text-muted); }

/* ============================================
   TIMELINE
   ============================================ */
#timeline-wrapper {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 14px 16px 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--sakura-light) transparent;
}

#timeline-wrapper::-webkit-scrollbar { height: 3px; }
#timeline-wrapper::-webkit-scrollbar-track { background: transparent; }
#timeline-wrapper::-webkit-scrollbar-thumb { background: var(--sakura-light); border-radius: 3px; }

#timeline {
    display: flex;
    gap: 5px;
    min-width: min-content;
}

.timeline-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 10px 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    min-width: 54px;
    border: 2px solid transparent;
}

.timeline-day:hover { background: var(--bg-surface); }

.timeline-day.active {
    background: var(--sakura-bg);
    border-color: var(--sakura);
}

.timeline-day.today { box-shadow: 0 0 0 2px var(--sakura-light); }
.timeline-day.past { opacity: 0.4; }
.timeline-day.past .tl-date { text-decoration: line-through; }

.timeline-day .tl-dow {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.timeline-day .tl-date { font-size: 0.95rem; font-weight: 700; }
.timeline-day .tl-icon { font-size: 0.85rem; line-height: 1; }

.timeline-day .tl-status {
    font-size: 0.58rem;
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.tl-status.work { background: var(--work-bg); color: var(--work-color); }
.tl-status.vacances { background: var(--pto-bg); color: var(--pto-color); }
.tl-status.weekend { background: var(--weekend-bg); color: var(--weekend-color); }
.tl-status.holiday { background: var(--holiday-bg); color: var(--holiday-color); }
.tl-status.travel { background: var(--travel-bg); color: var(--travel-color); }

/* ============================================
   DAY HEADER
   ============================================ */
.day-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 12px;
}

.day-nav-arrows {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-arrow {
    border: none;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.nav-arrow:hover { background: var(--sakura); color: #fff; border-color: var(--sakura); }
.nav-arrow:disabled { opacity: 0.25; cursor: not-allowed; }
.nav-arrow:disabled:hover { background: var(--bg-card); color: var(--text-primary); border-color: var(--border); }

.day-header-info { flex: 1; text-align: center; }

#day-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.day-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.82rem;
}

#day-date-display { color: var(--text-secondary); }

#day-status-badge {
    padding: 3px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-work { background: var(--work-bg); color: var(--work-color); }
.status-vacances { background: var(--pto-bg); color: var(--pto-color); }
.status-weekend { background: var(--weekend-bg); color: var(--weekend-color); }
.status-holiday { background: var(--holiday-bg); color: var(--holiday-color); }
.status-travel { background: var(--travel-bg); color: var(--travel-color); }

/* ============================================
   MAIN CONTENT GRID
   ============================================ */
#main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.day-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 22px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.card + .card { margin-top: 20px; }
.card:hover { box-shadow: var(--shadow-md); }

.card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-icon { font-size: 1rem; }

/* ============================================
   FLIGHT CARD
   ============================================ */
.flight-segment {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--bg-card-alt);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.flight-segment:last-child { margin-bottom: 0; }

.flight-airline {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.flight-code {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.flight-route {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flight-point {
    text-align: center;
}

.flight-iata {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.flight-time {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.flight-city {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.flight-line {
    flex: 1;
    height: 1px;
    background: var(--border-strong);
    position: relative;
}

.flight-line::after {
    content: '✈';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    background: var(--bg-card-alt);
    padding: 0 6px;
}

.flight-layover {
    text-align: center;
    font-size: 0.72rem;
    color: var(--orange);
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(230,126,34,0.06);
    border-radius: var(--radius-xs);
    margin-bottom: 8px;
}

/* ============================================
   WEATHER CARD
   ============================================ */
.weather-card + .activities-card { margin-top: 24px; }

.weather-loading {
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 16px 0;
    text-align: center;
}

.weather-current {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.weather-temp-big { font-size: 2.8rem; font-weight: 800; line-height: 1; position: relative; }
.weather-actual-tag {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--green);
    background: var(--green-bg);
    padding: 2px 8px;
    border-radius: 8px;
    vertical-align: super;
    margin-left: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.weather-icon-big { font-size: 2.4rem; }

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.weather-forecast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 6px;
}

.forecast-day {
    text-align: center;
    padding: 10px 4px;
    background: var(--bg-card-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.forecast-day.fc-active {
    border-color: var(--sakura);
    background: var(--sakura-bg);
}

.forecast-day .fc-day { font-size: 0.65rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.forecast-day .fc-icon { font-size: 1.3rem; margin: 3px 0; }
.forecast-day .fc-temp { font-size: 0.8rem; font-weight: 700; }
.forecast-day .fc-temp-min { font-size: 0.68rem; color: var(--text-muted); }

/* ============================================
   ACTIVITIES
   ============================================ */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    margin-bottom: 4px;
}

.activity-item:hover {
    background: var(--bg-card-alt);
    border-color: var(--border);
}

.activity-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-strong);
    border-radius: 7px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-top: 2px;
    font-size: 0.7rem;
    color: transparent;
}

.activity-item.done .activity-checkbox {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

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

.activity-content { flex: 1; min-width: 0; }

.activity-type-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--sakura);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.activity-text {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    transition: var(--transition);
}

.activity-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
    display: none;
}

.activity-desc.show { display: block; }

.activity-desc-toggle {
    font-size: 0.7rem;
    color: var(--sakura);
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
    border: none;
    background: none;
    padding: 0;
    font-family: var(--font);
}

.activity-desc-toggle:hover { text-decoration: underline; }

.activity-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-surface);
}

.work-block {
    margin-top: 14px;
    padding: 14px 18px;
    background: var(--work-bg);
    border: 1px solid rgba(13,110,253,0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--work-color);
    font-weight: 500;
}

.work-block .work-hours { font-weight: 700; }

/* ============================================
   ACCOMMODATION
   ============================================ */
#main-content > .accommodation-card {
    margin-top: 20px;
}

.accommodation-detail {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.accommodation-detail .acc-name { font-weight: 600; color: var(--text-primary); }
.accommodation-detail .acc-address { font-size: 0.78rem; color: var(--text-muted); }
.accommodation-detail .acc-link {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--sakura);
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
    transition: var(--transition);
}
.accommodation-detail .acc-link:hover { text-decoration: underline; }

.acc-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.acc-photo {
    aspect-ratio: 4/3;
    border-radius: var(--radius-xs);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.acc-photo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* ============================================
   MAP
   ============================================ */
#map-container {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

#map {
    height: 420px;
    width: 100%;
    background: var(--bg-surface);
}

.leaflet-popup-content-wrapper {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-md) !important;
    border: 1px solid var(--border) !important;
}

.leaflet-popup-content {
    font-family: var(--font) !important;
    font-size: 0.82rem !important;
    margin: 10px 14px !important;
}

.leaflet-popup-tip {
    background: var(--bg-card) !important;
}

.custom-marker-label {
    background: var(--sakura);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    font-family: var(--font);
    border: 2px solid #fff;
}

.route-label { background: var(--purple); }

.leaflet-control-zoom a {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border) !important;
}

.leaflet-control-attribution {
    background: rgba(255,255,255,0.85) !important;
    font-size: 0.58rem !important;
}

/* ============================================
   PHOTOS GALLERY
   ============================================ */
#photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}

/* First image spans wider */
#photos-grid .photo-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.photo-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-surface);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    min-height: 120px;
}

.photo-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.photo-item .photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 10px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    font-size: 0.68rem;
    font-weight: 600;
    color: #fff;
}

.photos-loading {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 24px 0;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
}

.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: 75vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 16px 64px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: var(--transition);
}

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

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-prev:hover,.lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-caption {
    margin-top: 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.lightbox-desc {
    margin-top: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    text-align: center;
    max-width: 600px;
    line-height: 1.5;
}

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
    text-align: center;
    padding: 48px 20px 36px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

/* ============================================
   RETRO DAY COUNTER
   ============================================ */
.retro-counter {
    text-align: center;
    padding: 40px 20px 48px;
    background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-card) 100%);
}

.retro-label {
    font-family: var(--font-jp-serif);
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.retro-digits {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 8px;
}

.retro-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 68px;
    background: var(--text-primary);
    color: #fff;
    font-family: var(--font);
    font-size: 2.2rem;
    font-weight: 800;
    border-radius: var(--radius-xs);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    font-variant-numeric: tabular-nums;
}

.retro-digit::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.retro-digit.separator {
    width: auto;
    background: transparent;
    color: var(--text-primary);
    box-shadow: none;
    font-size: 1.5rem;
    padding: 0 2px;
}

.retro-digit.separator::after { display: none; }

.retro-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .retro-digit { width: 40px; height: 54px; font-size: 1.7rem; }
}

.footer-kanji {
    font-family: var(--font-jp-serif);
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.15;
    margin-bottom: 6px;
}
#footer-text { font-size: 0.82rem; color: var(--text-secondary); }
.footer-sub { font-family: var(--font-jp-serif); font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; letter-spacing: 3px; }

/* ============================================
   FUN FACT CARD
   ============================================ */
.fun-fact-card {
    background: linear-gradient(135deg, #fff5f8 0%, #fff9e6 100%);
    border: 1px solid rgba(214,51,132,0.1);
    position: relative;
    overflow: hidden;
    padding: 18px 20px 18px 52px;
}

.fun-fact-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 1.4rem;
    line-height: 1;
}

.fun-fact-label {
    font-family: var(--font-jp-serif);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--sakura);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.fun-fact-text {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
}

.fun-fact-jp {
    font-family: var(--font-jp-serif);
    display: inline;
    color: var(--sakura);
    font-weight: 600;
}

/* ============================================
   DAY DESCRIPTION CARD
   ============================================ */
.day-desc-card {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
}

.day-desc-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in { animation: fadeIn 0.35s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header-kanji { font-size: 4.5rem; margin-bottom: -14px; }
    .title-glow { font-size: 1.5rem; }
    .subtitle-jp { font-size: 0.95rem; letter-spacing: 4px; }
    .subtitle-year { font-size: 0.72rem; margin-bottom: 18px; }

    .clocks-row { flex-direction: column; gap: 6px; }
    .clock-card { min-width: 150px; padding: 10px 22px; }
    .clock-time { font-size: 1.5rem; }
    .clock-separator { transform: rotate(90deg); }

    .day-grid { grid-template-columns: 1fr; }
    #map { height: 300px; }

    #day-title { font-size: 1.2rem; }
    .nav-arrow { width: 38px; height: 38px; font-size: 1.4rem; }

    .phase-btn { padding: 10px 8px 8px; min-width: 80px; }
    .phase-name { font-size: 0.68rem; }
    .phase-dates { font-size: 0.58rem; }

    .timeline-day { min-width: 48px; padding: 6px 8px 4px; }

    #photos-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    #photos-grid .photo-item:first-child { grid-column: span 2; grid-row: span 1; }

    .status-banner { font-size: 0.78rem; padding: 7px 16px; }

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

    #main-content { padding: 0 16px 60px; }
    .day-header { padding: 20px 16px 8px; }
    .card { padding: 18px; }

    .flight-segment { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .header-kanji { font-size: 3.5rem; }
    .title-glow { font-size: 1.3rem; }
    .clock-time { font-size: 1.3rem; }
    #sky-header { min-height: 400px; }
    .day-grid { gap: 12px; }
    .fun-fact-card { padding: 16px 16px 16px 46px; }
}
