/* Base */
:root {
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-bg: #050505;
    --overlay-gradient: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --transition-slow: 2s ease-in-out;
}

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

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    overflow: hidden; /* Full-screen cinematic */
    -webkit-font-smoothing: antialiased;
}

#app {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Slideshow */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #111;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    overflow: hidden; /* Prevent tiles from exceeding viewport */
    will-change: opacity;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-ken-burns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.05);
    will-change: transform;
}

.slide.animate .slide-ken-burns {
    animation: ken-burns 20s linear forwards;
}

@keyframes ken-burns {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.1) translate(-1%, -1%); }
}

.slide-wrapper {
    position: absolute;
    width: 2560px;
    height: 1440px;
    top: 50%;
    left: 50%;
    margin-top: -720px;
    margin-left: -1280px;
    transform: scale(var(--slide-scale, 1));
    transform-origin: center center;
}

.slide-tile {
    position: absolute;
    display: block;
    /* Sub-pixel rendering can cause tiny gaps. 
       A standard trick is a microscopic overlap or scale up, but since they are absolute
       and integer pixel sized, modern browsers handle it very well.
       We can add a tiny scale to be completely safe against gaps. */
    transform: scale(1.002);
}

@media (prefers-reduced-motion: reduce) {
    .slide.animate .slide-ken-burns {
        animation: none;
        transform: none;
    }
    .slide-ken-burns {
        transform: none;
    }
    .slide {
        transition: opacity 1.5s ease-in-out;
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-gradient);
    z-index: 2;
    pointer-events: none;
}

/* Header */
.header {
    position: absolute;
    top: 2.5rem;
    left: 3rem;
    z-index: 10;
}

.logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding-left: 10%;
    padding-top: 4rem;
}

.info-panel {
    max-width: 500px;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3.5rem;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 1.5s 0.5s ease forwards;
}

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eyebrow {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.headline {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.supporting-text {
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.premium-notice {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c9a871; /* Subtle gold for premium feel */
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.premium-notice::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background-color: rgba(201, 168, 113, 0.6);
}

.cta-button {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
}

.cta-button:hover, .cta-button:focus {
    background-color: #fff;
    color: #000;
    outline: none;
}

/* Location Information */
.location-info {
    position: absolute;
    right: 4rem;
    bottom: 4rem;
    z-index: 10;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 1s ease;
}

.location-info.visible {
    opacity: 1;
}

.location-index {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.location-name {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.location-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.location-description {
    font-size: 0.85rem;
    font-weight: 300;
    max-width: 280px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Slide Navigation */
.slide-navigation {
    position: absolute;
    left: 50%;
    bottom: 3.5rem;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
}

.nav-item:hover, .nav-item:focus {
    color: rgba(255, 255, 255, 0.8);
    outline: none;
}

.nav-item.active {
    color: #fff;
}

.nav-separator {
    width: 24px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .main-content {
        padding-left: 5%;
    }
}

@media (max-width: 768px) {
    body, html {
        overflow-y: hidden; /* Ensure zero horizontal/vertical scrolling on mobile */
        overflow-x: hidden;
    }
    
    .header {
        top: 1.5rem;
        left: 1.5rem;
    }
    
    .logo {
        height: 28px; /* Slightly smaller for compactness */
    }

    .main-content {
        padding: 0 1.25rem;
        align-items: flex-end;
        padding-bottom: 6rem; /* Brought down to show more image */
    }

    .info-panel {
        padding: 1.75rem 1.25rem; /* Significantly reduced padding */
        width: 100%;
        max-width: 380px; /* Reduced width to let image breathe on sides */
        background: rgba(10, 10, 10, 0.25); /* Lighter transparency */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.08); /* More subtle border */
        box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    }
    
    .eyebrow {
        margin-bottom: 0.75rem; /* Tighter vertical spacing */
    }

    .headline {
        font-size: 2rem; /* Reduced from 2.4rem */
        margin-bottom: 1rem;
        line-height: 1.05;
    }

    .supporting-text {
        font-size: 0.95rem; /* Reduced slightly */
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }
    
    .premium-notice {
        margin-bottom: 1.5rem;
        font-size: 0.75rem;
    }

    .cta-button {
        padding: 0.8rem 1.8rem; /* More compact CTA */
        font-size: 0.8rem;
    }

    .location-info {
        right: 1.5rem;
        top: 1.5rem;
        bottom: auto;
        text-align: right;
    }

    .location-index {
        font-size: 1.25rem; /* Slightly smaller */
    }
    
    .location-name {
        font-size: 0.95rem; /* Slightly smaller */
    }

    .location-description {
        display: none; /* Hide on mobile to save space and keep focus on main panel */
    }

    .slide-navigation {
        bottom: 1.5rem;
        width: 100%;
        justify-content: center;
        gap: 0.25rem; /* Tighter gap */
        flex-wrap: wrap; /* Prevent overflow if many slides */
        padding: 0 1rem;
    }
    
    .nav-item {
        padding: 0.25rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .nav-separator {
        display: none; /* Hide separators on mobile to save space for 12 slides */
    }
}

@media (max-width: 480px) {
    .header {
        top: 1.25rem;
        left: 1.25rem;
    }
    
    .location-info {
        right: 1.25rem;
        top: 1.25rem;
    }

    .headline {
        font-size: 1.85rem;
    }
    
    .logo {
        height: 24px;
    }
}
