.property-floorplan-container {
    max-width: 1200px; /* เพิ่มจาก 800px เพื่อรองรับภาพใหญ่ */
    margin: 20px auto;
    padding: 20px;
}

.property-tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.property-tablink {
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
    padding: 10px 20px;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    transition: background 0.2s;
}

.property-tablink.active {
    background: #fff;
    border-bottom: 1px solid #fff;
}

.property-tabcontent {
    display: none;
}

.property-dropdown {

    padding: 10px;
    margin-bottom: 20px;
    border: 0px solid #ccc;
    border-radius: 0px;
    font-size: 16px;
    background: #FFF;
  border-bottom: 1px solid #000;
}

.property-image-wrapper {
    text-align: center;
    min-height: 400px; /* เพิ่มเพื่อรองรับภาพใหญ่ */
    border: 1px dashed #ccc;
    padding: 20px;
    transition: opacity 0.2s;
}

.property-image-wrapper img {
    width: 100%;
    max-height: 600px; /* จำกัดความสูงเพื่อไม่ให้ใหญ่เกิน */
    object-fit: contain; /* รักษาสัดส่วนภาพ */
    border-radius: 4px;
}

.property-error {
    color: #d00;
    font-size: 14px;
    text-align: center;
}

.property-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

.property-debug {
    background: #f8f8f8;
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 12px;
    margin-top: 10px;
}

/* Modal Styles */
.property-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    padding-top: 60px;
}

.property-modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px; /* เพิ่มเพื่อแสดงภาพใหญ่ใน modal */
    max-height: 80vh;
    object-fit: contain;
}

.property-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .property-floorplan-container {
        max-width: 100%;
        padding: 10px;
    }
    .property-tabs {
        flex-wrap: wrap;
    }
    .property-tablink {
        flex: 1 1 auto;
        margin-bottom: 5px;
    }
    .property-image-wrapper {
        min-height: 200px;
    }
    .property-image-wrapper img {
        max-height: 400px;
    }
    .property-modal-content {
        width: 100%;
        max-height: 70vh;
    }
}