:root {
    --header-bg: #79443b;
    --body-bg: #fcf9f2;
    --footer-bg: #ebdcd0;
    --text-dark: #333333;
    --text-light: #ffffff;
    --accent: #5e332c;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Header */
.header {
    background-color: var(--header-bg);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover {
    text-decoration: underline;
}

.lang-switcher button {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 0.3rem 0.6rem;
    margin-left: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 3px;
    transition: all 0.2s;
}

.lang-switcher button.active, 
.lang-switcher button:hover {
    background-color: var(--text-light);
    color: var(--header-bg);
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 5%;
}

/* General Top Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/* Info & Layout */
.info-section, .apartments-section, .reviews-section {
    text-align: center;
    margin-bottom: 4rem;
}

.info-section h1, .apartments-section h2, .reviews-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--header-bg);
}

.info-section p, .amenities p {
    max-width: 800px;
    margin: 0 auto 1rem auto;
    font-size: 1.05rem;
}

/* Apartment Cards */
.apartment-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.apartment-card {
    background-color: #ffffff;
    border: 1px solid #e0d5c1;
    padding: 2rem;
    border-radius: 6px;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.interactive {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interactive:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.apartment-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--header-bg);
    border-bottom: 2px solid var(--footer-bg);
    padding-bottom: 0.5rem;
}

.view-gallery-btn {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--header-bg);
    font-weight: 600;
    text-decoration: underline;
}

.coming-soon {
    background-color: var(--footer-bg);
    border: 1px dashed var(--header-bg);
}

/* Booking Button */
.book-now-btn {
    display: inline-block;
    background-color: var(--header-bg);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 2rem;
    transition: background-color 0.3s;
}

.book-now-btn:hover {
    background-color: var(--accent);
}

/* Reviews */
.reviews-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.review-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    font-style: italic;
    text-align: left;
}

.stars {
    color: #f39c12;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.review-card p {
    margin-bottom: 1rem;
}

.review-card .author {
    font-weight: 600;
    font-style: normal;
    color: var(--header-bg);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    text-align: center;
    padding: 4rem 5%;
    font-size: 1.05rem;
}

.footer a {
    color: var(--header-bg);
    font-weight: 600;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.booking-info {
    margin-top: 2rem;
}

/* ========================================================
   CASCADING LIGHTBOX SYSTEM
======================================================== */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Level 1: Apartment Overview */
.modal.level-1 {
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Level 2: Zoom Fullscreen Modal (Sits Above Level 1) */
.modal.level-2 {
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal.show {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.modal-content {
    background-color: var(--body-bg);
    padding: 2.5rem 2rem 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-title {
    color: var(--header-bg);
    margin-bottom: 0.5rem;
}

.modal-desc {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #555;
}

.modal-hint {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--header-bg);
    margin-bottom: 1.5rem;
}

.modal-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.modal-image-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-image-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Level 2 Wrapper */
.zoom-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-wrapper img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

/* Close Buttons */
.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2.2rem;
    color: var(--header-bg);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

.close-btn:hover {
    color: #000;
}

.zoom-close {
    top: -2.5rem;
    right: -0.5rem;
    color: var(--text-light);
}

.zoom-close:hover {
    color: #bbb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}