/* --- Master Reset for Page Stability --- */
/* Restoring the global box-sizing fix to prevent overhangs */
*, *::before, *::after { box-sizing: border-box; }

.boutique-page-wrapper {
    background: #fff;
    color: #1e272e;
    overflow-x: hidden;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}

.avail-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- Hero Section --- */
.avail-hero { padding: 120px 0 100px; text-align: center; background: #fafafa; }
.avail-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 8vw, 4rem); color: #1e272e; margin: 10px 0; font-weight: 700; }
.gold-label { text-transform: uppercase; letter-spacing: 5px; font-size: 0.75rem; color: #b08d57; font-weight: 700; }
.luxe-divider { width: 50px; height: 1px; background: #b08d57; margin: 30px auto; }

/* --- THE PILL BAR (Concierge) --- */
.bar-section { margin-top: -55px; position: relative; z-index: 100; }

.pill-bar { 
    background: #fff; 
    display: flex; 
    align-items: center; 
    box-shadow: 0 40px 80px rgba(0,0,0,0.06); 
    border: 1px solid #f0f0f0; 
    padding: 10px;
    border-radius: 100px; 
}

.bar-group { flex: 1; padding: 10px 30px; border-right: 1px solid #eee; position: relative; }
.bar-group:nth-last-child(2) { border-right: none; }

.bar-group label { display: block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px; color: #b08d57; margin-bottom: 6px; font-weight: 700; }
.bar-group input, .bar-group select { border: none; width: 100%; font-family: inherit; font-size: 1rem; color: #1e272e; outline: none; background: transparent; }

/* --- CUSTOM DATE INPUT STYLING (Bulletproof Method) --- */
.icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.icon-wrap input[type="date"] {
    padding-right: 40px; 
    cursor: pointer;
    position: relative;
    z-index: 2; 
}

.icon-wrap svg {
    position: absolute;
    right: 15px; 
    width: 18px;
    height: 18px;
    fill: #b08d57;
    pointer-events: none; 
    z-index: 1;
}

.icon-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.bar-btn-area { padding-right: 5px; }
.small-gold-btn { 
    background: #1e272e; 
    color: #fff; 
    border: none; 
    padding: 15px 30px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.7rem; 
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.4s ease;
    border-radius: 100px; 
}
.small-gold-btn:hover { background: #b08d57; transform: translateY(-2px); }

.bar-note { text-align: center; margin-top: 50px; }
.bar-note p { font-family: 'Playfair Display', serif; font-style: italic; color: #777; font-size: 1.1rem; }
.bar-note p span { color: #1e272e; font-weight: 700; border-bottom: 1px solid #b08d57; font-style: normal; }

/* --- THE GRID (Masonry) --- */
.grid-section { margin-top: 80px; padding-bottom: 80px; }

.luxe-masonry { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 120px 60px; 
}

.luxe-visual, .apt-visual-box { 
    position: relative; 
    overflow: hidden; 
    margin-bottom: 35px; 
    border-radius: 35px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.1); 
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.luxe-visual { height: 500px; }
.luxe-visual img { width: 100%; height: 100%; object-fit: cover; transition: 1.5s ease; }

.luxe-entry:hover .luxe-visual { 
    transform: translateY(-12px); 
    box-shadow: 0 45px 90px rgba(176, 141, 87, 0.15); 
}
.luxe-entry:hover img { transform: scale(1.06); }

.luxe-tag { 
    position: absolute; top: 30px; left: 30px; background: #fff; padding: 10px 18px; 
    font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; border-radius: 50px; 
}

.luxe-info h3 { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 12px; color: #1e272e; }
.luxe-info p { color: #666; line-height: 1.8; font-size: 1.05rem; max-width: 90%; }

/* ========================================= */
/* --- NEW: PORTED APARTMENT GALLERY CSS --- */
/* ========================================= */

.sub-title { text-transform: uppercase; letter-spacing: 5px; font-size: 0.75rem; color: #b08d57; font-weight: 700; display: block; margin-bottom: 10px; }
.gold-divider.center { width: 50px; height: 1px; background: #b08d57; margin: 20px auto; }
.section-intro { text-align: center; margin-bottom: 60px; max-width: 100%; display: block; }
.section-intro h2 { font-family: 'Playfair Display', serif; font-weight: 700; color: #1e272e; font-size: 2.5rem; margin: 0 auto; }
.btn { display: inline-block; background: #b08d57; 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; border: none; cursor: pointer; }
.btn:hover { background: #1e272e; transform: translateY(-2px); }

.apartment-container { margin-top: 60px; padding-bottom: 80px; }

.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; 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%; position: relative; }
.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; 
    overflow: hidden; position: relative; transition: 0.5s ease;
}
.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); }

.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 { 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;
}
.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; }

/* --- iPhone 17 Responsiveness & Overhang Fix --- */
@media (max-width: 992px) {
    .avail-hero { padding: 80px 0 60px; }
    .pill-bar { border-radius: 25px; flex-direction: column; padding: 25px; }
    .bar-group { border-right: none; border-bottom: 1px solid #eee; width: 100%; padding: 15px 0; }
    .bar-btn-area { width: 100%; padding: 20px 0 0 0; }
    .small-gold-btn { width: 100%; padding: 18px; border-radius: 12px; font-size: 0.8rem; }
    .luxe-masonry { grid-template-columns: 1fr; gap: 80px; }
    .luxe-visual { height: 400px; border-radius: 25px; max-width: 100%; }
}

@media (max-width: 768px) {
    .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-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; }
}

@media (max-width: 480px) {
    .avail-container { padding: 0 20px; }
    .luxe-visual { height: 320px; }
    .luxe-info h3 { font-size: 1.8rem; }
}