.property-info {
    position: absolute;
    left: var(--property-left, 40px);
    top: var(--property-top, auto);
    bottom: var(--property-bottom, 50px);
    width: var(--property-width, 900px);
    height: auto;
    text-align: var(--property-text-align, left);
    font-family: 'Poppins', sans-serif;
    background: rgba(0, 0, 0, 0);
    padding: 10px;
    border-radius: 8px;
}

.property-title {
    font-size: 45px;
    color: #ffffff;
    margin: 0;
}

.property-description {
    font-size: 25px;
    color: #ffffff;
    margin-top: 5px;
    line-height: 1.6;
    word-wrap: break-word;
}

.box-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    padding: 20px;
    padding-top: 20px;
    max-width: 1300px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
}

.box-link {
    text-decoration: none;
    color: inherit;
}

.box {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: visible; 
}

.box:hover {
    transform: scale(1.05);
}

.box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: contain; 
    display: block;
}

.box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
    text-align: left;
}

.box p {
    font-size: 1rem;
    color: #555;
    text-align: left;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.grid .grid-item-title {
    margin: 0;
    font-size: 1rem;
    font-weight: none;
    color: #494949;
}

.grid .grid-item-subtitle {
    margin: 5px 0 0;
    font-size: 0.95rem;
    font-weight: bold;
    color: rgb(60, 60, 60);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.4s ease-out;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    
    animation: zoomIn 0.4s ease-out;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.4s;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
}

.green-text {
    color: #CF9D3F;
}

.green2-text {
    color: #454B2A;
}

.bold {
    font-weight: bold;
}

.subd-desc {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 30px;
    font-size: 1.4rem;
    line-height: 1.8;
    color: #444;
    font-family: 'Poppins', sans-serif;
    width: 50%;
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
}

.model-house {
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 2;
    font-family: 'Poppins', sans-serif;
}

.model-house h2 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 600;
    margin-bottom: 10px;
}

.price-container {
    margin-top: 10px;
    text-align: left;
}

.price-label {
    margin-bottom: 10px !important;
    font-size: 1rem;
    color: #333;
    line-height: 1.2;
}

.price-amount {
    margin-top: 0; 
    font-size: 1.1rem;
    color: #000;
    line-height: 1.2;
}

.map-info-bg {
    background-color: #f9f9f9;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
}

.map-info-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.map-column {
    flex: 1 1 30%;
    min-width: 280px;
    box-sizing: border-box;
}

.map-column .map-image {
    cursor: pointer;
}

.accessibility-section {
    padding: 10px;
}

.map-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #444;
}

.map-description {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
}

.nearby-title {
    font-size: 1.3rem;
    color: #444;
    margin-top: 20px;
    margin-bottom: 10px;
}

.nearby-list {
    list-style: disc;
    padding-left: 20px;
    color: #333;
}

.map-section {
    text-align: center;
}

.map-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        background-color: rgba(0, 0, 0, 0.8);
    }
}

@media (max-width: 768px) {
    .property-info {
        left: 20px;
        right: 20px;
        width: auto;
        bottom: 20px;
        padding: 8px;
    }

    .property-title {
        font-size: 28px;
    }

    .property-description {
        font-size: 16px;
    }

    .box-container {
        grid-template-columns: 1fr; 
        gap: 20px;
        padding: 10px;
    }

    .subd-desc {
        width: 90%;
        padding: 20px;
        font-size: 1rem;
    }

    .model-house h2 {
        font-size: 24px;
    }

    .map-info-row {
        flex-direction: column;
        gap: 20px;
    }

    .map-column {
        min-width: 100%;
    }

    .map-title,
    .map-description,
    .nearby-title {
        font-size: 1rem;
    }

    .close-modal {
        font-size: 30px;
        right: 20px;
        top: 15px;
    }
}
