.property-frontage-section {
    padding: 4rem 2rem;
    background-color: #F5F7FA;
}

.property-frontage-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1600px;
    margin: 0 auto;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
}

/* ---------------------------------------------- Frontage -------------------------------------------------- */

.frontage-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.frontage-left-header div {
    display: flex;
    margin-top: 2rem;
    column-gap: 1.5rem;
}

.frontage-header-title {
    font-size: 52px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #0B1427;
}

.frontage-header-title span {
    color: #1F3B73;
    font-weight: 600;
}

.frontage-header-description {
    font-size: 24px;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    color: #0B1427;
}

.frontage-left-buttons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.frontage-left-buttons>hr {
    width: 100%;
    border: none;
    border-top: 4px solid #D8BFAA;
}

.frontage-left-buttons>div {
    display: flex;
    gap: 2rem;
}

.frontage-previous-btn,
.frontage-next-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.frontage-previous-btn img,
.frontage-next-btn img {
    width: 24px;
}

.frontage-link-btn {
    display: flex;
    justify-content: center;
    width: 240px;

    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 16px;
    padding: 1.25rem 0;

    color: #D8BFAA;
    text-decoration: none;
    border: #D8BFAA 2px solid;
    border-radius: 4px;
}

.frontage-right {
    flex: 1;
}

.frontage-gallery {
    position: relative;
    overflow: hidden;
    width: 1040px;
    /* Fixed to match image width */
    margin: 0 auto;
    /* Center horizontally */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: max-content;
}

.gallery-item {
    flex-shrink: 0;
    width: 1040px;
    /* Fix the width */
    text-align: center;
}

.frontage-images {
    width: 1040px;
    height: 920px;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .property-frontage-container {
        flex-direction: column;
        align-items: center;
    }

    .carousel-track {
        width: 100%;
    }

    .frontage-gallery {
        width: 100%;
        overflow-x: auto;
    }

    .gallery-item {
        width: 100%;
    }

    .frontage-images {
        width: 100%;
        height: 600px;
    }

    .frontage-left-buttons>div {
        justify-content: center;
    }

    .frontage-left {
        align-items: center;
        text-align: center;
    }

    .frontage-left-header div {
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .frontage-images {
        height: 480px;
    }

    .frontage-header-title {
        font-size: 32px;
    }

    .frontage-header-description {
        font-size: 18px;
    }

    .frontage-link-btn {
        width: 100%;
        max-width: 320px;
    }

    .frontage-left-buttons {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .frontage-images {
        height: 320px;
    }

    .frontage-header-title {
        font-size: 32px;
    }

    .frontage-header-description {
        font-size: 18px;
    }

    .frontage-left-buttons>div {
        flex-direction: column;
        gap: 1rem;
    }

    .frontage-link-btn {
        font-size: 14px;
        padding: 1rem 0;
    }

    .frontage-previous-btn img,
    .frontage-next-btn img {
        width: 20px;
    }
}