/* POPUP OVERLAY */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;

    overflow-y: auto;
    /* allow scroll */
    -webkit-overflow-scrolling: touch;
    /* smooth mobile scroll */
}

/* POPUP CARD */
.popup-content {
    position: relative;
    background: #fff;
    max-width: 950px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    animation: popupFade .25s ease;
}

@keyframes popupFade {
    from {
        transform: scale(.95);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* PROPERTY CONTAINER */
.property {
    padding: 0;
    border: none;
    margin: 0;
    box-shadow: none;
}

/* IMAGE VIEWER */
.image-viewer {
    width: 100%;
    height: 420px;
    position: relative;
    background: #000;
}

.image-viewer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* NAVIGATION BUTTONS */
.image-viewer button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 18px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 6px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* IMAGE COUNTER */
#imageCounter {
    text-align: center;
    padding: 8px;
    background: #f5f5f5;
    font-size: 14px;
}

/* ADDRESS */
.property h2 {
    padding: 18px;
    margin: 0;
    font-size: 22px;
}

/* TABLE STYLE */
.property-table {
    width: 100%;
    border-collapse: collapse;
}

.property-table th {
    background: #fafafa;
    width: 22%;
    font-weight: 600;
}

.property-table th,
.property-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* BUTTONS */
.action-buttons {
    display: flex;
    gap: 10px;
    padding: 15px;
}

.btn-half {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-book {
    background: #28a745;
    color: #fff;
}

.btn-book:hover {
    background: #1e7e34;
}

.btn-back {
    background: #444;
    color: #fff;
}

.btn-back:hover {
    background: #222;
}

@media (max-width:768px) {

    .popup {
        padding: 0;
    }

    .popup-content {
        max-height: 90vh;
        overflow-y: auto;
    }


    .image-viewer {
        height: 260px;
    }

    .property h2 {
        font-size: 18px;
    }

    .property-table th,
    .property-table td {
        font-size: 14px;
        padding: 10px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .close-btn {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

}