/* Floor Plan Section Styles */
#floor-plan {
    padding: 2rem 100px;
}

@media screen and (max-width: 960px) {
    #floor-plan {
        padding: 1rem 20px;
    }
}

@media screen and (max-width: 500px) {
    #floor-plan {
        padding: 10px;
    }
}

.title-container {
    text-align: center;
    margin-bottom: 30px;
}

.title {
    font-size: 3rem;
    color: #E5BC5D;
}

.line-con {
    margin-top: 10px;
}

.line-1 {
    width: 100px;
    height: 4px;
    background-color: #E5BC5D;
    margin: 0 auto;
}

.floor-plan-con {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.plan-card {
    height: 250px;
    width: 250px;
    position: relative;
    border-radius: .5rem;
    border: 3px solid #E5BC5D;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("../assets/FloorPlan.webp");
    /* Update the path */
    color: white;
    overflow: hidden;
    cursor: pointer;
}

.plan-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 250px;
    backdrop-filter: blur(1px);
    background-color: rgba(117, 117, 117, 0.7);
}

.plan-card .optional-heading {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: inherit;
}

.plan-card .plan-card-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.plan-card h4 {
    position: absolute;
    top: 62%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.plan-card h5 {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.plan-card:hover {
    color: #E5BC5D;
    opacity: 0.9;
}

/* Responsive Design */
@media screen and (max-width: 960px) {
    .floor-plan-con {
        justify-content: center;
    }

    .plan-card {
        width: 220px;
        height: 220px;
    }

    .plan-card::before {
        width: 220px;
        height: 220px;
    }
}

@media screen and (max-width: 500px) {
    .plan-card {
        width: 200px;
        height: 200px;
    }

    .plan-card::before {
        width: 200px;
        height: 200px;
    }

    .optional-heading {
        top: 80px;
    }

    .plan-card .plan-card-title {
        top: 50%;
        font-size: 1rem;
    }

    .plan-card h4 {
        top: 60%;
        font-size: 0.9rem;
    }

    .plan-card h5 {
        font-size: 0.9rem;
    }
}