/* Zillow-like Property Modal Styles */
.estatify-modal-overlay {
    position: fixed; z-index: 9999; left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center;
    transition: opacity 0.2s;
}
.estatify-modal {
    background: #fff; border-radius: 12px; max-width: 900px; width: 95vw; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25); position: relative; display: flex; flex-direction: column;
    animation: estatifyModalIn 0.25s;
}
@keyframes estatifyModalIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.estatify-modal-close {
    position: absolute; right: 24px; top: 18px; font-size: 2rem; color: #888; cursor: pointer; z-index: 2;
    transition: color 0.2s;
}
.estatify-modal-close:hover { color: #222; }
.estatify-modal-content { display: flex; flex-wrap: wrap; gap: 32px; padding: 32px 24px 24px 24px; }
.estatify-modal-gallery {
    flex: 2 1 500px;
    min-width: 360px;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.estatify-modal-gallery-inner {
    position: relative;
    width: 100%;
}
.estatify-modal-gallery-main img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    max-height: 420px;
    background: #f5f5f5;
}
.estatify-modal-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 2;
}
.estatify-modal-gallery-prev { left: 12px; }
.estatify-modal-gallery-next { right: 12px; }
.estatify-modal-details {
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
#estatify-modal-title { margin: 0 0 8px 0; font-size: 2rem; font-weight: 700; }
.estatify-modal-meta { color: #666; font-size: 1.1rem; margin-bottom: 8px; }
.estatify-modal-description { color: #333; font-size: 1rem; }
.estatify-modal-agent {
    margin-top: 18px;
}
.estatify-modal-agent-card {
    margin-top: 0;
}
.estatify-modal-contact-btn {
    margin-top: 18px;
    padding: 12px 32px;
    background: #6dc12b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.estatify-modal-contact-btn:hover { opacity: 0.96; }
@media (max-width: 700px) {
    .estatify-modal-overlay {
        align-items: flex-start;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .estatify-modal {
        max-width: 100vw;
        width: 100vw;
        max-height: none;
        border-radius: 0;
    }

    .estatify-modal-content {
        flex-direction: column;
        gap: 18px;
        padding: 16px 12px 20px 12px;
    }

    .estatify-modal-gallery {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 100%;
    }

    .estatify-modal-details {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 100%;
    }

    #estatify-modal-title {
        font-size: 1.4rem;
    }

    .estatify-modal-meta {
        font-size: 0.95rem;
    }
}

/* Modal Trigger Widget Styles */
.estatify-modal-trigger-wrapper {
    display: inline-block;
}

.estatify-modal-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.estatify-modal-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.estatify-modal-trigger-icon-before {
    margin-right: 8px;
}

.estatify-modal-trigger-icon-after {
    margin-left: 8px;
}

.estatify-modal-trigger-text {
    display: inline-block;
} 