

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #f5f7fa, #c3cfe2);
    min-height: 100vh;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.property-card {
    display: flex;
    flex-direction: column;
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.image-wrapper {
    position: relative;
}

.property-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.backBtn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.backBtn img {
    width: 35px;
    height: 35px;
    border: 2px solid rgba(255, 255, 255, 0.226);
    border-radius: 50%;
    transition: all 0.3s;
}

.backBtn:hover {
    transform: scale(1.05);
}

.backBtn:active {
    transform: scale(1.1) rotate(-90deg);
}

.property-content {
    padding: 20px;
}

.property-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.property-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin-bottom: 20px;
}

.property-details div {
    font-size: 1rem;
    color: #555;
}

.price {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    color: #0e9302;
}

.builder-info {
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
    color: #666;
}

.book-section {
    text-align: center;
}

.book-section button {
    padding: 12px 30px;
    font-size: 1rem;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.book-section button:hover {
    background-color: #218838;
}

.book-note {
    font-size: 0.9rem;
    margin-top: 12px;
    color: #777;
}


@media (max-width: 480px) {
    body {
        padding: 20px 0 0;
        margin: 0;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-x: hidden;
    }

        .image-wrapper {
            height:15.5rem;
            padding:0.5px;
        }
    
        .image-wrapper img {
            height: 100%;
        }

    .property-title {
        font-size: 1.9rem;
    }

    .property-details {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .property-details div {
        font-size: 1rem;
        color: black;
    }

    .price {
        color: #0e9302;
        font-size: 2rem;
    }

    .builder-info {
        font-size: 0.95rem;
    }

    .book-section button {
        padding: 15px 34px;
        font-size: 1rem;
    }

    /* .backBtn {
        width: 35px;
        height: 35px;
        left: 5px;
        top: 5px;
    }

    .backBtn img {
        width: 33px;
        height: 33px;
    } */
}
