/* ==========================================
   APARTMENT FEATURES SECTION
   Design inspired by Golden Space advantages
   ========================================== */

.apart-features-section {
    /* background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%); */
    background: #1f1f1f;
    color: #ffffff;
    padding: 100px 0;
    font-family: 'Manrope', sans-serif;
    position: relative;
    /* overflow: hidden; REMOVED to allow scrolling */
}

.apart-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(178, 150, 104, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.apart-features-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.apart-features-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.apart-features-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.1;
    color: #ffffff;
}

.apart-features-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Main Content Layout */
.apart-features-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: start;
}

/* Left Navigation */
.apart-features-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 120px;
}

.apart-nav-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.apart-nav-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #B29668;
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
}

.apart-nav-btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.apart-nav-btn-icon svg {
    width: 24px;
    height: 24px;
    fill: #B29668;
    transition: all 0.4s ease;
}

.apart-nav-btn-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.apart-nav-btn-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    display: block;
    transition: color 0.3s ease;
}

.apart-nav-btn-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    transition: color 0.3s ease;
}

.apart-nav-btn-arrow {
    width: 20px;
    height: 20px;
    fill: rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    transform: rotate(-90deg);
    flex-shrink: 0;
}

/* Hover State */
.apart-nav-btn:hover {
    border-color: rgba(178, 150, 104, 0.3);
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.05);
}

.apart-nav-btn:hover .apart-nav-btn-icon {
    background: rgba(178, 150, 104, 0.2);
    transform: scale(1.05);
}

.apart-nav-btn:hover .apart-nav-btn-arrow {
    fill: #B29668;
    transform: rotate(-90deg) translateX(4px);
}

/* Active State */
.apart-nav-btn.active {
    background: linear-gradient(135deg, #B29668 0%, #977D53 100%);
    border-color: #B29668;
    transform: translateX(12px);
    box-shadow: 0 16px 40px rgba(178, 150, 104, 0.25);
}

.apart-nav-btn.active::before {
    transform: scaleY(1);
    transform-origin: top;
    background: #ffffff;
}

.apart-nav-btn.active .apart-nav-btn-icon {
    background: rgba(255, 255, 255, 0.2);
}

.apart-nav-btn.active .apart-nav-btn-icon svg {
    fill: #ffffff;
}

.apart-nav-btn.active .apart-nav-btn-title {
    color: #ffffff;
}

.apart-nav-btn.active .apart-nav-btn-desc {
    color: rgba(255, 255, 255, 0.8);
}

.apart-nav-btn.active .apart-nav-btn-arrow {
    fill: #ffffff;
    transform: rotate(0deg);
}

/* Right Display Area */
.apart-features-display {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.apart-features-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.apart-features-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.apart-features-image-wrapper:hover .apart-features-image {
    transform: scale(1.05);
}

/* Bottom Details Grid */
.apart-features-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.apart-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.apart-detail-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(178, 150, 104, 0.2);
    transform: translateY(-4px);
}

.apart-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(178, 150, 104, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.apart-detail-icon svg {
    width: 22px;
    height: 22px;
    fill: #B29668;
}

.apart-detail-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.apart-detail-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

@media (max-width: 1200px) {
    .apart-features-content {
        grid-template-columns: 320px 1fr;
        gap: 30px;
    }

    .apart-nav-btn {
        padding: 20px 24px;
    }

    .apart-features-image-wrapper {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .apart-features-section {
        padding: 80px 0;
    }

    .apart-features-container {
        padding: 0 24px;
    }

    .apart-features-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .apart-features-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .apart-nav-btn {
        flex: 0 0 auto;
        padding: 16px 20px;
        transform: none !important;
    }

    .apart-nav-btn::before {
        display: none;
    }

    .apart-nav-btn-text {
        display: none;
    }

    .apart-nav-btn-arrow {
        display: none;
    }

    .apart-nav-btn-icon {
        width: 44px;
        height: 44px;
    }

    .apart-nav-btn.active {
        transform: none !important;
    }

    .apart-features-title {
        font-size: 36px;
    }

    .apart-features-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .apart-features-section {
        padding: 60px 0;
    }

    .apart-features-header {
        margin-bottom: 40px;
    }

    .apart-features-title {
        font-size: 28px;
    }

    .apart-features-subtitle {
        font-size: 16px;
    }

    .apart-features-image-wrapper {
        height: 300px;
        border-radius: 12px;
    }

    .apart-detail-item {
        padding: 20px;
    }

    .apart-nav-btn {
        padding: 12px 16px;
    }

    .apart-nav-btn-icon {
        width: 40px;
        height: 40px;
    }

    .apart-nav-btn-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .apart-features-container {
        padding: 0 16px;
    }

    .apart-features-title {
        font-size: 24px;
    }

    .apart-features-image-wrapper {
        height: 250px;
    }

    .apart-features-details {
        gap: 12px;
    }

    .apart-detail-item {
        padding: 16px;
        gap: 12px;
    }

    .apart-detail-icon {
        width: 38px;
        height: 38px;
    }

    .apart-detail-icon svg {
        width: 18px;
        height: 18px;
    }

    .apart-detail-text h4 {
        font-size: 14px;
    }

    .apart-detail-text p {
        font-size: 12px;
    }
}