:root{
    --mm-blue:#1565d8;
    --mm-blue-dark:#0d47a1;
    --mm-navy:#14213d;
    --mm-text:#344054;
    --mm-muted:#667085;
    --mm-soft:#f5f8fc;
    --mm-line:#e4e7ec;
    --mm-white:#ffffff;
    --mm-green:#169b62;
    --mm-shadow:0 18px 45px rgba(16,24,40,.10);
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    background:#fff;
    color:var(--mm-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height:1.6;
}

a{
    color:inherit;
    text-decoration:none;
}

img{
    display:block;
    max-width:100%;
}

button,
input,
select,
textarea{
    font:inherit;
}

.public-container{
    width:min(1180px,calc(100% - 36px));
    margin:0 auto;
}

.public-header{
    position:sticky;
    top:0;
    z-index:1000;
    border-bottom:1px solid var(--mm-line);
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(14px);
}

.header-inner{
    min-height:82px;
    display:flex;
    align-items:center;
    gap:26px;
}

.public-brand{
    display:flex;
    align-items:center;
    gap:11px;
    flex-shrink:0;
}

.brand-mark{
    width:43px;
    height:43px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:linear-gradient(
        135deg,
        var(--mm-blue),
        var(--mm-blue-dark)
    );
    color:#fff;
    font-size:21px;
    font-weight:900;
}

.brand-copy{
    display:flex;
    flex-direction:column;
    line-height:1.12;
}

.brand-copy strong{
    color:var(--mm-navy);
    letter-spacing:.02em;
}

.brand-copy small{
    margin-top:4px;
    color:var(--mm-muted);
    font-size:10px;
}

.public-nav{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
}

.public-nav a{
    padding:9px 10px;
    border-radius:9px;
    color:var(--mm-muted);
    font-size:13px;
    font-weight:700;
    white-space:nowrap;
}

.public-nav a:hover,
.public-nav a.active{
    background:var(--mm-soft);
    color:var(--mm-blue);
}

.header-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.header-login{
    color:var(--mm-navy);
    font-size:13px;
    font-weight:800;
}

.mm-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:42px;
    padding:10px 16px;
    border:0;
    border-radius:10px;
    background:var(--mm-blue);
    color:#fff;
    cursor:pointer;
    font-weight:800;
    line-height:1.2;
}

.mm-btn:hover{
    background:var(--mm-blue-dark);
}

.mm-btn.secondary{
    border:1px solid var(--mm-line);
    background:#fff;
    color:var(--mm-navy);
}

.mm-btn.secondary:hover{
    background:var(--mm-soft);
}

.mm-btn.whatsapp{
    background:var(--mm-green);
}

.mobile-nav-toggle{
    display:none;
    margin-left:auto;
    border:0;
    background:transparent;
    color:var(--mm-navy);
    font-size:25px;
    cursor:pointer;
}

.public-main{
    min-height:60vh;
}

.page-hero{
    padding:70px 0;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(21,101,216,.12),
            transparent 32%
        ),
        var(--mm-soft);
}

.page-hero h1{
    max-width:820px;
    margin:8px 0 12px;
    color:var(--mm-navy);
    font-size:clamp(38px,6vw,66px);
    line-height:1;
    letter-spacing:-.045em;
}

.page-hero p{
    max-width:720px;
    margin:0;
    color:var(--mm-muted);
    font-size:18px;
}

.eyebrow{
    display:inline-block;
    color:var(--mm-blue);
    font-size:12px;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.section{
    padding:65px 0;
}

.section.soft{
    background:var(--mm-soft);
}

.section-heading{
    max-width:760px;
    margin-bottom:28px;
}

.section-heading h2{
    margin:5px 0 8px;
    color:var(--mm-navy);
    font-size:clamp(29px,4vw,42px);
    line-height:1.08;
}

.section-heading p{
    margin:0;
    color:var(--mm-muted);
}

.category-grid{
    display:grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr));
    gap:18px;
}

.category-card{
    min-height:205px;
    padding:22px;
    border:1px solid var(--mm-line);
    border-radius:18px;
    background:#fff;
    box-shadow:0 7px 22px rgba(16,24,40,.05);
    transition:.2s ease;
}

.category-card:hover{
    transform:translateY(-4px);
    border-color:#cbdcf7;
    box-shadow:var(--mm-shadow);
}

.category-icon{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    margin-bottom:18px;
    border-radius:13px;
    background:#eaf2ff;
    color:var(--mm-blue);
    font-weight:900;
}

.category-card h3{
    margin:0 0 7px;
    color:var(--mm-navy);
}

.category-card p{
    margin:0;
    color:var(--mm-muted);
    font-size:14px;
}

.empty-state{
    padding:45px 25px;
    border:1px dashed #cfd6e4;
    border-radius:18px;
    background:#fafcff;
    text-align:center;
}

.empty-state h2{
    margin-top:0;
    color:var(--mm-navy);
}

.public-footer{
    padding-top:55px;
    background:#101828;
    color:#d0d5dd;
}

.footer-grid{
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr 1fr;
    gap:40px;
}

.footer-brand .brand-copy strong{
    color:#fff;
}

.footer-brand .brand-copy small{
    color:#98a2b3;
}

.footer-about{
    max-width:330px;
    margin-top:18px;
    color:#98a2b3;
}

.public-footer h3{
    margin-top:0;
    color:#fff;
    font-size:15px;
}

.footer-links{
    display:flex;
    flex-direction:column;
    gap:9px;
}

.footer-links a{
    color:#b9c0cc;
    font-size:14px;
}

.footer-links a:hover{
    color:#fff;
}

.footer-bottom{
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-top:45px;
    padding:22px 0;
    border-top:1px solid #273143;
    color:#98a2b3;
    font-size:12px;
}

@media(max-width:1050px){
    .public-nav{
        position:fixed;
        top:82px;
        left:0;
        right:0;
        display:none;
        padding:15px 18px 25px;
        border-bottom:1px solid var(--mm-line);
        background:#fff;
        box-shadow:0 16px 30px rgba(16,24,40,.12);
    }

    body.nav-open .public-nav{
        display:flex;
        flex-direction:column;
        align-items:stretch;
    }

    .mobile-nav-toggle{
        display:block;
    }

    .header-actions{
        display:none;
    }

    .category-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}

@media(max-width:700px){
    .public-container{
        width:min(100% - 26px,1180px);
    }

    .header-inner{
        min-height:72px;
    }

    .public-nav{
        top:72px;
    }

    .brand-copy small{
        display:none;
    }

    .page-hero{
        padding:50px 0;
    }

    .section{
        padding:48px 0;
    }

    .category-grid,
    .footer-grid{
        grid-template-columns:1fr;
    }

    .footer-bottom{
        flex-direction:column;
    }
}

/* ==========================================================
   MY MANAGER PUBLIC MARKETPLACE
   ========================================================== */

.mm-listing-heading{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:28px;
}
.mm-listing-heading h2{
    margin:4px 0 0;
    color:var(--mm-navy);
    font-size:34px;
}
.mm-result-count{
    color:var(--mm-muted);
    font-size:14px;
    font-weight:800;
}
.mm-market-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
}
.mm-market-card{
    overflow:hidden;
    border:1px solid var(--mm-line);
    border-radius:20px;
    background:#fff;
    box-shadow:0 8px 28px rgba(16,24,40,.07);
    transition:.2s ease;
}
.mm-market-card:hover{
    transform:translateY(-4px);
    box-shadow:var(--mm-shadow);
}
.mm-card-media{
    position:relative;
    height:230px;
    display:block;
    overflow:hidden;
    background:#eef3f9;
}
.mm-card-media.portrait{
    height:290px;
}
.mm-card-media>img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.mm-image-placeholder{
    width:100%;
    height:100%;
    display:grid;
    place-items:center;
    color:#98a2b3;
    font-size:13px;
    font-weight:900;
    letter-spacing:.1em;
}
.mm-logo-overlay{
    position:absolute;
    left:16px;
    bottom:16px;
    width:66px;
    height:66px;
    padding:6px;
    border-radius:15px;
    background:#fff;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}
.mm-logo-overlay img{
    width:100%;
    height:100%;
    object-fit:contain;
}
.mm-card-body{
    padding:20px;
}
.mm-card-body h3{
    margin:9px 0 7px;
    color:var(--mm-navy);
    font-size:20px;
    line-height:1.25;
}
.mm-card-body p{
    margin:7px 0;
    color:var(--mm-muted);
    font-size:14px;
}
.mm-badges{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}
.mm-badges span{
    padding:5px 9px;
    border-radius:999px;
    background:#eef4ff;
    color:var(--mm-blue);
    font-size:10px;
    font-weight:900;
    text-transform:uppercase;
}
.mm-location{
    color:var(--mm-muted)!important;
}
.mm-price{
    color:var(--mm-navy)!important;
    font-size:18px!important;
    font-weight:900;
}
.mm-property-facts{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:13px 0;
}
.mm-property-facts span{
    padding:5px 8px;
    border-radius:7px;
    background:var(--mm-soft);
    font-size:11px;
    font-weight:800;
}
.mm-card-actions{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:17px;
}
.mm-small-btn{
    display:inline-flex;
    min-height:36px;
    align-items:center;
    justify-content:center;
    padding:7px 11px;
    border:1px solid var(--mm-line);
    border-radius:8px;
    background:#fff;
    color:var(--mm-navy);
    font-size:11px;
    font-weight:900;
}
.mm-small-btn.primary{
    border-color:var(--mm-blue);
    background:var(--mm-blue);
    color:#fff;
}
.mm-small-btn.whatsapp{
    border-color:var(--mm-green);
    color:var(--mm-green);
}
.mm-detail-hero{
    padding:42px 0 0;
    background:var(--mm-soft);
}
.mm-detail-cover{
    width:100%;
    height:min(52vw,500px);
    min-height:280px;
    overflow:hidden;
    border-radius:22px;
    background:#e9eef5;
}
.mm-detail-cover img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.mm-profile-heading,
.mm-hm-heading,
.mm-property-title{
    display:flex;
    align-items:center;
    gap:22px;
    padding:28px 0;
}
.mm-profile-heading h1,
.mm-hm-heading h1,
.mm-property-title h1{
    margin:4px 0;
    color:var(--mm-navy);
    font-size:clamp(31px,5vw,52px);
    line-height:1.05;
}
.mm-profile-logo{
    width:110px;
    height:110px;
    padding:8px;
    object-fit:contain;
    border:1px solid var(--mm-line);
    border-radius:20px;
    background:#fff;
}
.mm-hm-photo{
    width:150px;
    height:170px;
    object-fit:cover;
    border-radius:20px;
}
.mm-property-title{
    justify-content:space-between;
}
.mm-big-price{
    color:var(--mm-blue);
    font-size:28px;
    font-weight:900;
    text-align:right;
}
.mm-big-price small{
    display:block;
    color:var(--mm-muted);
    font-size:12px;
}
.mm-detail-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    padding-bottom:30px;
}
.mm-detail-grid{
    display:grid;
    grid-template-columns:minmax(0,2fr) minmax(280px,.8fr);
    gap:28px;
    align-items:start;
}
.mm-detail-main{
    display:grid;
    gap:20px;
}
.mm-detail-side{
    position:sticky;
    top:105px;
    display:grid;
    gap:15px;
}
.mm-info-panel,
.mm-contact-panel{
    padding:24px;
    border:1px solid var(--mm-line);
    border-radius:18px;
    background:#fff;
    box-shadow:0 6px 22px rgba(16,24,40,.05);
}
.mm-info-panel h2,
.mm-contact-panel h3{
    margin:0 0 15px;
    color:var(--mm-navy);
}
.mm-info-panel p{
    margin-bottom:0;
}
.mm-facts{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}
.mm-facts div{
    padding:14px;
    border-radius:12px;
    background:var(--mm-soft);
}
.mm-facts small{
    display:block;
    margin-bottom:4px;
    color:var(--mm-muted);
}
.mm-facts strong{
    color:var(--mm-navy);
}
.mm-gallery{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}
.mm-gallery img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:12px;
}
.mm-map{
    width:100%;
    height:360px;
    border:0;
    border-radius:14px;
}
.mm-btn.full{
    width:100%;
    margin-top:8px;
}
.mm-provider-link{
    margin:15px 0 0;
    color:var(--mm-muted);
    font-size:12px;
    text-align:center;
}
.mm-request-banner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:28px;
    padding:22px;
    border-radius:18px;
    background:var(--mm-navy);
    color:#fff;
}
.mm-request-banner span{
    color:#cbd5e1;
    font-size:13px;
}

@media(max-width:950px){
    .mm-market-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .mm-detail-grid{
        grid-template-columns:1fr;
    }
    .mm-detail-side{
        position:static;
    }
}
@media(max-width:650px){
    .mm-market-grid{
        grid-template-columns:1fr;
    }
    .mm-listing-heading,
    .mm-property-title,
    .mm-request-banner{
        align-items:flex-start;
        flex-direction:column;
    }
    .mm-profile-heading,
    .mm-hm-heading{
        align-items:flex-start;
        flex-direction:column;
    }
    .mm-profile-logo{
        width:90px;
        height:90px;
    }
    .mm-facts{
        grid-template-columns:1fr;
    }
    .mm-gallery{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .mm-gallery img{
        height:140px;
    }
    .mm-big-price{
        text-align:left;
    }
}

/* MY MANAGER — PUBLIC FORMS + CAREERS */

.mm-form-shell{
    max-width:900px;
}

.mm-public-form{
    display:grid;
    gap:24px;
    padding:28px;
    border:1px solid var(--mm-line);
    border-radius:20px;
    background:#fff;
    box-shadow:var(--mm-shadow);
}

.mm-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.mm-public-form label{
    display:grid;
    gap:7px;
}

.mm-public-form label span{
    color:var(--mm-navy);
    font-size:13px;
    font-weight:800;
}

.mm-public-form input,
.mm-public-form select,
.mm-public-form textarea{
    width:100%;
    padding:12px 13px;
    border:1px solid #d0d5dd;
    border-radius:10px;
    outline:none;
    background:#fff;
    color:var(--mm-text);
}

.mm-public-form input:focus,
.mm-public-form select:focus,
.mm-public-form textarea:focus{
    border-color:var(--mm-blue);
    box-shadow:0 0 0 3px rgba(21,101,216,.10);
}

.mm-full-field{
    grid-column:1/-1;
}

.mm-form-section{
    padding-top:20px;
    border-top:1px solid var(--mm-line);
}

.mm-form-section h3{
    margin:0 0 16px;
    color:var(--mm-navy);
}

.mm-form-error{
    margin-bottom:18px;
    padding:13px 16px;
    border:1px solid #f1b5b5;
    border-radius:10px;
    background:#fff2f2;
    color:#a32121;
    font-weight:700;
}

.mm-success-box{
    padding:40px;
    border:1px solid #b7e4cf;
    border-radius:22px;
    background:#f1fbf6;
    text-align:center;
}

.mm-success-box h2{
    margin:7px 0;
    color:var(--mm-navy);
    font-size:34px;
}

.mm-reference{
    display:inline-block;
    margin:10px 0 20px;
    padding:10px 16px;
    border-radius:9px;
    background:#fff;
    color:var(--mm-navy);
    font-weight:900;
    letter-spacing:.05em;
}

.mm-career-search{
    display:flex;
    gap:10px;
    max-width:700px;
    margin-top:25px;
}

.mm-career-search input{
    flex:1;
    min-width:0;
    padding:12px 15px;
    border:1px solid var(--mm-line);
    border-radius:10px;
}

.mm-career-list{
    display:grid;
    gap:15px;
}

.mm-career-card{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:30px;
    align-items:center;
    padding:24px;
    border:1px solid var(--mm-line);
    border-radius:17px;
    background:#fff;
    box-shadow:0 5px 18px rgba(16,24,40,.05);
}

.mm-career-main h3{
    margin:9px 0 3px;
    color:var(--mm-navy);
    font-size:21px;
}

.mm-career-main p{
    margin:5px 0;
}

.mm-career-org{
    color:var(--mm-navy)!important;
    font-weight:800;
}

.mm-career-side{
    min-width:180px;
    display:grid;
    gap:8px;
    text-align:right;
}

.mm-career-side strong{
    color:var(--mm-blue);
}

.mm-career-side small{
    color:var(--mm-muted);
}

.mm-home-mini-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}

.mm-home-mini-card{
    overflow:hidden;
    border:1px solid var(--mm-line);
    border-radius:15px;
    background:#fff;
}

.mm-home-mini-card img{
    width:100%;
    height:160px;
    object-fit:cover;
}

.mm-home-mini-card div{
    display:grid;
    gap:4px;
    padding:15px;
}

.mm-home-mini-card small{
    color:var(--mm-blue);
    font-weight:800;
}

.mm-home-mini-card strong{
    color:var(--mm-navy);
}

.mm-home-mini-card span{
    color:var(--mm-muted);
    font-size:13px;
}

.mm-home-careers{
    margin-top:35px;
    padding:22px;
    border-radius:18px;
    background:#fff;
}

.mm-home-careers h3{
    margin-top:0;
    color:var(--mm-navy);
}

.mm-home-careers>a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:14px 0;
    border-top:1px solid var(--mm-line);
}

.mm-home-careers>a div{
    display:grid;
}

.mm-home-careers small{
    color:var(--mm-muted);
}

.mm-home-careers>a>span{
    color:var(--mm-blue);
    font-weight:800;
}

@media(max-width:700px){
    .mm-form-grid,
    .mm-home-mini-grid{
        grid-template-columns:1fr;
    }

    .mm-career-card{
        grid-template-columns:1fr;
    }

    .mm-career-side{
        text-align:left;
    }

    .mm-career-search{
        flex-direction:column;
    }
}


/* ==========================================================
   MY MANAGER — MOBILE CATEGORY SEARCH STABILIZATION
   ========================================================== */

.mm-category-search,
.mm-category-search *,
.mm-category-search-form,
.mm-category-search-form * {
    box-sizing: border-box;
}

.mm-category-search input,
.mm-category-search select,
.mm-category-search textarea,
.mm-category-search-form input,
.mm-category-search-form select,
.mm-category-search-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    background: #fff !important;
    color: #0f1f38 !important;

    border: 1px solid #d7e0ea;
    border-radius: 10px;

    font-family: inherit;
    font-size: 16px;

    color-scheme: light;

    -webkit-text-fill-color: #0f1f38;
    -webkit-appearance: none;
    appearance: none;
}

.mm-category-search input::placeholder,
.mm-category-search textarea::placeholder,
.mm-category-search-form input::placeholder,
.mm-category-search-form textarea::placeholder {
    color: #738096 !important;
    opacity: 1;
    -webkit-text-fill-color: #738096;
}

.mm-category-search select,
.mm-category-search-form select {
    background-color: #fff !important;
    color: #0f1f38 !important;
}

@media (max-width: 650px) {

    .page-hero {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .page-hero h1 {
        font-size: clamp(38px, 11vw, 54px);
        line-height: 1.04;
        overflow-wrap: anywhere;
    }

    .page-hero p {
        font-size: 18px;
        line-height: 1.55;
    }

    .mm-category-search,
    .mm-category-search-form {
        width: 100%;
        max-width: 100%;
    }

    .mm-category-search input,
    .mm-category-search select,
    .mm-category-search textarea,
    .mm-category-search button,
    .mm-category-search-form input,
    .mm-category-search-form select,
    .mm-category-search-form textarea,
    .mm-category-search-form button {
        font-size: 16px;
        max-width: 100%;
    }
}


/* ==========================================================
   MY MANAGER — EAST AFRICA EXPLORE MAP
   ========================================================== */

.mm-explore-map-page{
    max-width:1440px;
    margin:0 auto;
    padding:28px 20px 44px;
}

.mm-map-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:24px;
    margin-bottom:20px;
}

.mm-map-heading h1{
    margin:4px 0 7px;
    font-size:clamp(28px,4vw,46px);
    line-height:1.05;
}

.mm-map-heading p{
    margin:0;
    max-width:720px;
    color:#64748b;
}

.mm-map-eyebrow{
    display:inline-block;
    font-size:12px;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:#2563eb;
}

.mm-map-filter-bar{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:0 0 14px;
    scrollbar-width:none;
}

.mm-map-filter-bar::-webkit-scrollbar{
    display:none;
}

.mm-map-filter-bar button{
    border:1px solid #dbe2ea;
    background:#fff;
    color:#334155;
    border-radius:999px;
    padding:10px 16px;
    font:inherit;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    white-space:nowrap;
}

.mm-map-filter-bar button.active{
    background:#0f172a;
    color:#fff;
    border-color:#0f172a;
}

.mm-map-shell{
    position:relative;
    border:1px solid #e2e8f0;
    border-radius:24px;
    overflow:hidden;
    background:#f8fafc;
    box-shadow:
        0 18px 50px rgba(15,23,42,.08);
}

#mmExploreMap{
    width:100%;
    height:min(72vh,760px);
    min-height:520px;
    background:#e2e8f0;
}

.mm-map-status{
    position:absolute;
    z-index:500;
    left:18px;
    bottom:18px;
    max-width:calc(100% - 36px);
    padding:10px 14px;
    border-radius:12px;
    background:rgba(15,23,42,.90);
    color:#fff;
    font-size:13px;
    font-weight:700;
    box-shadow:0 8px 30px rgba(15,23,42,.18);
}

.mm-map-status.has-listings{
    pointer-events:none;
}

.mm-map-marker-wrap{
    background:transparent !important;
    border:0 !important;
}

.mm-map-marker{
    position:relative;
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:3px solid #fff;
    border-radius:50% 50% 50% 8px;
    transform:rotate(-45deg);
    background:#0f172a;
    box-shadow:
        0 6px 18px rgba(15,23,42,.30);
    overflow:hidden;
}

.mm-map-marker img{
    width:100%;
    height:100%;
    object-fit:cover;
    transform:rotate(45deg) scale(1.18);
}

.mm-map-marker span{
    transform:rotate(45deg);
    font-size:22px;
    line-height:1;
}

.mm-map-marker-property{
    background:#2563eb;
}

.mm-map-marker-bnb{
    background:#7c3aed;
}

.mm-map-marker-guest_house{
    background:#9333ea;
}

.mm-map-marker-school{
    background:#ea580c;
}

.mm-map-marker-hospital{
    background:#dc2626;
    color:#fff;
}

.mm-map-marker-house_manager{
    background:#059669;
}

.leaflet-popup-content-wrapper{
    border-radius:18px;
    padding:0;
    overflow:hidden;
    box-shadow:
        0 18px 50px rgba(15,23,42,.20);
}

.leaflet-popup-content{
    margin:0 !important;
    width:290px !important;
}

.mm-map-popup-card{
    overflow:hidden;
    background:#fff;
}

.mm-map-popup-image{
    height:145px;
    background:#e2e8f0;
}

.mm-map-popup-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.mm-map-popup-body{
    padding:15px;
}

.mm-map-popup-type{
    display:block;
    margin-bottom:5px;
    color:#2563eb;
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.mm-map-popup-body h3{
    margin:0 0 7px;
    color:#0f172a;
    font-size:18px;
    line-height:1.25;
}

.mm-map-popup-location{
    margin:0 0 8px;
    color:#64748b;
    font-size:13px;
}

.mm-map-popup-price{
    margin:7px 0;
    color:#0f172a;
    font-weight:800;
}

.mm-map-popup-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:13px;
}

.mm-map-popup-actions a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:8px 10px;
    border-radius:10px;
    background:#0f172a;
    color:#fff !important;
    text-decoration:none !important;
    font-size:12px;
    font-weight:800;
    text-align:center;
}

.mm-map-popup-actions a.directions{
    background:#2563eb;
}

@media(max-width:700px){

    .mm-explore-map-page{
        padding:18px 12px 28px;
    }

    .mm-map-heading{
        align-items:flex-start;
        flex-direction:column;
        gap:14px;
    }

    #mmExploreMap{
        height:68vh;
        min-height:480px;
    }

    .mm-map-shell{
        border-radius:18px;
    }

    .leaflet-popup-content{
        width:250px !important;
    }

    .mm-map-popup-image{
        height:125px;
    }
}


/* ==========================================================
   MY MANAGER — MAP CARDS + WIDE GALLERY
   ========================================================== */

.mm-location-card,
.mm-contact-map-card{
    width:100%;
    box-sizing:border-box;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:22px;
    padding:18px;
    overflow:hidden;
    box-shadow:0 10px 35px rgba(15,23,42,.06);
}

.mm-location-card-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    margin-bottom:14px;
}

.mm-location-card-head h2{
    margin:3px 0 4px;
}

.mm-location-card-head p{
    margin:0;
    color:#64748b;
}

.mm-map-kicker{
    display:block;
    font-size:11px;
    font-weight:800;
    letter-spacing:.12em;
    color:#2563eb;
}

.mm-card-map,
#mmContactExploreMap{
    width:100%;
    height:380px;
    border-radius:16px;
    overflow:hidden;
    background:#e2e8f0;
}

.mm-map-expand,
.mm-near-me-button,
.mm-directions-button{
    appearance:none;
    border:0;
    border-radius:11px;
    min-height:42px;
    padding:10px 16px;
    font:inherit;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
    text-decoration:none !important;
}

.mm-map-expand{
    background:#f1f5f9;
    color:#0f172a;
}

.mm-near-me-button{
    background:#0f172a;
    color:#fff;
}

.mm-directions-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#2563eb;
    color:#fff !important;
}

.mm-location-actions{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:14px;
}

.mm-nearby-results{
    margin-top:16px;
    border-top:1px solid #e2e8f0;
    padding-top:16px;
}

.mm-nearby-heading{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin-bottom:12px;
}

.mm-nearby-heading span{
    font-size:12px;
    color:#64748b;
}

.mm-nearby-scroll{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.mm-nearby-item{
    display:flex;
    gap:10px;
    align-items:center;
    padding:9px;
    border:1px solid #e2e8f0;
    border-radius:14px;
    text-decoration:none !important;
    color:#0f172a !important;
    min-width:0;
}

.mm-nearby-item img,
.mm-nearby-placeholder{
    width:58px;
    height:58px;
    border-radius:11px;
    object-fit:cover;
    flex:0 0 58px;
    background:#f1f5f9;
}

.mm-nearby-placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
}

.mm-nearby-item div{
    min-width:0;
}

.mm-nearby-item small,
.mm-nearby-item strong,
.mm-nearby-item span{
    display:block;
}

.mm-nearby-item small{
    color:#2563eb;
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
}

.mm-nearby-item strong{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.mm-nearby-item span{
    margin-top:3px;
    color:#64748b;
    font-size:12px;
}

/* Wide gallery inside its normal card */

.mm-gallery-wide{
    width:100%;
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(210px,1fr));
    gap:12px;
}

.mm-gallery-wide img{
    display:block;
    width:100%;
    height:230px;
    object-fit:cover;
    border-radius:14px;
    cursor:zoom-in;
}

/* Fullscreen gallery */

.mm-overlay-open{
    overflow:hidden !important;
}

.mm-gallery-viewer{
    display:none;
    position:fixed;
    inset:0;
    z-index:999999;
    background:rgba(2,6,23,.97);
    align-items:center;
    justify-content:center;
}

.mm-gallery-viewer.open{
    display:flex;
}

.mm-gallery-stage{
    width:100vw;
    height:100dvh;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    padding:60px 70px;
    box-sizing:border-box;
}

.mm-gallery-stage img{
    display:block;
    max-width:100%;
    max-height:calc(100dvh - 120px);
    width:auto;
    height:auto;
    object-fit:contain;
}

.mm-gallery-caption{
    position:absolute;
    left:50%;
    bottom:18px;
    transform:translateX(-50%);
    max-width:75%;
    color:#fff;
    text-align:center;
    font-size:13px;
}

.mm-gallery-close,
.mm-gallery-prev,
.mm-gallery-next{
    position:fixed;
    z-index:1000001;
    border:0;
    background:rgba(255,255,255,.12);
    color:#fff;
    cursor:pointer;
}

.mm-gallery-close{
    top:16px;
    right:16px;
    width:46px;
    height:46px;
    border-radius:50%;
    font-size:30px;
}

.mm-gallery-prev,
.mm-gallery-next{
    top:50%;
    transform:translateY(-50%);
    width:48px;
    height:64px;
    border-radius:14px;
    font-size:42px;
}

.mm-gallery-prev{
    left:14px;
}

.mm-gallery-next{
    right:14px;
}

.mm-gallery-count{
    position:fixed;
    top:22px;
    left:50%;
    transform:translateX(-50%);
    z-index:1000001;
    color:#fff;
    font-weight:800;
}

/* Fullscreen map only after Enlarge Map */

.mm-map-overlay{
    position:fixed;
    inset:0;
    z-index:999998;
    display:flex;
    flex-direction:column;
    background:#fff;
}

.mm-map-overlay-bar{
    flex:0 0 auto;
    min-height:68px;
    padding:10px 18px;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    background:#fff;
    border-bottom:1px solid #e2e8f0;
}

.mm-map-overlay-bar small,
.mm-map-overlay-bar strong{
    display:block;
}

.mm-map-overlay-bar small{
    color:#2563eb;
    font-size:10px;
    font-weight:800;
    letter-spacing:.1em;
}

.mm-map-overlay-bar button{
    border:0;
    border-radius:10px;
    padding:10px 16px;
    background:#0f172a;
    color:#fff;
    font-weight:800;
    cursor:pointer;
}

#mmExpandedMap,
#mmContactMapLarge{
    flex:1 1 auto;
    width:100%;
    min-height:0;
}

/* Map markers */

.mm-leaflet-marker-shell{
    background:transparent !important;
    border:0 !important;
}

.mm-leaflet-photo-marker,
.mm-leaflet-symbol-marker{
    width:42px;
    height:42px;
    border-radius:50% 50% 50% 8px;
    border:3px solid #fff;
    box-shadow:0 5px 16px rgba(15,23,42,.30);
    overflow:hidden;
    transform:rotate(-45deg);
    background:#2563eb;
}

.mm-leaflet-photo-marker img{
    width:100%;
    height:100%;
    object-fit:cover;
    transform:rotate(45deg) scale(1.18);
}

.mm-leaflet-symbol-marker{
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-weight:900;
    font-size:19px;
}

.mm-leaflet-symbol-marker{
    line-height:1;
}

.mm-type-school{
    background:#ea580c;
}

.mm-type-hospital{
    background:#dc2626;
}

.mm-type-house_manager{
    background:#059669;
}

.mm-type-bnb,
.mm-type-guest_house{
    background:#7c3aed;
}

.mm-map-mini-card{
    display:flex;
    gap:10px;
    width:240px;
}

.mm-map-popup-thumb{
    width:74px;
    height:74px;
    border-radius:10px;
    object-fit:cover;
}

.mm-map-mini-card div{
    min-width:0;
}

.mm-map-mini-card small,
.mm-map-mini-card strong,
.mm-map-mini-card span,
.mm-map-mini-card a{
    display:block;
}

.mm-map-mini-card small{
    color:#2563eb;
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
}

.mm-map-mini-card strong{
    margin:2px 0;
}

.mm-map-mini-card span{
    color:#64748b;
    font-size:11px;
}

.mm-map-mini-card a{
    margin-top:6px;
    font-size:12px;
    font-weight:800;
}

/* Contact map remains a card */

.mm-contact-map-card{
    min-width:0;
}

@media(max-width:760px){

    .mm-location-card,
    .mm-contact-map-card{
        padding:12px;
        border-radius:17px;
    }

    .mm-location-card-head{
        align-items:flex-start;
        flex-direction:column;
        gap:10px;
    }

    .mm-card-map,
    #mmContactExploreMap{
        height:330px;
    }

    .mm-location-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .mm-nearby-scroll{
        display:flex;
        overflow-x:auto;
        scroll-snap-type:x mandatory;
        padding-bottom:5px;
    }

    .mm-nearby-item{
        flex:0 0 82%;
        scroll-snap-align:start;
    }

    .mm-gallery-wide{
        display:flex;
        overflow-x:auto;
        scroll-snap-type:x mandatory;
        gap:10px;
        padding-bottom:6px;
    }

    .mm-gallery-wide img{
        flex:0 0 88%;
        height:min(62vw,340px);
        scroll-snap-align:center;
    }

    .mm-gallery-stage{
        padding:55px 8px;
    }

    .mm-gallery-stage img{
        max-height:calc(100dvh - 110px);
    }

    .mm-gallery-prev,
    .mm-gallery-next{
        width:38px;
        height:54px;
        background:rgba(0,0,0,.38);
    }

    .mm-gallery-prev{
        left:5px;
    }

    .mm-gallery-next{
        right:5px;
    }
}

/* MY MANAGER map render fallback */
.mm-map-load-error{
    width:100%;
    height:100%;
    min-height:300px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    text-align:center;
    background:#f1f5f9;
    color:#0f172a;
}

.mm-map-load-error span{
    color:#64748b;
    font-size:13px;
}


/* ============================================================
   MY MANAGER — PUBLIC DETAIL + AMENITY MAP FINAL UI
   ============================================================ */

.mm-map-discovery{
    position:relative;
}

.mm-map-filter-wrap{
    position:relative;
    z-index:450;
    margin-bottom:12px;
}

.mm-map-filters{
    display:flex;
    gap:8px;
    overflow-x:auto;
    scrollbar-width:none;
    padding:2px 1px 7px;
    -webkit-overflow-scrolling:touch;
}

.mm-map-filters::-webkit-scrollbar{
    display:none;
}

.mm-map-filters button{
    appearance:none;
    border:1px solid #dfe4e8;
    background:#fff;
    color:#17202a;
    min-height:42px;
    padding:8px 14px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    gap:7px;
    white-space:nowrap;
    cursor:pointer;
    font:inherit;
    font-size:13px;
    font-weight:700;
    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.mm-map-filters button:hover{
    border-color:#aeb8c2;
    transform:translateY(-1px);
}

.mm-map-filters button.active{
    background:#111827;
    color:#fff;
    border-color:#111827;
}

.mm-filter-icon{
    display:inline-grid;
    place-items:center;
    min-width:18px;
    font-size:16px;
}

.mm-map-stage{
    position:relative;
}

#mmContactExploreMap{
    width:100%;
    height:520px;
    min-height:420px;
    border-radius:18px;
    overflow:hidden;
    background:#e8edf1;
}

.mm-amenity-marker-shell,
.mm-user-marker-shell{
    background:transparent !important;
    border:0 !important;
}

.mm-amenity-marker{
    width:44px;
    height:44px;
    border-radius:50% 50% 50% 12px;
    transform:rotate(-45deg);
    background:#fff;
    border:2px solid #111827;
    box-shadow:
        0 5px 14px rgba(15,23,42,.20);
    display:grid;
    place-items:center;
}

.mm-amenity-marker svg{
    width:22px;
    height:22px;
    transform:rotate(45deg);
}

.mm-amenity-school{
    color:#1d4ed8;
    border-color:#1d4ed8;
}

.mm-amenity-hospital{
    color:#b91c1c;
    border-color:#b91c1c;
}

.mm-amenity-property{
    color:#047857;
    border-color:#047857;
}

.mm-amenity-bnb{
    color:#7c3aed;
    border-color:#7c3aed;
}

.mm-amenity-guest_house{
    color:#9a3412;
    border-color:#9a3412;
}

.mm-amenity-house_manager{
    color:#0f766e;
    border-color:#0f766e;
}

.mm-user-location-marker{
    width:32px;
    height:32px;
    border-radius:50%;
    background:rgba(37,99,235,.20);
    display:grid;
    place-items:center;
    animation:mm-user-pulse 2s infinite;
}

.mm-user-location-marker span{
    width:14px;
    height:14px;
    background:#2563eb;
    border:3px solid #fff;
    border-radius:50%;
    box-shadow:0 1px 7px rgba(0,0,0,.25);
}

@keyframes mm-user-pulse{
    0%{
        box-shadow:0 0 0 0 rgba(37,99,235,.30);
    }
    70%{
        box-shadow:0 0 0 15px rgba(37,99,235,0);
    }
    100%{
        box-shadow:0 0 0 0 rgba(37,99,235,0);
    }
}

.mm-map-selection{
    position:absolute;
    z-index:700;
    left:18px;
    right:18px;
    bottom:18px;
    max-width:540px;
    margin:auto;
    background:rgba(255,255,255,.98);
    border:1px solid rgba(15,23,42,.10);
    border-radius:18px;
    box-shadow:
        0 16px 45px rgba(15,23,42,.22);
    padding:12px;
    display:grid;
    grid-template-columns:92px minmax(0,1fr);
    gap:14px;
    backdrop-filter:blur(12px);
}

.mm-map-selection[hidden]{
    display:none !important;
}

.mm-map-selection-image,
.mm-map-selection-icon{
    width:92px;
    height:92px;
    border-radius:13px;
}

.mm-map-selection-image{
    object-fit:cover;
}

.mm-map-selection-icon{
    background:#f3f5f7;
    display:grid;
    place-items:center;
}

.mm-map-selection-icon svg{
    width:38px;
    height:38px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
}

.mm-map-selection-content{
    min-width:0;
}

.mm-map-selection-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:1px 30px 4px 0;
}

.mm-map-selection-meta span{
    color:#667085;
    text-transform:uppercase;
    font-size:10px;
    font-weight:800;
    letter-spacing:.08em;
}

.mm-map-selection-meta strong{
    font-size:12px;
    color:#2563eb;
    white-space:nowrap;
}

.mm-map-selection h3{
    margin:0;
    color:#111827;
    font-size:18px;
    line-height:1.2;
}

.mm-map-selection p{
    margin:5px 0 0;
    color:#667085;
    font-size:13px;
}

.mm-map-selection-price{
    margin-top:5px;
    font-size:13px;
    font-weight:800;
    color:#111827;
}

.mm-map-selection-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
}

.mm-map-selection-actions a{
    min-height:36px;
    padding:7px 13px;
    border-radius:9px;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:800;
}

.mm-map-primary-action{
    background:#111827;
    color:#fff !important;
}

.mm-map-secondary-action{
    border:1px solid #d6dce2;
    background:#fff;
    color:#111827 !important;
}

.mm-map-selection-close{
    position:absolute;
    top:8px;
    right:8px;
    width:30px;
    height:30px;
    border:0;
    border-radius:50%;
    background:#f2f4f6;
    color:#111827;
    cursor:pointer;
    font-size:19px;
    line-height:1;
}

.mm-nearby-results{
    margin-top:14px;
    border:1px solid #e5e7eb;
    border-radius:14px;
    overflow:hidden;
    background:#fff;
}

.mm-nearby-heading{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:13px 15px;
    border-bottom:1px solid #edf0f2;
}

.mm-nearby-heading strong{
    color:#111827;
    font-size:14px;
}

.mm-nearby-heading span{
    color:#667085;
    font-size:12px;
}

.mm-nearby-item{
    width:100%;
    border:0;
    border-bottom:1px solid #edf0f2;
    background:#fff;
    display:grid;
    grid-template-columns:38px minmax(0,1fr) auto;
    gap:11px;
    align-items:center;
    text-align:left;
    padding:11px 14px;
    cursor:pointer;
}

.mm-nearby-item:last-child{
    border-bottom:0;
}

.mm-nearby-item:hover{
    background:#f8fafb;
}

.mm-nearby-icon{
    width:36px;
    height:36px;
    border-radius:10px;
    background:#f3f5f7;
    display:grid;
    place-items:center;
}

.mm-nearby-icon svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
}

.mm-nearby-copy{
    min-width:0;
}

.mm-nearby-copy strong,
.mm-nearby-copy small{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.mm-nearby-copy strong{
    font-size:13px;
    color:#111827;
}

.mm-nearby-copy small{
    margin-top:2px;
    font-size:11px;
    color:#667085;
}

.mm-nearby-item b{
    font-size:12px;
    color:#2563eb;
}

.mm-nearby-empty{
    padding:15px;
    color:#667085;
    font-size:13px;
}

.mm-location-title-icon{
    width:32px;
    height:32px;
    border-radius:9px;
    background:#f2f4f6;
    display:inline-grid;
    place-items:center;
    margin-right:9px;
    vertical-align:middle;
}

.mm-location-title-icon svg{
    width:18px;
    height:18px;
}

/* ------------------------------------------------------------
   PUBLIC DETAIL PAGE REBALANCE
   ------------------------------------------------------------ */

.mm-detail-grid{
    display:grid !important;
    grid-template-columns:
        minmax(0,1fr)
        minmax(280px,340px) !important;
    align-items:start !important;
    gap:28px !important;
}

.mm-detail-main{
    min-width:0;
}

.mm-detail-main > section,
.mm-detail-main > .mm-card,
.mm-detail-main > .card{
    margin-bottom:18px !important;
}

.mm-detail-grid > aside,
.mm-detail-grid > .mm-detail-side,
.mm-detail-grid > .mm-detail-sidebar{
    position:sticky;
    top:92px;
    align-self:start;
}

/* Make generic content cards tighter and cleaner */
.mm-detail-main .mm-card,
.mm-detail-main .card{
    border:1px solid #e7eaee !important;
    border-radius:16px !important;
    box-shadow:none !important;
}

.mm-detail-main .mm-card-body,
.mm-detail-main .card-body{
    padding:20px !important;
}

/* Gallery becomes a proper listing gallery */
.mm-gallery,
.mm-gallery-wide{
    display:grid !important;
    grid-template-columns:
        minmax(0,1.7fr)
        minmax(0,.85fr)
        minmax(0,.85fr) !important;
    grid-auto-rows:180px;
    gap:7px !important;
    width:100%;
    overflow:hidden;
    border-radius:18px;
    margin-bottom:24px;
}

.mm-gallery img,
.mm-gallery-wide img{
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    object-fit:cover !important;
    border-radius:0 !important;
    cursor:zoom-in;
}

.mm-gallery img:first-child,
.mm-gallery-wide img:first-child{
    grid-row:span 2;
}

.mm-location-card{
    margin-top:22px;
}

/* ------------------------------------------------------------
   EXPANDED CONTACT MAP
   ------------------------------------------------------------ */

.mm-contact-map-expanded{
    position:fixed !important;
    inset:18px !important;
    z-index:99990 !important;
    margin:0 !important;
    max-width:none !important;
    width:auto !important;
    height:auto !important;
    background:#fff !important;
    border-radius:20px !important;
    padding:18px !important;
    overflow:auto !important;
    box-shadow:
        0 25px 80px rgba(0,0,0,.30) !important;
}

.mm-contact-map-expanded #mmContactExploreMap{
    height:calc(100vh - 210px);
    min-height:500px;
}

body.mm-map-expanded-open{
    overflow:hidden;
}

@media (max-width:900px){

    .mm-detail-grid{
        grid-template-columns:1fr !important;
        gap:18px !important;
    }

    .mm-detail-grid > aside,
    .mm-detail-grid > .mm-detail-side,
    .mm-detail-grid > .mm-detail-sidebar{
        position:static;
    }

    .mm-gallery,
    .mm-gallery-wide{
        grid-template-columns:2fr 1fr !important;
        grid-auto-rows:145px;
    }

    .mm-gallery img:nth-child(n+4),
    .mm-gallery-wide img:nth-child(n+4){
        display:none;
    }

    #mmContactExploreMap{
        height:470px;
        min-height:400px;
    }
}

@media (max-width:600px){

    .mm-map-filter-wrap{
        margin-left:-4px;
        margin-right:-4px;
    }

    .mm-map-filters{
        padding-left:4px;
        padding-right:4px;
    }

    .mm-map-filters button{
        min-height:40px;
        padding:7px 12px;
        font-size:12px;
    }

    #mmContactExploreMap{
        height:430px;
        min-height:380px;
        border-radius:14px;
    }

    .mm-map-selection{
        left:8px;
        right:8px;
        bottom:8px;
        max-width:none;
        grid-template-columns:72px minmax(0,1fr);
        gap:10px;
        padding:10px;
        border-radius:15px;
    }

    .mm-map-selection-image,
    .mm-map-selection-icon{
        width:72px;
        height:72px;
    }

    .mm-map-selection h3{
        font-size:15px;
    }

    .mm-map-selection p{
        font-size:11px;
    }

    .mm-map-selection-meta{
        display:block;
        margin-right:25px;
    }

    .mm-map-selection-meta strong{
        display:block;
        margin-top:2px;
    }

    .mm-map-selection-actions{
        gap:5px;
    }

    .mm-map-selection-actions a{
        min-height:32px;
        padding:6px 9px;
        font-size:11px;
    }

    .mm-gallery,
    .mm-gallery-wide{
        grid-template-columns:1fr 1fr !important;
        grid-auto-rows:115px;
        border-radius:13px;
    }

    .mm-gallery img:first-child,
    .mm-gallery-wide img:first-child{
        grid-column:1 / -1;
        grid-row:auto;
        height:210px !important;
    }

    .mm-contact-map-expanded{
        inset:7px !important;
        padding:10px !important;
        border-radius:15px !important;
    }

    .mm-contact-map-expanded #mmContactExploreMap{
        height:calc(100vh - 190px);
        min-height:430px;
    }
}


/* ============================================================
   MY MANAGER — SCHOOL DETAIL CENTRED LAYOUT
   ============================================================ */

/*
 * SCHOOL PAGE SHELL
 *
 * Kill the awkward main/sidebar split.
 * Everything becomes one balanced centred content flow.
 */
.mm-school-detail-grid{
    display:block !important;

    width:min(100%, 1180px) !important;
    max-width:1180px !important;

    margin-left:auto !important;
    margin-right:auto !important;

    padding-left:20px !important;
    padding-right:20px !important;

    box-sizing:border-box !important;
}


/*
 * MAIN CONTENT
 */
.mm-school-detail-grid .mm-detail-main{
    display:block !important;

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

    margin:0 auto !important;
}


/*
 * OLD SIDEBAR
 *
 * It remains part of the page, but no longer floats on the right.
 * It becomes a centred block underneath the primary information.
 */
.mm-school-detail-grid > aside,
.mm-school-detail-grid .mm-detail-side,
.mm-school-detail-grid .mm-detail-sidebar{
    position:static !important;

    width:100% !important;
    max-width:900px !important;

    margin:24px auto 0 !important;

    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:16px !important;

    align-items:start !important;
}


/* ============================================================
   GALLERY
   ============================================================ */

.mm-school-detail-grid .mm-gallery,
.mm-school-detail-grid .mm-gallery-wide{
    width:100% !important;
    max-width:1100px !important;

    margin:0 auto 28px !important;

    display:grid !important;
    grid-template-columns:2fr 1fr 1fr !important;
    grid-template-rows:220px 220px !important;

    gap:8px !important;

    padding:0 !important;

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

    overflow:hidden !important;

    background:#f2f4f7 !important;
}


/*
 * Hero image.
 */
.mm-school-detail-grid .mm-gallery img:first-child,
.mm-school-detail-grid .mm-gallery-wide img:first-child{
    grid-column:1 !important;
    grid-row:1 / span 2 !important;
}


/*
 * All gallery images.
 */
.mm-school-detail-grid .mm-gallery img,
.mm-school-detail-grid .mm-gallery-wide img{
    display:block !important;

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

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

    max-width:none !important;

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

    object-fit:cover !important;

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

    cursor:zoom-in;
}


/*
 * Only five images in the visible mosaic.
 * Fullscreen gallery still handles the collection.
 */
.mm-school-detail-grid .mm-gallery img:nth-child(n+6),
.mm-school-detail-grid .mm-gallery-wide img:nth-child(n+6){
    display:none !important;
}


/* ============================================================
   SCHOOL INFORMATION SECTIONS
   ============================================================ */

/*
 * School Information / Fees / Admissions / Facilities / etc.
 *
 * Centred, wide, consistent.
 */
.mm-school-detail-grid .mm-detail-main > section,
.mm-school-detail-grid .mm-detail-main > article,
.mm-school-detail-grid .mm-detail-main > .mm-card,
.mm-school-detail-grid .mm-detail-main > .card{
    display:block !important;

    width:100% !important;
    max-width:1000px !important;

    margin:0 auto 20px !important;

    padding:24px !important;

    box-sizing:border-box !important;

    background:#fff !important;

    border:1px solid #e5e9ee !important;
    border-radius:16px !important;

    box-shadow:none !important;
}


/*
 * Do not double-pad nested cards.
 */
.mm-school-detail-grid .mm-detail-main .mm-card-body,
.mm-school-detail-grid .mm-detail-main .card-body{
    padding:0 !important;
}


/*
 * Section headings.
 */
.mm-school-detail-grid .mm-detail-main h2{
    margin:0 0 18px !important;

    font-size:22px !important;
    line-height:1.25 !important;

    color:#111827 !important;
}


/*
 * Text stays readable and doesn't stretch from edge to edge.
 */
.mm-school-detail-grid .mm-detail-main p{
    line-height:1.7 !important;
}


/* ============================================================
   SCHOOL INFORMATION TILES
   ============================================================ */

.mm-school-detail-grid .mm-info-grid,
.mm-school-detail-grid .mm-detail-info-grid,
.mm-school-detail-grid .mm-meta-grid,
.mm-school-detail-grid .mm-stat-grid{
    display:grid !important;

    grid-template-columns:
        repeat(4,minmax(0,1fr)) !important;

    gap:12px !important;

    width:100% !important;
}


/*
 * Individual information cells.
 */
.mm-school-detail-grid .mm-info-grid > *,
.mm-school-detail-grid .mm-detail-info-grid > *,
.mm-school-detail-grid .mm-meta-grid > *,
.mm-school-detail-grid .mm-stat-grid > *{
    min-width:0 !important;

    padding:16px !important;

    background:#f7f8fa !important;

    border:1px solid #eceff2 !important;
    border-radius:12px !important;

    box-sizing:border-box !important;
}


/* ============================================================
   FACILITIES
   ============================================================ */

.mm-school-detail-grid .mm-tags,
.mm-school-detail-grid .mm-chips,
.mm-school-detail-grid .mm-facilities{
    display:flex !important;

    flex-wrap:wrap !important;

    justify-content:flex-start !important;

    gap:9px !important;

    width:100% !important;
}


.mm-school-detail-grid .mm-tags > *,
.mm-school-detail-grid .mm-chips > *,
.mm-school-detail-grid .mm-facilities > *{
    width:auto !important;

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

    margin:0 !important;
}


/* ============================================================
   MAP / LOCATION
   ============================================================ */

/*
 * Location block is centred exactly like the other major sections.
 */
.mm-school-detail-grid .mm-location-card,
.mm-school-detail-grid .mm-location,
.mm-school-detail-grid .mm-map-section,
.mm-school-detail-grid .mm-contact-map{
    display:block !important;

    width:100% !important;
    max-width:1000px !important;

    margin:24px auto !important;

    padding:18px !important;

    box-sizing:border-box !important;

    background:#fff !important;

    border:1px solid #e5e9ee !important;
    border-radius:16px !important;

    overflow:hidden !important;
}


/*
 * Leaflet map.
 */
.mm-school-detail-grid .mm-card-map{
    display:block !important;

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

    margin:0 auto !important;

    border-radius:12px !important;

    overflow:hidden !important;
}


/*
 * Existing Google map/embed fallback.
 *
 * School ID 1 currently uses this because its stored coordinates
 * are NULL.
 */
.mm-school-detail-grid iframe{
    display:block !important;

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

    height:430px !important;
    min-height:430px !important;

    margin:0 auto !important;

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

    overflow:hidden !important;
}


/*
 * Location heading/action area.
 */
.mm-school-detail-grid .mm-location-card-head{
    display:flex !important;

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

    gap:20px !important;

    margin-bottom:14px !important;
}


/*
 * NO DECORATIVE ICONS.
 */
.mm-school-detail-grid .mm-location-title-icon,
.mm-school-detail-grid .mm-filter-icon,
.mm-school-detail-grid .mm-leaflet-symbol-marker{
    display:none !important;
}


/*
 * Map actions.
 */
.mm-school-detail-grid .mm-location-actions{
    display:flex !important;

    justify-content:center !important;
    align-items:center !important;

    flex-wrap:wrap !important;

    gap:10px !important;

    margin-top:14px !important;
}


/* ============================================================
   SIDEBAR/CONTACT CARDS NOW BELOW CONTENT
   ============================================================ */

.mm-school-detail-grid > aside > *,
.mm-school-detail-grid .mm-detail-side > *,
.mm-school-detail-grid .mm-detail-sidebar > *{
    width:100% !important;

    margin:0 !important;

    padding:20px !important;

    box-sizing:border-box !important;

    border:1px solid #e5e9ee !important;
    border-radius:16px !important;

    background:#fff !important;

    box-shadow:none !important;
}


/* ============================================================
   TABLET
   ============================================================ */

@media(max-width:900px){

    .mm-school-detail-grid{
        padding-left:16px !important;
        padding-right:16px !important;
    }


    .mm-school-detail-grid .mm-gallery,
    .mm-school-detail-grid .mm-gallery-wide{
        grid-template-columns:2fr 1fr !important;
        grid-template-rows:190px 190px !important;
    }


    .mm-school-detail-grid .mm-gallery img:first-child,
    .mm-school-detail-grid .mm-gallery-wide img:first-child{
        grid-column:1 !important;
        grid-row:1 / span 2 !important;
    }


    .mm-school-detail-grid .mm-gallery img:nth-child(n+4),
    .mm-school-detail-grid .mm-gallery-wide img:nth-child(n+4){
        display:none !important;
    }


    .mm-school-detail-grid .mm-info-grid,
    .mm-school-detail-grid .mm-detail-info-grid,
    .mm-school-detail-grid .mm-meta-grid,
    .mm-school-detail-grid .mm-stat-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }


    .mm-school-detail-grid > aside,
    .mm-school-detail-grid .mm-detail-side,
    .mm-school-detail-grid .mm-detail-sidebar{
        grid-template-columns:1fr !important;

        max-width:1000px !important;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media(max-width:600px){

    .mm-school-detail-grid{
        width:100% !important;

        padding-left:12px !important;
        padding-right:12px !important;
    }


    /*
     * Mobile gallery:
     * large hero + two equal supporting photos.
     */
    .mm-school-detail-grid .mm-gallery,
    .mm-school-detail-grid .mm-gallery-wide{
        grid-template-columns:1fr 1fr !important;
        grid-template-rows:220px 110px !important;

        gap:5px !important;

        border-radius:13px !important;
    }


    .mm-school-detail-grid .mm-gallery img:first-child,
    .mm-school-detail-grid .mm-gallery-wide img:first-child{
        grid-column:1 / -1 !important;
        grid-row:1 !important;
    }


    .mm-school-detail-grid .mm-gallery img:nth-child(2),
    .mm-school-detail-grid .mm-gallery-wide img:nth-child(2){
        grid-column:1 !important;
        grid-row:2 !important;
    }


    .mm-school-detail-grid .mm-gallery img:nth-child(3),
    .mm-school-detail-grid .mm-gallery-wide img:nth-child(3){
        grid-column:2 !important;
        grid-row:2 !important;
    }


    .mm-school-detail-grid .mm-gallery img:nth-child(n+4),
    .mm-school-detail-grid .mm-gallery-wide img:nth-child(n+4){
        display:none !important;
    }


    /*
     * Content cards.
     */
    .mm-school-detail-grid .mm-detail-main > section,
    .mm-school-detail-grid .mm-detail-main > article,
    .mm-school-detail-grid .mm-detail-main > .mm-card,
    .mm-school-detail-grid .mm-detail-main > .card{
        padding:17px !important;

        margin-bottom:14px !important;

        border-radius:13px !important;
    }


    /*
     * Information tiles remain balanced.
     */
    .mm-school-detail-grid .mm-info-grid,
    .mm-school-detail-grid .mm-detail-info-grid,
    .mm-school-detail-grid .mm-meta-grid,
    .mm-school-detail-grid .mm-stat-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;

        gap:8px !important;
    }


    /*
     * Map.
     */
    .mm-school-detail-grid .mm-card-map,
    .mm-school-detail-grid iframe{
        height:330px !important;
        min-height:330px !important;

        border-radius:10px !important;
    }


    .mm-school-detail-grid .mm-location-card,
    .mm-school-detail-grid .mm-location,
    .mm-school-detail-grid .mm-map-section,
    .mm-school-detail-grid .mm-contact-map{
        padding:12px !important;

        margin:16px auto !important;

        border-radius:13px !important;
    }


    .mm-school-detail-grid .mm-location-card-head{
        display:block !important;
    }


    .mm-school-detail-grid .mm-location-card-head button{
        margin-top:10px !important;
    }
}


@media(max-width:400px){

    .mm-school-detail-grid .mm-info-grid,
    .mm-school-detail-grid .mm-detail-info-grid,
    .mm-school-detail-grid .mm-meta-grid,
    .mm-school-detail-grid .mm-stat-grid{
        grid-template-columns:1fr !important;
    }
}


/* SCHOOL DETAIL — ABSOLUTELY NO MAP/SECTION ICON DECORATION */
.mm-school-detail-grid svg.mm-location-icon,
.mm-school-detail-grid .mm-location-title-icon,
.mm-school-detail-grid .mm-map-kicker::before,
.mm-school-detail-grid .mm-section-icon{
    display:none !important;
}



/* ============================================================
   MY MANAGER — REMOVE ADDED AMENITY ICONS
   ============================================================ */

/* Filter controls are TEXT ONLY. */
.mm-filter-icon{
    display:none !important;
}

/* Remove the title/location icon previously injected. */
.mm-location-title-icon{
    display:none !important;
}

/* Remove old amenity SVG/symbol markers. */
.mm-amenity-marker,
.mm-leaflet-symbol-marker{
    display:none !important;
}

/*
 * Clean neutral map pin.
 * No school / hospital / house / person / bed icon.
 */
.mm-clean-marker-shell{
    background:transparent !important;
    border:0 !important;
}

.mm-clean-map-pin{
    display:block;

    width:18px;
    height:18px;

    background:#111827;

    border:3px solid #fff;
    border-radius:50% 50% 50% 10px;

    transform:rotate(-45deg);

    box-shadow:
        0 3px 9px rgba(15,23,42,.28);
}

/* No icon box in selected listing card. */
.mm-map-selection-placeholder{
    display:none !important;
}

.mm-map-selection:not(:has(.mm-map-selection-image)){
    grid-template-columns:1fr !important;
}

/* No icon column in Near Me rows. */
.mm-nearby-icon{
    display:none !important;
}

.mm-nearby-item{
    grid-template-columns:minmax(0,1fr) auto !important;
}

/*
 * No decorative icons on School detail.
 */
.mm-school-detail-grid .mm-location-title-icon,
.mm-school-detail-grid .mm-section-icon,
.mm-school-detail-grid .mm-filter-icon{
    display:none !important;
}


/* ============================================================
   MY MANAGER — AMENITY LOCATION PINS
   No category icons. Pins remain visible.
   ============================================================ */

/*
 * IMPORTANT:
 * These are actual amenity LOCATION markers.
 * Do NOT hide them.
 */
.mm-leaflet-symbol-marker{
    display:flex !important;
}

/*
 * We do not want letters/symbols inside them.
 */
.mm-leaflet-symbol-marker{
    font-size:0 !important;
    color:transparent !important;
}

/*
 * Plain location pin shared by all amenity categories.
 */
.mm-clean-marker-shell{
    background:transparent !important;
    border:0 !important;
}

.mm-clean-map-pin{
    display:block !important;
    position:relative !important;

    width:22px !important;
    height:22px !important;

    background:#111827 !important;

    border:3px solid #fff !important;
    border-radius:50% 50% 50% 8px !important;

    transform:rotate(-45deg) !important;

    box-shadow:
        0 4px 12px rgba(15,23,42,.32) !important;
}

/*
 * Small centre point.
 * This is NOT an amenity/category icon.
 */
.mm-clean-map-pin::after{
    content:"" !important;

    position:absolute !important;

    width:6px !important;
    height:6px !important;

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

    transform:
        translate(-50%,-50%)
        rotate(45deg) !important;

    border-radius:50% !important;

    background:#fff !important;
}

/*
 * User location stays visually distinct.
 */
.mm-user-location-marker{
    display:grid !important;

    width:32px !important;
    height:32px !important;

    place-items:center !important;

    border-radius:50% !important;

    background:rgba(37,99,235,.18) !important;
}

.mm-user-location-marker span{
    display:block !important;

    width:14px !important;
    height:14px !important;

    border-radius:50% !important;

    background:#2563eb !important;
    border:3px solid #fff !important;

    box-shadow:0 2px 8px rgba(0,0,0,.25) !important;
}



/* ============================================================
   MY MANAGER — FINAL UNIFIED LOCATION MARKERS
   ============================================================ */

/*
 * All amenity markers are the SAME.
 * No category icons.
 */
.mm-clean-marker-shell,
.mm-blue-location-marker-shell{
    background:transparent !important;
    border:0 !important;
}

/*
 * Blue amenity location.
 */
.mm-clean-map-pin,
.mm-blue-location-marker{
    position:relative !important;

    display:block !important;

    width:18px !important;
    height:18px !important;

    background:#1677ff !important;

    border:3px solid #fff !important;
    border-radius:50% !important;

    box-shadow:
        0 0 0 0 rgba(22,119,255,.55),
        0 3px 10px rgba(0,0,0,.25) !important;

    transform:none !important;

    animation:
        mmAmenityPulse 1.65s infinite !important;
}

.mm-clean-map-pin::after,
.mm-blue-location-marker::after{
    content:"" !important;

    position:absolute !important;

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

    width:6px !important;
    height:6px !important;

    margin-left:-3px !important;
    margin-top:-3px !important;

    background:#fff !important;

    border-radius:50% !important;

    transform:none !important;
}

@keyframes mmAmenityPulse{

    0%{
        box-shadow:
            0 0 0 0 rgba(22,119,255,.58),
            0 3px 10px rgba(0,0,0,.25);
    }

    70%{
        box-shadow:
            0 0 0 15px rgba(22,119,255,0),
            0 3px 10px rgba(0,0,0,.25);
    }

    100%{
        box-shadow:
            0 0 0 0 rgba(22,119,255,0),
            0 3px 10px rgba(0,0,0,.25);
    }
}


/*
 * Existing Leaflet symbol/photo markers must not compete
 * with our final location marker.
 */
.mm-leaflet-symbol-marker{
    font-size:0 !important;
    color:transparent !important;
}


/*
 * Individual detail map.
 */
.mm-listing-map{
    width:100% !important;

    height:390px !important;
    min-height:340px !important;

    border-radius:16px !important;

    overflow:hidden !important;

    background:#eef2f5 !important;
}


/*
 * Visitor's own position.
 * Deliberately different from amenity pulse.
 */
.mm-user-location-marker{
    display:grid !important;

    width:28px !important;
    height:28px !important;

    place-items:center !important;

    border-radius:50% !important;

    background:rgba(22,119,255,.20) !important;

    animation:mmUserPulse 1.8s infinite !important;
}

.mm-user-location-marker span{
    display:block !important;

    width:12px !important;
    height:12px !important;

    border:3px solid #fff !important;
    border-radius:50% !important;

    background:#1677ff !important;

    box-shadow:
        0 2px 7px rgba(0,0,0,.28) !important;
}

@keyframes mmUserPulse{

    0%{
        box-shadow:
            0 0 0 0 rgba(22,119,255,.30);
    }

    70%{
        box-shadow:
            0 0 0 18px rgba(22,119,255,0);
    }

    100%{
        box-shadow:
            0 0 0 0 rgba(22,119,255,0);
    }
}


@media(max-width:700px){

    .mm-listing-map{
        height:330px !important;
        min-height:300px !important;
    }

}


/*
 * Accessibility:
 * Respect reduced-motion preference.
 */
@media(prefers-reduced-motion:reduce){

    .mm-clean-map-pin,
    .mm-blue-location-marker,
    .mm-user-location-marker{
        animation:none !important;
    }

}



/* ============================================================
   MY MANAGER — FINAL MAP VISIBILITY
   ============================================================ */

.mm-blue-location-marker-shell{
    display:block !important;
    background:transparent !important;
    border:0 !important;
}

.mm-blue-location-marker{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
}

.mm-listing-map,
[data-mm-listing-map-canvas]{
    display:block !important;
    width:100% !important;
    height:390px !important;
    min-height:340px !important;
    position:relative !important;
    z-index:1 !important;
}

#mmContactExploreMap{
    display:block !important;
    position:relative !important;
    z-index:1 !important;
}

