/**
 * Property Popup Styles
 */

.ream-property-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: reamPopupFadeIn 0.3s ease;
}

@keyframes reamPopupFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ream-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.ream-popup-container {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: reamPopupSlideIn 0.4s ease;
}

@keyframes reamPopupSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.ream-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.ream-popup-close:hover {
    background: #e0e0e0;
    color: #333;
}

.ream-popup-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.ream-popup-header h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.ream-popup-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.ream-popup-content {
    padding: 20px;
}

.ream-popup-property {
    display: flex;
    gap: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.ream-popup-img {
    width: 140px;
    min-height: 160px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.ream-popup-info {
    padding: 16px 16px 16px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ream-popup-info h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.ream-popup-location {
    margin: 0 0 8px;
    font-size: 13px;
    color: #666;
}

.ream-popup-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
}

.ream-popup-price {
    font-size: 20px;
    font-weight: 700;
    color: #f5a623;
    margin-bottom: 12px;
}

.ream-popup-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f5a623, #e09000);
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}

.ream-popup-btn:hover {
    background: linear-gradient(135deg, #e09000, #c78000);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

/* Enquiry Form */
.ream-popup-enquiry {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ream-popup-enquiry h5 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.ream-popup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ream-popup-form input {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.ream-popup-form input:focus {
    outline: none;
    border-color: #f5a623;
}

.ream-popup-form button {
    background: #222;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ream-popup-form button:hover {
    background: #333;
}

.ream-popup-form-response {
    text-align: center;
    font-size: 13px;
    min-height: 20px;
}

/* Mobile */
@media (max-width: 480px) {
    .ream-popup-container {
        width: 95%;
        margin: 10px;
    }

    .ream-popup-property {
        flex-direction: column;
    }

    .ream-popup-img {
        width: 100%;
        height: 140px;
    }

    .ream-popup-info {
        padding: 16px;
    }
}