/* --- GLOBAL --- */
body { 
    font-family: 'Raleway', sans-serif;
    margin: 0; 
    background-image: url(s23.webp); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    font-weight: 300;
}

/* --- HEADER --- */
header { 
    position: fixed; 
    top: 0; left: 0;
    z-index: 990; 
    width: 100%;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    padding-top: 20px;
    padding-left: 40px; 
    box-sizing: border-box; 
}

/* =========================================
   INDEX PAGE EXCLUSIVES 
   ========================================= */
.index-page {
    overflow: hidden;
}

.index-page header {
    height: 100px; 
    pointer-events: auto; 
}

.index-page .logo {
    box-shadow: none; 
    margin-top: -10px; 
}

.logo { 
    width: 120px; 
    height: auto; 
    border-radius: 50%; 
}

/* =========================================
   APARTMENTS PAGE EXCLUSIVES (The Fix)
   ========================================= */

.apartments-page {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(145deg, #162616 0%, #1c331c 50%, #11202b 100%);
    padding-top: 140px; 
    padding-bottom: 60px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

/* 1. Main Layout Wrapper */
.establishments-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* 2. Horizontal Magazine Row */
.split-gallery-container {
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap; /* THE FIX: Allows elements to stack cleanly on half-screens */
    justify-content: center; 
    align-items: center; 
    gap: 30px; 
    z-index: 10;
    width: 100%;
}

/* 3. The Bigger Centered Albums */
.article-box {
    flex: none !important; 
    width: 400px;  /* Bigger width */
    height: 520px; /* Bigger height */
    
    background-color: #11202b; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 0 35px rgba(245, 222, 179, 0.15), 0 15px 35px rgba(0, 0, 0, 0.6);
    
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    transition: transform 0.4s ease;
}

.article-box::-webkit-scrollbar { display: none; }

.article-box:hover {
    transform: translateY(-8px);
}

.article-box img {
    width: 100%;
    height: 520px; /* MUST match article-box height */
    object-fit: cover;
    display: block;
    scroll-snap-align: start;
    cursor: zoom-in;
}

/* 4. Symmetrical Side Descriptions */
.card-description {
    width: 260px; /* Elegant narrow side text */
    background: rgba(22, 38, 22, 0.8); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px 20px;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    color: white;
}

/* Hugging the images */
.loft-desc { text-align: right; }
.studio-desc { text-align: left; }

.card-description h3 {
    margin: 0 0 10px 0;
    color: #F5DEB3; 
    font-weight: 300;
    font-size: 1.5rem;
}

.card-description p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 5. THE BOTTOM CENTERED AWARD */
.awards-footer {
    margin-top: 40px; /* Space below the albums */
    display: flex;
    justify-content: center;
    width: 100%;
}

.award-badge-large {
    width: 450px; /* Bigger award badge */
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.7));
    transition: transform 0.2s ease;
}

.award-badge-large:hover {
    transform: scale(1.05);
}

/* --- UI ELEMENTS (Nav, Footer, Modals) --- */

footer {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center; 
    z-index: 10;
    pointer-events: none; 
}

footer p {
    margin: 0;
    font-size: 14px;
    color: rgb(237, 227, 227); 
    opacity: 0.9; 
    display: inline-block; 
    padding-top: 8px; 
    border-top: 1px solid rgba(255, 255, 255, 0.4); 
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.menu-btn {
    position: fixed; 
    top: 20px; right: 20px;
    z-index: 3000; 
    cursor: pointer;
    display: flex; flex-direction: column; gap: 6px;
}
.menu-btn .line { width: 30px; height: 4px; background-color: white; }

nav {
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 100%; 
    height: 100vh; 
    background: linear-gradient(145deg, #162616f8 0%, #1c331ce1 50%, #11202be3 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 40px; 
    transition: 0.5s ease-in-out; 
    z-index: 2999; 
}
nav.open { right: 0; }

nav a { 
    color: white; 
    text-decoration: none; 
    font-size: 24px; 
    position: relative;
    transition: color 0.3s ease; 
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 50%;
    background-color: #F5DEB3;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover { color: #F5DEB3; }
nav a:hover::after { width: 100%; }

.social-links {
    position: fixed; bottom: 20px; left: 20px;
    display: flex; flex-direction: column; gap: 15px; z-index: 3000;
}
.social-links a {
    width: 45px; height: 45px; background: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: black; text-decoration: none; box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.mini-popup {
    position: fixed; 
    left: 80px; 
    background-color: rgba(71, 83, 47, 0.98); 
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    pointer-events: none; 
    transform: translateX(-15px) scale(0.95); 
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    z-index: 2999;
}

#bookingPopup { bottom: 80px; }
#airbnbPopup { bottom: 20px; }

.mini-popup.show {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0) scale(1); 
}

.mini-popup a {
    color: white;
    text-decoration: none;
    font-weight: 100; 
    font-size: 16px;
    display: inline-block; 
    transition: color 0.3s;
}

.mini-popup a:hover { color: #F5DEB3; }

/* --- LIGHTBOX MODAL --- */
.modal {
    display: none; position: fixed;
    z-index: 4000; left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center; align-items: center;
}
.modal-content { max-width: 90%; max-height: 90%; }
.close-modal {
    position: absolute; top: 20px; right: 40px;
    color: white; font-size: 40px; cursor: pointer;
}
.prev-photo, .next-photo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: 100;
    cursor: pointer;
    user-select: none;
    padding: 20px;
    z-index: 4010;
    transition: color 0.3s ease;
}
.prev-photo:hover, .next-photo:hover { color: #F5DEB3; }
.prev-photo { left: 10px; }
.next-photo { right: 10px; }

/* =========================================
   SYROS PAGE SPECIFIC 
   ========================================= */
.syros-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(145deg, #162616 0%, #1c331c 50%, #11202b 100%);
    overflow: hidden; 
    font-size: larger;
}

.syros-page header {
    background: transparent; 
    box-shadow: none;
}

.image-ticker-wrapper {
    position: fixed;
    width: 100%;
    height: 150px; 
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.top-ticker { top: 100px; }   
.bottom-ticker { bottom: 60px; } 

.ticker-track {
    display: flex;
    width: calc(250px * 12); 
    animation: scrollLeft 30s linear infinite;
}

.track-reverse {
    animation: scrollRight 30s linear infinite;
}

.ticker-track img {
    width: 250px; 
    height: 150px;
    object-fit: cover;
    padding: 0 5px;
    border-radius: 4px;
}

.article-frame {
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(15px); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    text-align: center;
    color: white;
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.article-frame h2 {
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 20px;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 6)); } 
}

@keyframes scrollRight {
    0% { transform: translateX(calc(-250px * 6)); }
    100% { transform: translateX(0); }
}

/* =========================================
   CONTACT PAGE SPECIFIC 
   ========================================= */
.minimal-article-page {
    background: linear-gradient(145deg, #162616 0%, #1c331c 50%, #11202b 100%);
    height: 100vh;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0;
}

.glass-frame {
    background: rgba(255, 255, 255, 0.27); 
    backdrop-filter: blur(30px); 
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 40px;
    max-width: 500px;
    width: 80%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    z-index: 10;
    border-radius: 2px; 
}

.accent-line-wrapper {
    position: fixed;
    bottom: 90px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.bottom-accent-line {
    width: 600px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
}
/* --- CONTACT PAGE LINKS --- */
.contact-link {
    color: white; /* Keeps the text white like the rest of the paragraph */
    text-decoration: none; /* Removes the underline */
    border-bottom: 1px solid rgba(255, 255, 255, 0.4); /* Adds a very subtle, elegant underline */
    transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-link:hover {
    color: #F5DEB3; /* Your signature wheat/gold hover color */
    border-bottom-color: #F5DEB3;
}