/* =========================================
   CINEMATIC POOL HERO
   ========================================= */
.pool-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pool-hero .hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    z-index: 1;
    transform: scale(1.05); /* Slight zoom for premium feel */
}

.pool-hero .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)); /* Dark overlay to make text pop */
}

.pool-hero .hero-text-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.pool-hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.pool-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    font-family: var(--font-body);
}

.pool-hero .section-subtitle {
    color: var(--gold);
}

/* Inherited Scroll Indicator from room.css */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
}
.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollLine 2s infinite ease-in-out;
}
.scroll-indicator p {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--gold);
}

@keyframes scrollLine {
    0% { transform: translateY(-20px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* =========================================
   POOL MAIN LAYOUT
   ========================================= */
.pool-main {
    background-color: var(--bg-primary);
    transition: background-color 0.4s ease;
    padding-bottom: 100px;
}

/* Experience Feature Split Section */
.pool-experience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 120px 5%;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
}

.experience-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.split-text {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    color: var(--text-heading);
}
.italic-serif {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
}

.pool-features-list {
    list-style: none;
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.pool-features-list li {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
}

/* Reusable Image Reveal Wrapper */
.image-reveal-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}
.parallax-zoom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.experience-visual:hover .parallax-zoom {
    transform: scale(1);
}


/* =========================================
   ASYMMETRICAL MASONRY GALLERY
   ========================================= */
.pool-gallery-section {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.pool-masonry-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 20px;
    margin-top: 50px;
}

.masonry-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.masonry-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.masonry-item:hover img {
    transform: scale(1.08);
}
.masonry-item:hover::after {
    opacity: 1;
}

/* Asymmetrical Spans */
.item-1 { grid-column: 1 / 8; height: 500px; }
.item-2 { grid-column: 8 / -1; height: 500px; }
.item-3 { grid-column: 1 / 6; height: 400px; }
.item-4 { grid-column: 6 / -1; height: 400px; }

.hint { 
    margin-top: 50px; 
    text-align: center; 
    color: var(--text-muted); 
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================================
   LIGHTBOX MODAL (Copied from room.css)
   ========================================= */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}
.image-modal.show {
    display: flex;
}
.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease-out;
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}
.close-modal:hover { color: var(--gold); }
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* =========================================
   ANIMATIONS & RESPONSIVE
   ========================================= */
.animate-up { opacity: 0; transform: translateY(40px); transition: all 1s ease; }
.animate-slide-right { opacity: 0; transform: translateX(-50px); transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.animate-slide-left { opacity: 0; transform: translateX(50px); transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.in-view { opacity: 1; transform: translate(0, 0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media screen and (max-width: 992px) {
    .pool-experience {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 80px 5%;
    }
    .image-reveal-wrapper {
        height: 450px;
    }
    .item-1, .item-2, .item-3, .item-4 {
        grid-column: 1 / -1;
        height: 350px;
    }
}

@media screen and (max-width: 768px) {
    .pool-hero h1 { font-size: 3rem; }
    .pool-features-list { grid-template-columns: 1fr; }
    .item-1, .item-2, .item-3, .item-4 {
        height: 250px;
    }
}