:root{
    --salama-primary:#0f766e;
    --salama-secondary:#0ea5e9;
    --salama-dark:#0f172a;
    --salama-soft:#ecfeff;
}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f8fafc;color:#0f172a;}
.navbar{backdrop-filter:blur(12px);}
.brand-logo{height:46px;width:auto;}
.brand-icon{height:34px;width:34px;}
.hero{background:linear-gradient(135deg,#0f766e,#0ea5e9 55%,#16a34a);color:#fff;border-radius:32px;overflow:hidden;position:relative;}
.hero::after{content:"";position:absolute;right:-90px;top:-90px;width:300px;height:300px;border-radius:999px;background:rgba(255,255,255,.15);}
.card{border:0;border-radius:22px;box-shadow:0 10px 30px rgba(15,23,42,.08);}
.btn-salama{background:var(--salama-primary);border-color:var(--salama-primary);color:#fff;}
.btn-salama:hover{background:#115e59;border-color:#115e59;color:#fff;}
.text-salama{color:var(--salama-primary)!important;}
.bg-salama-soft{background:var(--salama-soft);}
#map{min-height:540px;border-radius:24px;overflow:hidden;box-shadow:0 10px 30px rgba(15,23,42,.12);}
.map-dot{width:20px;height:20px;border-radius:50%;border:3px solid #fff;box-shadow:0 2px 10px rgba(0,0,0,.35);}
.map-dot.red{background:#dc2626;}.map-dot.orange{background:#f97316;}.map-dot.blue{background:#2563eb;}.map-dot.purple{background:#7c3aed;}.map-dot.green{background:#16a34a;}.map-dot.brown{background:#78350f;}.map-dot.gray{background:#64748b;}
.badge-type.red{background:#fee2e2;color:#991b1b}.badge-type.orange{background:#ffedd5;color:#9a3412}.badge-type.blue{background:#dbeafe;color:#1e40af}.badge-type.purple{background:#ede9fe;color:#5b21b6}.badge-type.green{background:#dcfce7;color:#166534}.badge-type.brown{background:#fef3c7;color:#78350f}.badge-type.gray{background:#e2e8f0;color:#334155}
.footer{background:#0f172a;color:#cbd5e1;}
.footer a{color:#67e8f9;text-decoration:none;}
.table thead th{background:#f1f5f9;color:#334155;}
.form-control,.form-select{border-radius:14px;}
.alert{border-radius:18px;}
.sidebar-link{display:block;padding:.8rem 1rem;border-radius:14px;color:#334155;text-decoration:none;font-weight:600;}
.sidebar-link:hover,.sidebar-link.active{background:#ccfbf1;color:#0f766e;}
.photo-thumb{height:180px;object-fit:cover;border-radius:16px;width:100%;}

/* === UPDATE MAP SATELIT + MARKER BESAR RUMAH IBADAH === */
#map{
    min-height:540px;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(15,23,42,.12);
    background:#0f172a;
}

.house-marker-wrap{
    background:transparent !important;
    border:none !important;
}

.house-marker{
    width:52px;
    height:52px;
    border-radius:50%;
    border:4px solid #fff;
    box-shadow:0 8px 22px rgba(0,0,0,.45);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    line-height:1;
    font-weight:800;
    color:#fff;
    text-align:center;
}

.house-marker.red{background:#dc2626;}
.house-marker.orange{background:#f97316;}
.house-marker.blue{background:#2563eb;}
.house-marker.purple{background:#7c3aed;}
.house-marker.green{background:#16a34a;}
.house-marker.brown{background:#78350f;}
.house-marker.gray{background:#64748b;}

.leaflet-control-layers{
    border-radius:14px !important;
    box-shadow:0 8px 22px rgba(0,0,0,.22) !important;
}

/* === FORCE MARKER BESAR SALAMA === */
.house-marker-wrap,
.leaflet-div-icon.house-marker-wrap{
    background:transparent !important;
    border:none !important;
    width:64px !important;
    height:64px !important;
}

.house-marker{
    width:64px !important;
    height:64px !important;
    min-width:64px !important;
    min-height:64px !important;
    border-radius:50% !important;
    border:5px solid #ffffff !important;
    box-shadow:0 8px 24px rgba(0,0,0,.60) !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:32px !important;
    line-height:1 !important;
    font-weight:900 !important;
    color:#ffffff !important;
    text-align:center !important;
    transform:translate(-6px,-6px);
}

.house-marker.red{background:#dc2626 !important;}
.house-marker.orange{background:#f97316 !important;}
.house-marker.blue{background:#2563eb !important;}
.house-marker.purple{background:#7c3aed !important;}
.house-marker.green{background:#16a34a !important;}
.house-marker.brown{background:#78350f !important;}
.house-marker.gray{background:#64748b !important;}

/* === FIX UKURAN LOGO SIDEBAR / DASHBOARD === */
.sidebar-logo,
.card img[src*="salama-logo.svg"]{
    max-width: 260px !important;
    width: 100% !important;
    height: auto !important;
}

@media (max-width: 991px){
    .sidebar-logo,
    .card img[src*="salama-logo.svg"]{
        max-width: 220px !important;
    }
}

/* === LOGO SALAMA FULL TEXT === */
img[src*="salama-logo-full.svg"]{
    width:100%;
    max-width:520px;
    height:auto;
    object-fit:contain;
}

.hero img[src*="salama-logo-full.svg"]{
    max-width:520px !important;
    max-height:none !important;
    height:auto !important;
}

.sidebar-logo,
.card img[src*="salama-logo-full.svg"]{
    max-width:280px !important;
    width:100% !important;
    height:auto !important;
}

/* === LOGO CUSTOM SALAMA === */
img[src*="salama-logo-custom.png"]{
    width:100%;
    height:auto;
    object-fit:contain;
    display:block;
}

.hero img[src*="salama-logo-custom.png"]{
    max-width:520px !important;
    width:100% !important;
    height:auto !important;
}

.sidebar-logo,
.card img[src*="salama-logo-custom.png"]{
    max-width:320px !important;
    width:100% !important;
    height:auto !important;
}

/* === LOGO CUSTOM DI SEMUA HALAMAN === */
img[src*="salama-logo-custom.png"]{
    width:100%;
    height:auto;
    object-fit:contain;
}

.hero img[src*="salama-logo-custom.png"]{
    max-width:520px !important;
    width:100% !important;
    max-height:none !important;
    height:auto !important;
    background:#fff;
    border-radius:24px;
    padding:12px;
}

.card img[src*="salama-logo-custom.png"]{
    max-width:300px !important;
    width:100% !important;
    height:auto !important;
}

.sidebar-logo,
.sidebar img[src*="salama-logo-custom.png"],
div[class*="sidebar"] img[src*="salama-logo-custom.png"]{
    max-width:300px !important;
    width:100% !important;
    height:auto !important;
}

/* === PERBAIKAN UKURAN LOGO CUSTOM DI LANDINGPAGE === */
.hero img[src*="salama-logo-custom.png"]{
    max-width: 360px !important;
    max-height: 240px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    background: #ffffff !important;
    border-radius: 22px !important;
    padding: 14px 22px !important;
}

/* Sidebar dashboard tetap proporsional */
.card img[src*="salama-logo-custom.png"],
.sidebar-logo,
.sidebar img[src*="salama-logo-custom.png"],
div[class*="sidebar"] img[src*="salama-logo-custom.png"]{
    max-width: 300px !important;
    max-height: 280px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Login/register jangan terlalu kecil */
.auth-logo img[src*="salama-logo-custom.png"],
form img[src*="salama-logo-custom.png"]{
    max-width: 260px !important;
    max-height: 220px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* === FIX FINAL LOGO LANDINGPAGE SAJA === */
.hero img[src*="salama-logo-custom.png"]{
    max-width: 300px !important;
    max-height: 210px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 12px 18px !important;
    margin-bottom: 22px !important;
}

/* supaya hero tidak terlalu turun */
.hero{
    padding-top: 42px !important;
    padding-bottom: 42px !important;
}

/* ukuran judul landing lebih rapi */
.hero h1{
    font-size: clamp(34px, 4vw, 58px) !important;
    line-height: 1.15 !important;
}

/* logo dashboard/sidebar tetap besar */
.row .col-lg-3 .card img[src*="salama-logo-custom.png"]{
    max-width: 300px !important;
    max-height: 300px !important;
    width: 100% !important;
    height: auto !important;
}

/* === FINAL UKURAN LOGO SALAMA === */

/* Logo di landingpage / hero */
.hero img[src*="salama-logo-custom.png"]{
    max-width: 260px !important;
    max-height: 210px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 10px 18px !important;
    margin-bottom: 18px !important;
}

/* Logo di sidebar dashboard admin/operator */
.row .col-lg-3 .card img[src*="salama-logo-custom.png"],
.sidebar-logo,
.sidebar img[src*="salama-logo-custom.png"],
div[class*="sidebar"] img[src*="salama-logo-custom.png"]{
    max-width: 255px !important;
    max-height: 255px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Logo halaman login, daftar, 2FA */
.card img[src*="salama-logo-custom.png"]{
    max-width: 230px !important;
    max-height: 220px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Khusus halaman login agar logo tidak terlalu mendominasi */
main .card > img[src*="salama-logo-custom.png"]{
    max-width: 220px !important;
    max-height: 210px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* === FIX NAVBAR SALAMA AGAR NORMAL DI SEMUA HALAMAN === */
.navbar{
    min-height: 74px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.navbar .container{
    min-height: 74px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.navbar-brand{
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    gap: 10px !important;
}

.navbar-brand .brand-icon,
.navbar-brand img.brand-icon{
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: contain !important;
}

.navbar .nav-link{
    font-size: 16px !important;
    padding: 8px 10px !important;
}

.navbar .btn{
    font-size: 15px !important;
    padding: 7px 12px !important;
}

.navbar-toggler{
    padding: 6px 10px !important;
    font-size: 18px !important;
    border-radius: 10px !important;
}

/* Desktop: paksa menu tetap horizontal, jangan jadi hamburger */
@media (min-width: 992px){
    .navbar-expand-lg .navbar-toggler{
        display: none !important;
    }

    .navbar-expand-lg .navbar-collapse{
        display: flex !important;
        flex-basis: auto !important;
    }

    .navbar-expand-lg .navbar-nav{
        flex-direction: row !important;
        align-items: center !important;
    }
}

/* Mobile tetap rapi */
@media (max-width: 991.98px){
    .navbar{
        min-height: 68px !important;
    }

    .navbar .container{
        min-height: 68px !important;
    }

    .navbar-brand{
        font-size: 22px !important;
    }

    .navbar-brand .brand-icon,
    .navbar-brand img.brand-icon{
        width: 34px !important;
        height: 34px !important;
    }
}

/* === GANTI ICON NAVBAR DARI LOGO LAMA KE LOGO BARU === */
.navbar-brand img.brand-logo-new,
.navbar-brand .brand-logo-new{
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
}

/* === FIX FINAL ICON NAVBAR LOGO BARU === */
.navbar-brand img.brand-logo-new{
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
}

/* === PASSWORD SHOW / HIDE === */
.password-toggle-wrap{
    position: relative;
    width: 100%;
}

.password-toggle-wrap input[type="password"],
.password-toggle-wrap input[type="text"].password-visible{
    padding-right: 92px !important;
}

.password-toggle-btn{
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: #e0f2f1;
    color: #0f766e;
    font-weight: 700;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
}

.password-toggle-btn:hover{
    background: #ccfbf1;
    color: #115e59;
}

/* === OPTIMASI LOGO MOBILE DAN LOGIN === */
.hero img[src*="salama-logo-custom.webp"]{
    max-width: 230px !important;
    max-height: 190px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    padding: 10px 14px !important;
    margin-bottom: 18px !important;
}

.card img[src*="salama-logo-custom.webp"],
main img[src*="salama-logo-custom.webp"]{
    max-width: 220px !important;
    max-height: 220px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.row .col-lg-3 .card img[src*="salama-logo-custom.webp"]{
    max-width: 250px !important;
    max-height: 250px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.navbar-brand img.brand-logo-new,
.navbar-brand .brand-logo-new{
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain !important;
}

@media (max-width: 576px){
    .hero img[src*="salama-logo-custom.webp"]{
        max-width: 210px !important;
        max-height: 170px !important;
    }

    .hero h1{
        font-size: 32px !important;
        line-height: 1.15 !important;
    }

    main img[src*="salama-logo-custom.webp"],
    .card img[src*="salama-logo-custom.webp"]{
        max-width: 190px !important;
        max-height: 190px !important;
    }
}
