/* ========================================
   NKP Ảnh cơ sở (Facility Images Grid)
   Chuyển từ nhakhoaparkview.com (nkp.css), bỏ tiền tố body.nkp
   ======================================== */
body .nkp-anh-co-so {
    display: flex;
    gap: var(--nkp-acs-gap, 16px);
    width: 100%;
}

/* Left column - 50% with 1 large image */
body .nkp-acs-left {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Right column - 50% with 2x2 grid */
body .nkp-acs-right {
    flex: 0 0 50%;
    max-width: 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--nkp-acs-gap, 16px);
}

/* Image item - square with rounded corners */
body .nkp-acs-item {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 aspect ratio */
    overflow: hidden;
    border-radius: var(--nkp-acs-radius, 16px);
    background: #f5f5f5;
}

body .nkp-acs-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

body .nkp-acs-item:hover img {
    transform: scale(1.05);
}

/* Overlay Box for Left Image */
body .nkp-acs-overlay-box {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 24px;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

body .nkp-acs-overlay-title {
    display: inline-block;
    background: #F8DA93;
    /* light gold/yellow matching the design */
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding: 8px 16px;
    border-radius: 8px;
    line-height: 1.4;
}

body .nkp-acs-overlay-desc {
    margin: 0;
    font-size: 15px;
    color: #333333;
    line-height: 1.6;
}

/* Desktop: show full version only */
body .nkp-acs-overlay-desc--short {
    display: none !important;
}

@media (max-width: 849px) {
    body .nkp-acs-overlay-box {
        bottom: 16px;
        left: 16px;
        right: 16px;
        padding: 16px;
    }

    body .nkp-acs-overlay-title {
        font-size: 16px;
        padding: 6px 12px;
        margin-bottom: 12px;
    }

    body .nkp-acs-overlay-desc {
        font-size: 14px;
    }

    /* Mobile: show short version only */
    body .nkp-acs-overlay-desc--full {
        display: none !important;
    }

    body .nkp-acs-overlay-desc--short {
        display: block !important;
    }
}

/* Empty state */
body .nkp-acs-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* Responsive - Stack on mobile */
@media (max-width: 549px) {
    body .nkp-anh-co-so {
        flex-direction: column;
    }

    body .nkp-acs-left,
    body .nkp-acs-right {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
