/* ═══ APARTMENT DETAIL PAGE ═══ */
.apt-page {
    font-family: 'OpenSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-top: 60px;
}

/* ─── Gallery ─── */
.apt-gallery {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px;
}
.apt-gallery-grid {
    display: grid;
    gap: 6px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.apt-gallery-5 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 140px;
}
.apt-gallery-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 140px;
}
.apt-gallery-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px;
}
.apt-gallery-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 320px;
}
.apt-gallery-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 400px;
}
.apt-gallery-main {
    grid-row: 1 / -1;
}
.apt-gallery-item {
    overflow: hidden;
    cursor: pointer;
}
.apt-gallery-item img,
.apt-gallery-item picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.apt-gallery-item picture {
    width: 100%;
    height: 100%;
}
.apt-gallery-item:hover img,
.apt-gallery-item:hover picture img {
    transform: scale(1.03);
}
.apt-gallery-more {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #fff;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'OpenSans', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}
.apt-gallery-more:hover {
    background: #f5f5f5;
}

/* ─── Content ─── */
.apt-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}
.apt-content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}
.apt-header h1 {
    font-family: 'OpenSans', sans-serif !important;
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
}
.apt-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 16px;
}
.apt-stats {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.apt-stats span {
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
}
.apt-stats i {
    color: #387153;
    font-size: 16px;
}
.apt-description {
    padding: 24px 0;
}
.apt-description p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}
.apt-features {
    padding-top: 8px;
}
.apt-features h3 {
    font-family: 'OpenSans', sans-serif !important;
    font-size: 18px;
    font-weight: 600;
    color: #222 !important;
    margin: 0 0 16px;
    padding: 0 !important;
    letter-spacing: normal !important;
}
.apt-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.apt-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #444;
    padding: 8px 0;
}
.apt-feature-item i {
    color: #387153;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* ─── Booking Card ─── */
.apt-sidebar {
    position: sticky;
    top: 80px;
}
.apt-booking-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.apt-price {
    margin-bottom: 20px;
}
.apt-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #222;
}
.apt-price-unit {
    font-size: 15px;
    color: #666;
}
.apt-book-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #387153, #2d5c44);
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'OpenSans', sans-serif;
}
.apt-book-btn:hover {
    background: #2d5c44;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(56,113,83,0.25);
}
.apt-book-note {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 12px 0 0;
}

/* ─── Other Apartments ─── */
.apt-others {
    background: #f8faf9;
    padding: 48px 20px;
}
.apt-others h2 {
    font-family: 'GreatVibes', cursive;
    font-size: 32px;
    color: #2d4a3a;
    text-align: center;
    margin: 0 0 32px;
}
.apt-others-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.apt-other-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}
.apt-other-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    text-decoration: none;
}
.apt-other-card img,
.apt-other-card picture img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.apt-other-card picture {
    width: 100%;
}
.apt-other-info {
    padding: 16px;
}
.apt-other-info h4 {
    font-family: 'OpenSans', sans-serif !important;
    font-size: 16px;
    font-weight: 600;
    color: #222 !important;
    margin: 0 0 4px;
    letter-spacing: normal !important;
}
.apt-other-info span {
    font-size: 13px;
    color: #666;
}

/* ─── Lightbox ─── */
.apt-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.apt-lightbox.active {
    display: flex;
}
.apt-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
.apt-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
}
.apt-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.apt-lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}
.apt-lightbox-prev { left: 16px; }
.apt-lightbox-next { right: 16px; }
.apt-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-family: 'OpenSans', sans-serif;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .apt-page {
        padding-top: 50px;
    }
    .apt-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 250px;
        border-radius: 0;
    }
    .apt-gallery-main {
        grid-row: auto;
    }
    .apt-gallery-item:not(.apt-gallery-main) {
        display: none;
    }
    .apt-gallery-more {
        display: flex;
    }
    .apt-gallery {
        padding: 0;
    }
    .apt-content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .apt-sidebar {
        position: static;
    }
    .apt-features-grid {
        grid-template-columns: 1fr;
    }
    .apt-others-grid {
        grid-template-columns: 1fr;
    }
}
