.org-map-page {
    padding-bottom: 2rem;
    margin-top: 35px;
    position: relative;
}

/* Header + filter trigger (matches AllOpportunities) */
.org-map-page .org-map-header.custom-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    margin-bottom: 24px;
    padding: 20px 0;
}

.org-map-page .header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.org-map-page .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.org-map-page .header-logo {
    background-color: #f99d27;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.org-map-page .header-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

html[dir="ltr"] .org-map-page .header-logo img {
    transform: scaleX(-1);
}

.org-map-page .header-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.org-map-page .filter-btn {
    background-color: #dee8df;
    border: 1px solid #bbcfbe;
    border-radius: 6px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #25652c;
    flex-shrink: 0;
}

.org-map-page .filter-btn:hover {
    background-color: #d0dfcf;
}

.org-map-page .sort-by-label {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.org-map-page .reset-link {
    text-decoration: none;
    color: #2e7d32;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.org-map-page .reset-link:hover {
    color: #256628;
}

.network-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    justify-items: start !important; 
    align-items: start;
    gap: 25px;
    width: 100%;
}

.org-card {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    cursor: pointer;
    transition: 0.35s ease;
    border: 2px solid rgba(37, 101, 44, 0.18);
    overflow: visible;
    box-shadow:
        0 0 0 1px rgba(37, 101, 44, 0.1),
        0 5px 16px rgba(37, 101, 44, 0.22),
        0 8px 26px rgba(249, 157, 39, 0.18),
        0 14px 36px rgba(15, 23, 42, 0.06);
}

/* glowing orbit ring */
.org-card::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(
        from 180deg,
        #25652c,
        #f99d27,
        #25652c
    );
    opacity: 0.26;
    filter: blur(12px);
    transition: 0.4s ease;
}

/* وهج داخلي خفيف تحت طبقة القرص */
.org-card::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(37, 101, 44, 0.05),
        transparent 70%);
    pointer-events: none;
}

/* hover = expansion */
.org-card:hover,
.org-card:focus-visible {
    transform: scale(1.15);
    z-index: 10;
    border-color: rgba(37,101,44,0.4);
    outline: none;
    box-shadow:
        0 0 0 6px rgba(37, 101, 44, 0.06),
        0 0 0 1px rgba(249, 157, 39, 0.12),
        0 6px 18px rgba(37, 101, 44, 0.18),
        0 10px 24px rgba(249, 157, 39, 0.14),
        0 16px 36px rgba(15, 23, 42, 0.08);
}

.org-card:hover::before,
.org-card:focus-visible::before {
    opacity: 0.38;
    filter: blur(12px);
    transform: rotate(180deg);
}

/* ==============================
   قرص كامل بالصورة — المعلومات تظهر عند hover / focus
============================== */

.org-card-body {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-sizing: border-box;
}

.org-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* طبقة المعلومات */
.org-card-hover {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    box-sizing: border-box;
    background: linear-gradient(
        165deg,
        rgba(37, 101, 44, 0.92) 0%,
        rgba(20, 40, 24, 0.88) 100%
    );
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.org-card:hover .org-card-hover,
.org-card:focus-within .org-card-hover,
.org-card:focus-visible .org-card-hover {
    opacity: 1;
}

.org-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 100%;
    max-height: 100%;
    text-align: center;
}

/* ==============================
   TEXT (compact node style)
============================== */

.org-card-hover .org-name {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    max-height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.org-card-hover .org-meta {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    max-width: 100%;
}

.org-card-hover .org-disc-sector {
    font-weight: 600;
    color: #e8ffd0;
}

.org-card-hover .org-disc-country {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}


.org-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* ========== Organizations map — filter (matches all-opportunities) + RTL/LTR ========== */
.org-map-page .org-map-header {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.org-map-page .org-map-header .org-map-filter-window.filter-window {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    width: min(380px, calc(100vw - 40px));
    max-width: 380px;
    min-width: 280px;
    border-radius: 24px;
    border: 1px solid #eef2f7;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
    padding: 18px;
    z-index: 1060;
    background: #fff;
    animation: orgMapFilterIn 0.2s ease;
}

.org-map-page .org-map-header .org-map-filter-window.filter-window.is-open {
    display: block;
}

@keyframes orgMapFilterIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html[dir="ltr"] .org-map-page .org-map-header .org-map-filter-window.filter-window {
    left: auto;
    right: 0;
}

.org-map-page .org-map-header .filter-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f7;
}

.org-map-page .filter-heading-caret {
    font-size: 0.7rem;
    color: #B6C7B9;
}

html[dir="rtl"] .org-map-page .filter-heading-caret {
    display: inline-block;
    transform: scaleX(-1);
}

.org-map-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 6px;
}

.org-map-select,
.org-map-filter-form .form-control {
    border-radius: 14px !important;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid #dbe4ee !important;
    box-shadow: none !important;
}

.org-map-filter-form .form-control:focus {
    border-color: #3fa34d !important;
    box-shadow: 0 0 0 4px rgba(63, 163, 77, 0.12) !important;
}

.org-map-filter-actions {
    display: flex;
    gap: 6px;
    justify-content: space-between;
    margin-top: 16px;
}

.org-map-filter-actions .btn-cancel-sub,
.org-map-filter-actions .btn-search-sub {
    flex: 1;
    margin: 0;
    border: none !important;
    border-radius: 999px;
    padding: 11px 14px;
    font-weight: 700;
    transition: 0.2s ease;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
    box-sizing: border-box;
}

.org-map-filter-actions .btn-cancel-sub:focus,
.org-map-filter-actions .btn-cancel-sub:focus-visible,
.org-map-filter-actions .btn-search-sub:focus,
.org-map-filter-actions .btn-search-sub:focus-visible {
    outline: none !important;
}

.org-map-filter-actions .btn-cancel-sub {
    background: #eef2f7;
    color: #475569;
    box-shadow: none;
}

.org-map-filter-actions .btn-cancel-sub:hover {
    background: #e2e8f0;
}

.org-map-filter-actions .btn-search-sub {
    background: linear-gradient(135deg, #2e7d32, #3fa34d);
    color: #fff;
    box-shadow: 0 10px 24px rgba(46, 125, 50, 0.16);
}

.org-map-filter-actions .btn-search-sub:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(46, 125, 50, 0.22);
}

.org-map-filter-actions .btn-search-sub:focus,
.org-map-filter-actions .btn-search-sub:focus-visible {
    box-shadow: 0 10px 24px rgba(46, 125, 50, 0.16) !important;
}

.org-map-empty {
    border-radius: 16px;
    border: 1px solid #dbe4ee;
}

.org-map-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 28px 0 48px;
    gap: 8px;
}

.org-map-page-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #334155;
    font-weight: 700;
    transition: 0.2s ease;
}

.org-map-page-link:hover,
.org-map-page-link.active {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

@media (max-width: 991px) {
    .org-map-page .org-map-header .org-map-filter-window.filter-window {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
        min-width: unset !important;
    }
}

@media (max-width: 768px) {
    .org-map-page .org-map-header.custom-header {
        flex-direction: column;
        align-items: stretch;
    }

    .org-map-page .header-right,
    .org-map-page .header-left {
        justify-content: space-between;
    }

    .org-map-page .header-title {
        font-size: 1.5rem;
    }

    .org-map-page .org-map-header .org-map-filter-window.filter-window {
        padding: 14px;
        border-radius: 20px;
    }
}

/* Empty search — SweetAlert2 popup */
.org-map-empty-grid {
    min-height: 120px;
    width: 100%;
}

.swal2-popup.org-map-no-results-swal {
    border-radius: 22px !important;
    padding: 28px 26px 24px !important;
    max-width: 440px !important;
    width: calc(100vw - 32px) !important;
    background: linear-gradient(180deg, #fff5f5 0%, #ffffff 45%) !important;
    border: 1px solid rgba(185, 28, 28, 0.22) !important;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
}

.swal2-popup.org-map-no-results-swal .swal2-title.org-map-no-results-title {
    color: #b91c1c !important;
    font-weight: 800 !important;
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
    padding: 0 4px 0 !important;
    margin: 0 auto 4px !important;
    max-width: 100% !important;
    text-align: center !important;
}

.swal2-popup.org-map-no-results-swal .org-map-no-results-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.swal2-popup.org-map-no-results-swal .org-map-no-results-icon-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ef4444 0%, #dc2626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(220, 38, 38, 0.38);
    color: #ffffff;
}

.swal2-popup.org-map-no-results-swal .org-map-no-results-icon-ring .org-map-no-results-svg {
    display: block;
    flex-shrink: 0;
}

.swal2-popup.org-map-no-results-swal .org-map-no-results-hint {
    margin: 0 4px 6px;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
    text-align: center;
}

.swal2-popup.org-map-no-results-swal .swal2-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 16px !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.swal2-popup.org-map-no-results-swal .swal2-actions .swal2-styled {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: calc(50% - 4px) !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
    border: none !important;
}

.swal2-popup.org-map-no-results-swal .swal2-actions .swal2-styled:focus,
.swal2-popup.org-map-no-results-swal .swal2-actions .swal2-styled:focus-visible {
    outline: none !important;
}

/* بدون بوردر — نفس ألوان الكبسات مع ظل فقط */
.swal2-popup.org-map-no-results-swal .swal2-confirm.btn-search-sub {
    border: none !important;
    border-radius: 14px !important;
    padding: 11px 14px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: 0.2s ease !important;
    background: linear-gradient(135deg, #2e7d32, #3fa34d) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(46, 125, 50, 0.16) !important;
}

.swal2-popup.org-map-no-results-swal .swal2-confirm.btn-search-sub:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 14px 28px rgba(46, 125, 50, 0.22) !important;
}

.swal2-popup.org-map-no-results-swal .swal2-confirm.btn-search-sub:focus,
.swal2-popup.org-map-no-results-swal .swal2-confirm.btn-search-sub:focus-visible {
    box-shadow: 0 10px 24px rgba(46, 125, 50, 0.16) !important;
}

.swal2-popup.org-map-no-results-swal .swal2-cancel.btn-cancel-sub {
    border: none !important;
    border-radius: 14px !important;
    padding: 11px 14px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: 0.2s ease !important;
    background: #eef2f7 !important;
    color: #475569 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}

.swal2-popup.org-map-no-results-swal .swal2-cancel.btn-cancel-sub:hover {
    background: #e2e8f0 !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

.swal2-popup.org-map-no-results-swal .swal2-cancel.btn-cancel-sub:focus,
.swal2-popup.org-map-no-results-swal .swal2-cancel.btn-cancel-sub:focus-visible {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}