/* =========================================
   APARTMENT MANAGEMENT PAGE
========================================= */

.apartment-hero {
    width: 100%;
    min-height: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: #f5f9fc;
    overflow: hidden;
}

.apartment-hero-content {
    padding: 70px 7%;
}

.apartment-hero-content h1 {
    margin: 0 0 18px;
    color: #15577d;
    font-size: 46px;
    line-height: 1.15;
    font-weight: 700;
}

.apartment-hero-content h2 {
    margin: 0 0 18px;
    color: #222;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
}

.apartment-hero-content p {
    max-width: 560px;
    margin: 0 0 30px;
    color: #555;
    font-size: 16px;
    line-height: 1.8;
}

.apartment-hero-btn {
    display: inline-block;
    padding: 13px 28px;
    background: #15577d;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    transition: background .25s ease, transform .25s ease;
}

.apartment-hero-btn:hover {
    background: #0d405d;
    transform: translateY(-2px);
}

.apartment-hero-image {
    width: 100%;
    height: 100%;
    min-height: 520px;
}

.apartment-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* =========================================
   SECTION TITLE
========================================= */

.apartment-section-title {
    text-align: center;
    margin-bottom: 45px;
}

.apartment-section-title h2 {
    margin: 0 0 14px;
    color: #15577d;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
}

.apartment-section-title p {
    max-width: 720px;
    margin: 0 auto;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================
   FEATURES
========================================= */

.apartment-features {
    width: 100%;
    padding: 75px 7%;
    background: #fff;
}

.apartment-feature-grid {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}


/* Flip card */

.apartment-feature-card {
    width: 100%;
    aspect-ratio: 16 / 10;
    position: relative;
    perspective: 1200px;
}

.apartment-feature-front,
.apartment-feature-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform .65s ease;
}


/* Front */

.apartment-feature-front {
    background: #fff;
    transform: rotateY(0deg);
}

.apartment-feature-front img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.apartment-feature-front::after {
    content: "";
    position: absolute;
    inset: 0;
}

.apartment-feature-front-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 25px;
}

.apartment-feature-front-title h3 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
}


/* Back */

.apartment-feature-back {
    padding: 35px;
    background: #302f2f;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotateY(180deg);
}

.apartment-feature-card:hover .apartment-feature-front {
    transform: rotateY(-180deg);
}

.apartment-feature-card:hover .apartment-feature-back {
    transform: rotateY(0deg);
}

.apartment-feature-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border: 2px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apartment-feature-icon i {
    color: #fff;
    font-size: 23px;
}

.apartment-feature-back h3 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 21px;
    line-height: 1.3;
}

.apartment-feature-back p {
    max-width: 430px;
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================
   BENEFITS
========================================= */

.apartment-benefits {
    width: 100%;
    padding: 75px 7%;
    background: #f8fafc;
}

.apartment-benefits-grid {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.apartment-benefit-card {
    min-height: 155px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e4edf3;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.apartment-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(21, 87, 125, .12);
}

.apartment-benefit-icon {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    border: 2px solid #15577d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.apartment-benefit-icon i {
    color: #15577d;
    font-size: 28px;
}

.apartment-benefit-content {
    flex: 1;
}

.apartment-benefit-content h3 {
    margin: 2px 0 10px;
    color: #153b55;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.apartment-benefit-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.65;
}


/* =========================================
   CONTACT
========================================= */

.apartment-contact {
    width: 100%;
    padding: 75px 7%;
    background: #15577d;
}

.apartment-contact-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.apartment-contact-content h2 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

.apartment-contact-content p {
    max-width: 720px;
    margin: 0 auto 12px;
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
    line-height: 1.7;
}

.apartment-contact-btn {
    display: inline-block;
    margin-top: 22px;
    padding: 13px 30px;
    background: #fff;
    color: #15577d;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    transition: background .25s ease, transform .25s ease;
}

.apartment-contact-btn:hover {
    background: #f0f5f8;
    transform: translateY(-2px);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .apartment-hero {
        grid-template-columns: 1fr;
    }

    .apartment-hero-content {
        padding: 55px 7%;
        text-align: center;
    }

    .apartment-hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .apartment-hero-image {
        min-height: 400px;
    }

    .apartment-feature-grid,
    .apartment-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 650px) {

    .apartment-hero-content h1 {
        font-size: 36px;
    }

    .apartment-hero-content h2 {
        font-size: 23px;
    }

    .apartment-hero-image {
        min-height: 300px;
    }

    .apartment-features,
    .apartment-benefits,
    .apartment-contact {
        padding: 55px 5%;
    }

    .apartment-section-title h2 {
        font-size: 25px;
    }

    .apartment-feature-grid,
    .apartment-benefits-grid {
        grid-template-columns: 1fr;
    }

    .apartment-feature-card {
        height: 290px;
    }

    .apartment-benefit-card {
        padding: 22px;
    }
}


@media (max-width: 450px) {

    .apartment-hero-content {
        padding: 45px 5%;
    }

    .apartment-hero-content h1 {
        font-size: 31px;
    }

    .apartment-feature-back {
        padding: 25px;
    }

    .apartment-benefit-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .apartment-benefit-content h3 {
        margin-top: 0;
    }
}