/* --- Master Reset & Globals --- */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: #1e272e; margin: 0; line-height: 1.6; background-color: var(--light-bg, #fafafa); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; width: 100%; box-sizing: border-box; }
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; color: #1e272e; margin-top: 0; }

/* Reveal Logic */
.reveal { opacity: 1; transform: none; transition: all 0.5s ease-out; }
.js-enabled .reveal { opacity: 0; transform: translateY(20px); }
.js-enabled .reveal.active { opacity: 1; transform: translateY(0); }

/* --- Global Elements for Homepage --- */
.sub-title { text-transform: uppercase; letter-spacing: 5px; font-size: 0.75rem; color: var(--accent); font-weight: 700; display: block; margin-bottom: 10px; }
.gold-divider.center { width: 50px; height: 1px; background: var(--accent); margin: 20px auto; }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 15px 35px; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; font-weight: 700; text-decoration: none; border-radius: 50px; transition: 0.3s ease; margin-top: 15px; }
.btn:hover { background: var(--primary); transform: translateY(-2px); }

/* Hero */
.hero { height: 60vh; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; position: relative; border-bottom: 4px solid var(--accent); max-width: 100%; overflow: hidden; }
.hero-overlay { background: rgba(0, 0, 0, 0.55); padding: 3rem; text-align: center; color: white; width: 90%; max-width: 800px; border-radius: 4px; box-sizing: border-box; }
.hero h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 8vw, 3.5rem); margin-bottom: 20px; word-wrap: break-word; }
.hero-overlay p { text-transform: uppercase; letter-spacing: 4px; font-size: 0.9rem; margin-bottom: 10px; font-weight: 700; color: var(--accent); }

/* Welcome */
.welcome-section { padding: 8rem 0 4rem 0; background: #fff; max-width: 100%; overflow: hidden; }
.welcome-content { max-width: 1000px; margin: 0 auto; text-align: center; padding: 0 15px; box-sizing: border-box; }
.welcome-content h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 5vw, 3rem); color: var(--primary); line-height: 1.2; margin: 15px 0; word-wrap: break-word; }
.welcome-content .lead { font-size: 1.3rem; font-family: 'Playfair Display', serif; font-style: italic; color: var(--primary); margin-bottom: 40px; }
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; text-align: left; }
.welcome-text p { color: #555; margin-bottom: 20px; font-size: 1.05rem; }

/* Rating */
.rating-accolade { display: flex; align-items: center; gap: 20px; padding: 25px; background: var(--light-bg); border: 1px solid #eee; border-radius: 4px; margin-top: 20px; box-sizing: border-box; }
.rating-number { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 700; color: var(--accent); border-right: 1px solid #ddd; padding-right: 20px; line-height: 1; }
.rating-info strong { display: block; font-size: 1.1rem; color: var(--primary); margin-bottom: 5px; }
.rating-info p { margin: 0; font-size: 0.9rem; color: #666; }

/* --- Rooms Section --- */
.rooms-section { padding: 4rem 0 8rem 0; background: var(--light-bg, #fafafa); max-width: 100%; overflow: hidden; }
.section-intro { text-align: center; margin-bottom: 60px; max-width: 100%; display: block; }
.section-intro h2 { margin: 0 auto; word-wrap: break-word; text-align: center; color: var(--primary); }

.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px 40px; max-width: 100%; }
.room-card { display: flex; flex-direction: column; max-width: 100%; }

.image-container { 
    height: 450px; border-radius: 35px; overflow: hidden; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.1); margin-bottom: 25px; 
    transition: 0.5s ease; width: 100%; box-sizing: border-box;
    position: relative; /* Required for the overlay */
}

.room-card img { width: 100%; height: 100%; object-fit: cover; transition: 1.5s ease; }
.room-card:hover .image-container { transform: translateY(-10px); }
.room-card:hover img { transform: scale(1.05); }

.room-info { text-align: center; padding: 0 15px; }
.room-info h3 { font-family: 'Playfair Display', serif; font-size: 1.7rem; margin-bottom: 10px; color: var(--primary); word-wrap: break-word; }
.room-info p { margin: 0; color: #666; font-size: 0.95rem; }

/* --- Apartment Spacing & Gallery Layout --- */
.apartment-container { margin-top: 100px; }

.apartment-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.apartment-main-card { display: flex; flex-direction: column; }
.apartment-main-card .image-container { cursor: pointer; }
.apartment-main-card .image-container img { width: 100%; height: 100%; object-fit: cover; transition: 1.5s ease; }
.apartment-main-card:hover .image-container { transform: translateY(-5px); box-shadow: 0 30px 60px rgba(0,0,0,0.15); }
.apartment-main-card:hover img { transform: scale(1.05); }

.apartment-right-panel {
    display: flex;
    flex-direction: column;
}

.apartment-thumbnails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.apartment-thumbnails .image-container {
    height: 215px; 
    margin-bottom: 0;
    cursor: pointer;
    border-radius: 20px; 
}

.apartment-thumbnails .image-container img { width: 100%; height: 100%; object-fit: cover; transition: 1.5s ease; }
.apartment-thumbnails .image-container:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.apartment-thumbnails .image-container:hover img { transform: scale(1.1); }

/* The "+ 3 Photos" Overlay */
.more-photos-overlay {
    position: absolute; inset: 0;
    background: rgba(30, 39, 46, 0.6);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 1.2rem; letter-spacing: 1px; text-transform: uppercase;
    transition: 0.3s ease;
}
.overlay-trigger:hover .more-photos-overlay { background: rgba(30, 39, 46, 0.4); }
.hidden-trigger { display: none; }

/* Apartment Action Button */
.apartment-action { margin-top: 20px; }
.apt-btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.05rem;
    padding: 18px 20px;
    letter-spacing: 3px;
    box-shadow: 0 10px 20px rgba(176, 141, 87, 0.2);
}

/* --- Unified Luxe Lightbox Modal --- */
#global-lightbox {
    position: fixed; inset: 0; background: rgba(30, 39, 46, 0.98);
    z-index: 9999; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.5s ease;
}
#global-lightbox.active { opacity: 1; }

.lightbox-window {
    position: relative; max-width: 85%; max-height: 85vh; padding: 12px;
    background: #fff; border-radius: 12px; box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    transform: scale(0.9) translateY(30px); opacity: 0;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease;
}
#global-lightbox.active .lightbox-window { transform: scale(1) translateY(0); opacity: 1; }

.lightbox-window img {
    display: block; max-width: 100%; max-height: 80vh; border-radius: 6px;
    object-fit: contain; transition: opacity 0.3s ease;
}

/* Lightbox Navigation & Counters */
.nav-arrow {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #fff; font-size: 6rem;
    font-family: 'Montserrat', sans-serif; font-weight: 100; cursor: pointer;
    z-index: 10000; padding: 20px; transition: 0.3s;
}
.nav-arrow:hover { color: #b08d57; scale: 1.1; }
.prev { left: 40px; }
.next { right: 40px; }

.close-lightbox {
    position: absolute; top: -60px; right: 0; color: #fff; font-size: 3rem; cursor: pointer; transition: 0.3s;
}
.close-lightbox:hover { color: #b08d57; }

.lightbox-counter {
    position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
    color: #fff; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; letter-spacing: 2px;
}

/* --- Guest Facilities Section --- */
.facilities-section { padding: 4rem 0; background: #fff; max-width: 100%; overflow: hidden; }
.facilities-section .section-intro { margin-bottom: 40px; text-align: center; }
.facilities-section .section-intro h2 { color: var(--primary); }
.facilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }

.facility-category { background: var(--light-bg, #fafafa); padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid #eee; transition: transform 0.3s ease; }
.facility-category:hover { transform: translateY(-5px); }
.facility-category h3 { display: flex; align-items: center; font-size: 1.3rem; margin-top: 0; margin-bottom: 20px; border-bottom: 1px solid #ddd; padding-bottom: 15px; color: var(--primary); }
.cat-icon { margin-right: 12px; font-size: 1.5rem; }
.facility-category ul { list-style: none; padding: 0; margin: 0; }

.facility-category li { position: relative; padding-left: 28px; margin-bottom: 12px; color: #555; font-size: 0.95rem; }
.facility-category li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 900; font-size: 1.1rem; }

/* --- Property Surroundings Section --- */
.surroundings-section { padding: 4rem 0 8rem 0; background: var(--light-bg, #fafafa); max-width: 100%; overflow: hidden; }
.surroundings-section .section-intro { margin-bottom: 40px; text-align: center; }
.surroundings-section .section-intro h2 { color: var(--primary); }
.surroundings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }

.surrounding-category { background: #fff; padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: transform 0.3s ease; border: 1px solid #eee; }
.surrounding-category:hover { transform: translateY(-5px); }
.surrounding-category h3 { display: flex; align-items: center; font-size: 1.25rem; margin-top: 0; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; color: var(--primary); }

.place-list { list-style: none; padding: 0; margin: 0; }
.place-list li { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.95rem; border-bottom: 1px dashed #eee; padding-bottom: 8px; }
.place-list li:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.place-name { color: #555; }
.place-distance { color: var(--accent); font-weight: 700; font-size: 0.85rem; white-space: nowrap; margin-left: 10px; }

/* --- MOBILE RECONSTRUCTION --- */
@media (max-width: 768px) {
    .welcome-section { padding: 4rem 0 2rem 0; }
    .rooms-section, .facilities-section { padding: 2rem 0; }
    .surroundings-section { padding: 2rem 0 4rem 0; }
    
    .apartment-container { margin-top: 60px; } 

    .welcome-grid { display: block; width: 100%; }
    .welcome-text { margin-bottom: 30px; display: block; width: 100%; }
    
    .rating-accolade { flex-direction: column; text-align: center; }
    .rating-number { border-right: none; border-bottom: 1px solid #ddd; padding: 0 0 15px 0; margin-bottom: 15px; }

    /* Facilities & Surroundings */
    .facilities-grid, .surroundings-grid { display: block; width: 100%; }
    .facility-category, .surrounding-category { margin-bottom: 30px; display: block; width: 100%; }

    /* Rooms */
    .room-grid { display: block; width: 100%; }
    .room-card { margin-bottom: 60px; display: block; width: 100%; }
    
    .image-container { height: 300px; border-radius: 20px; }
    .hero-overlay { padding: 2rem 1.5rem; width: 90%; }
    
    /* Apartment Mobile Collapse */
    .apartment-showcase { grid-template-columns: 1fr; gap: 20px; }
    .apartment-main-card .image-container { height: 300px; margin-bottom: 15px; }
    .apartment-thumbnails .image-container { height: 160px; }
    .apt-btn { padding: 15px; font-size: 0.95rem; }
    
    /* Lightbox Mobile Adjustments */
    .lightbox-window { max-width: 94%; max-height: 90vh; padding: 6px; }
    .lightbox-window img { max-height: 85vh; }
    .nav-arrow { font-size: 4rem; padding: 10px; }
    .prev { left: 5px; }
    .next { right: 5px; }
    .close-lightbox { top: -50px; font-size: 2.5rem; }
}