/* =========================================================
   WARGINI ACTIVITY PAGE — MASTER VISUAL BASELINE
   Presentation only. No entitlement/business logic here.
   ========================================================= */

.wargini-activity-full-page{
    margin:0;
    background:#f7f9f8;
}

.wargini-activity-v2{
    width:100%;
    max-width:none;
    margin:0;
}

.wap-master{
    --green:#075b4e;
    --green-2:#0a6b5c;
    --green-dark:#06483e;
    --mint:#edf8f4;
    --mint-2:#e2f3ec;
    --cream:#fffaf0;
    --gold:#c99a35;
    --text:#17322d;
    --muted:#73817d;
    --line:#dfe8e4;
    --soft:#f7faf8;

    width:min(1460px,calc(100% - 48px));
    margin:0 auto;
    padding:22px 0 54px;
    color:var(--text);
    font-family:inherit;
}

.wap-master *{
    box-sizing:border-box;
}

.wap-master button,
.wap-master a{
    font:inherit;
}


/* ---------- Common ---------- */

.wap-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:42px;
    padding:0 18px;
    border-radius:9px;
    border:1px solid var(--green);
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
    transition:.15s ease;
}

.wap-btn--primary{
    background:var(--green);
    color:#fff;
}

.wap-btn--primary:hover{
    background:var(--green-dark);
}

.wap-btn--outline{
    background:#fff;
    color:var(--green);
}

.wap-btn--outline:hover{
    background:var(--mint);
}


/* ---------- Owner management bar ---------- */

.wap-ownerbar{
    display:grid;
    grid-template-columns:minmax(340px,1.25fr) minmax(280px,.9fr) auto;
    align-items:center;
    gap:24px;

    padding:15px 20px;
    margin-bottom:18px;

    border:1px solid #cfe6dc;
    border-radius:13px;
    background:#f0faf5;
}

.wap-ownerbar__intro,
.wap-ownerbar__status{
    display:flex;
    align-items:center;
    gap:11px;
}

.wap-ownerbar__intro div,
.wap-ownerbar__status div{
    display:grid;
    gap:3px;
}

.wap-ownerbar strong{
    font-size:14px;
}

.wap-ownerbar small{
    color:var(--muted);
    font-size:11px;
    line-height:1.55;
}

.wap-ownerbar__icon,
.wap-status-check{
    display:grid;
    place-items:center;
    flex:0 0 32px;
    width:32px;
    height:32px;
    border-radius:50%;
}

.wap-ownerbar__icon{
    background:#dcefe7;
    color:var(--green);
}

.wap-status-check{
    background:var(--green);
    color:#fff;
    font-weight:900;
}

.wap-ownerbar__actions{
    display:flex;
    gap:9px;
    justify-content:flex-end;
}

.wap-ownerbar--preview{
    grid-template-columns:1fr auto;
}


/* ---------- Hero ---------- */

.wap-hero{
    display:grid;
    grid-template-columns:minmax(0,1.75fr) minmax(360px,.75fr);
    min-height:420px;
    overflow:hidden;

    border:1px solid var(--line);
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 32px rgba(19,72,59,.07);
}

.wap-hero__media{
    position:relative;
    min-width:0;
    min-height:420px;
    overflow:hidden;
    background:#dce9e4;
}

.wap-hero__image{
    display:block;
    width:100%;
    height:100%;
    min-height:420px;
    object-fit:cover;
}

.wap-hero__fallback{
    display:grid;
    place-items:center;
    width:100%;
    height:100%;
    min-height:420px;
    background:linear-gradient(135deg,#e7f3ee,#cce3d9);
    color:var(--green);
    font-size:72px;
    font-weight:900;
}

.wap-media-edit{
    position:absolute;
    top:18px;
    left:18px;
    display:grid;
    place-items:center;
    width:42px;
    height:42px;

    border:0;
    border-radius:50%;
    background:#fff;
    color:var(--green);
    cursor:pointer;
    box-shadow:0 5px 18px rgba(0,0,0,.15);
}

.wap-identity{
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:38px 34px 30px;
    background:#fff;
}

.wap-identity__avatar{
    display:grid;
    place-items:center;
    width:104px;
    height:104px;
    margin-bottom:18px;
    overflow:hidden;

    border:5px solid #fff;
    border-radius:50%;
    background:var(--mint);
    box-shadow:0 7px 24px rgba(14,67,54,.13);
}

.wap-identity__avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.wap-identity__avatar span{
    color:var(--green);
    font-size:32px;
    font-weight:900;
}

.wap-title-line{
    display:flex;
    align-items:center;
    gap:9px;
}

.wap-title-line h1{
    margin:0;
    color:var(--text);
    font-size:31px;
    line-height:1.3;
}

.wap-verified{
    display:grid;
    place-items:center;
    width:22px;
    height:22px;
    border-radius:50%;
    background:var(--green);
    color:#fff;
    font-size:12px;
    font-weight:900;
}

.wap-category{
    margin:8px 0 0;
    color:var(--green);
    font-size:14px;
    font-weight:700;
}

.wap-location{
    display:flex;
    align-items:center;
    gap:6px;
    margin:10px 0 0;
    color:var(--muted);
    font-size:13px;
}

.wap-description{
    margin:19px 0 0;
    color:#50635e;
    font-size:14px;
    line-height:1.9;
}

.wap-rating{
    margin-top:17px;
}

.wap-identity__actions{
    display:flex;
    gap:8px;
    margin-top:22px;
}

.wap-small-action{
    min-height:38px;
    padding:0 13px;
    border:1px solid var(--line);
    border-radius:8px;
    background:#fff;
    color:var(--text);
    cursor:pointer;
}


/* ---------- Gallery strip ---------- */

.wap-gallery-strip{
    display:flex;
    align-items:stretch;
    justify-content:space-between;
    gap:12px;
    padding:12px;
    margin-top:12px;

    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
}

.wap-gallery-strip__images{
    display:flex;
    gap:9px;
    min-width:0;
}

.wap-gallery-thumb{
    width:132px;
    height:82px;
    padding:0;
    overflow:hidden;
    border:0;
    border-radius:9px;
    background:#edf3f0;
    cursor:pointer;
}

.wap-gallery-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.wap-gallery-empty{
    display:flex;
    align-items:center;
    min-height:82px;
    padding:0 20px;
    color:var(--muted);
}

.wap-gallery-all{
    min-width:155px;
    padding:0 18px;
    border:1px solid var(--line);
    border-radius:9px;
    background:#fff;
    color:var(--green);
    font-weight:700;
    cursor:pointer;
}

.wap-gallery-all span{
    display:inline-grid;
    place-items:center;
    min-width:22px;
    height:22px;
    margin-inline-start:5px;
    border-radius:50%;
    background:var(--mint);
}


/* ---------- Contact package ---------- */

.wap-contact-section{
    display:grid;
    grid-template-columns:minmax(250px,.85fr) minmax(480px,1.7fr) minmax(210px,.55fr);
    align-items:center;
    gap:26px;

    margin-top:18px;
    padding:25px;

    border:1px solid #d7e9e1;
    border-radius:17px;
    background:var(--mint);
}

.wap-contact-copy{
    display:flex;
    align-items:flex-start;
    gap:12px;
}

.wap-section-icon{
    display:grid;
    place-items:center;
    flex:0 0 40px;
    width:40px;
    height:40px;
    border-radius:10px;
    background:#d9eee5;
    color:var(--green);
    font-size:20px;
}

.wap-contact-copy h2,
.wap-premium h2{
    margin:0;
    font-size:22px;
}

.wap-contact-copy p,
.wap-premium__copy p{
    margin:7px 0 0;
    color:var(--muted);
    font-size:12px;
    line-height:1.7;
}

.wap-contact-features{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.wap-contact-feature{
    position:relative;
    display:grid;
    justify-items:center;
    gap:5px;
    min-height:112px;
    padding:14px 10px;

    border:1px solid #d8e8e1;
    border-radius:12px;
    background:#fff;
    color:var(--text);
    cursor:pointer;
}

.wap-contact-feature .wap-feature-icon{
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    border-radius:50%;
    background:var(--mint);
    color:var(--green);
    font-size:19px;
}

.wap-contact-feature small{
    color:var(--muted);
    font-size:10px;
}

.wap-contact-feature i{
    position:absolute;
    top:8px;
    left:8px;
    font-style:normal;
    font-size:11px;
}

.wap-contact-feature.is-disabled{
    opacity:.72;
}

.wap-package-card{
    display:grid;
    justify-items:center;
    gap:7px;
    padding:16px;

    border:1px solid #d5e6df;
    border-radius:13px;
    background:#fff;
    text-align:center;
}

.wap-package-card>strong{
    color:var(--green);
}

.wap-package-price{
    display:grid;
}

.wap-package-price del{
    color:#9aaaa5;
    font-size:11px;
}

.wap-package-price span{
    color:var(--green);
}

.wap-package-price b{
    font-size:26px;
}

.wap-package-card>small{
    color:var(--muted);
    font-size:10px;
}


/* ---------- Three cards ---------- */

.wap-info-grid{
    display:grid;
    grid-template-columns:1.05fr 1fr 1fr;
    gap:16px;
    margin-top:18px;
}

.wap-card{
    min-width:0;
    padding:20px;
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
}

.wap-card__header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:15px;
}

.wap-card__header h2{
    margin:0;
    font-size:18px;
}

.wap-card__header small{
    color:var(--muted);
    font-size:11px;
}

.wap-edit-link{
    border:0;
    background:transparent;
    color:var(--green);
    font-weight:700;
    cursor:pointer;
}

.wap-photo-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:7px;
}

.wap-photo-grid button{
    height:94px;
    padding:0;
    overflow:hidden;
    border:0;
    border-radius:8px;
    background:#eef3f1;
    cursor:pointer;
}

.wap-photo-grid img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.wap-empty-state{
    grid-column:1/-1;
    display:grid;
    place-items:center;
    min-height:195px;
    border-radius:9px;
    background:var(--soft);
    color:var(--muted);
}

.wap-card-lock{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:12px;
    padding:10px;
    border-radius:9px;
    background:var(--soft);
    font-size:11px;
}

.wap-card-lock p{
    flex:1;
    margin:0;
    color:var(--muted);
}

.wap-card-lock a{
    color:var(--green);
    font-weight:700;
    text-decoration:none;
}

.wap-map-preview{
    position:relative;
    display:grid;
    place-items:center;
    align-content:center;
    min-height:215px;
    overflow:hidden;
    border-radius:11px;
    background:#e2eee9;
}

.wap-map-grid{
    position:absolute;
    inset:0;
    opacity:.55;
    background:
        linear-gradient(90deg,rgba(255,255,255,.75) 1px,transparent 1px),
        linear-gradient(rgba(255,255,255,.75) 1px,transparent 1px);
    background-size:28px 28px;
}

.wap-map-marker{
    position:relative;
    z-index:2;
    color:var(--green);
    font-size:34px;
}

.wap-map-preview div{
    position:relative;
    z-index:2;
    display:grid;
    justify-items:center;
    gap:3px;
}

.wap-map-preview small{
    color:var(--muted);
}

.wap-map-button{
    width:100%;
    min-height:39px;
    margin-top:11px;
    border:1px solid var(--green);
    border-radius:8px;
    background:#fff;
    color:var(--green);
    font-weight:700;
    cursor:pointer;
}

.wap-about-copy{
    min-height:72px;
    margin:0 0 18px;
    color:#536560;
    line-height:1.9;
}

.wap-about-facts{
    display:grid;
    gap:9px;
}

.wap-about-facts>div{
    display:grid;
    grid-template-columns:30px 1fr;
    grid-template-areas:
        "icon small"
        "icon strong";
    align-items:center;
    column-gap:8px;

    padding:10px;
    border-radius:9px;
    background:var(--soft);
}

.wap-about-facts>div>span{
    grid-area:icon;
    display:grid;
    place-items:center;
    width:30px;
    height:30px;
    border-radius:50%;
    background:var(--mint);
    color:var(--green);
}

.wap-about-facts small{
    grid-area:small;
    color:var(--muted);
    font-size:10px;
}

.wap-about-facts strong{
    grid-area:strong;
    font-size:12px;
}


/* ---------- Reviews ---------- */

.wap-reviews{
    margin-top:18px;
}


/* ---------- Premium ---------- */

.wap-premium{
    margin-top:18px;
    padding:26px;

    border:1px solid #eadfbf;
    border-radius:17px;
    background:var(--cream);
}

.wap-premium__heading{
    display:grid;
    grid-template-columns:1fr 245px;
    align-items:start;
    gap:30px;
}

.wap-premium__copy{
    display:flex;
    align-items:flex-start;
    gap:12px;
}

.wap-premium-price{
    position:relative;
    display:grid;
    justify-items:center;
    gap:7px;
    padding:16px;

    border:1px solid #e4d4a8;
    border-radius:13px;
    background:#fff;
}

.wap-best-value{
    position:absolute;
    top:-11px;
    padding:4px 11px;
    border-radius:20px;
    background:#d6aa4a;
    color:#fff;
    font-size:10px;
    font-weight:800;
}

.wap-premium-price>strong{
    margin-top:7px;
    color:#72591e;
}

.wap-premium-price>div{
    display:flex;
    align-items:baseline;
    gap:6px;
}

.wap-premium-price del{
    color:#a6a092;
    font-size:11px;
}

.wap-premium-price b{
    color:var(--green);
    font-size:27px;
}

.wap-premium-price small{
    color:var(--muted);
}

.wap-premium-icons{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:9px;
    margin-top:25px;
}

.wap-premium-icons button{
    position:relative;
    display:grid;
    justify-items:center;
    gap:7px;
    min-height:98px;
    padding:12px 8px;

    border:1px solid #eadfbe;
    border-radius:11px;
    background:#fff;
    color:var(--text);
    cursor:pointer;
}

.wap-premium-icons button>span{
    color:#b18b35;
    font-size:24px;
}

.wap-premium-icons button>strong{
    font-size:11px;
}

.wap-premium-icons button>i{
    position:absolute;
    top:7px;
    left:7px;
    font-size:9px;
    font-style:normal;
}

.wap-premium-cards{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:10px;
    margin-top:13px;
}

.wap-premium-card{
    min-height:145px;
    padding:14px;

    border:1px solid #e7dfc9;
    border-radius:11px;
    background:#fff;
    color:var(--text);
    text-align:right;
    cursor:pointer;
}

.wap-premium-card>div:first-child{
    display:flex;
    align-items:center;
    gap:8px;
}

.wap-premium-card>div:first-child span{
    color:#b18b35;
    font-size:20px;
}

.wap-premium-card p{
    min-height:46px;
    margin:13px 0;
    color:var(--muted);
    font-size:10px;
    line-height:1.65;
}

.wap-premium-card small{
    color:#9b8249;
    font-size:9px;
}

.wap-qr-placeholder{
    display:grid!important;
    place-items:center;
    width:48px;
    height:48px;
    margin:11px auto;
    border:1px dashed #c9b77f;
    border-radius:5px;
    background:#fffdf7;
    color:#9c7a2e;
    font-size:25px;
}


/* ---------- Upgrade banner ---------- */

.wap-upgrade-banner{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    min-height:145px;
    margin-top:18px;
    padding:28px 36px;
    overflow:hidden;

    border-radius:17px;
    background:
        radial-gradient(circle at 12% 50%,rgba(255,255,255,.14),transparent 28%),
        linear-gradient(115deg,#06493f,#087362);
    color:#fff;
}

.wap-upgrade-banner::before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:33%;
    opacity:.12;
    background:
        linear-gradient(65deg,transparent 45%,#fff 46%,#fff 48%,transparent 49%);
    background-size:35px 35px;
}

.wap-upgrade-banner__copy{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    gap:16px;
}

.wap-upgrade-crown{
    display:grid;
    place-items:center;
    width:52px;
    height:52px;
    border-radius:50%;
    background:rgba(255,255,255,.13);
    font-size:25px;
}

.wap-upgrade-banner h2{
    margin:0;
    color:#fff;
    font-size:23px;
}

.wap-upgrade-banner p{
    margin:7px 0 0;
    color:#d6ebe5;
    font-size:12px;
}

.wap-upgrade-banner__button{
    position:relative;
    z-index:1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 23px;

    border-radius:9px;
    background:#fff;
    color:var(--green);
    font-weight:800;
    text-decoration:none;
}


/* ---------- Owner edit ---------- */

.wap-owner-edit{
    margin-top:18px;
    padding:26px;
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
}

.wap-owner-edit[hidden]{
    display:none!important;
}

.wap-owner-edit__head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:20px;
}

.wap-owner-edit__head h2{
    margin:0;
}

.wap-owner-edit__head p{
    margin:5px 0 0;
    color:var(--muted);
}

.wap-owner-edit__head button{
    border:0;
    background:transparent;
    color:var(--muted);
    font-size:30px;
    cursor:pointer;
}


/* ---------- Desktop width correction ---------- */

@media(min-width:1200px){
    .wap-master{
        width:min(1460px,calc(100% - 64px));
    }
}


/* ---------- Tablet / mobile ---------- */

@media(max-width:1050px){
    .wap-ownerbar{
        grid-template-columns:1fr 1fr;
    }

    .wap-ownerbar__actions{
        grid-column:1/-1;
    }

    .wap-hero{
        grid-template-columns:1.45fr .85fr;
    }

    .wap-contact-section{
        grid-template-columns:1fr;
    }

    .wap-info-grid{
        grid-template-columns:1fr 1fr;
    }

    .wap-about-card{
        grid-column:1/-1;
    }

    .wap-premium-icons{
        grid-template-columns:repeat(3,1fr);
    }

    .wap-premium-cards{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:760px){
    .wap-master{
        width:calc(100% - 24px);
        padding-top:12px;
        padding-bottom:90px;
    }

    .wap-ownerbar{
        grid-template-columns:1fr;
        gap:15px;
    }

    .wap-ownerbar__actions{
        grid-column:auto;
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .wap-hero{
        grid-template-columns:1fr;
    }

    .wap-hero__media,
    .wap-hero__image,
    .wap-hero__fallback{
        min-height:260px;
        height:260px;
    }

    .wap-identity{
        padding:24px 20px;
    }

    .wap-identity__avatar{
        width:82px;
        height:82px;
        margin-top:-62px;
        border-width:4px;
    }

    .wap-title-line h1{
        font-size:24px;
    }

    .wap-gallery-strip{
        flex-direction:column;
    }

    .wap-gallery-strip__images{
        overflow:auto;
    }

    .wap-gallery-thumb{
        flex:0 0 105px;
        width:105px;
        height:70px;
    }

    .wap-gallery-all{
        min-height:42px;
    }

    .wap-contact-features,
    .wap-info-grid{
        grid-template-columns:1fr;
    }

    .wap-about-card{
        grid-column:auto;
    }

    .wap-premium__heading{
        grid-template-columns:1fr;
    }

    .wap-premium-icons{
        grid-template-columns:repeat(2,1fr);
    }

    .wap-premium-cards{
        grid-template-columns:1fr;
    }

    .wap-upgrade-banner{
        align-items:flex-start;
        flex-direction:column;
        padding:24px;
    }

    .wap-upgrade-banner__button{
        width:100%;
    }
}

/* =========================================================
   MASTER REFINEMENT — 2026-09-19
   ========================================================= */

/* Hero must remain a designed banner, never inherit the
   natural height/aspect ratio of an uploaded activity photo. */
.wap-hero{
    height:430px;
    min-height:430px;
    max-height:430px;
    grid-template-columns:minmax(0,1.72fr) minmax(365px,.72fr);
}

.wap-hero__media{
    height:430px;
    min-height:0;
}

.wap-hero__image{
    width:100%;
    height:430px;
    min-height:0;
    object-fit:cover;
    object-position:center;
}

.wap-hero__fallback{
    height:430px;
    min-height:0;
}

.wap-identity{
    height:430px;
    min-height:0;
    overflow:auto;
    justify-content:center;
    padding:30px 32px;
}

/* No fabricated logo: initials are the neutral fallback. */
.wap-identity__avatar{
    flex:0 0 92px;
    width:92px;
    height:92px;
    margin-bottom:14px;
    background:linear-gradient(145deg,#e7f4ef,#d5e9e1);
}

.wap-identity__avatar span{
    font-size:28px;
}

/* Slightly denser master proportions */
.wap-title-line h1{
    font-size:28px;
}

.wap-description{
    margin-top:14px;
    line-height:1.75;
}

.wap-rating{
    margin-top:12px;
}

.wap-identity__actions{
    margin-top:15px;
}

.wap-gallery-strip{
    min-height:105px;
}

.wap-contact-section{
    min-height:190px;
}

.wap-info-grid .wap-card{
    min-height:360px;
}

/* Real activity map */
.wap-real-map{
    display:block;
    position:relative;
    min-height:245px;
    height:245px;
    background:#e6efeb;
    isolation:isolate;
}

.wap-real-map .leaflet-container,
.wap-real-map.leaflet-container{
    width:100%;
    height:245px;
    font-family:inherit;
}

.wap-real-map .leaflet-control-attribution{
    direction:ltr;
    font-size:8px;
    background:rgba(255,255,255,.84);
}

.wap-real-map .leaflet-control-attribution a{
    color:#536560;
    text-decoration:none;
    pointer-events:none;
}

.wap-map-unavailable{
    min-height:245px;
}

.wap-map-button{
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
}

/* Premium closer to dense master composition */
.wap-premium{
    padding:24px;
}

.wap-premium-icons{
    margin-top:20px;
}

.wap-premium-cards{
    margin-top:11px;
}

@media(max-width:760px){
    .wap-hero{
        height:auto;
        min-height:0;
        max-height:none;
    }

    .wap-hero__media,
    .wap-hero__image,
    .wap-hero__fallback{
        height:260px;
        min-height:260px;
    }

    .wap-identity{
        height:auto;
        min-height:330px;
        overflow:visible;
    }

    .wap-info-grid .wap-card{
        min-height:0;
    }
}

/* =========================================================
   ACTIVITY MAP — FINAL FIT
   Leaflet must fill the complete map box.
   ========================================================= */

.wap-location-card .wap-real-map{
    position:relative !important;
    display:block !important;

    width:100% !important;
    height:245px !important;
    min-height:245px !important;
    max-height:245px !important;

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

    overflow:hidden !important;
    border-radius:11px;
    background:#e6efeb;
}

/*
 * The data-wargini-map element IS the Leaflet container.
 * Do not expect another .leaflet-container child.
 */
.wap-location-card [data-wargini-map].leaflet-container{
    width:100% !important;
    height:245px !important;
    min-height:245px !important;

    position:relative !important;
    inset:auto !important;

    overflow:hidden !important;
}

/* Leaflet internal panes must cover the complete container. */
.wap-location-card .leaflet-map-pane,
.wap-location-card .leaflet-tile-pane,
.wap-location-card .leaflet-overlay-pane,
.wap-location-card .leaflet-shadow-pane,
.wap-location-card .leaflet-marker-pane{
    position:absolute;
}

/* Tiles themselves must not inherit generic site image sizing. */
.wap-location-card .leaflet-tile{
    max-width:none !important;
    max-height:none !important;
    padding:0 !important;
    margin:0 !important;
}

/* Keep zoom control fixed in the upper-left corner. */
.wap-location-card .leaflet-top.leaflet-left{
    top:10px !important;
    left:10px !important;
    right:auto !important;
}

.wap-location-card .leaflet-control-zoom{
    margin:0 !important;
}

/* Attribution stays small in the bottom-right corner. */
.wap-location-card .leaflet-bottom.leaflet-right{
    right:5px !important;
    left:auto !important;
    bottom:4px !important;
}

.wap-location-card .leaflet-control-attribution{
    margin:0 !important;
    padding:1px 4px !important;
    direction:ltr;
    font-size:8px !important;
    line-height:1.2;
    background:rgba(255,255,255,.82) !important;
}

/* External map button remains below, never inside map height. */
.wap-location-card .wap-map-button{
    width:100%;
    min-height:40px;
    margin-top:10px;
}


/* =========================================================
   ACTIVITY MAP — LEAFLET CONTROLS CORNER FIX
   Scope: activity read-only map only.
   ========================================================= */

/*
 * Leaflet's four control containers must be anchored to the
 * actual map edges. Site/global CSS must not center them.
 */
.wap-location-card [data-wargini-map].leaflet-container
    > .leaflet-control-container
    > .leaflet-top,
.wap-location-card [data-wargini-map].leaflet-container
    > .leaflet-control-container
    > .leaflet-bottom {
    position:absolute !important;
    z-index:1000 !important;

    width:auto !important;
    height:auto !important;

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

    transform:none !important;
    translate:none !important;
}

/* Zoom: TOP LEFT */
.wap-location-card [data-wargini-map].leaflet-container
    > .leaflet-control-container
    > .leaflet-top.leaflet-left {
    top:10px !important;
    left:10px !important;
    right:auto !important;
    bottom:auto !important;

    transform:none !important;
}

.wap-location-card [data-wargini-map].leaflet-container
    .leaflet-control-zoom {
    position:relative !important;

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

    margin:0 !important;
    transform:none !important;
}

/* Attribution: BOTTOM RIGHT */
.wap-location-card [data-wargini-map].leaflet-container
    > .leaflet-control-container
    > .leaflet-bottom.leaflet-right {
    top:auto !important;
    left:auto !important;
    right:6px !important;
    bottom:5px !important;

    transform:none !important;
}

.wap-location-card [data-wargini-map].leaflet-container
    .leaflet-control-attribution {
    position:relative !important;

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

    width:auto !important;
    margin:0 !important;
    padding:2px 5px !important;

    transform:none !important;

    direction:ltr !important;
    white-space:nowrap;
    font-size:8px !important;
    line-height:1.2 !important;

    background:rgba(255,255,255,.86) !important;
    border-radius:3px;
}

/* Protect Leaflet control links from generic button/link rules. */
.wap-location-card .leaflet-control-zoom a {
    display:block !important;
    position:relative !important;

    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    min-height:30px !important;

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

    line-height:30px !important;
    text-align:center !important;

    transform:none !important;
}


/* =========================================================
   ACTIVITY MAP — HARD CORNER OWNERSHIP
   Activity map only.
   ========================================================= */

.wap-location-card [data-wargini-map]{
    position:relative !important;
}

/*
 * Leaflet corner containers:
 * neutralize every inherited layout rule first.
 */
.wap-location-card [data-wargini-map]
.leaflet-control-container > .leaflet-top,

.wap-location-card [data-wargini-map]
.leaflet-control-container > .leaflet-bottom{
    position:absolute !important;

    display:block !important;
    float:none !important;

    width:auto !important;
    height:auto !important;

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

    transform:none !important;
    translate:none !important;

    inset:auto !important;
}

/* TOP LEFT — zoom */
.wap-location-card [data-wargini-map]
.leaflet-control-container > .leaflet-top.leaflet-left{
    top:10px !important;
    left:10px !important;

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

/* BOTTOM RIGHT — attribution */
.wap-location-card [data-wargini-map]
.leaflet-control-container > .leaflet-bottom.leaflet-right{
    top:auto !important;
    left:auto !important;

    right:7px !important;
    bottom:7px !important;
}

/*
 * Controls themselves must never inherit centering,
 * absolute positioning or transforms.
 */
.wap-location-card [data-wargini-map]
.leaflet-control{
    position:relative !important;

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

    float:none !important;

    margin:0 !important;
    transform:none !important;
    translate:none !important;
}

/* Zoom visual */
.wap-location-card [data-wargini-map]
.leaflet-control-zoom{
    display:block !important;
}

.wap-location-card [data-wargini-map]
.leaflet-control-zoom a{
    display:block !important;

    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    min-height:30px !important;

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

    line-height:30px !important;
    text-align:center !important;
}

/* Attribution visual */
.wap-location-card [data-wargini-map]
.leaflet-control-attribution{
    width:auto !important;
    max-width:none !important;

    padding:2px 5px !important;
    margin:0 !important;

    white-space:nowrap !important;
    direction:ltr !important;

    font-size:8px !important;
    line-height:1.2 !important;

    background:rgba(255,255,255,.88) !important;
    border-radius:3px;
}


/* =========================================================
   ACTIVITY MAP — FINAL LEAFLET CORNER NORMALIZATION
   Root cause:
   previous generic/inset rules left opposite edges active.
   ========================================================= */

.wap-location-card [data-wargini-map].leaflet-container{
    position:relative !important;
}

/* Restore Leaflet corner-container geometry. */
.wap-location-card [data-wargini-map]
.leaflet-control-container > .leaflet-top,

.wap-location-card [data-wargini-map]
.leaflet-control-container > .leaflet-bottom{
    position:absolute !important;

    width:0 !important;
    height:0 !important;

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

    transform:none !important;
    translate:none !important;
}

/* Zoom corner: ONLY top + left are active. */
.wap-location-card [data-wargini-map]
.leaflet-control-container > .leaflet-top.leaflet-left{
    top:10px !important;
    left:10px !important;

    right:unset !important;
    bottom:unset !important;

    width:0 !important;
    height:0 !important;
}

/* Attribution corner: ONLY right + bottom are active. */
.wap-location-card [data-wargini-map]
.leaflet-control-container > .leaflet-bottom.leaflet-right{
    right:7px !important;
    bottom:7px !important;

    top:unset !important;
    left:unset !important;

    width:0 !important;
    height:0 !important;
}

/* Controls retain their natural dimensions from the corner. */
.wap-location-card [data-wargini-map] .leaflet-control-zoom,
.wap-location-card [data-wargini-map] .leaflet-control-attribution{
    position:relative !important;

    top:unset !important;
    right:unset !important;
    bottom:unset !important;
    left:unset !important;

    transform:none !important;
    translate:none !important;
}

/* Zoom stays inside the map from the top-left origin. */
.wap-location-card [data-wargini-map] .leaflet-control-zoom{
    margin:0 !important;
}

/* Attribution grows left/up from the bottom-right origin. */
.wap-location-card [data-wargini-map] .leaflet-control-attribution{
    float:right !important;

    margin:0 !important;
    padding:2px 5px !important;

    width:max-content !important;
    max-width:240px !important;

    direction:ltr !important;
    white-space:nowrap !important;

    font-size:8px !important;
    line-height:1.2 !important;

    background:rgba(255,255,255,.88) !important;
    border-radius:3px;
}


/* =========================================================
   ACTIVITY MAP — OWNED CONTROLS
   These controls belong to Activity Page, not Leaflet's
   corner-control layout, so global Leaflet CSS cannot move them.
   ========================================================= */

.wap-location-card [data-wargini-map]{
    position:relative !important;
}

/* No native Leaflet controls should be visible on this map. */
.wap-location-card [data-wargini-map]
.leaflet-control-container{
    display:none !important;
}

/* Zoom — physical TOP LEFT of map */
.wap-location-card [data-wargini-map]
.wap-map-owned-controls{
    position:absolute !important;

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

    z-index:1000 !important;

    display:flex !important;
    flex-direction:column !important;

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

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

    transform:none !important;
    translate:none !important;

    overflow:hidden;
    border:1px solid rgba(0,0,0,.22);
    border-radius:4px;
    background:#fff;
    box-shadow:0 1px 4px rgba(0,0,0,.18);
}

.wap-location-card [data-wargini-map]
.wap-map-owned-zoom{
    appearance:none !important;

    display:block !important;

    position:static !important;

    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    min-height:30px !important;

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

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

    background:#fff !important;
    color:#111 !important;

    font:700 20px/30px Arial,sans-serif !important;
    text-align:center !important;

    cursor:pointer;

    transform:none !important;
}

.wap-location-card [data-wargini-map]
.wap-map-owned-zoom + .wap-map-owned-zoom{
    border-top:1px solid #ccc !important;
}

.wap-location-card [data-wargini-map]
.wap-map-owned-zoom:hover{
    background:#f4f4f4 !important;
}

/* Attribution — physical BOTTOM RIGHT of map */
.wap-location-card [data-wargini-map]
.wap-map-owned-attribution{
    position:absolute !important;

    right:6px !important;
    bottom:5px !important;
    top:auto !important;
    left:auto !important;

    z-index:1000 !important;

    display:block !important;

    width:auto !important;
    height:auto !important;
    max-width:220px !important;

    margin:0 !important;
    padding:2px 5px !important;

    transform:none !important;
    translate:none !important;

    direction:ltr !important;
    white-space:nowrap !important;

    color:#555 !important;
    background:rgba(255,255,255,.88) !important;

    font:400 8px/1.2 Arial,sans-serif !important;

    border-radius:3px;
    pointer-events:none;
}

