/* =========================================================================
   Profind Customizations - CSS
   ========================================================================= */

/* ---------- כפתור "כניסה לרשומים" ---------- */
.profind-login-existing-btn {
    display: inline-block !important;
    padding: 8px 18px !important;
    border: 1px solid #15a36b !important;
    border-radius: 999px !important;
    color: #15a36b !important;
    font-weight: 600 !important;
    background: #fff !important;
    margin-inline-end: 12px;
    transition: all .2s ease;
    text-decoration: none !important;
}
.profind-login-existing-btn:hover {
    background: #15a36b !important;
    color: #fff !important;
}


/* =========================================================================
   הירו של עמוד הבית
   - מירכוז כותרת וכפתורים
   - כפתורים ירוקים עם פינות מעוגלות 100%
   ========================================================================= */

/* התאם את הסלקטור הזה אם הסקשן הראשון של הירו לא נתפס.
   זה מכוון לסקשן הראשון של אלמנטור בעמוד הבית. */
body.home .elementor-section.elementor-top-section:first-of-type,
body.page-id-5428 .elementor-section.elementor-top-section:first-of-type {
    text-align: center;
}

body.home .elementor-section.elementor-top-section:first-of-type h1,
body.home .elementor-section.elementor-top-section:first-of-type h2,
body.home .elementor-section.elementor-top-section:first-of-type .elementor-heading-title,
body.page-id-5428 .elementor-section.elementor-top-section:first-of-type h1,
body.page-id-5428 .elementor-section.elementor-top-section:first-of-type h2,
body.page-id-5428 .elementor-section.elementor-top-section:first-of-type .elementor-heading-title {
    text-align: center !important;
}

/* כפתורים ירוקים עם פינות 100% עיגול
   מתייחס לכפתורי הירו הראשונים של אלמנטור.
   אם זה תופס יותר מדי, הוסף סלקטור ספציפי יותר באמצעות אלמנטור. */
body.home .elementor-section.elementor-top-section:first-of-type .elementor-button-wrapper,
body.page-id-5428 .elementor-section.elementor-top-section:first-of-type .elementor-button-wrapper {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

body.home .elementor-section.elementor-top-section:first-of-type .elementor-button,
body.page-id-5428 .elementor-section.elementor-top-section:first-of-type .elementor-button {
    background-color: #15a36b !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all .25s ease;
}
body.home .elementor-section.elementor-top-section:first-of-type .elementor-button:hover,
body.page-id-5428 .elementor-section.elementor-top-section:first-of-type .elementor-button:hover {
    background-color: #0f8054 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(21,163,107,.25);
}


/* =========================================================================
   טבלת "מה יוצא לכם מזה" - 2 עמודות
   ========================================================================= */
.profind-comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 60px auto;
    direction: rtl;
}
@media (max-width: 768px) {
    .profind-comparison-table { grid-template-columns: 1fr; }
}
.profind-comparison-col {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.profind-comparison-col h3 {
    color: #15a36b;
    font-size: 1.5rem;
    margin: 0 0 24px;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}
.profind-comparison-col h4 {
    color: #1d1d1f;
    font-size: 1.1rem;
    margin: 22px 0 6px;
}
.profind-comparison-col p {
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px;
}


/* ---------- סקשן אודות מאוחד (במקום 2 הסקשנים הישנים) ---------- */
.profind-about-unified {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    direction: rtl;
}
.profind-about-unified h2 {
    color: #15a36b;
    font-size: 2rem;
    margin: 0 0 20px;
}
.profind-about-unified p {
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 14px;
}

/* ---------- בלוק אודות בפוטר ---------- */
.profind-footer-about h4 {
    margin-top: 0;
}


/* =========================================================================
   סטטוס "הושכר" / "נמכר" - באנר על תמונת הנכס
   ========================================================================= */
.profind-property-status-banner {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    z-index: 5;
    background: rgba(220, 38, 38, .92);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .5px;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    text-transform: uppercase;
}
.profind-property-status-banner.is-rented {
    background: rgba(217, 119, 6, .92); /* ענבר ל"הושכר" */
}
.profind-property-status-banner.is-sold {
    background: rgba(220, 38, 38, .92); /* אדום ל"נמכר" */
}
/* אפקט סטיק על תמונת הנכס + קצת חצי-שקיפות לתמונה  */
.property-thumbnail.has-status-banner img,
.rh_prop_card__thumbnail.has-status-banner img,
.rh-property-status-overlay img {
    filter: grayscale(.4) brightness(.85);
}


/* =========================================================================
   עמוד מכרזים - גריד קוביות + טופס
   ========================================================================= */
.profind-tenders-page { max-width: 1280px; margin: 0 auto; padding: 32px 16px; direction: rtl; }
.profind-tenders-search {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 12px;
    background: #f7f7f8;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}
@media (max-width: 768px) { .profind-tenders-search { grid-template-columns: 1fr; } }
.profind-tenders-search input,
.profind-tenders-search select {
    padding: 10px 14px;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}
.profind-tenders-search button {
    background: #15a36b;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
}
.profind-tender-create-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.profind-create-tender-btn {
    background: #1d4ed8;
    color: #fff;
    padding: 12px 28px;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}
.profind-create-tender-btn:hover { background: #1e40af; }

.profind-tenders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.profind-tender-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.profind-tender-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.profind-tender-card__type {
    font-size: 12px;
    font-weight: 600;
    color: #15a36b;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.profind-tender-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #111827;
}
.profind-tender-card__desc {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    margin: 0 0 16px;
}
.profind-tender-card__btn {
    background: #15a36b;
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 11px 0;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s ease;
}
.profind-tender-card__btn:hover { background: #0f8054; }


/* פופאפ */
.profind-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
}
.profind-modal-overlay.is-open { display: flex; }
.profind-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    direction: rtl;
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.profind-modal h2 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    color: #111827;
}
.profind-modal__subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 20px;
}
.profind-modal label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin: 12px 0 6px;
}
.profind-modal input[type="text"],
.profind-modal input[type="email"],
.profind-modal input[type="tel"],
.profind-modal input[type="file"],
.profind-modal select,
.profind-modal textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}
.profind-modal textarea { min-height: 100px; resize: vertical; }
.profind-modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    justify-content: flex-end;
}
.profind-modal__cancel {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}
.profind-modal__submit {
    background: #15a36b;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}
.profind-modal__submit:disabled { opacity: .5; cursor: not-allowed; }
.profind-modal__success {
    text-align: center;
    padding: 20px 0;
    color: #15a36b;
    font-weight: 600;
}
.profind-modal__error {
    color: #dc2626;
    font-size: 14px;
    margin-top: 12px;
}
