:root{
    --ric-masjid-bg:#061812;
    --ric-masjid-panel:#0c2119;
    --ric-masjid-panel2:#10291f;
    --ric-masjid-border:rgba(255,255,255,.11);
    --ric-masjid-text:#f5faf7;
    --ric-masjid-muted:#a9bbb2;
    --ric-masjid-gold:#e4bd69;
    --ric-masjid-green:#2dbb78;
}

*{box-sizing:border-box}

.ric-masjid-v12{
    min-height:calc(100vh - 80px);
    background:
      radial-gradient(circle at 70% 0%,rgba(35,119,78,.20),transparent 34%),
      linear-gradient(180deg,#071912,#03100c);
    color:var(--ric-masjid-text);
}

.ric-masjid-v12 button,
.ric-masjid-v12 input,
.ric-masjid-v12 select{
    font:inherit;
}

.ric-masjid-hero{
    padding:28px 28px 18px;
    border-bottom:1px solid var(--ric-masjid-border);
}

.ric-masjid-title{
    margin:0;
    font-size:clamp(28px,4vw,52px);
    line-height:1;
}

.ric-masjid-subtitle{
    color:var(--ric-masjid-muted);
    margin:10px 0 0;
}

.ric-masjid-searchbar{
    margin-top:20px;
    display:flex;
    gap:10px;
    max-width:980px;
}

.ric-masjid-searchbar input{
    flex:1;
    min-width:0;
    border:1px solid var(--ric-masjid-border);
    border-radius:14px;
    padding:14px 16px;
    background:#fff;
    color:#111;
}

.ric-masjid-action{
    border:1px solid var(--ric-masjid-border);
    border-radius:14px;
    padding:12px 16px;
    background:var(--ric-masjid-panel2);
    color:#fff;
    cursor:pointer;
}

.ric-masjid-action:hover{
    transform:translateY(-1px);
}

.ric-masjid-tabs{
    display:flex;
    gap:8px;
    overflow:auto;
    padding:12px 28px;
    border-bottom:1px solid var(--ric-masjid-border);
}

.ric-masjid-tab{
    white-space:nowrap;
    border:1px solid var(--ric-masjid-border);
    background:transparent;
    color:var(--ric-masjid-muted);
    padding:9px 14px;
    border-radius:999px;
    cursor:pointer;
}

.ric-masjid-tab.is-active{
    color:#08140f;
    background:var(--ric-masjid-gold);
}

.ric-masjid-workspace{
    display:grid;
    grid-template-columns:minmax(250px,320px) minmax(420px,1fr) minmax(280px,360px);
    height:min(760px,calc(100vh - 245px));
    min-height:590px;
}

.ric-masjid-results,
.ric-masjid-profile{
    background:rgba(5,22,16,.96);
    overflow:auto;
}

.ric-masjid-results{
    border-right:1px solid var(--ric-masjid-border);
}

.ric-masjid-profile{
    border-left:1px solid var(--ric-masjid-border);
}

.ric-masjid-panel-head{
    position:sticky;
    top:0;
    z-index:5;
    padding:14px;
    background:rgba(5,22,16,.96);
    border-bottom:1px solid var(--ric-masjid-border);
}

.ric-masjid-filter-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:10px;
}

.ric-masjid-filter-grid select{
    width:100%;
    padding:9px;
    border-radius:10px;
}

.ric-masjid-card{
    margin:10px;
    padding:14px;
    border:1px solid var(--ric-masjid-border);
    border-radius:14px;
    background:var(--ric-masjid-panel);
    cursor:pointer;
    transition:.18s ease;
}

.ric-masjid-card:hover,
.ric-masjid-card.is-selected{
    border-color:var(--ric-masjid-gold);
    transform:translateY(-2px);
}

.ric-masjid-card h3{
    margin:0 0 5px;
    font-size:16px;
}

.ric-masjid-card p{
    margin:0;
    color:var(--ric-masjid-muted);
    font-size:13px;
}

.ric-masjid-map-wrap{
    position:relative;
    overflow:hidden;
    background:#dce9e1;
}

#ricMasjidMap{
    position:absolute;
    inset:0;
}

.ric-map-status{
    position:absolute;
    top:12px;
    left:12px;
    z-index:5;
    max-width:min(420px,calc(100% - 24px));
    background:rgba(3,16,12,.90);
    border:1px solid var(--ric-masjid-border);
    border-radius:12px;
    padding:8px 11px;
    color:#fff;
    font-size:12px;
    pointer-events:none;
}

.ric-map-controls{
    position:absolute;
    top:12px;
    right:12px;
    z-index:6;
    display:flex;
    flex-direction:column;
    gap:7px;
}

.ric-map-control{
    width:42px;
    height:42px;
    border:1px solid rgba(0,0,0,.12);
    border-radius:11px;
    background:#fff;
    color:#111;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 4px 16px rgba(0,0,0,.18);
}

.ric-maplibre-shell{
    position:absolute;
    inset:0;
}

.ric-maplibre-shell canvas{
    outline:none;
}

.ric-masjid-profile-inner{
    padding:18px;
}

.ric-profile-empty{
    color:var(--ric-masjid-muted);
    line-height:1.55;
}

.ric-profile-id{
    font-size:11px;
    letter-spacing:.08em;
    color:var(--ric-masjid-gold);
}

.ric-profile-name{
    margin:7px 0;
    font-size:25px;
}

.ric-profile-location{
    color:var(--ric-masjid-muted);
}

.ric-truth-badge{
    display:inline-flex;
    margin-top:10px;
    padding:6px 9px;
    border-radius:999px;
    border:1px solid var(--ric-masjid-border);
    font-size:11px;
}

.ric-profile-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:16px;
}

.ric-profile-actions a{
    text-align:center;
    text-decoration:none;
}

.ric-profile-section{
    border-top:1px solid var(--ric-masjid-border);
    margin-top:18px;
    padding-top:15px;
}

.ric-profile-section h4{
    margin:0 0 8px;
}

.ric-profile-section p{
    color:var(--ric-masjid-muted);
}

.ric-marker3d{
    position:relative;
    width:42px;
    height:50px;
    cursor:pointer;
    transform-origin:50% 100%;
    transition:transform .16s ease,filter .16s ease;
}

.ric-marker3d:hover{
    transform:translateY(-7px) scale(1.18);
    filter:drop-shadow(0 10px 8px rgba(0,0,0,.28));
}

.ric-marker3d-core{
    position:absolute;
    left:4px;
    top:4px;
    width:34px;
    height:34px;
    border-radius:50% 50% 44% 44%;
    background:
      radial-gradient(circle at 36% 28%,#fff4c7 0 7%,transparent 8%),
      linear-gradient(145deg,#f3d58a,#b8872d 72%);
    border:2px solid #fff4c8;
    box-shadow:
      inset -6px -7px 9px rgba(75,44,0,.22),
      0 5px 13px rgba(0,0,0,.28);
}

.ric-marker3d-core:before{
    content:"";
    position:absolute;
    left:9px;
    top:-10px;
    width:12px;
    height:14px;
    border-radius:60% 60% 45% 45%;
    background:#f0cd78;
    transform:rotate(45deg);
}

.ric-marker3d-core:after{
    content:"";
    position:absolute;
    left:15px;
    top:-17px;
    width:3px;
    height:10px;
    border-radius:3px;
    background:#f6e1a5;
}

.ric-marker3d-pin{
    position:absolute;
    left:17px;
    bottom:2px;
    width:8px;
    height:14px;
    background:#b8872d;
    clip-path:polygon(0 0,100% 0,50% 100%);
}

.ric-marker3d.is-selected{
    transform:translateY(-7px) scale(1.23);
    z-index:9;
}

.ric-marker3d.is-selected:after{
    content:"";
    position:absolute;
    left:-8px;
    top:-8px;
    width:58px;
    height:58px;
    border:2px solid rgba(228,189,105,.85);
    border-radius:50%;
    animation:ricMarkerPulse 1.5s infinite;
}

@keyframes ricMarkerPulse{
    0%{transform:scale(.72);opacity:1}
    100%{transform:scale(1.45);opacity:0}
}

.ric-cluster{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#0c2d20;
    color:#fff;
    border:3px solid var(--ric-masjid-gold);
    font-weight:800;
    box-shadow:0 6px 18px rgba(0,0,0,.30);
    cursor:pointer;
}

.ric-adhan-dock{
    position:absolute;
    left:50%;
    bottom:14px;
    z-index:6;
    transform:translateX(-50%);
    display:flex;
    gap:6px;
    padding:7px;
    border:1px solid var(--ric-masjid-border);
    border-radius:999px;
    background:rgba(3,16,12,.92);
}

.ric-adhan-dock button{
    border:0;
    border-radius:999px;
    background:transparent;
    color:#fff;
    padding:7px 10px;
    cursor:pointer;
}

.ric-adhan-dock button.is-active{
    background:var(--ric-masjid-gold);
    color:#111;
}

.ric-mobile-handle{
    display:none;
}

@media(max-width:1100px){
    .ric-masjid-workspace{
        grid-template-columns:270px 1fr;
    }

    .ric-masjid-profile{
        position:absolute;
        right:0;
        top:0;
        bottom:0;
        width:min(390px,90vw);
        z-index:20;
        transform:translateX(100%);
        transition:.2s ease;
        box-shadow:-12px 0 30px rgba(0,0,0,.25);
    }

    .ric-masjid-profile.is-open{
        transform:translateX(0);
    }

    .ric-masjid-map-wrap{
        position:relative;
    }
}

@media(max-width:760px){
    .ric-masjid-hero{
        padding:18px 14px 12px;
    }

    .ric-masjid-searchbar{
        margin-top:13px;
    }

    .ric-masjid-tabs{
        padding:10px 14px;
    }

    .ric-masjid-workspace{
        display:block;
        position:relative;
        height:calc(100vh - 230px);
        min-height:560px;
    }

    .ric-masjid-results{
        display:none;
    }

    .ric-masjid-map-wrap{
        position:absolute;
        inset:0;
    }

    .ric-masjid-profile{
        position:absolute;
        left:8px;
        right:8px;
        top:auto;
        bottom:8px;
        width:auto;
        height:min(58vh,520px);
        border:1px solid var(--ric-masjid-border);
        border-radius:20px;
        transform:translateY(calc(100% + 18px));
        transition:.22s ease;
        z-index:30;
        box-shadow:0 -14px 34px rgba(0,0,0,.30);
    }

    .ric-masjid-profile.is-open{
        transform:translateY(0);
    }

    .ric-mobile-handle{
        display:block;
        width:52px;
        height:5px;
        border-radius:99px;
        background:rgba(255,255,255,.28);
        margin:8px auto 0;
    }

    .ric-map-status{
        top:65px;
    }

    .ric-adhan-dock{
        max-width:calc(100% - 20px);
        overflow:auto;
        justify-content:flex-start;
    }
}

/* ============================================================
   RIC GLOBAL MASJID EXPLORER V1.2A.1
   LIGHT MAP / GLOBAL ADHAN EXPERIENCE
   ============================================================ */

:root{
    --ric-v121-bg:#f8f6ef;
    --ric-v121-surface:#ffffff;
    --ric-v121-surface-soft:#fffdf7;
    --ric-v121-border:#dfe7df;
    --ric-v121-text:#17352d;
    --ric-v121-muted:#65766f;
    --ric-v121-emerald:#176b52;
    --ric-v121-emerald-2:#218366;
    --ric-v121-gold:#c89b38;
    --ric-v121-sky:#eaf5fb;
    --ric-v121-shadow:0 16px 45px rgba(31,61,50,.12);
}

/*
 * Force the Explorer out of the previous permanent dark theme.
 * Astronomical night belongs on the geographic map layer, not
 * on the entire application shell.
 */
body.ric-global-masjid-page,
.ric-global-masjid-page,
.ric-masjid-app,
.ric-masjid-shell,
.ric-masjid-main,
.ric-masjid-explorer,
.ric-global-masjid{
    background:
        radial-gradient(circle at 85% 5%,rgba(205,230,242,.55),transparent 28rem),
        linear-gradient(180deg,#fffdf8 0,#f7f6ef 55%,#f1f7f3 100%) !important;
    color:var(--ric-v121-text) !important;
}

.ric-masjid-app{
    min-height:calc(100vh - 80px);
}

.ric-masjid-hero,
.ric-masjid-toolbar,
.ric-masjid-tabs,
.ric-masjid-results,
.ric-masjid-panel,
.ric-masjid-card,
.ric-masjid-drawer,
.ric-masjid-profile,
.ric-masjid-empty,
.ric-masjid-filter-panel{
    background:rgba(255,255,255,.94) !important;
    color:var(--ric-v121-text) !important;
    border-color:var(--ric-v121-border) !important;
}

.ric-masjid-hero{
    background:
        radial-gradient(circle at 90% 20%,rgba(202,226,239,.78),transparent 28rem),
        linear-gradient(135deg,#fffdf7,#edf8f3) !important;
}

.ric-masjid-hero h1,
.ric-masjid-hero h2,
.ric-masjid-title,
.ric-masjid-panel h2,
.ric-masjid-panel h3,
.ric-masjid-card strong{
    color:#143c31 !important;
}

.ric-masjid-hero p,
.ric-masjid-muted,
.ric-masjid-meta,
.ric-masjid-count,
.ric-masjid-empty{
    color:var(--ric-v121-muted) !important;
}

.ric-masjid-search,
.ric-masjid-search input,
.ric-masjid-toolbar input,
.ric-masjid-toolbar select{
    background:#fff !important;
    color:#16362d !important;
    border-color:#ccd9d3 !important;
}

.ric-masjid-search input::placeholder{
    color:#81918b !important;
}

.ric-masjid-tabs a,
.ric-masjid-tab,
.ric-masjid-chip{
    background:#fff !important;
    color:#285448 !important;
    border-color:#d7e2dd !important;
}

.ric-masjid-tabs a:hover,
.ric-masjid-tab:hover,
.ric-masjid-chip:hover,
.ric-masjid-tab.is-active,
.ric-masjid-chip.is-active{
    background:#edf8f3 !important;
    color:#0d5b43 !important;
    border-color:#8dbfae !important;
}

/* Map becomes the dominant visual surface. */
.ric-masjid-map-layout,
.ric-masjid-explorer-layout{
    position:relative !important;
    display:block !important;
    width:100% !important;
    max-width:none !important;
}

.ric-maplibre-shell,
#ricMasjidMap{
    width:100% !important;
    min-height:680px !important;
    height:clamp(620px,72vh,920px) !important;
    background:#dfeef3 !important;
    border:1px solid #d4dfda !important;
    border-radius:24px !important;
    overflow:hidden !important;
    box-shadow:var(--ric-v121-shadow) !important;
}

/* Floating results / geographic navigator */
.ric-masjid-results,
#ricMasjidResults{
    position:absolute !important;
    z-index:8 !important;
    top:20px !important;
    left:20px !important;
    width:min(360px,calc(100% - 40px)) !important;
    max-height:calc(100% - 40px) !important;
    overflow:auto !important;
    border-radius:18px !important;
    box-shadow:0 14px 42px rgba(31,61,50,.18) !important;
    backdrop-filter:blur(16px);
}

/* Information layer */
.ric-masjid-profile,
.ric-masjid-drawer,
#ricMasjidProfile{
    position:absolute !important;
    z-index:9 !important;
    top:20px !important;
    right:20px !important;
    width:min(390px,calc(100% - 40px)) !important;
    max-height:calc(100% - 40px) !important;
    overflow:auto !important;
    border-radius:20px !important;
    box-shadow:0 18px 52px rgba(31,61,50,.20) !important;
    backdrop-filter:blur(18px);
}

/* Small mosque pin */
.ric-masjid-marker{
    width:30px !important;
    height:38px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:16px 16px 18px 18px !important;
    background:
        linear-gradient(145deg,#2b9673,#0e5c45) !important;
    border:2px solid #e7c76d !important;
    color:#fff !important;
    box-shadow:
        0 8px 12px rgba(18,66,52,.28),
        inset 0 1px 1px rgba(255,255,255,.5) !important;
    transform-origin:50% 100%;
    transition:
        transform .18s ease,
        filter .18s ease,
        box-shadow .18s ease !important;
}

.ric-masjid-marker::before{
    content:"🕌";
    font-size:18px;
    line-height:1;
}

.ric-masjid-marker::after{
    content:"";
    position:absolute;
    bottom:-7px;
    width:9px;
    height:9px;
    background:#0e5c45;
    border-right:2px solid #e7c76d;
    border-bottom:2px solid #e7c76d;
    transform:rotate(45deg);
}

.ric-masjid-marker:hover{
    transform:translateY(-8px) scale(1.18) !important;
    filter:brightness(1.08);
}

.ric-masjid-marker.is-selected{
    transform:translateY(-10px) scale(1.22) !important;
    box-shadow:
        0 0 0 7px rgba(200,155,56,.22),
        0 12px 24px rgba(18,66,52,.35) !important;
}

/* Viewport count badge */
#ricMasjidViewportCount,
.ric-masjid-viewport-count{
    position:absolute;
    z-index:10;
    left:50%;
    top:18px;
    transform:translateX(-50%);
    padding:9px 15px;
    border-radius:999px;
    background:rgba(255,255,255,.94);
    color:#17483a;
    border:1px solid rgba(31,107,82,.18);
    box-shadow:0 8px 26px rgba(31,61,50,.15);
    font-weight:800;
    font-size:13px;
    backdrop-filter:blur(14px);
    pointer-events:none;
}

/* Adhan / astronomy control surface */
.ric-masjid-adhan-bar,
.ric-masjid-timeline,
.ric-masjid-astronomy{
    background:rgba(255,255,255,.94) !important;
    color:#21483d !important;
    border-color:#d9e4df !important;
}

.ric-masjid-live{
    color:#a51f2b !important;
}

/* MapLibre controls */
.maplibregl-ctrl-group{
    background:#fff !important;
    box-shadow:0 5px 20px rgba(30,60,50,.18) !important;
}

.maplibregl-ctrl-group button{
    background-color:#fff !important;
}

.maplibregl-popup-content{
    background:#fff !important;
    color:#17352d !important;
    border-radius:15px !important;
    box-shadow:0 14px 40px rgba(31,61,50,.20) !important;
}

@media(max-width:800px){
    .ric-maplibre-shell,
    #ricMasjidMap{
        min-height:620px !important;
        height:72vh !important;
        border-radius:18px !important;
    }

    .ric-masjid-results,
    #ricMasjidResults{
        top:auto !important;
        left:10px !important;
        right:10px !important;
        bottom:10px !important;
        width:auto !important;
        max-height:34% !important;
    }

    .ric-masjid-profile,
    .ric-masjid-drawer,
    #ricMasjidProfile{
        top:auto !important;
        left:10px !important;
        right:10px !important;
        bottom:10px !important;
        width:auto !important;
        max-height:68% !important;
        border-radius:22px 22px 14px 14px !important;
    }

    #ricMasjidViewportCount,
    .ric-masjid-viewport-count{
        top:12px;
        font-size:12px;
    }
}

/* ============================================================
   RIC GLOBAL MASJID V1.2A.2 — LOCATION CONTEXT
   ============================================================ */

.ric-location-context{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin:12px 0 14px;
    padding:11px 14px;
    border:1px solid #d9e5df;
    border-radius:15px;
    background:rgba(255,255,255,.95);
    color:#173c31;
    box-shadow:0 7px 22px rgba(31,61,50,.08);
}

.ric-location-copy{
    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:0;
}

.ric-location-copy strong{
    color:#174b3b;
    font-size:14px;
}

.ric-location-copy span{
    color:#6c7d76;
    font-size:12px;
}

.ric-location-button{
    appearance:none;
    border:1px solid #a9c9bd;
    border-radius:999px;
    background:#edf8f3;
    color:#14533f;
    padding:8px 13px;
    font-weight:800;
    font-size:12px;
    cursor:pointer;
    white-space:nowrap;
}

.ric-location-button:hover{
    background:#e1f3eb;
}

.ric-location-button.is-active{
    background:#176b52;
    border-color:#176b52;
    color:#fff;
}

.ric-location-button:disabled{
    opacity:.65;
    cursor:default;
}

@media(max-width:650px){
    .ric-location-context{
        align-items:flex-start;
        flex-direction:column;
    }

    .ric-location-button{
        width:100%;
    }
}

/* ============================================================
   RIC GLOBAL MASJID EXPLORER V1.2A.3
   ACTUAL LIVE ROOT / WORKSPACE REPAIR
   ============================================================ */

/*
 * IMPORTANT:
 * The live root is .ric-masjid-v12.
 * The live layout container is .ric-masjid-workspace.
 */

.ric-masjid-v12{
    box-sizing:border-box !important;
    width:min(1600px,calc(100% - 32px)) !important;
    max-width:1600px !important;
    margin:22px auto 42px !important;
    padding:0 !important;

    background:
        radial-gradient(
            circle at 88% 4%,
            rgba(208,234,244,.72),
            transparent 34rem
        ),
        linear-gradient(
            180deg,
            #fffdf8 0%,
            #f8f7f1 48%,
            #f1f7f4 100%
        ) !important;

    color:#173b31 !important;
    border:1px solid #e0e9e4 !important;
    border-radius:26px !important;
    box-shadow:0 20px 60px rgba(34,67,55,.10) !important;
    overflow:hidden !important;
}

/* Hero */
.ric-masjid-v12 .ric-masjid-hero{
    margin:0 !important;
    padding:28px 30px 22px !important;

    background:
        radial-gradient(
            circle at 92% 5%,
            rgba(201,230,241,.75),
            transparent 31rem
        ),
        linear-gradient(
            135deg,
            #fffdf8,
            #eef8f4
        ) !important;

    color:#173b31 !important;
    border:0 !important;
    border-bottom:1px solid #dce7e1 !important;
    border-radius:0 !important;
}

.ric-masjid-v12 .ric-masjid-title{
    color:#123f32 !important;
}

.ric-masjid-v12 .ric-masjid-subtitle{
    color:#657a71 !important;
}

/* Tabs */
.ric-masjid-v12 .ric-masjid-tabs{
    margin:0 !important;
    padding:12px 20px !important;

    background:#ffffff !important;
    border:0 !important;
    border-bottom:1px solid #dce7e1 !important;
    border-radius:0 !important;
}

/*
 * THIS IS THE OLD DARK CONTAINER VISIBLE IN THE SCREENSHOT.
 * Replace the 3-column dark workspace with one map canvas.
 */
.ric-masjid-v12 .ric-masjid-workspace{
    position:relative !important;

    display:block !important;
    grid-template-columns:none !important;

    width:100% !important;
    max-width:none !important;

    min-height:720px !important;

    margin:0 !important;
    padding:18px !important;

    background:
        linear-gradient(
            180deg,
            #f6faf8,
            #edf5f1
        ) !important;

    color:#173b31 !important;

    border:0 !important;
    border-radius:0 !important;

    overflow:hidden !important;
}

/* Full map surface */
.ric-masjid-v12 .ric-masjid-map-wrap{
    position:relative !important;

    width:100% !important;
    max-width:none !important;

    min-height:684px !important;
    height:clamp(684px,74vh,920px) !important;

    margin:0 !important;
    padding:0 !important;

    background:#dceef3 !important;

    border:1px solid #cfddd7 !important;
    border-radius:22px !important;

    overflow:hidden !important;

    box-shadow:
        0 14px 42px rgba(32,67,55,.12) !important;
}

.ric-masjid-v12 #ricMasjidMap,
.ric-masjid-v12 .ric-maplibre-shell{
    position:absolute !important;
    inset:0 !important;

    width:100% !important;
    height:100% !important;
    min-height:0 !important;

    margin:0 !important;

    border:0 !important;
    border-radius:22px !important;

    background:#dceef3 !important;

    box-shadow:none !important;
}

/*
 * Floating left results/search panel.
 */
.ric-masjid-v12 .ric-masjid-results{
    position:absolute !important;

    z-index:20 !important;

    top:38px !important;
    left:38px !important;

    width:min(340px,calc(100% - 76px)) !important;
    max-width:340px !important;
    max-height:calc(100% - 76px) !important;

    margin:0 !important;

    overflow:auto !important;

    background:rgba(255,255,255,.95) !important;
    color:#173b31 !important;

    border:1px solid rgba(189,209,200,.82) !important;
    border-radius:18px !important;

    box-shadow:
        0 16px 44px rgba(30,65,53,.17) !important;

    backdrop-filter:blur(16px) !important;
}

/*
 * Floating right Masjid Information Layer.
 */
.ric-masjid-v12 .ric-masjid-profile,
.ric-masjid-v12 #ricMasjidProfile{
    position:absolute !important;

    z-index:21 !important;

    top:38px !important;
    right:38px !important;

    width:min(380px,calc(100% - 76px)) !important;
    max-width:380px !important;
    max-height:calc(100% - 76px) !important;

    margin:0 !important;

    overflow:auto !important;

    background:rgba(255,255,255,.96) !important;
    color:#173b31 !important;

    border:1px solid rgba(189,209,200,.82) !important;
    border-radius:18px !important;

    box-shadow:
        0 16px 44px rgba(30,65,53,.17) !important;

    backdrop-filter:blur(16px) !important;
}

/* Location control should be a compact overlay, not a large column. */
.ric-masjid-v12 .ric-location-context{
    position:absolute !important;

    z-index:24 !important;

    left:50% !important;
    top:30px !important;

    transform:translateX(-50%) !important;

    width:auto !important;
    max-width:min(500px,calc(100% - 780px)) !important;

    margin:0 !important;
    padding:9px 12px !important;

    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;

    background:rgba(255,255,255,.96) !important;
    color:#173b31 !important;

    border:1px solid #d5e2dc !important;
    border-radius:999px !important;

    box-shadow:
        0 9px 28px rgba(30,65,53,.14) !important;

    backdrop-filter:blur(14px) !important;
}

/* Existing map status becomes light. */
.ric-masjid-v12 .ric-map-status{
    background:rgba(255,255,255,.94) !important;
    color:#173f33 !important;

    border:1px solid #d5e2dc !important;

    box-shadow:
        0 7px 22px rgba(30,65,53,.13) !important;
}

/* Existing map buttons */
.ric-masjid-v12 .ric-map-control{
    background:#ffffff !important;
    color:#17483a !important;

    border-color:#d3e0da !important;

    box-shadow:
        0 6px 18px rgba(30,65,53,.13) !important;
}

/*
 * Adhan dock remains dark emerald as a CONTROL only.
 * It is not the application background.
 */
.ric-masjid-v12 .ric-adhan-dock{
    background:rgba(14,72,55,.94) !important;
    color:#ffffff !important;

    border:1px solid rgba(255,255,255,.18) !important;

    box-shadow:
        0 10px 28px rgba(20,64,50,.22) !important;
}

/* Empty information panel */
.ric-masjid-v12 .ric-profile-empty{
    color:#6b7d75 !important;
}

/* Filters */
.ric-masjid-v12 .ric-masjid-filter-grid select,
.ric-masjid-v12 .ric-masjid-filter-grid input{
    background:#fff !important;
    color:#173b31 !important;

    border-color:#d3e0da !important;
}

/* Cards */
.ric-masjid-v12 .ric-masjid-card{
    background:#fff !important;
    color:#173b31 !important;

    border-color:#dce6e1 !important;
}

/* Remove dark pseudo-element contamination inside Explorer. */
.ric-masjid-v12::before,
.ric-masjid-v12::after,
.ric-masjid-workspace::before,
.ric-masjid-workspace::after{
    background-color:transparent !important;
}

/* Tablet */
@media(max-width:1100px){

    .ric-masjid-v12{
        width:calc(100% - 20px) !important;
        margin:10px auto 30px !important;
        border-radius:20px !important;
    }

    .ric-masjid-v12 .ric-masjid-workspace{
        min-height:680px !important;
        padding:10px !important;
    }

    .ric-masjid-v12 .ric-masjid-map-wrap{
        height:72vh !important;
        min-height:640px !important;
    }

    .ric-masjid-v12 .ric-location-context{
        top:20px !important;

        max-width:calc(100% - 420px) !important;
    }

    .ric-masjid-v12 .ric-masjid-results{
        top:28px !important;
        left:28px !important;

        width:300px !important;
        max-width:300px !important;
    }

    .ric-masjid-v12 .ric-masjid-profile,
    .ric-masjid-v12 #ricMasjidProfile{
        top:28px !important;
        right:28px !important;

        width:330px !important;
        max-width:330px !important;
    }
}

/* Mobile */
@media(max-width:760px){

    .ric-masjid-v12{
        width:100% !important;
        margin:0 !important;

        border-left:0 !important;
        border-right:0 !important;
        border-radius:0 !important;
    }

    .ric-masjid-v12 .ric-masjid-hero{
        padding:20px 16px 16px !important;
    }

    .ric-masjid-v12 .ric-masjid-tabs{
        overflow-x:auto !important;
        flex-wrap:nowrap !important;
        padding:10px !important;
    }

    .ric-masjid-v12 .ric-masjid-workspace{
        min-height:680px !important;
        padding:0 !important;

        background:#edf5f1 !important;
    }

    .ric-masjid-v12 .ric-masjid-map-wrap{
        height:72vh !important;
        min-height:620px !important;

        border-left:0 !important;
        border-right:0 !important;
        border-radius:0 !important;
    }

    .ric-masjid-v12 #ricMasjidMap,
    .ric-masjid-v12 .ric-maplibre-shell{
        border-radius:0 !important;
    }

    .ric-masjid-v12 .ric-location-context{
        top:10px !important;
        left:10px !important;
        right:10px !important;

        transform:none !important;

        width:auto !important;
        max-width:none !important;

        border-radius:15px !important;
    }

    .ric-masjid-v12 .ric-masjid-results{
        top:auto !important;
        left:10px !important;
        right:10px !important;
        bottom:10px !important;

        width:auto !important;
        max-width:none !important;
        max-height:34% !important;

        border-radius:18px !important;
    }

    .ric-masjid-v12 .ric-masjid-profile,
    .ric-masjid-v12 #ricMasjidProfile{
        top:auto !important;
        left:10px !important;
        right:10px !important;
        bottom:10px !important;

        width:auto !important;
        max-width:none !important;
        max-height:68% !important;

        border-radius:24px 24px 12px 12px !important;
    }
}

/* ============================================================
   RIC GLOBAL MASJID — CLUSTER MAP V1
   ============================================================ */

.ric-masjid-viewport-count{
    position:absolute;
    left:50%;
    bottom:18px;
    transform:translateX(-50%);
    z-index:12;

    padding:8px 14px;
    border:1px solid rgba(231,199,109,.75);
    border-radius:999px;

    background:rgba(255,255,248,.94);
    color:#104c3a;

    font-size:12px;
    font-weight:800;

    box-shadow:0 8px 24px rgba(18,66,52,.16);
    backdrop-filter:blur(12px);

    pointer-events:none;
}

#ricMasjidMap canvas{
    cursor:grab;
}

#ricMasjidMap canvas:active{
    cursor:grabbing;
}

/* ============================================================
   RIC GLOBAL MASJID — VISIBLE UI V1
   ============================================================ */

.ric-masjid-result-summary{
    margin:10px;
    padding:10px 12px;

    border:1px solid #d7e5df;
    border-radius:12px;

    background:#f5fbf8;
    color:#315f52;

    font-size:13px;
    line-height:1.4;
}

.ric-masjid-result-summary strong{
    color:#0d6047;
    font-size:15px;
}

.ric-masjid-card.is-selected{
    border-color:#c89b38 !important;

    box-shadow:
        0 0 0 3px rgba(200,155,56,.14),
        0 9px 24px rgba(31,61,50,.10);

    transform:translateY(-2px);
}

.ric-masjid-empty{
    cursor:default;
}

.ric-masjid-empty:hover{
    transform:none;
}

/* ============================================================
   RIC GLOBAL MASJID — MAP LAYOUT FIX V1
   Authoritative final desktop/mobile workspace contract
   ============================================================ */

.ric-masjid-v12 .ric-masjid-workspace{
    display:block !important;
    position:relative !important;

    grid-template-columns:none !important;

    width:100% !important;
    height:clamp(620px,72vh,920px) !important;
    min-height:680px !important;

    margin:0 !important;
    padding:0 !important;

    overflow:hidden !important;

    background:#dceef3 !important;
    border:1px solid #d4dfda !important;
    border-radius:22px !important;
}

/*
 * The map owns the ENTIRE workspace.
 * No sibling may consume a grid column.
 */
.ric-masjid-v12 .ric-masjid-map-wrap{
    position:absolute !important;

    inset:0 !important;

    width:100% !important;
    height:100% !important;

    margin:0 !important;
    padding:0 !important;

    z-index:1 !important;

    background:#dceef3 !important;
    overflow:hidden !important;
}

/*
 * MapLibre canvas fills the map wrapper.
 */
.ric-masjid-v12 #ricMasjidMap,
.ric-masjid-v12 .ric-maplibre-shell{
    position:absolute !important;

    inset:0 !important;

    width:100% !important;
    height:100% !important;

    min-width:0 !important;
    min-height:0 !important;

    margin:0 !important;
    padding:0 !important;

    background:#dceef3 !important;
}

/*
 * Prevent MapLibre internal canvas from inheriting an
 * accidental fixed width.
 */
.ric-masjid-v12 #ricMasjidMap .maplibregl-canvas-container,
.ric-masjid-v12 #ricMasjidMap .maplibregl-canvas{
    width:100% !important;
    height:100% !important;
}

/*
 * Left search/results floats ABOVE the map.
 */
.ric-masjid-v12 .ric-masjid-results,
.ric-masjid-v12 #ricMasjidResults{
    display:block !important;

    position:absolute !important;

    top:28px !important;
    left:28px !important;

    width:300px !important;
    max-width:calc(100% - 56px) !important;
    max-height:calc(100% - 56px) !important;

    margin:0 !important;

    z-index:20 !important;

    overflow:auto !important;

    background:rgba(255,255,255,.95) !important;
}

/*
 * Right information layer floats ABOVE the map.
 */
.ric-masjid-v12 .ric-masjid-profile,
.ric-masjid-v12 #ricMasjidProfile{
    position:absolute !important;

    top:28px !important;
    right:28px !important;
    left:auto !important;

    width:330px !important;
    max-width:calc(100% - 56px) !important;
    max-height:calc(100% - 56px) !important;

    margin:0 !important;

    z-index:21 !important;

    overflow:auto !important;

    background:rgba(255,255,255,.96) !important;
}

/*
 * Location is a compact floating control.
 * It must NEVER occupy a layout column.
 */
.ric-masjid-v12 .ric-location-context{
    position:absolute !important;

    left:50% !important;
    top:20px !important;

    right:auto !important;
    bottom:auto !important;

    transform:translateX(-50%) !important;

    display:flex !important;

    width:auto !important;
    max-width:min(340px,calc(100% - 720px)) !important;

    margin:0 !important;

    z-index:24 !important;

    background:rgba(255,255,255,.94) !important;

    box-sizing:border-box !important;
}

/*
 * Map controls / Adhan controls stay above canvas.
 */
.ric-masjid-v12 .ric-map-controls,
.ric-masjid-v12 .ric-adhan-dock,
.ric-masjid-v12 .ric-map-status,
.ric-masjid-v12 .ric-masjid-viewport-count{
    z-index:25 !important;
}

/*
 * Tablet
 */
@media(max-width:1100px){

    .ric-masjid-v12 .ric-location-context{
        max-width:300px !important;
    }

    .ric-masjid-v12 .ric-masjid-results{
        width:270px !important;
    }

    .ric-masjid-v12 .ric-masjid-profile,
    .ric-masjid-v12 #ricMasjidProfile{
        width:300px !important;
    }
}

/*
 * Mobile
 */
@media(max-width:760px){

    .ric-masjid-v12 .ric-masjid-workspace{
        height:72vh !important;
        min-height:640px !important;

        border-radius:16px !important;
    }

    .ric-masjid-v12 .ric-masjid-map-wrap,
    .ric-masjid-v12 #ricMasjidMap,
    .ric-masjid-v12 .ric-maplibre-shell{
        position:absolute !important;
        inset:0 !important;

        width:100% !important;
        height:100% !important;
    }

    .ric-masjid-v12 .ric-location-context{
        top:10px !important;
        left:10px !important;
        right:10px !important;

        transform:none !important;

        width:auto !important;
        max-width:none !important;
    }

    .ric-masjid-v12 .ric-masjid-results{
        top:auto !important;
        left:10px !important;
        right:10px !important;
        bottom:10px !important;

        width:auto !important;
        max-width:none !important;
        max-height:34% !important;
    }

    .ric-masjid-v12 .ric-masjid-profile,
    .ric-masjid-v12 #ricMasjidProfile{
        top:auto !important;
        left:10px !important;
        right:10px !important;
        bottom:10px !important;

        width:auto !important;
        max-width:none !important;
        max-height:68% !important;
    }
}


/* ============================================================
   RIC GLOBAL MASJID — RENDER FIX V2
   Location overlay may never consume map height.
   ============================================================ */

.ric-masjid-v12 #ricMasjidLocationContext,
.ric-masjid-v12 .ric-location-context{
    position:absolute !important;

    top:18px !important;
    left:50% !important;
    right:auto !important;
    bottom:auto !important;

    transform:translateX(-50%) !important;

    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;

    width:320px !important;
    max-width:calc(100% - 720px) !important;

    height:auto !important;
    min-height:0 !important;
    max-height:86px !important;

    margin:0 !important;
    padding:10px 12px !important;

    overflow:hidden !important;

    box-sizing:border-box !important;

    z-index:30 !important;

    background:rgba(255,255,255,.94) !important;
    border:1px solid rgba(14,92,69,.12) !important;
    border-radius:18px !important;

    box-shadow:
        0 8px 24px rgba(31,61,50,.12) !important;
}

/*
 * Absolutely prevent a location child from stretching
 * into the map.
 */
.ric-masjid-v12 #ricMasjidLocationContext *,
.ric-masjid-v12 .ric-location-context *{
    min-height:0 !important;
    max-height:none;
}

.ric-masjid-v12 #ricMasjidLocationContext::before,
.ric-masjid-v12 #ricMasjidLocationContext::after,
.ric-masjid-v12 .ric-location-context::before,
.ric-masjid-v12 .ric-location-context::after{
    display:none !important;
    content:none !important;
}

/*
 * MapLibre must own the complete background surface.
 */
.ric-masjid-v12 .ric-masjid-map-wrap{
    position:absolute !important;
    inset:0 !important;

    width:100% !important;
    height:100% !important;

    background:#dceef3 !important;

    z-index:1 !important;
}

.ric-masjid-v12 #ricMasjidMap{
    position:absolute !important;
    inset:0 !important;

    width:100% !important;
    height:100% !important;

    background:#dceef3 !important;
}

.ric-masjid-v12 #ricMasjidMap > .maplibregl-canvas-container{
    position:absolute !important;
    inset:0 !important;

    width:100% !important;
    height:100% !important;
}

.ric-masjid-v12 #ricMasjidMap canvas.maplibregl-canvas{
    position:absolute !important;
    inset:0 !important;

    width:100% !important;
    height:100% !important;
}

/*
 * Keep real masjid UI above MapLibre.
 */
.ric-masjid-v12 .ric-masjid-results{
    z-index:40 !important;
}

.ric-masjid-v12 .ric-masjid-profile{
    z-index:40 !important;
}

.ric-masjid-v12 .ric-map-controls,
.ric-masjid-v12 .ric-map-status,
.ric-masjid-v12 .ric-adhan-dock,
.ric-masjid-v12 .ric-masjid-viewport-count{
    z-index:45 !important;
}

@media(max-width:900px){

    .ric-masjid-v12 #ricMasjidLocationContext,
    .ric-masjid-v12 .ric-location-context{
        top:10px !important;
        left:10px !important;
        right:10px !important;

        transform:none !important;

        width:auto !important;
        max-width:none !important;
        max-height:96px !important;
    }
}


/* ============================================================
   RIC MASJID — INFORMATION LAYER LOWER RIGHT V1

   Keep the profile in the lower-right map area while reserving
   the upper-right corner for MapLibre navigation controls.
   ============================================================ */

.ric-masjid-v12 .ric-masjid-profile,
.ric-masjid-v12 #ricMasjidProfile{

    position:absolute !important;

    top:auto !important;

    right:24px !important;
    bottom:24px !important;
    left:auto !important;

    width:330px !important;

    max-width:calc(100% - 48px) !important;
    max-height:58% !important;

    margin:0 !important;

    overflow:auto !important;

    z-index:40 !important;

    background:rgba(255,255,255,.96) !important;

    border-radius:20px !important;

    box-shadow:
        0 12px 32px rgba(24,58,46,.16) !important;
}


/*
 * Inner information content must remain naturally sized.
 */
.ric-masjid-v12 #ricMasjidProfileInner,
.ric-masjid-v12 .ric-masjid-profile-inner{

    width:100% !important;

    height:auto !important;
    min-height:0 !important;

    box-sizing:border-box !important;
}


/*
 * Explicitly preserve the MapLibre navigation corner.
 */
.ric-masjid-v12 .maplibregl-ctrl-top-right{

    top:12px !important;
    right:12px !important;

    z-index:60 !important;
}


/*
 * Mobile remains a bottom sheet.
 */
@media(max-width:760px){

    .ric-masjid-v12 .ric-masjid-profile,
    .ric-masjid-v12 #ricMasjidProfile{

        top:auto !important;

        left:10px !important;
        right:10px !important;
        bottom:10px !important;

        width:auto !important;

        max-width:none !important;
        max-height:62% !important;

        border-radius:18px !important;
    }
}


/* ============================================================
   RIC GLOBAL MASJID — VISUAL REPAIR V3.1
   FINAL LOCATION / CENTER OBJECT CONTRACT
   ============================================================ */

/*
 * Location is one compact horizontal control.
 */
.ric-masjid-v12 #ricMasjidLocationContext,
.ric-masjid-v12 .ric-location-context{

    position:absolute !important;

    top:16px !important;
    left:50% !important;
    right:auto !important;
    bottom:auto !important;

    transform:translateX(-50%) !important;

    display:flex !important;
    flex-flow:row nowrap !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;

    width:auto !important;
    min-width:0 !important;
    max-width:390px !important;

    height:58px !important;
    min-height:58px !important;
    max-height:58px !important;

    margin:0 !important;
    padding:7px 10px !important;

    overflow:hidden !important;

    box-sizing:border-box !important;

    background:rgba(255,255,255,.95) !important;
    color:#173b31 !important;

    border:1px solid rgba(181,207,196,.9) !important;
    border-radius:18px !important;

    box-shadow:
        0 8px 22px rgba(25,62,49,.14) !important;

    z-index:55 !important;
}


/*
 * IMPORTANT:
 * Undo the older RENDER2 descendant max-height:none.
 *
 * Every direct child is forced back to normal document flow
 * and cannot become a vertical card.
 */
.ric-masjid-v12 #ricMasjidLocationContext > *,
.ric-masjid-v12 .ric-location-context > *{

    position:static !important;

    display:block !important;

    float:none !important;

    flex:0 1 auto !important;

    width:auto !important;
    min-width:0 !important;
    max-width:240px !important;

    height:auto !important;
    min-height:0 !important;
    max-height:44px !important;

    margin:0 !important;

    overflow:hidden !important;

    background:transparent !important;

    border:0 !important;
    border-radius:0 !important;

    box-shadow:none !important;

    transform:none !important;
}


/*
 * Nested descendants are also prohibited from becoming a
 * full-height white surface.
 */
.ric-masjid-v12 #ricMasjidLocationContext > * > *,
.ric-masjid-v12 .ric-location-context > * > *{

    min-height:0 !important;
    max-height:44px !important;
}


/*
 * Kill any generated shape attached to location descendants.
 */
.ric-masjid-v12 #ricMasjidLocationContext::before,
.ric-masjid-v12 #ricMasjidLocationContext::after,
.ric-masjid-v12 .ric-location-context::before,
.ric-masjid-v12 .ric-location-context::after,

.ric-masjid-v12 #ricMasjidLocationContext > *::before,
.ric-masjid-v12 #ricMasjidLocationContext > *::after,
.ric-masjid-v12 .ric-location-context > *::before,
.ric-masjid-v12 .ric-location-context > *::after{

    content:none !important;
    display:none !important;
}


/*
 * Do not allow generic card rules to make a location child
 * into a tall panel.
 */
.ric-masjid-v12 .ric-location-context .ric-card,
.ric-masjid-v12 .ric-location-context .ric-panel,
.ric-masjid-v12 .ric-location-context .ric-surface,
.ric-masjid-v12 #ricMasjidLocationContext .ric-card,
.ric-masjid-v12 #ricMasjidLocationContext .ric-panel,
.ric-masjid-v12 #ricMasjidLocationContext .ric-surface{

    position:static !important;

    width:auto !important;

    height:auto !important;
    min-height:0 !important;
    max-height:44px !important;

    background:transparent !important;

    border:0 !important;
    box-shadow:none !important;
}


/*
 * Map owns every pixel behind overlays.
 */
.ric-masjid-v12 .ric-masjid-map-wrap,
.ric-masjid-v12 #ricMasjidMap,
.ric-masjid-v12 .ric-maplibre-shell{

    position:absolute !important;
    inset:0 !important;

    width:100% !important;
    height:100% !important;
}


/*
 * The actual MapLibre canvas must remain full size.
 */
.ric-masjid-v12 #ricMasjidMap .maplibregl-canvas-container,
.ric-masjid-v12 #ricMasjidMap .maplibregl-canvas{

    width:100% !important;
    height:100% !important;
}


/*
 * Navigation always stays above floating UI.
 */
.ric-masjid-v12 .maplibregl-ctrl-top-right{
    z-index:80 !important;
}


@media(max-width:760px){

    .ric-masjid-v12 #ricMasjidLocationContext,
    .ric-masjid-v12 .ric-location-context{

        top:8px !important;
        left:8px !important;
        right:8px !important;

        transform:none !important;

        width:auto !important;
        max-width:none !important;

        height:62px !important;
        min-height:62px !important;
        max-height:62px !important;
    }
}


/* ============================================================
   RIC GLOBAL MASJID EXPLORER
   MAP RENDER NORMALIZATION V3.2
   2026-09-29

   PURPOSE:
   - MapLibre owns entire workspace background.
   - Location remains a small horizontal pill.
   - No descendant can become a vertical white obstruction.
   - Results/profile remain floating panels.
   ============================================================ */

.ric-masjid-v12 .ric-masjid-workspace{
    position:relative !important;
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    height:clamp(680px,76vh,900px) !important;
    min-height:680px !important;
    overflow:hidden !important;
    padding:0 !important;
    background:#dceef3 !important;
    isolation:isolate !important;
}

.ric-masjid-v12 .ric-masjid-map-wrap,
.ric-masjid-v12 #ricMasjidMap,
.ric-masjid-v12 .ric-maplibre-shell,
.ric-masjid-v12 #ricMasjidMap > .maplibregl-map,
.ric-masjid-v12 #ricMasjidMap > .maplibregl-canvas-container{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
}

.ric-masjid-v12 .ric-masjid-map-wrap{
    z-index:1 !important;
    overflow:hidden !important;
    border-radius:0 !important;
}

.ric-masjid-v12 #ricMasjidMap{
    z-index:1 !important;
}

.ric-masjid-v12 #ricMasjidMap canvas.maplibregl-canvas{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
}

/*
 * LOCATION CONTROL
 * Exact fixed-height horizontal control.
 * It cannot form a vertical card under any circumstance.
 */
.ric-masjid-v12 #ricMasjidLocationContext,
.ric-masjid-v12 .ric-location-context{
    position:absolute !important;

    left:50% !important;
    top:18px !important;
    right:auto !important;
    bottom:auto !important;

    transform:translateX(-50%) !important;

    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;

    width:auto !important;
    min-width:0 !important;
    max-width:420px !important;

    height:auto !important;
    min-height:0 !important;
    max-height:58px !important;

    margin:0 !important;
    padding:7px 10px !important;

    overflow:hidden !important;

    box-sizing:border-box !important;

    z-index:60 !important;

    background:rgba(255,255,255,.96) !important;
    color:#173b31 !important;

    border:1px solid rgba(181,207,196,.90) !important;
    border-radius:18px !important;

    box-shadow:0 8px 22px rgba(25,62,49,.14) !important;

    white-space:nowrap !important;
}

/*
 * Reset ALL direct children.
 * This intentionally overrides older generic panel/card rules.
 */
.ric-masjid-v12 #ricMasjidLocationContext > *,
.ric-masjid-v12 .ric-location-context > *{
    position:static !important;

    display:block !important;

    width:auto !important;
    min-width:0 !important;
    max-width:none !important;

    height:auto !important;
    min-height:0 !important;
    max-height:44px !important;

    inset:auto !important;

    margin:0 !important;

    overflow:hidden !important;

    background:transparent !important;

    border:0 !important;
    border-radius:0 !important;

    box-shadow:none !important;

    transform:none !important;
}

.ric-masjid-v12 #ricMasjidLocationContext .ric-location-copy,
.ric-masjid-v12 .ric-location-context .ric-location-copy{
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;

    flex:1 1 auto !important;

    min-width:0 !important;
}

.ric-masjid-v12 #ricMasjidLocationContext .ric-location-copy strong,
.ric-masjid-v12 #ricMasjidLocationContext .ric-location-copy span,
.ric-masjid-v12 .ric-location-context .ric-location-copy strong,
.ric-masjid-v12 .ric-location-context .ric-location-copy span{
    display:block !important;

    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}

.ric-masjid-v12 #ricMasjidLocationContext .ric-location-button,
.ric-masjid-v12 .ric-location-context .ric-location-button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    flex:0 0 auto !important;

    width:auto !important;
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;

    padding:6px 11px !important;

    background:#edf8f3 !important;

    border:1px solid #a9c9bd !important;
    border-radius:999px !important;

    box-shadow:none !important;
}

/* Kill generated geometry on location and its direct descendants. */
.ric-masjid-v12 #ricMasjidLocationContext::before,
.ric-masjid-v12 #ricMasjidLocationContext::after,
.ric-masjid-v12 .ric-location-context::before,
.ric-masjid-v12 .ric-location-context::after,
.ric-masjid-v12 #ricMasjidLocationContext > *::before,
.ric-masjid-v12 #ricMasjidLocationContext > *::after,
.ric-masjid-v12 .ric-location-context > *::before,
.ric-masjid-v12 .ric-location-context > *::after{
    content:none !important;
    display:none !important;
}

/*
 * FLOATING RESULTS
 */
.ric-masjid-v12 #ricMasjidResults,
.ric-masjid-v12 .ric-masjid-results{
    position:absolute !important;

    top:28px !important;
    left:28px !important;
    right:auto !important;
    bottom:auto !important;

    width:330px !important;
    max-width:calc(100% - 56px) !important;
    max-height:calc(100% - 56px) !important;

    margin:0 !important;

    overflow:auto !important;

    z-index:50 !important;
}

/*
 * FLOATING INFORMATION LAYER
 */
.ric-masjid-v12 #ricMasjidProfile,
.ric-masjid-v12 .ric-masjid-profile{
    position:absolute !important;

    top:28px !important;
    right:28px !important;
    left:auto !important;
    bottom:auto !important;

    width:330px !important;
    max-width:calc(100% - 56px) !important;
    max-height:calc(100% - 56px) !important;

    margin:0 !important;

    overflow:auto !important;

    z-index:51 !important;
}

.ric-masjid-v12 .ric-map-controls,
.ric-masjid-v12 .ric-map-status,
.ric-masjid-v12 .ric-adhan-dock,
.ric-masjid-v12 .ric-masjid-viewport-count{
    z-index:55 !important;
}

/* MapLibre itself must not inherit Explorer card styling. */
.ric-masjid-v12 .maplibregl-map,
.ric-masjid-v12 .maplibregl-canvas-container,
.ric-masjid-v12 .maplibregl-canvas{
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:transparent !important;
}

/*
 * MOBILE
 */
@media(max-width:800px){

    .ric-masjid-v12 .ric-masjid-workspace{
        height:78vh !important;
        min-height:650px !important;
    }

    .ric-masjid-v12 #ricMasjidLocationContext,
    .ric-masjid-v12 .ric-location-context{
        top:10px !important;

        width:calc(100% - 24px) !important;
        max-width:420px !important;

        max-height:60px !important;
    }

    .ric-masjid-v12 #ricMasjidResults,
    .ric-masjid-v12 .ric-masjid-results{
        left:10px !important;
        right:10px !important;
        top:auto !important;
        bottom:10px !important;

        width:auto !important;
        max-width:none !important;
        max-height:38% !important;
    }

    .ric-masjid-v12 #ricMasjidProfile,
    .ric-masjid-v12 .ric-masjid-profile{
        left:10px !important;
        right:10px !important;
        top:auto !important;
        bottom:10px !important;

        width:auto !important;
        max-width:none !important;
        max-height:58% !important;
    }
}

/* RIC_MASJID_MAP_RENDER_V32_END */

/* ============================================================
   RIC_REMOVE_VIEWPORT_COUNT_V2
   Remove obsolete floating viewport counter.
   ============================================================ */

#ricMasjidViewportCount,
.ric-masjid-viewport-count,
.ric-masjid-v12 #ricMasjidViewportCount,
.ric-masjid-v12 .ric-masjid-viewport-count {
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    width:0 !important;
    height:0 !important;
    min-width:0 !important;
    min-height:0 !important;
    max-width:0 !important;
    max-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    overflow:hidden !important;
    pointer-events:none !important;
}

/* RIC_REMOVE_VIEWPORT_COUNT_V2_END */
