:root {
    --accent: #D6A9C9;
    --bg: #15171A;
    --card: #1D2020;
    --text: #F2EDE4;
    --muted: #9A968D;
}

* { box-sizing: border-box;
}

body { 
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
}

.fallback-message {
    font-family: sans-serif;
    line-height: 1.3;

    width: 780px;
    padding: 10px 10px 0;
    margin: 20px auto;

    border: 1px solid #E4C652;
    border-radius: 10px;
    background: #EEDC94;
}

.fallback-message p {
    margin-bottom: 10px;
}

.impress-supported .fallback-message {
    display: none;
}

.step {
    width: 920px;
    min-height: 560px;
    padding: 72px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 34px;
    background: radial-gradient(circle at 90% 0, color-mix(in srgb,var(--accent) 26%,transparent), transparent 35%), var(--card);
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
    /* opacity: .22; */
    transition: opacity .45s ease;
}

.step.active {
    z-index: 100 !important;
}

.step h1,.step h2 {
    margin: 0;
    max-width: 760px;
    font-size: 72px;
    line-height: .98;
    letter-spacing: -.055em;
}

.step h2 {
    font-size: 58px;
}

.step p {
    max-width: 680px;
    margin: 25px 0 0;
    color: var(--muted);
    font-size: 24px;
    line-height: 1.6;
}

.eyebrow {
    color: var(--accent);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

#overview {
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: center;
}

.hint {
    position: fixed;
    left: 20px;
    bottom: 18px;
    color: #64748b;
    font-size: 13px;
}

.pulsing-heart-img {
    width: 120px;
    height: auto;
    display: block;
    margin: 30px auto;
    filter: drop-shadow(0 0 10px #e07f7f); /* Adds a soft glow using your accent */
    animation: pulse 1.2s infinite ease-in-out;
}

/* --- World Map as a 3D Canvas Layer --- */
#map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

#map-canvas img,
#map-canvas svg {
    position: absolute;
    width: 15000px; /* High base canvas width prevents blurriness when zooming in */
    height: auto;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%); /* Centers map center (0,0) with impress canvas */
    opacity: 0.35;
    filter: invert(1) hue-rotate(180deg) brightness(1.1);
    display: block;
    vector-effect: non-scaling-stroke; /* Keeps line borders thin and crisp */
}

.impress-enabled .step.map-background-step {
    opacity: 1 !important;
}

/* --- Intro/Outro Card Styling --- */
.intro-card {
    text-align: center;
}

.step.intro-card {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.step.intro-card.active {
    opacity: 0.7 !important;
    pointer-events: auto;
}

.outro-card {
    text-align: center;
}

.step.outro-card {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.step.outro-card.active {
    opacity: 0.4 !important;
    pointer-events: auto;
}

/* --- Location Tag --- */
.location-tag {
    color: var(--accent);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

/* --- Photo Collage Layout --- */
.photo-card {
    width: 850px;
    padding: 40px;
    position: relative; /* Allows shifting without breaking impress.js transforms */
    left: 80px;        /* Shifts the whole card to the right (away from the city pin) */
    transition: opacity 0.45s ease;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    position: relative;
    align-items: start; /* Prevents grid items from stretching to the same height */
}

/* Base Photo Styling */
.photo {
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Orientation Heights */
.photo.horizontal {
    height: 260px;
}

.photo.vertical {
    height: 400px;
}

/* Scatter / Polaroid tilt effect for photos */
.photo-1 {
    transform: rotate(-3deg) translateY(-5px);
}
.photo-2 {
    transform: rotate(4deg) translateY(10px);
}
.photo-3 {
    grid-column: span 2;
    height: 280px;
    transform: rotate(-1deg);
}

/* Animate / enlarge photos when the slide becomes ACTIVE */
.step.active .photo-1 {
    transform: rotate(-1deg) scale(1.02);
}
.step.active .photo-2 {
    transform: rotate(2deg) scale(1.02);
}
.step.active .photo-3 {
    transform: rotate(0deg) scale(1.02);
}

/* #Dublin-2.future,#Cyprus-2.future,#Cyprus-3.future {
    opacity: 0 !important;
    pointer-events: none;
}

#Dublin-2.active,#Cyprus-2.active,#Cyprus-3.active {
    opacity: 1 !important;
    z-index: 101 !important;
}

#Dublin-2.past,#Cyprus-2.past,#Cyprus-3.past {
    opacity: 0.22 !important;
} */

.photo-card.step.future {
    opacity: 0 !important;
    pointer-events: none;
}

.photo-card.step.active {
    opacity: 1 !important;
    z-index: 101 !important;
}

.photo-card.step.past {
    opacity: 0.22 !important;
    pointer-events: auto;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}


@media (max-width: 800px) {
    .step {
        width: 760px;
    }
}