/* =====================================================================
   Desa Adat Sembiran — tampilan publik
   Gaya: modern bernuansa Bali (krem hangat, coklat tanah, emas kunyit,
   hijau daun). Judul: Fraunces · Antarmuka: Poppins · Isi: Open Sans.
   ===================================================================== */

:root {
    /* Warna dasar */
    --cream: #FAF6EE;          /* latar halaman */
    --sand: #F3EBDD;           /* permukaan sekunder */
    --line: #E9DFCD;           /* garis tipis */
    --ink: #2A1F17;            /* teks utama */
    --muted: #6E6156;          /* teks sekunder */

    --brown: #4A2F1E;          /* coklat tanah (utama) */
    --brown-dark: #2B1B11;
    --gold: #D4952B;           /* emas kunyit (aksen, isian) */
    --gold-dark: #B97F1C;
    --gold-ink: #8A5A10;       /* emas untuk teks di latar terang */
    --gold-light: #EDC170;     /* emas untuk teks di latar gelap */
    --gold-soft: rgba(212, 149, 43, .14);
    --green: #3E6B48;          /* hijau daun */
    --green-soft: rgba(62, 107, 72, .12);
    --terra: #B4532A;          /* terakota, dipakai hemat */

    --radius: 1.1rem;
    --radius-sm: .7rem;
    --shadow-sm: 0 1px 2px rgba(74, 47, 30, .05), 0 .25rem .9rem rgba(74, 47, 30, .06);
    --shadow: 0 1px 2px rgba(74, 47, 30, .05), 0 .7rem 1.8rem rgba(74, 47, 30, .10);
    --shadow-lg: 0 1.2rem 3rem rgba(43, 27, 17, .16);

    --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-ui: 'Poppins', system-ui, sans-serif;
    --font-body: 'Open Sans', system-ui, sans-serif;

    /* Bootstrap ikut palet ini */
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--cream);
    --bs-secondary-color: var(--muted);
    --bs-border-color: var(--line);
    --bs-link-color: var(--gold-ink);
    --bs-link-color-rgb: 138, 90, 16;
    --bs-link-hover-color: var(--brown);
    --bs-link-hover-color-rgb: 74, 47, 30;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
::selection { background: var(--gold-soft); color: var(--brown-dark); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--brown-dark); letter-spacing: -.01em; font-weight: 600; }
h5, h6 { font-family: var(--font-ui); letter-spacing: 0; }
.text-muted { color: var(--muted) !important; }
a { text-underline-offset: .2em; }

/* ---------- Utilitas ---------- */
.font-title { font-family: var(--font-head); letter-spacing: -.01em; }
h5.font-title, h6.font-title { font-family: var(--font-head); }
.font-title-hero { font-family: var(--font-head); letter-spacing: -.02em; }
.text-gold { color: var(--gold-ink) !important; }
.text-brown { color: var(--brown) !important; }
.bg-gold-soft { background: var(--gold-soft) !important; color: var(--gold-ink) !important; font-weight: 600; }
.text-warning { color: var(--gold) !important; }
.text-success { color: var(--green) !important; }
.text-info { color: #3B7A8C !important; }

/* Teks emas di atas latar gelap */
.hero .text-gold, .page-hero .text-gold, .cta .text-gold, .site-footer .text-gold { color: var(--gold-light) !important; }

/* ---------- Tombol ---------- */
.btn { border-radius: 999px; font-family: var(--font-ui); font-weight: 500; letter-spacing: .01em; }
.btn-sm { padding-inline: .9rem; }
.btn-lg { padding: .75rem 1.6rem; font-size: 1rem; }
.btn-gold {
    background: var(--gold); border-color: var(--gold); color: var(--brown-dark); font-weight: 600;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-gold:hover, .btn-gold:focus-visible { background: var(--gold-light); border-color: var(--gold-light); color: var(--brown-dark); transform: translateY(-1px); box-shadow: 0 .45rem 1.1rem rgba(212, 149, 43, .35); }
.btn-gold:active { background: var(--gold-dark) !important; border-color: var(--gold-dark) !important; color: var(--brown-dark) !important; }
.btn-brown {
    background: var(--brown); border-color: var(--brown); color: #fff; font-weight: 600;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-brown:hover, .btn-brown:focus-visible { background: var(--brown-dark); border-color: var(--brown-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 .45rem 1.1rem rgba(43, 27, 17, .25); }
.btn-outline-brown { border: 1.5px solid rgba(74, 47, 30, .35); color: var(--brown); background: transparent; }
.btn-outline-brown:hover, .btn-outline-brown:focus-visible { background: var(--brown); border-color: var(--brown); color: #fff; }
.btn-outline-light { border-width: 1.5px; }
.btn-outline-light:hover { color: var(--brown-dark); }
.btn:focus-visible { box-shadow: 0 0 0 .22rem rgba(212, 149, 43, .4); }

/* ---------- Judul bagian ---------- */
.section-kicker {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--font-ui); color: var(--gold-ink); font-weight: 600;
    text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
}
.section-kicker::before {
    content: ''; width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px;
    background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.section-alt { background: var(--sand); }

/* ---------- Kartu ---------- */
.card {
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff;
    --bs-card-cap-bg: transparent; --bs-card-border-color: var(--line);
}
.card-header { border-bottom-color: var(--line); }
.body-card { background: #fff; border-radius: var(--radius); }
.side-card { background: #fff; border-radius: var(--radius); overflow: hidden; }
.subtle-card { background: var(--sand); border-color: transparent; box-shadow: none; }
.sticky-sidebar { position: sticky; top: 96px; }
.list-group { --bs-list-group-border-color: var(--line); }
.list-group-item { color: var(--ink); }
.alert-light { background: var(--sand); border-color: var(--line); color: var(--ink); }
.badge { font-family: var(--font-ui); font-weight: 600; border-radius: 999px; padding: .4em .8em; letter-spacing: .02em; }
.text-bg-light { background: var(--sand) !important; color: var(--brown) !important; }
.text-bg-warning { background: var(--gold-soft) !important; color: var(--gold-ink) !important; }
.text-bg-success { background: var(--green-soft) !important; color: var(--green) !important; }
.table { --bs-table-border-color: var(--line); --bs-table-striped-bg: rgba(243, 235, 221, .55); --bs-table-hover-bg: rgba(243, 235, 221, .8); }
.table > thead th { font-family: var(--font-ui); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: transparent; }

/* ---------- Isian formulir ---------- */
.form-label { font-family: var(--font-ui); font-weight: 500; font-size: .9rem; color: var(--brown); }
.form-control, .form-select {
    border-radius: var(--radius-sm); border-color: var(--line); background-color: #fff;
    padding-top: .6rem; padding-bottom: .6rem;
    transition: border-color .15s, box-shadow .15s;
}
.form-control::placeholder { color: #A89A8B; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .22rem var(--gold-soft); }
.form-control-sm, .form-select-sm { border-radius: .55rem; }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.input-group .input-group-text { border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--sand); border-color: var(--line); color: var(--muted); }
.input-group .form-control { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- Lambang ---------- */
.brand-emblem {
    width: 44px; height: 44px; border-radius: 14px;
    background: linear-gradient(140deg, var(--gold) 0%, var(--terra) 55%, var(--brown) 100%);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem; box-shadow: 0 .3rem .8rem rgba(180, 83, 42, .3);
}
.brand-emblem.big { width: 120px; height: 120px; font-size: 2.6rem; border-radius: 32px; }

/* ---------- Pita atas & navigasi ---------- */
.top-strip {
    height: 6px;
    background:
        url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='6' viewBox='0 0 24 6'><path d='M0 6 L6 0 L12 6 L18 0 L24 6' fill='none' stroke='%23FAF6EE' stroke-opacity='.35' stroke-width='1'/></svg>") repeat-x,
        linear-gradient(90deg, var(--brown) 0%, var(--terra) 35%, var(--gold) 65%, var(--green) 100%);
}
.site-nav {
    background: rgba(250, 246, 238, .86);
    backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid rgba(233, 223, 205, .8);
    padding-top: .7rem; padding-bottom: .7rem;
    transition: box-shadow .2s, padding .2s;
}
.site-nav.bergulir { box-shadow: 0 .4rem 1.4rem rgba(74, 47, 30, .08); padding-top: .45rem; padding-bottom: .45rem; }
.navbar-brand img { border-radius: 14px !important; }
.brand-title { font-family: var(--font-head); font-weight: 600; color: var(--brown-dark); font-size: 1.08rem; line-height: 1.1; letter-spacing: -.01em; }
.brand-sub { font-family: var(--font-ui); font-size: .68rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.navbar-nav .nav-link {
    font-family: var(--font-ui); font-weight: 500; font-size: .9rem; color: var(--brown);
    padding: .45rem .85rem !important; border-radius: 999px; white-space: nowrap;
    transition: background .15s, color .15s;
}
.navbar-nav .nav-link:hover { color: var(--brown-dark); background: rgba(74, 47, 30, .06); }
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show { color: var(--brown-dark); background: var(--gold-soft); font-weight: 600; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .navbar-nav .nav-link { padding-inline: .6rem !important; font-size: .86rem; } }
.navbar-toggler { border: 1px solid var(--line); border-radius: 12px; padding: .45rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--gold-soft); }
@media (max-width: 1199.98px) {
    .site-nav .navbar-collapse { margin-top: .7rem; padding: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
    .navbar-nav .nav-link { padding: .65rem .9rem !important; }
}
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .45rem; }
.dropdown-item { font-family: var(--font-ui); font-size: .88rem; font-weight: 500; border-radius: .6rem; padding: .5rem .8rem; color: var(--brown); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--gold-soft); color: var(--brown-dark); }

/* ---------- Hero beranda ---------- */
.hero {
    position: relative; min-height: 86vh; display: flex; align-items: center;
    background: var(--brown-dark);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; filter: saturate(1.05); }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 120%, rgba(212, 149, 43, .35), transparent 55%),
        linear-gradient(180deg, rgba(43, 27, 17, .55) 0%, rgba(43, 27, 17, .45) 40%, rgba(43, 27, 17, .82) 100%);
}
.hero .hero-pattern { display: none; }
.hero-tag {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--font-ui); font-weight: 500; font-size: .78rem !important; letter-spacing: .16em; text-transform: uppercase;
    color: #F6E3C2; background: rgba(250, 246, 238, .1); border: 1px solid rgba(250, 246, 238, .22);
    padding: .45rem 1rem; border-radius: 999px; backdrop-filter: blur(6px);
}
.hero-dot { width: 7px; height: 7px; transform: rotate(45deg); border-radius: 1px; background: var(--gold); box-shadow: 0 0 0 4px rgba(212, 149, 43, .3); }
.hero-title {
    font-size: clamp(2.6rem, 7.5vw, 5.4rem); font-weight: 600; line-height: 1.02; letter-spacing: -.025em;
    color: #FFF8EC; text-shadow: 0 .4rem 2rem rgba(0, 0, 0, .3);
}
.hero-title em { font-style: italic; font-weight: 400; color: var(--gold-light); }
.hero .lead { font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.75; color: rgba(255, 248, 236, .88); }
.hero-next {
    display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; color: #fff;
    background: rgba(250, 246, 238, .1); border: 1px solid rgba(250, 246, 238, .22); border-radius: 1.1rem;
    padding: .65rem 1.2rem .65rem .65rem; backdrop-filter: blur(10px); transition: background .2s, transform .2s;
}
.hero > .container { padding-top: 1.5rem; padding-bottom: 150px; } /* ruang untuk lengkung bawah + panel statistik */
.hero-next-nama { font-size: 1.05rem; }
@media (min-width: 576px) { .hero-next { min-width: 300px; padding: .75rem 1.5rem .75rem .75rem; gap: 1rem; } }
.hero-next:hover { background: rgba(250, 246, 238, .18); color: #fff; transform: translateY(-2px); }
.hero-next-date { background: var(--gold); color: var(--brown-dark); border-radius: .8rem; width: 56px; padding: .4rem 0; text-align: center; line-height: 1.05; }
.hero-next-date b { display: block; font-family: var(--font-head); font-size: 1.45rem; }
.hero-next-date small { font-family: var(--font-ui); font-size: .68rem; font-weight: 600; text-transform: uppercase; }
.hero-shape {
    position: absolute; bottom: -1px; left: 0; right: 0; height: 90px; z-index: 2; background: var(--cream);
    clip-path: ellipse(75% 100% at 50% 100%);
}
.hero-scroll {
    position: absolute; left: 50%; bottom: 104px; z-index: 3; transform: translateX(-50%);
    color: rgba(255, 248, 236, .7); font-size: 1.1rem; animation: heroTurun 2.2s ease-in-out infinite;
}
@keyframes heroTurun { 0%, 100% { transform: translate(-50%, 0); opacity: .6; } 50% { transform: translate(-50%, 8px); opacity: 1; } }

/* ---------- Panel statistik ---------- */
.stats-panel {
    background: #fff; border: 1px solid var(--line); border-radius: 1.5rem; padding: 1.6rem 1rem; box-shadow: var(--shadow-lg);
}
.stats-panel .row > div + div { position: relative; }
@media (min-width: 992px) {
    .stats-panel .row > div + div::before { content: ''; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: var(--line); }
}
.stat-icon {
    width: 52px; height: 52px; border-radius: 16px;
    background: var(--gold-soft); color: var(--gold-ink);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.stat-icon.st-orange { background: var(--gold-soft); color: var(--gold-ink); }
.stat-icon.st-blue { background: rgba(74, 47, 30, .08); color: var(--brown); }
.stat-icon.st-green { background: var(--green-soft); color: var(--green); }
.stat-icon.st-purple { background: rgba(180, 83, 42, .12); color: var(--terra); }
.stat-value { font-family: var(--font-head); font-weight: 600; font-size: 1.9rem; color: var(--brown-dark); line-height: 1; letter-spacing: -.02em; }
.stat-label { font-family: var(--font-ui); font-size: .78rem; color: var(--muted); margin-top: .2rem; }

/* ---------- Daftar & kartu konten ---------- */
.check-list li { padding: .4rem 0; color: var(--ink); display: flex; gap: .7rem; align-items: baseline; }
.check-list i { color: var(--green); }

.culture-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
    box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.culture-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(212, 149, 43, .45); }
.culture-icon {
    width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
}

.upacara-card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.2rem;
    box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; overflow: hidden;
}
.upacara-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--gold), var(--terra)); }
.upacara-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.date-chip-pub { background: var(--brown); color: #FFF3DF; border-radius: .8rem; text-align: center; padding: .35rem .7rem; line-height: 1.05; min-width: 52px; }
.date-chip-pub b { display: block; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
.date-chip-pub small { font-family: var(--font-ui); font-size: .64rem; text-transform: uppercase; font-weight: 600; letter-spacing: .08em; color: var(--gold-light); }
[id^="upacara-"] { scroll-margin-top: 110px; }
[id^="upacara-"]:target .upacara-card { box-shadow: 0 0 0 3px var(--gold), var(--shadow); }

.berita-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.berita-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.berita-img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .5s; }
.berita-card:hover .berita-img { transform: scale(1.04); }
.berita-card h6 a { transition: color .15s; }
.berita-card h6 a:hover { color: var(--gold-ink) !important; }
.berita-placeholder {
    display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 2.4rem;
    background: radial-gradient(circle at 30% 20%, rgba(212, 149, 43, .25), transparent 60%), var(--sand);
}
.berita-konten { line-height: 1.95; color: var(--ink); font-size: 1.05rem; }

.pura-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.pura-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pura-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.pura-placeholder {
    display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 2.6rem;
    background: radial-gradient(circle at 70% 30%, rgba(62, 107, 72, .2), transparent 60%), #EEF1E6;
}

.lembaga-item { background: var(--sand); }
.tipologi-item { padding: .45rem 0; }

.galeri-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); }
.galeri-item img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .5s; }
.galeri-item:hover img { transform: scale(1.06); }
.galeri-item figcaption {
    position: absolute; inset: auto 0 0 0; padding: .6rem .8rem; font-size: .8rem;
    background: linear-gradient(transparent, rgba(43, 27, 17, .78)); color: #fff;
}

/* ---------- Ajakan (CTA) ---------- */
.cta {
    position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgba(212, 149, 43, .3), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(62, 107, 72, .35), transparent 45%),
        var(--brown-dark);
}
.cta h2 { color: #FFF8EC; }
.cta::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'><g fill='none' stroke='%23D4952B' stroke-width='1.4'><path d='M22 2 L30 11 L22 20 L14 11 Z'/><path d='M22 6.5 L26 11 L22 15.5 L18 11 Z' fill='%23D4952B' fill-opacity='.3'/><path d='M0 11 H10 M34 11 H44'/><circle cx='11.5' cy='11' r='1.4' fill='%23D4952B'/><circle cx='32.5' cy='11' r='1.4' fill='%23D4952B'/></g></svg>") center top / 33px 16px repeat-x;
}

/* ---------- Header halaman dalam ---------- */
.page-hero {
    position: relative; overflow: hidden; color: #fff;
    padding: 4.5rem 0 4.2rem;
    background:
        linear-gradient(180deg, rgba(43, 27, 17, .72) 0%, rgba(43, 27, 17, .62) 50%, rgba(43, 27, 17, .85) 100%),
        var(--hero-foto, url('../images/latar-sembiran.jpg')) center 40% / cover no-repeat;
    background-color: var(--brown-dark);
}
.page-hero.berfoto { background:
        linear-gradient(180deg, rgba(43, 27, 17, .72) 0%, rgba(43, 27, 17, .62) 50%, rgba(43, 27, 17, .85) 100%),
        var(--hero-foto, url('../images/latar-sembiran.jpg')) center 40% / cover no-repeat; }
.page-hero.small { padding: 3rem 0 2.8rem; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: #FFF8EC; font-weight: 600; letter-spacing: -.02em; }
.page-hero p { color: rgba(255, 248, 236, .85); }
.page-hero::before { display: none !important; }
.page-hero::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; pointer-events: none;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'><g fill='none' stroke='%23D4952B' stroke-width='1.4'><path d='M22 2 L30 11 L22 20 L14 11 Z'/><path d='M22 6.5 L26 11 L22 15.5 L18 11 Z' fill='%23D4952B' fill-opacity='.3'/><path d='M0 11 H10 M34 11 H44'/><circle cx='11.5' cy='11' r='1.4' fill='%23D4952B'/><circle cx='32.5' cy='11' r='1.4' fill='%23D4952B'/></g></svg>") center bottom / 33px 16px repeat-x;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb { font-family: var(--font-ui); font-size: .85rem; }
.page-hero .breadcrumb-item.active { color: var(--gold-light); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .45); }
.page-hero .breadcrumb a { color: rgba(255, 248, 236, .75) !important; text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff !important; }

/* ---------- Tab pil ---------- */
.nav-pills { gap: .35rem; }
.nav-pills .nav-link { font-family: var(--font-ui); color: var(--brown); font-weight: 500; border-radius: 999px; padding: .5rem 1.05rem; transition: background .15s; }
.nav-pills .nav-link:hover { background: var(--gold-soft); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--brown); color: #FFF8EC; }

/* ---------- Ornamen pemisah ---------- */
.ornamen-pemisah {
    height: 34px; margin: 0 auto; max-width: 560px; position: relative;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='34' viewBox='0 0 120 34'><g fill='none' stroke='%23D4952B' stroke-width='1.6' stroke-linecap='round'><path d='M60 3 C66 10 66 24 60 31 C54 24 54 10 60 3 Z' fill='%23D4952B' fill-opacity='.18'/><path d='M60 17 C70 9 82 9 90 17 C82 25 70 25 60 17 Z'/><path d='M60 17 C50 9 38 9 30 17 C38 25 50 25 60 17 Z'/><path d='M90 17 C96 13 102 13 108 17 M30 17 C24 13 18 13 12 17'/><circle cx='60' cy='17' r='2.6' fill='%23D4952B'/><circle cx='112' cy='17' r='1.6' fill='%23D4952B'/><circle cx='8' cy='17' r='1.6' fill='%23D4952B'/></g></svg>") center / 120px 34px no-repeat;
}
.ornamen-pemisah::before, .ornamen-pemisah::after {
    content: ""; position: absolute; top: 50%; width: calc(50% - 70px); height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 149, 43, .6));
}
.ornamen-pemisah::before { left: 0; }
.ornamen-pemisah::after { right: 0; transform: scaleX(-1); }

/* ---------- Kontak ---------- */
.kontak-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.kontak-list li { display: flex; gap: .9rem; margin-bottom: 1.1rem; }
.kontak-ico {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px;
    background: var(--gold-soft); color: var(--gold-ink);
    display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Komunitas, lembaga, potensi ---------- */
.komunitas-item { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: var(--radius-sm); background: var(--sand); height: 100%; }
.komunitas-ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green); }
.komunitas-ico.alt { background: var(--gold-soft); color: var(--gold-ink); }
.lembaga-card { background: var(--sand); border-radius: var(--radius-sm); padding: 1rem 1.15rem; border-left: 4px solid var(--gold); }
.lembaga-kat { font-family: var(--font-ui); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.lembaga-grup-judul { font-family: var(--font-ui); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .6rem; }

.potensi-subnav {
    position: sticky; top: 72px; z-index: 1010; background: rgba(250, 246, 238, .9);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.potensi-subnav .nav { overflow-x: auto; padding: .6rem 0; gap: .3rem; scrollbar-width: none; }
.potensi-subnav .nav::-webkit-scrollbar { display: none; }
.potensi-subnav .nav-link { border-radius: 999px; color: var(--brown); font-family: var(--font-ui); font-weight: 500; font-size: .88rem; padding: .42rem 1.05rem; white-space: nowrap; }
.potensi-subnav .nav-link:hover { background: var(--gold-soft); }
.potensi-subnav .nav-link.active { background: var(--brown); color: #FFF8EC; }
#parahyangan, #pawongan, #palemahan { scroll-margin-top: 140px; }

.lungguh-pita { display: flex; height: 18px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--sand); }
.lungguh-pita span { display: block; min-width: 6px; }
.lungguh-kotak { border-radius: var(--radius-sm); padding: .75rem .9rem; height: 100%; }
.tabel-lungguh td { vertical-align: top; }
.ayahan-kartu { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: #fff; transition: box-shadow .2s, transform .2s; }
.ayahan-kartu:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ayahan-ikon { width: 2.6rem; height: 2.6rem; flex: 0 0 auto; border-radius: .8rem; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); font-size: 1.05rem; }
.ayahan-angka { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; color: var(--brown-dark); }
.umur-batang { height: 10px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.umur-batang span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--terra)); }
.umur-batang span.abu { background: #C9BBA8; }
.peristiwa-kotak { border-radius: var(--radius-sm); background: var(--sand); padding: .8rem; text-align: center; height: 100%; }

/* ---------- Kaki halaman ---------- */
.site-footer {
    position: relative; color: rgba(255, 248, 236, .78);
    background:
        radial-gradient(circle at 90% 0%, rgba(212, 149, 43, .16), transparent 35%),
        var(--brown-dark);
}
.site-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'><g fill='none' stroke='%23D4952B' stroke-width='1.4'><path d='M22 2 L30 11 L22 20 L14 11 Z'/><path d='M22 6.5 L26 11 L22 15.5 L18 11 Z' fill='%23D4952B' fill-opacity='.3'/><path d='M0 11 H10 M34 11 H44'/><circle cx='11.5' cy='11' r='1.4' fill='%23D4952B'/><circle cx='32.5' cy='11' r='1.4' fill='%23D4952B'/></g></svg>") center top / 33px 16px repeat-x;
    opacity: .7;
}
.footer-brand { font-family: var(--font-head); font-weight: 600; color: #FFF8EC; font-size: 1.35rem; letter-spacing: -.01em; }
.footer-brand i { color: var(--gold); }
.footer-heading { color: var(--gold-light); font-family: var(--font-ui); font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255, 248, 236, .78); text-decoration: none; font-size: .9rem; transition: color .15s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-links i { color: var(--gold); }
.soc-btn {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255, 248, 236, .1); color: #FFF8EC;
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
    transition: background .2s, color .2s, transform .2s;
}
.soc-btn:hover { background: var(--gold); color: var(--brown-dark); transform: translateY(-2px); }
.copyright { border-top: 1px solid rgba(255, 248, 236, .1); font-size: .82rem; color: rgba(255, 248, 236, .6); }

/* ---------- Paginasi ---------- */
.pagination { gap: .3rem; }
.page-link { color: var(--brown); border-radius: .6rem !important; border-color: var(--line); font-family: var(--font-ui); font-size: .88rem; }
.page-link:hover { background: var(--gold-soft); color: var(--brown-dark); border-color: var(--line); }
.page-item.active .page-link { background: var(--brown); border-color: var(--brown); color: #FFF8EC; }
.page-link:focus { box-shadow: 0 0 0 .2rem var(--gold-soft); }

/* ---------- Tombol bagikan ---------- */
.bagikan-baris { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.bagikan-label { font-family: var(--font-ui); font-size: .85rem; font-weight: 600; color: var(--brown); margin-right: .15rem; }
.bagikan-btn {
    width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    border: 0; color: #fff; font-size: 1rem; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.bagikan-btn:hover { transform: translateY(-2px); box-shadow: 0 .35rem .8rem rgba(0, 0, 0, .15); color: #fff; }
.bagikan-btn.bagikan-wa { background: #25D366; }
.bagikan-btn.bagikan-fb { background: #1877F2; }
.bagikan-btn.bagikan-x { background: #111; }
.bagikan-btn.bagikan-threads { background: #000; }
.bagikan-btn.bagikan-tg { background: #229ED9; }
.bagikan-btn.bagikan-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.bagikan-btn.bagikan-salin, .bagikan-btn.bagikan-native { background: var(--sand); color: var(--brown); }
.bagikan-btn.bagikan-salin:hover, .bagikan-btn.bagikan-native:hover { color: var(--brown); }
/* versi kecil di dalam kartu (mis. kalender upacara) */
.border-top-dashed { border-top: 1px dashed var(--line); margin-top: .9rem; }
.bagikan-baris.bagikan-kecil { gap: .35rem; }
.bagikan-baris.bagikan-kecil .bagikan-label { font-size: .78rem; }
.bagikan-baris.bagikan-kecil .bagikan-btn { width: 32px; height: 32px; font-size: .85rem; }
.bagikan .dropdown-item i.fa-whatsapp { color: #25D366; }
.bagikan .dropdown-item i.fa-facebook-f { color: #1877F2; }
.bagikan .dropdown-item i.fa-telegram { color: #229ED9; }
.bagikan .dropdown-item i.fa-instagram { color: #d6249f; }
.bagikan-toast {
    position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); z-index: 2000; max-width: min(92vw, 420px);
    background: var(--brown-dark); color: #FFF8EC; padding: .75rem 1.15rem; border-radius: .8rem; font-size: .88rem;
    box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center;
}
.bagikan-toast.tampil { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Chat WhatsApp melayang ---------- */
.chat-wa { position: fixed; right: 20px; bottom: 20px; z-index: 1900; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.chat-wa-tombol {
    display: inline-flex; align-items: center; gap: .55rem; border: 0; border-radius: 99px; padding: .7rem 1.15rem .7rem .95rem;
    background: #25D366; color: #fff; font-family: var(--font-ui); font-weight: 600; box-shadow: 0 .5rem 1.4rem rgba(37, 211, 102, .4); transition: transform .15s, box-shadow .15s;
}
.chat-wa-tombol:hover { transform: translateY(-2px); box-shadow: 0 .7rem 1.6rem rgba(37, 211, 102, .5); }
.chat-wa-tombol i { font-size: 1.5rem; line-height: 1; }
.chat-wa-tombol .ikon-tutup, .chat-wa.terbuka .chat-wa-tombol .ikon-buka { display: none; }
.chat-wa.terbuka .chat-wa-tombol .ikon-tutup { display: inline; font-size: 1.25rem; }
.chat-wa.terbuka .chat-wa-label { display: none; }
.chat-wa.terbuka .chat-wa-tombol { padding: .8rem; width: 52px; height: 52px; justify-content: center; }
.chat-wa-panel {
    width: min(340px, calc(100vw - 32px)); background: #fff; border-radius: 1.1rem; overflow: hidden;
    box-shadow: var(--shadow-lg); animation: chatMuncul .18s ease-out;
}
.chat-wa-panel[hidden] { display: none; }
@keyframes chatMuncul { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.chat-wa-kepala { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: #075E54; color: #fff; }
.chat-wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.chat-wa-tutup { background: transparent; border: 0; color: #fff; opacity: .8; font-size: 1.1rem; }
.chat-wa-tutup:hover { opacity: 1; }
.chat-wa-isi { padding: 1rem; background: #ECE5DD; max-height: 60vh; overflow-y: auto; }
.chat-wa-gelembung { background: #fff; border-radius: 0 .8rem .8rem .8rem; padding: .65rem .85rem; font-size: .9rem; margin-bottom: .85rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.chat-wa-tujuan {
    display: flex; align-items: center; gap: .7rem; background: #fff; border-radius: .7rem; padding: .65rem .8rem; margin-bottom: .5rem;
    text-decoration: none; color: var(--brown); font-size: .9rem; transition: transform .12s, box-shadow .12s;
}
.chat-wa-tujuan:hover { transform: translateX(3px); box-shadow: 0 .25rem .7rem rgba(0, 0, 0, .08); color: var(--brown); }
.chat-wa-ikon { width: 34px; height: 34px; border-radius: .6rem; background: var(--gold-soft); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; flex: 0 0 34px; }
.chat-wa-pintas { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.chat-wa-pintas a { font-size: .78rem; background: rgba(255, 255, 255, .7); border-radius: 99px; padding: .3rem .7rem; color: var(--brown); text-decoration: none; }
.chat-wa-pintas a:hover { background: #fff; }
.link-login-prajuru { color: inherit; opacity: .55; text-decoration: none; font-size: .85em; }
.link-login-prajuru:hover { opacity: 1; text-decoration: underline; }

/* ---------- Muncul saat digulir ---------- */
.muncul { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.muncul.terlihat { opacity: 1; transform: none; }

/* ---------- Tabel menjadi kartu di layar HP ---------- */
@media (max-width: 767.98px) {
    .tabel-kartu thead { display: none; }
    .tabel-kartu, .tabel-kartu tbody, .tabel-kartu tfoot, .tabel-kartu tr, .tabel-kartu td { display: block; width: 100%; }
    .tabel-kartu tr { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 .75rem; padding: .4rem .8rem; background: #fff; box-shadow: var(--shadow-sm); }
    .tabel-kartu td { border: 0 !important; padding: .3rem 0 !important; display: flex; justify-content: space-between; gap: .75rem; text-align: right !important; white-space: normal !important; }
    .tabel-kartu td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; font-weight: 600; text-align: left; flex: 0 0 40%; }
    .tabel-kartu td[data-label=""]::before, .tabel-kartu td.tanpa-label::before { display: none; }
    .tabel-kartu td[data-label=""] { justify-content: flex-end; }
    .tabel-kartu td:first-child:not([data-label=""]) { font-weight: 600; }
    .tabel-kartu tfoot tr { background: var(--sand); }
    .table-responsive:has(.tabel-kartu) { overflow: visible; }
    .tabel-kartu .isi-sel { min-width: 0; flex: 1 1 auto; text-align: right; overflow-wrap: anywhere; }
    .tabel-kartu .isi-sel .text-nowrap { white-space: normal !important; }
    .tabel-kartu .isi-sel .d-flex { justify-content: flex-end; flex-wrap: wrap; }
    .tabel-kartu td[data-label="#"] { display: none; }
    .tabel-kartu td[data-label=""] .isi-sel { text-align: left; }
}

/* ---------- Layar kecil ---------- */
@media (max-width: 991.98px) {
    .sidebar-layout { margin-left: 0; }
}
@media (max-width: 575.98px) {
    .hero { min-height: 92vh; }
    .hero-scroll { display: none; }
    .hero > .container { padding-top: 0; padding-bottom: 0; }
    .hero-shape { height: 50px; }
    .stats-panel { padding: 1.2rem .6rem; border-radius: 1.2rem; }
    .stat-value { font-size: 1.5rem; }
    .stat-icon { width: 44px; height: 44px; font-size: 1rem; border-radius: 13px; }
    .hero-next { text-align: left; }
    .page-hero { padding: 3.2rem 0 3rem; }
    .potensi-subnav .nav-link { font-size: .82rem; padding: .35rem .8rem; }
    .bagikan-baris .bagikan-label { flex-basis: 100%; margin-bottom: .1rem; }
    .bagikan-btn { width: 36px; height: 36px; font-size: .95rem; }
    .bagikan-baris { gap: .35rem; }
    .chat-wa { right: 14px; bottom: 14px; }
    .chat-wa-label { display: none; }
    .chat-wa-tombol { width: 56px; height: 56px; padding: 0; justify-content: center; }
    .chat-wa-tombol i { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .muncul { opacity: 1; transform: none; }
}
@media print { .chat-wa, .site-nav, .top-strip { display: none !important; } }

/* ---------- Isi berita berformat, album, navigasi berita, kembali ke atas ---------- */
.berita-konten > :first-child { margin-top: 0; }
.berita-konten p { margin-bottom: 1.1rem; }
.berita-konten h1, .berita-konten h2, .berita-konten h3 { font-family: var(--font-head); color: var(--brown); font-weight: 700; margin: 1.8rem 0 .7rem; line-height: 1.35; }
.berita-konten h1, .berita-konten h2 { font-size: 1.35rem; }
.berita-konten h3 { font-size: 1.15rem; }
.berita-konten ul, .berita-konten ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.berita-konten li { margin-bottom: .3rem; }
.berita-konten blockquote { border-left: 4px solid var(--gold); background: #FBF6EC; padding: .8rem 1.1rem; margin: 1.3rem 0; border-radius: 0 .5rem .5rem 0; font-style: italic; color: var(--brown); }
.berita-konten blockquote p:last-child { margin-bottom: 0; }
.berita-konten a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.berita-konten img { max-width: 100%; height: auto; }
.berita-konten hr { border-top: 1px dashed var(--line); opacity: 1; margin: 1.6rem 0; }

.album-berita { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.album-item { display: block; aspect-ratio: 4 / 3; border-radius: .6rem; overflow: hidden; background: var(--line); }
.album-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album-item:hover img { transform: scale(1.05); }
@media (max-width: 575.98px) { .album-berita { grid-template-columns: repeat(3, 1fr); gap: .35rem; } }

.album-lightbox { position: fixed; inset: 0; z-index: 2100; background: rgba(20, 13, 8, .94); display: flex; align-items: center; justify-content: center; padding: 3.5rem .5rem; }
.album-lightbox[hidden] { display: none; }
.album-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: .4rem; }
.album-tutup { position: absolute; top: .6rem; right: .9rem; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; opacity: .85; }
.album-geser { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; }
.album-geser:hover, .album-tutup:hover { background: rgba(255, 255, 255, .28); opacity: 1; }
.album-geser.kiri { left: .6rem; } .album-geser.kanan { right: .6rem; }
.album-hitung { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: .9rem; }

.berita-nav-link { display: flex; flex-direction: column; gap: .2rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: .7rem; text-decoration: none; color: var(--brown); background: #fff; transition: border-color .2s, box-shadow .2s; }
.berita-nav-link:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); color: var(--brown); }
.berita-nav-link small { color: var(--gold-ink); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; }
.berita-nav-link span { font-weight: 600; font-size: .92rem; line-height: 1.35; }

.ke-atas { position: fixed; left: 20px; bottom: 20px; z-index: 1890; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brown); color: #fff; box-shadow: 0 .4rem 1rem rgba(43, 27, 17, .3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.ke-atas.tampil { opacity: .92; visibility: visible; transform: none; }
.ke-atas:hover { opacity: 1; background: var(--brown-dark); }
@media print { .ke-atas { display: none; } }

/* ---------- Pita pengumuman ---------- */
.pita-pengumuman { font-size: .92rem; padding: .55rem 0; line-height: 1.4; }
.pita-biasa { background: #F6E7C8; color: var(--brown-dark); border-bottom: 1px solid #EBD3A1; }
.pita-penting { background: #A3281F; color: #fff; }
.pita-pengumuman .fa-solid { font-size: 1rem; }
.pita-biasa .fa-solid { color: var(--gold-ink); }
.pita-teks { min-width: 0; overflow-wrap: anywhere; }
.pita-tautan { font-weight: 700; margin-left: .35rem; white-space: nowrap; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pita-tautan:hover { color: inherit; opacity: .85; }
.pita-tutup { background: none; border: 0; color: inherit; font-size: 1.5rem; line-height: 1; padding: 0 .25rem; opacity: .7; flex-shrink: 0; }
.pita-tutup:hover { opacity: 1; }
@media print { .pita-pengumuman { display: none; } }

/* ---------- Halaman dokumen ---------- */
.dokumen-baris { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: .8rem; padding: .85rem 1rem; }
.dokumen-ikon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: .6rem; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; background: #FBEDEA; color: #B23A2E; }
.dokumen-ikon.jenis-doc, .dokumen-ikon.jenis-docx { background: #E8EEF9; color: #2B579A; }
.dokumen-ikon.jenis-xls, .dokumen-ikon.jenis-xlsx { background: #E6F2EA; color: #217346; }
.dokumen-aksi { display: flex; gap: .4rem; flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.chip-dokumen { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--brown); text-decoration: none; font-size: .88rem; font-weight: 600; }
.chip-dokumen span { background: var(--gold-soft, #F6E7C8); color: var(--gold-ink); border-radius: 99px; padding: 0 .45rem; font-size: .78rem; }
.chip-dokumen:hover { border-color: var(--gold); color: var(--brown); }
@media (max-width: 575.98px) {
    .dokumen-baris { flex-wrap: wrap; }
    .dokumen-aksi { width: 100%; padding-left: calc(44px + .9rem); }
}

/* ---------- Ajakan notifikasi ---------- */
.ajak-notifikasi { background: #FBF3E2; border: 1px dashed #E4C88F; border-radius: .8rem; padding: .7rem 1rem; color: var(--brown); }
.ajak-notifikasi > .fa-bell { font-size: 1.3rem; color: var(--gold-ink); }

/* ---- Mode admin di website: tombol "Ubah" (hanya untuk admin/operator yang masuk) ---- */
.ada-ubah { position: relative; }
.tombol-ubah-wrap { z-index: 30; }
.tombol-ubah-pojok { position: absolute; top: -.9rem; right: .75rem; }
.page-hero .tombol-ubah-pojok { top: 0; }
.site-footer .tombol-ubah-pojok { top: .75rem; }
.tombol-ubah-sebaris { display: inline-block; margin-top: .75rem; }
.d-flex > .tombol-ubah-sebaris { margin-top: 0; }
.tombol-ubah {
    display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px;
    background: #fff; color: #6b4a12; border: 2px dashed #c8962e; font-size: .8rem; font-weight: 600;
    line-height: 1.3; text-decoration: none; box-shadow: 0 .25rem .75rem rgba(60, 40, 10, .18); cursor: pointer; white-space: nowrap;
}
.tombol-ubah:hover, .tombol-ubah:focus { background: #fff7e6; color: #4a3209; border-style: solid; }
.tombol-ubah.dropdown-toggle::after { margin-left: .15rem; }
.menu-ubah { min-width: 260px; max-width: 320px; font-size: .9rem; white-space: normal; }
.menu-ubah .dropdown-item { white-space: normal; }
body.sembunyi-ubah .tombol-ubah-wrap, body.sembunyi-ubah .pita-ubah { display: none !important; }
.pita-ubah { color: inherit; font-size: .8rem; font-weight: 600; border: 1px dashed currentColor; border-radius: 999px; padding: .1rem .55rem; text-decoration: none; flex-shrink: 0; opacity: .9; }
.pita-ubah:hover { opacity: 1; color: inherit; }
.bilah-admin {
    position: fixed; left: 16px; bottom: 20px; z-index: 1950;
    display: flex; align-items: center; gap: .35rem; padding: .35rem .4rem .35rem .9rem; border-radius: 999px;
    background: #2b1d0e; color: #f5e6c8; font-size: .8rem; box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .3); max-width: calc(100vw - 250px);
}
.bilah-admin-teks { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bilah-admin .contoh-ubah { border: 1px dashed #c8962e; border-radius: 999px; padding: 0 .4rem; color: #f0c56a; }
.bilah-admin-btn { background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 999px; padding: .3rem .65rem; font-size: .8rem; text-decoration: none; white-space: nowrap; }
.bilah-admin-btn:hover { background: rgba(255, 255, 255, .25); color: #fff; }
body.ada-bilah-admin { padding-bottom: 64px; }
@media (max-width: 575.98px) {
    .bilah-admin { left: 12px; max-width: calc(100vw - 100px); }
    .page-hero .tombol-ubah-pojok { position: static; margin-bottom: .5rem; display: inline-block; }
}
@media print { .tombol-ubah-wrap, .bilah-admin, .pita-ubah { display: none !important; } }

/* ---- Peta Desa ---- */
.peta-desa-wadah { border-radius: 1rem; overflow: hidden; border: 1px solid #eadfca; box-shadow: 0 .5rem 1.5rem rgba(74, 47, 30, .08); }
#petaDesa { height: 65vh; min-height: 380px; max-height: 640px; z-index: 0; }
@media (max-width: 575.98px) { #petaDesa { height: 58vh; min-height: 320px; } }
.chip-peta { --warna: #4A2F1E; border: 1.5px solid color-mix(in srgb, var(--warna) 40%, #fff); background: #fff; color: var(--warna); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.chip-peta span { background: color-mix(in srgb, var(--warna) 12%, #fff); border-radius: 999px; padding: 0 .45rem; font-size: .75rem; }
.chip-peta.aktif { background: var(--warna); color: #fff; border-color: var(--warna); }
.chip-peta.aktif span { background: rgba(255, 255, 255, .25); }
.penanda-peta { --warna: #4A2F1E; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--warna); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.penanda-peta i { transform: rotate(45deg); color: #fff; font-size: 14px; }
.popup-peta { width: 230px; font-family: inherit; }
.popup-peta img { width: 100%; height: 130px; object-fit: cover; border-radius: .5rem; cursor: zoom-in; margin-bottom: .4rem; }
.popup-jenis { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.popup-nama { font-weight: 700; color: #4A2F1E; font-size: .95rem; line-height: 1.3; }
.popup-sub { font-size: .8rem; color: #7a6a58; }
.popup-ket { font-size: .8rem; color: #5c4a2e; margin-top: .3rem; }
.popup-aksi { display: flex; align-items: center; gap: .35rem; margin-top: .5rem; }
.popup-aksi .btn-gold { color: #fff; }
.kartu-tempat { background: #fff; border: 1px solid #eee2c8; border-radius: 1rem; overflow: hidden; display: flex; flex-direction: column; }
.kartu-tempat-foto { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f4ede0; }
.kartu-tempat-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.kartu-tempat-foto:hover img { transform: scale(1.04); }
.badge-jenis { --warna: #4A2F1E; display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; color: var(--warna); background: color-mix(in srgb, var(--warna) 10%, #fff); border-radius: 999px; padding: .15rem .55rem; }
.aksi-tempat { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.aksi-tempat a, .aksi-tempat button { font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; border: 1px solid #e6cf9c; background: #fff; color: #7a5410; text-decoration: none; font-weight: 600; }
.aksi-tempat a:hover, .aksi-tempat button:hover { background: #fff3d6; }

/* ---- Lightbox foto ---- */
.lb-desa { position: fixed; inset: 0; z-index: 2100; background: rgba(15, 10, 5, .92); display: flex; align-items: center; justify-content: center; }
.lb-desa[hidden] { display: none; }
.lb-gambar { max-width: 94vw; max-height: 86vh; border-radius: .5rem; box-shadow: 0 1rem 3rem rgba(0, 0, 0, .5); }
.lb-tutup { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; }
.lb-geser { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; }
.lb-kiri { left: 12px; } .lb-kanan { right: 12px; }
.lb-nomor { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .85rem; }

.culture-foto { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: .75rem; margin-bottom: .25rem; }
