/* ==========================================================================
   MAIN STYLE SHEET - MARIA'S NAME DAY VOYAGE
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-night: #0a031c;
    --bg-dusk: #1f0b3d;
    --bg-sunset: #4a154b;
    --rose-sunset: #e23e57;
    --orange-sunset: #ff7e67;
    --peach-sunset: #ffbc97;
    --gold: #ffd56b;
    --sea-deep: #0e2a4a;
    --sea-mid: #1c5270;
    --sea-foam: #e0f2f1;
    --parchment: #fcf1d7;
    --parchment-dark: #b88f5c;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dark: #2d1a0e;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-cursive: 'Great Vibes', cursive;
    
    /* UI Values */
    --glass-bg: rgba(31, 11, 61, 0.45);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    --border-radius-lg: 24px;
    --border-radius-md: 12px;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-sans);
    background-color: var(--bg-night);
    color: var(--text-light);
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, var(--bg-night) 0%, var(--bg-dusk) 40%, var(--bg-sunset) 75%, var(--orange-sunset) 100%);
    background-attachment: fixed;
    line-height: 1.6;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-night);
}
::-webkit-scrollbar-thumb {
    background: var(--rose-sunset);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--orange-sunset);
}

/* Canvas Starfield / Sparkles Backdrop */
.starfield-canvas, .particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   LOCKED STATE LAYOUT
   ========================================== */
.locked-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, #03000a 0%, var(--bg-night) 50%, #17072d 100%);
    overflow: hidden;
}

.fairy-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
}

.fairy-light {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px 4px var(--gold);
    animation: bulb-glow-gold 2s infinite alternate;
}

.fairy-light--rose {
    background-color: var(--rose-sunset);
    box-shadow: 0 0 10px 4px var(--rose-sunset);
    animation: bulb-glow-rose 2s infinite alternate 0.5s;
}

.fairy-light--peach {
    background-color: var(--peach-sunset);
    box-shadow: 0 0 10px 4px var(--peach-sunset);
    animation: bulb-glow-peach 2s infinite alternate 1s;
}

.locked-content {
    z-index: 10;
    max-width: 600px;
    padding: 20px;
}

.locked-name {
    font-family: var(--font-cursive);
    font-size: clamp(3.5rem, 8vw, 6rem);
    color: var(--peach-sunset);
    text-shadow: 0 0 20px rgba(255, 188, 151, 0.4);
    margin-bottom: 20px;
    font-weight: 400;
}

/* Countdown Style (Tick animation ready) */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px var(--glass-shadow);
}

.countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}

.countdown__digits {
    position: relative;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    height: 1.2em;
    line-height: 1.2em;
    overflow: hidden;
    color: var(--text-light);
}

.countdown__digit-current, .countdown__digit-next {
    display: block;
    height: 1.2em;
    line-height: 1.2em;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.countdown__digits--ticking .countdown__digit-current {
    transform: translateY(-100%);
}

.countdown__digits--ticking .countdown__digit-next {
    transform: translateY(-100%);
}

.countdown-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 5px;
}

.countdown__separator {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: var(--font-serif);
    color: rgba(255,255,255,0.4);
    line-height: 1;
}

.locked-message {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.locked-heart {
    color: var(--rose-sunset);
    width: 48px;
    height: 48px;
    margin: 0 auto;
    filter: drop-shadow(0 0 10px rgba(226, 62, 87, 0.6));
}

/* ==========================================
   UNLOCKED STRUCTURE (PAGE WRAPPER)
   ========================================== */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Page Entrance Transition */
.page-enter {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.page-enter--active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 3, 28, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.4s ease, background 0.4s ease;
}

.navbar--hidden {
    transform: translateY(-100%);
}

.navbar__brand {
    font-family: var(--font-cursive);
    font-size: 2rem;
    color: var(--peach-sunset);
    text-decoration: none;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.navbar__links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar__link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.navbar__link:hover {
    color: var(--orange-sunset);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--orange-sunset);
    transition: width 0.3s ease;
}

.navbar__link:hover::after {
    width: 100%;
}

.navbar__link--active {
    color: var(--orange-sunset);
}

.navbar__link--active::after {
    width: 100%;
}

/* Floating Audio Compasses (Universal for Unlocked subpages) */
.nav-audio-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.nav-audio-btn:hover {
    color: var(--orange-sunset);
    border-color: var(--orange-sunset);
    transform: rotate(20deg) scale(1.05);
}

.nav-audio-btn.playing svg {
    animation: compass-spin 8s linear infinite;
}

/* ==========================================
   UNLOCKED HOMEPAGE (INDEX.HTML HERO)
   ========================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    position: relative;
}

.hero-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px var(--glass-shadow);
    max-width: 700px;
    z-index: 10;
}

.text-hero {
    font-family: var(--font-cursive);
    font-size: clamp(3.8rem, 8vw, 6.2rem);
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #ffffff, var(--peach-sunset));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__divider {
    width: 80px;
    height: 2px;
    background: var(--orange-sunset);
    border: none;
    margin: 20px auto;
}

.hero__subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--peach-sunset);
    margin-bottom: 35px;
}

.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: var(--bg-night);
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange-sunset) 100%);
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 8px 25px rgba(255, 126, 103, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 126, 103, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 5;
}

.scroll-indicator--hidden {
    opacity: 0;
}

/* ==========================================
   UNIVERSAL INNER PAGES STYLING
   ========================================== */
.inner-page {
    padding: 120px 20px 80px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    flex-grow: 1;
    z-index: 10;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--text-light);
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-style: italic;
    font-family: var(--font-serif);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    padding: 30px 20px;
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: #03000a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

/* ==========================================
   VOYAGE MAP LAYOUTS & COMPASSES
   ========================================== */
.voyage-map {
    position: relative;
    max-width: 1000px;
    height: 600px;
    margin: 0 auto;
    background: radial-gradient(circle at center, rgba(31, 11, 61, 0.6) 0%, rgba(10, 3, 28, 0.8) 100%);
    border: 2px solid rgba(255, 126, 103, 0.25);
    border-radius: var(--border-radius-lg);
    box-shadow: inset 0 0 60px rgba(0,0,0,0.5), 0 20px 50px rgba(0,0,0,0.4);
    overflow: hidden;
}

.map-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 126, 103, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 126, 103, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.compass-rose {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 120px;
    height: 120px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" fill="none" stroke="rgba(255, 126, 103, 0.15)" stroke-width="1"/><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255, 126, 103, 0.1)" stroke-dasharray="2 2" stroke-width="1"/><path d="M50,2 L54,46 L98,50 L54,54 L50,98 L46,54 L2,50 L46,46 Z" fill="rgba(255, 126, 103, 0.08)" stroke="rgba(255, 126, 103, 0.2)" stroke-width="1"/><path d="M50,15 L52,48 L85,50 L52,52 L50,85 L48,52 L15,50 L48,48 Z" fill="rgba(255, 213, 110, 0.05)" stroke="rgba(255, 213, 110, 0.15)" stroke-width="1"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.6;
    pointer-events: none;
}

.map-route-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.route-line {
    stroke-dashoffset: 0;
    animation: dash-flow 40s linear infinite;
}

.boat-group {
    transform-origin: 0 0;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

/* Islands on the Map */
.map-island {
    position: absolute;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    width: 130px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-island:hover {
    transform: translateY(-8px) scale(1.08);
}

.island-icon-container {
    position: relative;
    width: 90px;
    height: 90px;
}

.island-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
    transition: all 0.3s ease;
}

.map-island:hover .island-svg {
    filter: drop-shadow(0 10px 20px rgba(255, 126, 103, 0.3));
}

.island-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 126, 103, 0.4);
    opacity: 0;
    pointer-events: none;
    animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.map-island:hover .island-pulse {
    animation-duration: 1.5s;
}

.island-title {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.island-subtitle {
    font-size: 10px;
    color: var(--peach-sunset);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* ==========================================
   MEMORY CARDS & DETAILS MODALS
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(10, 3, 28, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 0 15px rgba(255,255,255,0.05);
    width: 90%;
    max-width: 550px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    z-index: 10;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay:not(.hidden) .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    z-index: 15;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-image-placeholder {
    height: 240px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.campfire-bg {
    background: linear-gradient(45deg, #0a031c, var(--rose-sunset), var(--orange-sunset));
}
.lighthouse-bg {
    background: linear-gradient(45deg, #1f0b3d, var(--sunset-magenta), var(--peach-sunset));
}
.whisper-bg {
    background: linear-gradient(45deg, #03000a, #1f0b3d, var(--rose-sunset));
}

.modal-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(10, 3, 28, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-illustration {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}

.modal-body {
    padding: 30px;
    text-align: left;
}

.modal-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--peach-sunset);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.modal-body h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.modal-date {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
}

.modal-description {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.modal-description p {
    margin-bottom: 12px;
}

.customization-tip {
    font-size: 11px;
    background: rgba(255, 126, 103, 0.12);
    border-left: 2.5px solid var(--orange-sunset);
    padding: 10px 14px;
    color: var(--peach-sunset);
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
}

/* ==========================================
   ENVELOPE & WAX SEAL COMPONENT STYLE
   ========================================== */
.envelope-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 300px;
    margin: 80px auto;
    perspective: 1000px;
    z-index: 10;
}

.envelope {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #8b6b4f;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    cursor: pointer;
}

.envelope::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 150px 240px 0 240px;
    border-color: #a48162 transparent transparent transparent;
    transform-origin: top center;
    transition: transform 0.6s ease-out 0.4s;
    z-index: 4;
}

.envelope::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 150px 480px;
    border-color: transparent transparent #7a5d43 transparent;
    z-index: 2;
}

.flap-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 150px 0 150px 240px;
    border-color: transparent transparent transparent #967458;
    z-index: 1;
}

.flap-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 150px 240px 150px 0;
    border-color: transparent #967458 transparent transparent;
    z-index: 1;
}

.wax-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, #b12c3f 30%, #8b1d2b 90%);
    border-radius: 50%;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.2);
    z-index: 5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffbc97;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #6b1420;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wax-seal:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(184, 44, 63, 0.6);
}

.envelope.open::before {
    transform: rotateX(180deg);
    z-index: 0;
}

.envelope.open .wax-seal {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.envelope.open {
    transform: translateY(150px) rotateX(10deg);
    opacity: 0;
    pointer-events: none;
    transition: transform 1s ease, opacity 0.8s ease 0.4s;
}

.letter-scroll-container {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    pointer-events: none;
}

.letter-scroll-container.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ==========================================
   LOVE LETTER PARCHMENT SCROLL ELEGANCE
   ========================================== */
.parchment-scroll {
    background: #fcf1d7;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(184, 134, 11, 0.08) 0%, transparent 70%),
        radial-gradient(circle at 100% 100%, rgba(139, 69, 19, 0.08) 0%, transparent 70%);
    border-left: 12px solid #b08b59;
    border-right: 12px solid #b08b59;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.5), 
        0 0 0 1px rgba(0,0,0,0.1),
        inset 0 0 40px rgba(139,69,19,0.15);
    border-radius: 4px;
    color: #4b321a;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.scroll-roller-top {
    position: absolute;
    top: 0;
    left: -12px;
    right: -12px;
    height: 15px;
    background: linear-gradient(to bottom, #83592c, #b08b59 40%, #5a3c1e);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border-radius: 4px;
}

.scroll-roller-bottom {
    position: absolute;
    bottom: 0;
    left: -12px;
    right: -12px;
    height: 15px;
    background: linear-gradient(to top, #83592c, #b08b59 40%, #5a3c1e);
    box-shadow: 0 -4px 6px rgba(0,0,0,0.3);
    border-radius: 4px;
}

.letter-title {
    font-family: var(--font-cursive);
    font-size: 2.5rem;
    color: #5d3513;
    margin-bottom: 25px;
    width: 100%;
    text-align: left;
}

.letter-body {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
}

.letter-body p {
    margin-bottom: 20px;
}

.letter-closing {
    margin-top: 35px;
    font-style: italic;
    text-align: right;
    line-height: 1.5;
}

.handwritten-signature {
    font-family: var(--font-cursive);
    font-size: 2.2rem;
    font-style: normal;
    color: #8b3a3a;
    margin-top: 5px;
    display: inline-block;
}

@media (max-width: 900px) {
    .voyage-map {
        height: 800px;
    }
    .map-route-svg {
        display: none;
    }
    .map-island {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        margin: 40px auto;
        width: 160px;
    }
}

