@import url("https://fontsapi.zeoseven.com/309/gb/result.css");
@import url("https://fontsapi.zeoseven.com/175/main/result.css");
@import url("https://fontsapi.zeoseven.com/474/main/result.css");

@font-face {
    font-family: "HYJieLongTaoHuaYuanW";
    src: url("../assets/fonts/HYJieLongTaoHuaYuanW.subset.woff2") format("woff2"),
         url("../assets/fonts/HYJieLongTaoHuaYuanW.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: "汉仪杰龙桃花源";
    src: url("../assets/fonts/HYJieLongTaoHuaYuanW.subset.woff2") format("woff2"),
         url("../assets/fonts/HYJieLongTaoHuaYuanW.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

:root {
    --gold: #d4a853;
    --gold-light: #f0d78c;
    --gold-dark: #a67c2e;
    --red-deep: #3d0c0c;
    --red-bg: #1f0808;
    --red-mid: #6b1a1a;
    --parchment: #2a1208;
    --text-light: #e8d5c0;
    --text-dim: #a08060;
    --bg-dark: #120606;
    --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", serif;
    --sultan-display: "HYJieLongTaoHuaYuanW", "汉仪杰龙桃花源", "jiangxizhuokai", "MaoKenWangFengYaSong", "KingHwaOldSong-GB", var(--serif);
    --sultan-title: "HYJieLongTaoHuaYuanW", "汉仪杰龙桃花源", "jiangxizhuokai", "MaoKenWangFengYaSong", "KingHwaOldSong-GB", var(--serif);
    --sultan-body: "喜鹊古字典", "MaoKenWangFengYaSong", "KingHwaOldSong-GB", var(--serif);
    --sultan-song: "KingHwaOldSong-GB", "MaoKenWangFengYaSong", var(--serif);

    /* Atmosphere control */
    --atm-warmth: 0;
    --atm-glow: 0;
    --atm-shadow: 1;
}

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

body {
    font-family: var(--sultan-body);
    color: var(--text-light);
    overflow-x: hidden;
}

.ornament-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}

/* Page container */
.page {
    max-width: 1220px;
    margin: 0 auto;
    padding: 64px 18px 0;
}

/* ===== Site Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem 0.8rem;
    padding-left: 3.5rem;
    z-index: 1000;
    pointer-events: none;
}

/* --- Cat hanging on map frame --- */
.site-logo {
    position: relative;
    display: inline-block;
    font-family: var(--sultan-display);
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 5px;
    color: #f0ece4;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7), 0 0 10px rgba(240,236,228,0.15);
    pointer-events: auto;
}

/* --- Cat head & tail peeking from map frame --- */
.map-cat-peek {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}
.peek-art {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* edge-appropriate sizes: landscape for top/bottom, portrait for left/right */
.map-cat-peek.--head.--edge-top,
.map-cat-peek.--head.--edge-bottom,
.map-cat-peek.--ear.--edge-top,
.map-cat-peek.--ear.--edge-bottom { width: 140px; height: 112px; }
.map-cat-peek.--head.--edge-left,
.map-cat-peek.--head.--edge-right,
.map-cat-peek.--ear.--edge-left,
.map-cat-peek.--ear.--edge-right { width: 112px; height: 140px; }

.map-cat-peek.--tail.--edge-top,
.map-cat-peek.--tail.--edge-bottom { width: 84px; height: 112px; }
.map-cat-peek.--tail.--edge-left,
.map-cat-peek.--tail.--edge-right { width: 112px; height: 84px; }

/* peek in / linger / retract (on the outer element) */
.map-cat-peek.--head.--edge-top { animation: peek-head-from-top 6s ease-in-out forwards; }
.map-cat-peek.--head.--edge-bottom { animation: peek-head-from-bottom 6s ease-in-out forwards; }
.map-cat-peek.--head.--edge-left { animation: peek-head-from-left 6s ease-in-out forwards; }
.map-cat-peek.--head.--edge-right { animation: peek-head-from-right 6s ease-in-out forwards; }
.map-cat-peek.--ear.--edge-top { animation: peek-from-top 6s ease-in-out forwards; }
.map-cat-peek.--ear.--edge-bottom { animation: peek-from-bottom 6s ease-in-out forwards; }
.map-cat-peek.--ear.--edge-left { animation: peek-from-left 6s ease-in-out forwards; }
.map-cat-peek.--ear.--edge-right { animation: peek-from-right 6s ease-in-out forwards; }
.map-cat-peek.--tail.--edge-top { animation: peek-tail-from-top 6s ease-in-out forwards; }
.map-cat-peek.--tail.--edge-bottom { animation: peek-tail-from-bottom 6s ease-in-out forwards; }
.map-cat-peek.--tail.--edge-left { animation: peek-tail-from-left 6s ease-in-out forwards; }
.map-cat-peek.--tail.--edge-right { animation: peek-tail-from-right 6s ease-in-out forwards; }

/* tail flick lives on the inner layer so it composes with the peek slide */
.peek-art.--flick { animation: tail-flick 2.6s ease-in-out infinite; }

@keyframes peek-ear-from-top {
    0% { transform: translateY(42%); }
    15% { transform: translateY(0); }
    80% { transform: translateY(0); }
    100% { transform: translateY(42%); }
}
@keyframes peek-ear-from-bottom {
    0% { transform: translateY(-42%); }
    15% { transform: translateY(0); }
    80% { transform: translateY(0); }
    100% { transform: translateY(-42%); }
}
@keyframes peek-ear-from-left {
    0% { transform: translateX(42%); }
    15% { transform: translateX(0); }
    80% { transform: translateX(0); }
    100% { transform: translateX(42%); }
}
@keyframes peek-ear-from-right {
    0% { transform: translateX(-42%); }
    15% { transform: translateX(0); }
    80% { transform: translateX(0); }
    100% { transform: translateX(-42%); }
}

@keyframes peek-head-from-top {
    0% { transform: translateY(100%); }
    15% { transform: translateY(18%); }
    80% { transform: translateY(18%); }
    100% { transform: translateY(100%); }
}
@keyframes peek-head-from-bottom {
    0% { transform: translateY(-100%); }
    15% { transform: translateY(-18%); }
    80% { transform: translateY(-18%); }
    100% { transform: translateY(-100%); }
}
@keyframes peek-head-from-left {
    0% { transform: translateX(100%); }
    15% { transform: translateX(18%); }
    80% { transform: translateX(18%); }
    100% { transform: translateX(100%); }
}
@keyframes peek-head-from-right {
    0% { transform: translateX(-100%); }
    15% { transform: translateX(-18%); }
    80% { transform: translateX(-18%); }
    100% { transform: translateX(-100%); }
}

@keyframes peek-from-top {
    0% { transform: translateY(100%); }
    15% { transform: translateY(38%); }
    80% { transform: translateY(38%); }
    100% { transform: translateY(100%); }
}
@keyframes peek-from-bottom {
    0% { transform: translateY(-100%); }
    15% { transform: translateY(-38%); }
    80% { transform: translateY(-38%); }
    100% { transform: translateY(-100%); }
}
@keyframes peek-from-left {
    0% { transform: translateX(100%); }
    15% { transform: translateX(38%); }
    80% { transform: translateX(38%); }
    100% { transform: translateX(100%); }
}
@keyframes peek-from-right {
    0% { transform: translateX(-100%); }
    15% { transform: translateX(-38%); }
    80% { transform: translateX(-38%); }
    100% { transform: translateX(-100%); }
}

/* tail reaches further out of the frame than head/ear */
@keyframes peek-tail-from-top {
    0% { transform: translateY(100%); }
    15% { transform: translateY(14%); }
    80% { transform: translateY(14%); }
    100% { transform: translateY(100%); }
}
@keyframes peek-tail-from-bottom {
    0% { transform: translateY(-100%); }
    15% { transform: translateY(-14%); }
    80% { transform: translateY(-14%); }
    100% { transform: translateY(-100%); }
}
@keyframes peek-tail-from-left {
    0% { transform: translateX(100%); }
    15% { transform: translateX(14%); }
    80% { transform: translateX(14%); }
    100% { transform: translateX(100%); }
}
@keyframes peek-tail-from-right {
    0% { transform: translateX(-100%); }
    15% { transform: translateX(-14%); }
    80% { transform: translateX(-14%); }
    100% { transform: translateX(-100%); }
}

@keyframes tail-flick {
    0%   { transform: rotate(0deg); }
    14%  { transform: rotate(18deg); }
    30%  { transform: rotate(-16deg); }
    46%  { transform: rotate(14deg); }
    62%  { transform: rotate(-11deg); }
    78%  { transform: rotate(8deg); }
    90%  { transform: rotate(-4deg); }
    100% { transform: rotate(0deg); }
}

@keyframes tail-sway-v {
    0% { transform: scaleX(1) rotate(0deg); }
    15% { transform: scaleX(0.85) rotate(10deg); }
    30% { transform: scaleX(1.05) rotate(-3deg); }
    50% { transform: scaleX(0.88) rotate(-8deg); }
    65% { transform: scaleX(1.02) rotate(4deg); }
    80% { transform: scaleX(0.9) rotate(6deg); }
    100% { transform: scaleX(1) rotate(0deg); }
}
@keyframes tail-sway-h {
    0% { transform: scaleY(1) rotate(0deg); }
    18% { transform: scaleY(0.85) rotate(-9deg); }
    35% { transform: scaleY(1.04) rotate(4deg); }
    52% { transform: scaleY(0.87) rotate(7deg); }
    70% { transform: scaleY(1.03) rotate(-5deg); }
    85% { transform: scaleY(0.92) rotate(-3deg); }
    100% { transform: scaleY(1) rotate(0deg); }
}

.site-logo .logo-no {
    font-family: "Noto Serif SC", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 0.78em;
    letter-spacing: 1px;
}

/* Section title */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 0 1.5rem;
}

.section-title h2 {
    font-family: var(--sultan-display);
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6), 0 0 20px rgba(212,168,83,0.15);
    background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title .td {
    color: var(--gold-dark);
    font-size: 0.9rem;
}

/* ===== Map block ===== */
.map-section { margin-bottom: 3.5rem; }

.map-frame {
    position: relative;
    isolation: isolate;
    width: min(100%, 1180px);
    height: clamp(600px, 64vh, 720px);
    margin: 0 auto;
    border-radius: 6px;
    overflow: visible;
    /* Only the map's own vignette + drop shadow live here. The gold border and
       ring shadows are drawn by ::after so they paint ABOVE the peeking cat
       (which sits at z-index:-1); otherwise the frame's own border paints below
       negative-z children and the cat's base pokes over the border. */
    box-shadow:
        inset 0 0 30px rgba(0,0,0,0.3),
        0 20px 60px rgba(0,0,0,0.55);
}

/* Decorative frame overlay — above the cat, below the corner ornaments/cartouche (z-index:700) */
.map-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--gold);
    border-radius: 6px;
    pointer-events: none;
    z-index: 600;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.7),
        0 0 0 5px rgba(42,18,8,0.9),
        0 0 0 6px rgba(212,168,83,0.35),
        0 0 0 9px rgba(30,12,6,0.9),
        0 0 0 10px rgba(212,168,83,0.15);
}

#map { width: 100%; height: 100%; overflow: hidden; border-radius: 4px; }
.leaflet-container { background: #2a1a10 !important; }
.leaflet-overlay-pane svg path {
    vector-effect: non-scaling-stroke;
}

.map-region-label,
.map-terrain-mark {
    pointer-events: none;
}

.map-region-label {
    position: relative;
    transform: translate(-50%, -50%);
    color: rgba(212, 164, 88, 0.52);
    font-family: var(--sultan-title);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 3px;
    white-space: nowrap;
    text-shadow:
        0 1px 2px rgba(0,0,0,0.95),
        0 0 8px rgba(22,8,4,0.85),
        0 0 16px rgba(212,168,83,0.12);
    opacity: 0.68;
}

.map-region-label::before,
.map-region-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,168,83,0.55));
}

.map-region-label::before { right: calc(100% + 8px); }
.map-region-label::after {
    left: calc(100% + 5px);
    transform: rotate(180deg);
}

.map-terrain-mark {
    transform: translate(-50%, -50%);
    color: rgba(36,18,12,0.72);
    font-size: 1.05rem;
    letter-spacing: -3px;
    text-shadow: 0 1px 0 rgba(196,145,73,0.12);
    opacity: 0.3;
}

.map-bg-motif {
    transform: translate(-50%, -50%);
    color: rgba(197, 143, 69, 0.13);
    font-size: 1.05rem;
    line-height: 1;
    text-shadow: 0 0 6px rgba(30, 6, 4, 0.6);
    pointer-events: none;
}

.map-bg-motif.motif-1 {
    color: rgba(222, 177, 92, 0.14);
    font-size: 0.95rem;
}

.map-bg-motif.motif-2 {
    color: rgba(126, 56, 35, 0.22);
    font-size: 1.35rem;
}

.map-water-label {
    transform: translate(-50%, -50%);
    color: rgba(177, 141, 84, 0.5);
    font-family: var(--sultan-song);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.85), 0 0 10px rgba(120,66,30,0.24);
    pointer-events: none;
}

.travel-route-glow {
    filter: drop-shadow(0 0 5px rgba(178,124,65,0.34));
}

.travel-route-line {
    animation: routePulse 4s linear infinite;
}

@keyframes routePulse {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -42; }
}

/* frame corners — larger ornate L-brackets */
.frame-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 700;
    pointer-events: none;
}

.frame-corner::before, .frame-corner::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

.fc-tl { top: 6px; left: 6px; }
.fc-tl::before { width: 28px; height: 2px; }
.fc-tl::after { width: 2px; height: 28px; }
.fc-tr { top: 6px; right: 6px; }
.fc-tr::before { width: 28px; height: 2px; top: 0; right: 0; background: linear-gradient(270deg, var(--gold), var(--gold-dark)); }
.fc-tr::after { width: 2px; height: 28px; top: 0; right: 0; }
.fc-bl { bottom: 6px; left: 6px; }
.fc-bl::before { width: 28px; height: 2px; bottom: 0; }
.fc-bl::after { width: 2px; height: 28px; bottom: 0; }
.fc-br { bottom: 6px; right: 6px; }
.fc-br::before { width: 28px; height: 2px; bottom: 0; right: 0; background: linear-gradient(270deg, var(--gold), var(--gold-dark)); }
.fc-br::after { width: 2px; height: 28px; bottom: 0; right: 0; }

/* cartouche */
.map-cartouche {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 700;
    background: rgba(18,6,6,0.92);
    border: 1px solid var(--gold);
    border-radius: 5px;
    padding: 0.35rem 1.6rem;
    text-align: center;
    backdrop-filter: blur(6px);
}

/* compass rose */
.compass-rose {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 700;
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(212,168,83,0.5);
    background: rgba(18,6,6,0.85);
    box-shadow: 0 0 12px rgba(0,0,0,0.4), inset 0 0 6px rgba(212,168,83,0.1);
    pointer-events: none;
}

.compass-n {
    font-family: var(--sultan-title);
    font-size: 0.55rem;
    color: var(--gold);
    letter-spacing: 0;
    line-height: 1;
    font-weight: 700;
}

.compass-ring {
    font-size: 0.7rem;
    color: var(--gold-dark);
    line-height: 1;
}

.map-cartouche span {
    font-family: var(--sultan-title);
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 3px;
}

.map-cartouche small {
    display: block;
    color: var(--text-dim);
    font-size: 0.62rem;
    margin-top: 1px;
}

/* ===== Event-nameplate markers (Sultan style — enhanced) ===== */
.event-marker-root { width: 0; height: 0; }

.event-marker {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, calc(-100% - 6px));
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.78));
    transition: filter 0.25s ease, transform 0.25s ease;
}

.event-plate {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 76px;
    min-height: 24px;
    background:
        linear-gradient(180deg, rgba(31, 25, 15, 0.98) 0%, rgba(5, 5, 4, 0.98) 42%, rgba(0, 0, 0, 0.96) 100%);
    border: 1px solid rgba(219, 187, 111, 0.86);
    border-radius: 2px;
    padding: 3px 10px 3px 22px;
    box-shadow:
        inset 0 1px 0 rgba(255, 234, 156, 0.28),
        inset 0 -1px 0 rgba(117, 78, 28, 0.4),
        inset 0 0 12px rgba(218, 180, 92, 0.08),
        0 0 0 1px rgba(5, 3, 2, 0.86),
        0 2px 7px rgba(0,0,0,0.86),
        0 0 10px rgba(189, 137, 61, 0.24);
    white-space: nowrap;
    overflow: visible;
}

.event-plate::before {
    content: '';
    position: absolute;
    inset: 2px 3px;
    border-top: 1px solid rgba(235, 203, 126, 0.35);
    border-bottom: 1px solid rgba(136, 92, 35, 0.38);
    border-radius: 1px;
    pointer-events: none;
}

.event-plate::after {
    content: '';
    position: absolute;
    inset: 0 0 0 15px;
    background:
        repeating-linear-gradient(90deg, rgba(235, 200, 111, 0.09) 0 1px, transparent 1px 5px),
        linear-gradient(90deg, rgba(255,255,255,0.08), transparent 24%, transparent 76%, rgba(0,0,0,0.24));
    opacity: 0.55;
    pointer-events: none;
}

.event-seal {
    position: absolute;
    z-index: 2;
    left: -8px;
    top: 50%;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(238, 210, 132, 0.9);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(20, 13, 6, 0.98) 0 22%, transparent 24%),
        radial-gradient(circle at 42% 32%, rgba(246, 224, 137, 0.68), transparent 22%),
        conic-gradient(from 45deg, #33200c, #d7b65d, #5b3914, #f0d785, #33200c);
    box-shadow:
        inset 0 0 0 2px rgba(13, 7, 3, 0.72),
        inset 0 0 0 4px rgba(226, 188, 93, 0.2),
        0 0 0 2px rgba(7, 4, 2, 0.8),
        0 1px 5px rgba(0,0,0,0.66);
    transform: translateY(-50%);
}

.event-seal::before,
.event-seal::after,
.event-seal span::before,
.event-seal span::after {
    content: '';
    position: absolute;
    background: rgba(235, 202, 122, 0.72);
}

.event-seal::before {
    left: 50%;
    top: 4px;
    bottom: 4px;
    width: 1px;
    transform: translateX(-50%);
}

.event-seal::after {
    top: 50%;
    left: 4px;
    right: 4px;
    height: 1px;
    transform: translateY(-50%);
}

.event-seal span::before {
    left: 6px;
    right: 6px;
    top: 50%;
    height: 1px;
    transform: translateY(-50%) rotate(45deg);
}

.event-seal span::after {
    left: 6px;
    right: 6px;
    top: 50%;
    height: 1px;
    transform: translateY(-50%) rotate(-45deg);
}

.event-name {
    position: relative;
    z-index: 1;
    font-family: var(--sultan-title);
    font-weight: 900;
    font-size: 0.76rem;
    letter-spacing: 0.8px;
    color: #efd88a;
    line-height: 1;
    text-shadow:
        0 1px 1px rgba(0,0,0,0.96),
        0 0 6px rgba(220, 171, 72, 0.34);
}

.event-time {
    position: absolute;
    z-index: 3;
    right: 3px;
    top: -13px;
    color: rgba(236, 206, 126, 0.82);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 0.44rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1;
    padding: 2px 4px;
    border: 1px solid rgba(205, 164, 83, 0.48);
    border-radius: 2px;
    background: rgba(3, 3, 2, 0.82);
    box-shadow: 0 1px 4px rgba(0,0,0,0.55);
}

.event-stem {
    width: 1px;
    height: 12px;
    background:
        repeating-linear-gradient(180deg, rgba(226, 190, 98, 0.85) 0 2px, rgba(47, 33, 16, 0.72) 2px 4px);
    border-radius: 1px;
    box-shadow: 0 0 5px rgba(216, 170, 90, 0.32);
}

.event-gem {
    position: relative;
    width: 16px;
    height: 16px;
    background: rgba(24,10,6,0.85);
    border: 1.5px solid rgba(212,168,83,0.7);
    border-radius: 50%;
    transform: none;
    box-shadow:
        0 0 0 2px rgba(31, 7, 5, 0.62),
        0 0 8px rgba(202,141,73,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Paw print in gem */
.event-gem::before {
    content: '';
    position: absolute;
    width: 11px;
    height: 11px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4a853'%3E%3Ccircle cx='12' cy='14' r='5'/%3E%3Ccircle cx='6' cy='7' r='2.5'/%3E%3Ccircle cx='18' cy='7' r='2.5'/%3E%3Ccircle cx='9' cy='4' r='2'/%3E%3Ccircle cx='15' cy='4' r='2'/%3E%3C/svg%3E") center/contain no-repeat;
    border-radius: 0;
}

@keyframes gemGlow {
    0%, 100% { box-shadow: 0 0 7px rgba(202,141,73,0.6), 0 0 14px rgba(54,17,10,0.6); }
    50% { box-shadow: 0 0 13px rgba(230,188,105,0.86), 0 0 22px rgba(80,25,12,0.7); }
}

.event-marker:hover {
    transform: translate(-50%, calc(-100% - 9px));
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.8)) drop-shadow(0 0 14px rgba(213, 169, 82, 0.36));
}

.event-marker:hover .event-plate {
    border-color: rgba(255, 230, 144, 0.95);
    box-shadow:
        inset 0 0 18px rgba(255, 228, 135, 0.16),
        0 0 0 1px rgba(5, 3, 2, 0.86),
        0 0 16px rgba(212,168,83,0.34);
}

.event-marker:hover .event-gem { transform: scale(1.2); }

/* ===== 地点卡牌墙 (Sultan card wall — enhanced) ===== */
.cards-section { margin-bottom: 3.5rem; }

.card-rail {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 12px 8px 24px;
}
.card-rail::-webkit-scrollbar { height: 5px; }
.card-rail::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

.loc-card {
    flex: 0 0 auto;
    width: 192px;
    cursor: pointer;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
    opacity: 0;
    transform: translateY(20px);
    animation: cardIn 0.6s ease forwards;
    transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1), filter 0.4s;
}

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

.loc-card img { width: 100%; display: block; border-radius: 4px; }

.loc-card:hover {
    transform: translateY(-14px) scale(1.05);
    filter: drop-shadow(0 18px 30px rgba(0,0,0,0.65)) drop-shadow(0 0 20px rgba(212,168,83,0.6));
}

.loc-card-cap {
    text-align: center;
    margin-top: 8px;
    font-family: monospace;
    font-size: 0.66rem;
    letter-spacing: 2px;
    color: var(--gold-dark);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ===== Timeline ===== */
.timeline-section { padding-bottom: 2rem; }

.timeline-vertical {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    padding: 0 6px;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 189px;
    top: 0;
    bottom: 0;
    width: 3px;
    background:
        repeating-linear-gradient(180deg, rgba(221, 179, 91, 0.74) 0 6px, transparent 6px 12px),
        linear-gradient(180deg, rgba(76, 29, 14, 0.72), rgba(76, 29, 14, 0.48) 85%, transparent);
}

.tl-node {
    position: relative;
    display: grid;
    grid-template-columns: 166px 46px minmax(0, 1fr);
    align-items: center;
    gap: 0;
    min-height: 326px;
    margin-bottom: 2rem;
    padding-left: 0;
}

.tl-dot {
    position: relative;
    left: auto;
    top: auto;
    justify-self: center;
    align-self: center;
    z-index: 1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(24,10,6,0.9);
    border: 1.5px solid rgba(212,168,83,0.6);
    box-shadow:
        0 0 0 3px rgba(24,7,5,0.74),
        0 0 12px rgba(212,168,83,0.34);
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-dot::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4a853'%3E%3Ccircle cx='12' cy='14' r='5'/%3E%3Ccircle cx='6' cy='7' r='2.5'/%3E%3Ccircle cx='18' cy='7' r='2.5'/%3E%3Ccircle cx='9' cy='4' r='2'/%3E%3Ccircle cx='15' cy='4' r='2'/%3E%3C/svg%3E") center/contain no-repeat;
    transform: none;
    border: none;
    inset: auto;
}

.journey-card {
    position: relative;
    justify-self: center;
    width: 150px;
    aspect-ratio: 472 / 1026;
    border: 0;
    border-radius: 12px;
    padding: 0;
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(0 14px 20px rgba(0,0,0,0.62));
    opacity: 0;
    transform: translateY(18px);
    animation: cardIn 0.55s ease forwards;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.journey-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.journey-card::after {
    content: '';
    position: absolute;
    inset: 3.5% 5.5%;
    border-radius: 10px;
    box-shadow:
        inset 0 0 22px rgba(0,0,0,0.3),
        inset 0 0 0 1px rgba(255,227,128,0.1);
    pointer-events: none;
}

.journey-card:hover,
.journey-card:focus-visible {
    transform: translateY(-6px) scale(1.025);
    filter: drop-shadow(0 18px 24px rgba(0,0,0,0.68)) drop-shadow(0 0 18px rgba(212,168,83,0.28));
    outline: none;
}

.journey-card-title {
    position: absolute;
    top: 7.8%;
    left: 10%;
    right: 10%;
    color: #111;
    font-family: var(--sultan-title);
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.26),
        0 0 5px rgba(255,220,120,0.22);
    pointer-events: none;
}

.journey-card-date {
    position: absolute;
    left: 13%;
    right: 13%;
    bottom: 7.5%;
    color: rgba(28,16,6,0.86);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 1px 0 rgba(245,210,126,0.18);
    pointer-events: none;
}

.tl-entry {
    min-width: 0;
}

.tl-date {
    position: relative;
    width: fit-content;
    min-width: 112px;
    font-size: 0.72rem;
    color: #160703;
    letter-spacing: 1.2px;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-weight: 900;
    margin-bottom: 0.44rem;
    padding: 5px 12px 5px 30px;
    border: 1px solid rgba(233, 199, 112, 0.72);
    border-radius: 4px;
    background:
        radial-gradient(circle at 23px 50%, rgba(255,236,149,0.8) 0 3px, rgba(38,12,6,0.88) 3px 4px, transparent 5px),
        linear-gradient(180deg, #d6b65e, #916323);
    box-shadow:
        inset 0 1px 0 rgba(255, 241, 164, 0.28),
        inset 0 -1px 0 rgba(47, 12, 5, 0.55),
        0 2px 8px rgba(0,0,0,0.36);
}

.tl-date::before {
    content: '✦';
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(29, 9, 4, 0.82);
    font-size: 0.62rem;
}

.tl-card {
    background:
        radial-gradient(circle at 22% 12%, rgba(192, 137, 65, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(58,18,10,0.86), rgba(22,7,5,0.9));
    border: 1px solid rgba(212,168,83,0.26);
    border-radius: 6px;
    padding: 0.8rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.tl-card:hover {
    border-color: var(--gold);
    box-shadow: 0 6px 20px rgba(212,168,83,0.1);
}

.tl-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.tl-photos img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid rgba(212,168,83,0.2);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.tl-photos img:hover {
    transform: scale(1.03);
    border-color: var(--gold);
}

/* Thumbnail wrapper so the favorite star can sit in the corner */
.tl-photo {
    position: relative;
    display: block;
    border-radius: 5px;
}

.tl-fav-star {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    width: 26px;
    height: 26px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    border: none;
    background: none;
    cursor: pointer;
    color: rgba(255,255,255,0.75);
    text-shadow: 0 1px 4px rgba(0,0,0,0.85);
    opacity: 0.55;
    transition: opacity 0.18s, transform 0.18s, color 0.18s;
}

.tl-photo:hover .tl-fav-star,
.tl-fav-star:focus-visible {
    opacity: 1;
}

.tl-fav-star:hover {
    color: var(--gold-light);
    transform: scale(1.12);
}

.tl-fav-star.is-fav {
    opacity: 1;
    color: var(--gold);
    text-shadow: 0 0 8px rgba(212,168,83,0.7), 0 1px 3px rgba(0,0,0,0.85);
}

/* Touch devices have no hover — keep the star visible */
@media (hover: none) {
    .tl-fav-star {
        opacity: 0.7;
    }
}

.tl-view-all {
    display: block;
    margin: 0.6rem auto 0;
    background: none;
    border: 1px solid rgba(212,168,83,0.3);
    color: var(--gold);
    font-family: var(--sultan-body);
    font-size: 0.78rem;
    padding: 0.35rem 1rem;
    border-radius: 14px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: border-color 0.2s, background 0.2s;
}

.tl-view-all:hover {
    border-color: var(--gold-light);
    background: rgba(212,168,83,0.08);
}

.tl-photo-more {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.tl-photo-more img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: brightness(0.4);
}

.tl-photo-more span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.tl-photos .tl-photo-empty {
    aspect-ratio: 4/3;
    border-radius: 5px;
    border: 1px dashed rgba(212,168,83,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--text-dim);
    flex-shrink: 0;
    background: rgba(61,12,12,0.3);
}

.tl-empty-msg {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
    opacity: 0.6;
}

/* ===== Photo Popup ===== */
.photo-popup { display: none; position: fixed; inset: 0; z-index: 2000; }
.photo-popup.active { display: flex; align-items: center; justify-content: center; }
.popup-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.9); }

.popup-content {
    position: relative;
    width: 88vw;
    max-width: 700px;
    max-height: 85vh;
    background: var(--bg-dark);
    border: 1px solid rgba(212,168,83,0.35);
    border-radius: 10px;
    overflow-y: auto;
    padding: 1.8rem;
}

.popup-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    background: none;
    border: 1px solid rgba(212,168,83,0.3);
    color: var(--gold);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
}

.popup-close:hover { background: rgba(212,168,83,0.1); }

.popup-header { text-align: center; margin-bottom: 1.2rem; }
.popup-header h3 { color: var(--gold-light); font-family: var(--sultan-title); font-size: 1.1rem; letter-spacing: 2px; }
.popup-header p { font-size: 0.78rem; opacity: 0.5; margin-top: 0.2rem; }

.popup-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.7rem;
}

.popup-photos img {
    width: 100%;
    border-radius: 5px;
    border: 1px solid rgba(212,168,83,0.12);
    cursor: pointer;
    transition: transform 0.2s;
}

.popup-photos img:hover { transform: scale(1.02); }

.popup-photos .placeholder-img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61,12,12,0.3);
    border: 1px dashed rgba(212,168,83,0.2);
    border-radius: 5px;
    color: var(--text-dim);
    font-size: 0.72rem;
}

/* City popup spot sections */
.city-spot-section {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212,168,83,0.12);
}
.city-spot-section:last-child { border-bottom: none; margin-bottom: 0; }
.city-spot-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
}
.city-spot-name {
    font-family: var(--cn-serif);
    font-size: 0.95rem;
    color: var(--gold);
}
.city-spot-date {
    font-size: 0.72rem;
    color: var(--text-dim);
    opacity: 0.7;
}
.city-spot-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
}
.city-spot-photos img {
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
    aspect-ratio: 1;
    object-fit: cover;
}
.city-spot-photos img:hover { transform: scale(1.02); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 2, 2, 0.94);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    z-index: 2;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(20, 8, 5, 0.7);
    border: 1px solid rgba(212,168,83,0.25);
    color: var(--gold-light);
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.lightbox-nav:hover {
    background: rgba(40, 14, 8, 0.9);
    border-color: var(--gold);
}

.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }

.lightbox-main {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-main img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    background: rgba(20, 8, 5, 0.75);
    border: 1px solid rgba(212,168,83,0.2);
    border-radius: 24px;
}

.lightbox-counter {
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.lightbox-fav {
    background: none;
    border: 1px solid rgba(212,168,83,0.25);
    border-radius: 16px;
    padding: 0.3rem 0.8rem;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    transition: border-color 0.2s, color 0.2s;
}

.lightbox-fav:hover {
    border-color: var(--gold);
}

.lightbox-fav .fav-icon {
    font-size: 1.1rem;
    transition: color 0.2s;
}

.lightbox-fav.is-fav {
    border-color: #e25555;
    color: #f06060;
}

.lightbox-fav.is-fav .fav-icon {
    color: #e84040;
}

@media (max-width: 600px) {
    .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .lightbox-main img {
        max-width: 95vw;
        max-height: 75vh;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--gold-dark);
    letter-spacing: 3px;
    font-size: 0.8rem;
    position: relative;
}

.footer-cat {
    display: block;
    width: 48px;
    height: 32px;
    margin: 0 auto 0.8rem;
    opacity: 0.5;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 50' fill='%23d4a853'%3E%3Cpath d='M10 48c0 0 2-8 8-12 3-2 5-3 8-3h28c3 0 5 1 8 3 6 4 8 12 8 12H10z'/%3E%3Cellipse cx='40' cy='35' rx='18' ry='12'/%3E%3Ccircle cx='40' cy='28' r='10'/%3E%3Cpath d='M30 18l-4-14 10 8z'/%3E%3Cpath d='M50 18l4-14-10 8z'/%3E%3Ccircle cx='36' cy='27' r='1.5'/%3E%3Ccircle cx='44' cy='27' r='1.5'/%3E%3Cellipse cx='40' cy='30' rx='1.5' ry='1'/%3E%3Cpath d='M65 40q8-2 14 1' stroke='%23d4a853' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M66 43q10 0 13 4' stroke='%23d4a853' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Leaflet attribution toned down */
.leaflet-control-attribution {
    background: rgba(18,6,6,0.6) !important;
    color: var(--text-dim) !important;
    font-size: 0.55rem !important;
}
.leaflet-control-attribution a { color: var(--gold-dark) !important; }

/* ===== Album slideshow / screensaver — fills the map frame exactly ===== */
/* Stage wraps the frame so the mode arrows can sit just outside its left/right edge.
   The horizontal padding is the arrows' home — a guaranteed gap outside the frame's
   gold border that survives every viewport width, so the arrows never overlap it. */
.map-stage {
    position: relative;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 0 56px;
    box-sizing: content-box;
}
.map-stage .map-frame {
    width: 100%;
}

/* Mode arrows: right = switch to slideshow, left = switch back to map.
   They live outside the frame and gently nudge to invite a click. */
.mode-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 720;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 8, 5, 0.72);
    border: 1px solid rgba(212,168,83,0.35);
    color: var(--gold-light);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, transform 0.3s, background 0.2s, border-color 0.2s, box-shadow 0.3s;
}
.mode-arrow:hover {
    border-color: var(--gold);
    background: rgba(40, 14, 8, 0.92);
    box-shadow: 0 0 16px rgba(212,168,83,0.4);
}
.mode-arrow-right {
    right: -38px;
    animation: mode-nudge-r 2.4s ease-in-out infinite;
}
.mode-arrow-left {
    left: -38px;
    animation: mode-nudge-l 2.4s ease-in-out infinite;
}
.mode-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.mode-arrow-right.is-hidden { transform: translateY(-50%) translateX(12px); }
.mode-arrow-left.is-hidden  { transform: translateY(-50%) translateX(-12px); }

@keyframes mode-nudge-r {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50%      { transform: translateY(-50%) translateX(5px); }
}
@keyframes mode-nudge-l {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50%      { transform: translateY(-50%) translateX(-5px); }
}
@media (prefers-reduced-motion: reduce) {
    .mode-arrow { animation: none; }
}

.slideshow {
    position: absolute;
    inset: 0;
    z-index: 500; /* below the gold frame overlay (::after, z-index 600) */
    border-radius: 4px;
    overflow: hidden;
    background: #0c0504;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.slideshow.active {
    opacity: 1;
    pointer-events: auto;
}
/* In slideshow mode, hide the map's compass + cartouche so photos read cleanly */
body.slideshow-open .compass-rose,
body.slideshow-open .map-cartouche {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.slideshow-stage {
    position: absolute;
    inset: 0;
}
.ss-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.85s ease, transform 6s ease-out;
    background: #0c0504;
}
.ss-img.ss-enter { opacity: 0; transform: scale(1.06); }
.ss-img.ss-leave { opacity: 0; transition: opacity 0.85s ease; }
/* thumbnail stand-in: softened while it stands in for the full-res photo */
.ss-img.ss-lowres { filter: blur(8px); }
.ss-img { filter: blur(0); transition: opacity 0.85s ease, transform 6s ease-out, filter 0.5s ease; }

.slideshow-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 2.4rem 1.4rem 1.1rem;
    color: var(--gold-light);
    font-family: var(--sultan-display);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: center;
    background: linear-gradient(to top, rgba(6,2,2,0.82), transparent);
    pointer-events: none;
}
.slideshow-caption.is-empty { opacity: 0; }

.slideshow-controls {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 0.6rem;
    opacity: 0;
    transition: opacity 0.25s;
}
.slideshow:hover .slideshow-controls { opacity: 1; }
.ss-ctrl {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(20, 8, 5, 0.72);
    border: 1px solid rgba(212,168,83,0.3);
    color: var(--gold-light);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}
.ss-ctrl:hover { background: rgba(40, 14, 8, 0.9); border-color: var(--gold); }

.slideshow-hint {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 6;
    max-width: 62%;
    padding: 0.6rem 1rem;
    text-align: right;
    color: var(--gold-light);
    font-size: 0.85rem;
    letter-spacing: 1px;
    line-height: 1.6;
    background: rgba(12, 5, 4, 0.9);
    border: 1px solid rgba(212,168,83,0.3);
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.5);
    transition: opacity 0.6s ease;
}
.slideshow-hint.is-gone {
    opacity: 0;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 600px) {
    .page { padding: 80px 12px 0; }
    .navbar { padding: 0.5rem 1rem; }
    .logo { font-size: 0.95rem; }
    .section-title h2 { font-size: 1.2rem; letter-spacing: 3px; }
    .map-frame { height: 500px; }
    .event-plate {
        min-width: 70px;
        min-height: 23px;
        gap: 5px;
        padding: 3px 8px 3px 19px;
    }
    .event-seal { left: -6px; width: 20px; height: 20px; }
    .event-name { font-size: 0.72rem; letter-spacing: 0.5px; }
    .event-time { display: none; }
    .event-stem { height: 11px; }
    .timeline-vertical { padding: 0; }
    .timeline-vertical::before { left: 121px; }
    .tl-node {
        grid-template-columns: 106px 30px minmax(0, 1fr);
        min-height: 236px;
        margin-bottom: 1.5rem;
    }
    .journey-card { width: 102px; }
    .journey-card-title { font-size: 1.1rem; top: 8.5%; }
    .journey-card-date { font-size: 0.48rem; letter-spacing: 0; }
    .tl-card { padding: 0.5rem; }
    .tl-photos {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.4rem;
    }
    .popup-content { width: 95vw; padding: 1.2rem; }
    /* keep the mode arrows on-screen when the frame nearly fills the viewport */
    .mode-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
    .mode-arrow-right { right: 4px; }
    .mode-arrow-left { left: 4px; }
    @keyframes mode-nudge-r {
        0%, 100% { transform: translateY(-50%) translateX(0); }
        50%      { transform: translateY(-50%) translateX(4px); }
    }
    @keyframes mode-nudge-l {
        0%, 100% { transform: translateY(-50%) translateX(0); }
        50%      { transform: translateY(-50%) translateX(-4px); }
    }
}
