:root {
    --green: #173b34;
    --green-d: #10292a;
    --ivory: #faf7f2;
    --cream: #f3ede2;
    --gold: #c9a45c;
    --gold-d: #a8843d;
    --red: #b91a14;
    --wood: #8a5a2b;
    --ink: #2a2119;
    --muted: #6f665c;
    --line: #e6ddcd;
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--ivory);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
h1,
h2,
h3 {
    font-family: var(--serif);
    line-height: 1.2;
    margin: 0;
}
:focus-visible {
    outline: 2px solid var(--gold-d);
    outline-offset: 2px;
}
.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition:
        background 0.15s,
        color 0.15s;
}
.btn-gold {
    background: var(--gold);
    color: var(--green-d);
}
.btn-gold:hover {
    background: #d8b56c;
}
.btn-line {
    border-color: #fff;
    color: #fff;
    background: transparent;
}
.btn-line:hover {
    background: rgba(255, 255, 255, 0.12);
}
.btn-dark {
    background: var(--green);
    color: #fff;
}
.btn-dark:hover {
    background: var(--green-d);
}
.btn-out {
    border-color: var(--green);
    color: var(--green);
    background: transparent;
}
.btn-out:hover {
    background: var(--green);
    color: #fff;
}
.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}
.btn-danger {
    background: #a83a2e;
    color: #fff;
}
/* header */
.site-head {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
}
.site-head .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}
.head-wa {
    white-space: nowrap;
    flex: none;
}
.head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}
.head-user {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--green-d);
    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s;
}
.head-user:hover {
    background: var(--green-d);
    border-color: var(--green-d);
    color: #fff;
}
.head-user svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.logo svg {
    width: 42px;
    height: 42px;
}
.logo b {
    white-space: nowrap;
    display: block;
    font-family: var(--serif);
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    color: var(--red);
    line-height: 1;
}
.logo small {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.42em;
    color: var(--gold-d);
    margin-top: 4px;
}
.nav {
    display: flex;
    gap: 30px;
    font-size: 0.92rem;
}
.nav a {
    padding: 6px 0;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    color: #4a4036;
}
.nav a.on,
.nav a:hover {
    color: var(--green-d);
    border-color: var(--gold);
}
.menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
}
/* hero */
.hero {
    position: relative;
    color: #fff;
    background:
        linear-gradient(
            90deg,
            #2a1c12 0%,
            #3a271a 45%,
            rgba(58, 39, 26, 0.4) 100%
        ),
        repeating-linear-gradient(90deg, #8a5a2b 0 26px, #6d4522 26px 34px);
    background-size: cover;
    background-position: center;
}
.hero.has-img {
    background:
        linear-gradient(
            90deg,
            rgba(35, 24, 16, 0.94) 0%,
            rgba(35, 24, 16, 0.78) 42%,
            rgba(35, 24, 16, 0.05) 80%
        ),
        var(--hero) center/cover;
}
.hero .wrap {
    padding: 78px 20px 34px;
}
.hero-copy {
    max-width: 520px;
}
.hero small.k {
    color: var(--gold);
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    font-weight: 600;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin: 18px 0 20px;
}
.hero h1 em {
    font-style: normal;
    color: var(--gold);
}
.hero p {
    max-width: 440px;
    color: #f0e8dc;
    margin: 0 0 28px;
}
.hero .cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.perks {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
    margin-top: 52px;
    font-size: 0.78rem;
    color: #ecdfc9;
}
.perks div {
    display: flex;
    gap: 10px;
    align-items: center;
}
.perks svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.5;
}
.perks b {
    display: block;
    color: #fff;
    font-weight: 600;
}
/* sections */
.sec {
    padding: 56px 0;
}
.sec-head {
    text-align: center;
    margin-bottom: 30px;
}
.sec-head h2 {
    font-size: 2rem;
    color: var(--green-d);
}
.sec-head i {
    display: block;
    width: 44px;
    height: 3px;
    background: var(--gold);
    margin: 12px auto;
}
.sec-head p {
    margin: 0;
    color: var(--muted);
}
.row-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 22px;
}
.row-head h2 {
    font-size: 1.9rem;
    color: var(--green-d);
}
.row-head p {
    margin: 4px 0 0;
    color: var(--muted);
}
.cats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.cat {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(60, 40, 20, 0.08);
    transition: transform 0.15s;
}
.cat:hover {
    transform: translateY(-3px);
}
.cat .ph {
    aspect-ratio: 4/2.9;
    background: var(--cream);
}
.cat .ph img,
.card .ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat .tx {
    padding: 14px 16px;
    position: relative;
}
.cat h3 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
}
.cat p {
    margin: 2px 0 0;
    font-size: 0.76rem;
    color: var(--muted);
    padding-right: 30px;
}
.cat .go {
    position: absolute;
    right: 12px;
    bottom: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
}
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.grid.g5 {
    grid-template-columns: repeat(5, 1fr);
}
.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(60, 40, 20, 0.08);
    display: flex;
    flex-direction: column;
}
.card .ph {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--cream);
}
.badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background: var(--gold);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
}
.card .tx {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.card h3 {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
}
.card .cn {
    font-size: 0.75rem;
    color: var(--muted);
}
.price {
    font-weight: 700;
    color: var(--green-d);
    font-size: 1.02rem;
    margin-top: auto;
    padding-top: 6px;
}
.price.ask {
    font-weight: 600;
    color: var(--gold-d);
    font-size: 0.92rem;
}
.ph-empty {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #efe6d6, #e3d5bc);
}
.ph-empty svg {
    width: 44%;
    max-width: 120px;
    stroke: #b39a72;
    fill: none;
    stroke-width: 1.4;
}
/* about */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}
.about .pic {
    position: relative;
    min-height: 340px;
    background-size: cover;
    border-radius: 0 10px 10px 0;
}
.years {
    position: absolute;
    left: 36px;
    bottom: -24px;
    background: var(--green);
    color: #fff;
    padding: 20px 26px;
    border-radius: 10px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.years b {
    font-family: var(--serif);
    font-size: 2.3rem;
    line-height: 1;
}
.years span {
    font-size: 0.82rem;
    color: #e6dcc8;
    max-width: 170px;
    display: block;
}
.about .tx {
    padding: 20px 20px 20px 56px;
}
.about .k {
    color: var(--gold-d);
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 600;
}
.about h2 {
    font-size: 2rem;
    color: var(--green-d);
    margin: 10px 0 14px;
}
.about p {
    color: #4a4036;
    max-width: 520px;
}
.vals {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    margin: 24px 0 28px;
    font-size: 0.8rem;
}
.vals b {
    display: block;
    font-size: 0.85rem;
}
.vals span {
    color: var(--muted);
    font-size: 0.75rem;
}
.vals .val {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.vals .val svg {
    width: 22px;
    height: 22px;
    flex: none;
    margin-top: 1px;
    stroke: var(--gold-d);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.band {
    background: var(--green);
    color: #fff;
    padding: 38px 0;
    margin-top: 70px;
}
.band .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.band h2 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}
.band p {
    margin: 0;
    color: #d5e0db;
    max-width: 560px;
}
/* pages */
.page-head {
    background: var(--green);
    color: #fff;
    padding: 44px 0;
}
.page-head h1 {
    font-size: 2.2rem;
}
.page-head p {
    margin: 6px 0 0;
    color: #d5e0db;
}
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.chip {
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 99px;
    font-size: 0.85rem;
    background: #fff;
}
.chip.on {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
input,
select,
textarea {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid #d8ccb8;
    border-radius: 6px;
    background: #fff;
    width: 100%;
    color: var(--ink);
}
.search {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    max-width: 460px;
}
.search input {
    flex: 1;
}
.detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 44px;
    align-items: start;
}
.detail .ph {
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--cream);
}
.detail .ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail h1 {
    font-size: 2.1rem;
    color: var(--green-d);
}
.detail .price {
    font-size: 1.6rem;
    margin: 14px 0;
}
.detail .desc {
    color: #4a4036;
    white-space: pre-line;
}
.crumb {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 18px;
}
.crumb a:hover {
    color: var(--gold-d);
}
.info {
    background: #fff;
    border-radius: 10px;
    padding: 26px;
    box-shadow: 0 2px 14px rgba(60, 40, 20, 0.08);
}
.info dt {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--green-d);
    margin-top: 14px;
}
.info dt:first-child {
    margin-top: 0;
}
.info dd {
    margin: 2px 0 0;
    color: #4a4036;
}
.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    background: #fff;
    border-radius: 10px;
}
.pager {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}
.pager a,
.pager span {
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 0.85rem;
}
.pager .cur {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
/* footer */
.foot {
    background: var(--green-d);
    color: #cfd9d4;
    padding: 44px 0 20px;
    font-size: 0.88rem;
}
.foot .cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
}
.foot h4 {
    color: #fff;
    font-family: var(--serif);
    margin: 0 0 10px;
    font-size: 1.05rem;
}
.foot a:hover {
    color: var(--gold);
}
.foot ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.foot li {
    margin: 5px 0;
}
.foot .ci {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.foot .ci svg {
    width: 17px;
    height: 17px;
    flex: none;
    margin-top: 4px;
    color: var(--gold);
}
.foot .ci svg:not(.wa-ico) {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.foot .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 14px;
}
.foot .tags span {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}
.foot-map {
    margin-top: 14px;
    max-width: 360px;
}
.foot-map iframe {
    display: block;
    width: 100%;
    height: 140px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}
.foot-map a {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 600;
}
.foot .cp {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 28px;
    padding-top: 16px;
    font-size: 0.78rem;
    color: #93a59d;
}
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.15s,
        background 0.15s;
}
.wa-float:hover {
    background: #1ebe5b;
    transform: scale(1.06);
}
.wa-ico {
    flex: none;
    display: block;
}
/* alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}
.alert.ok {
    background: #e4f2e6;
    color: #1f5a2c;
}
.alert.err {
    background: #f8e1de;
    color: #8a2b20;
}
.err-t {
    color: #a83a2e;
    font-size: 0.8rem;
    margin-top: 4px;
}
/* admin */
.adm {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 100vh;
    background: #f5f1e9;
}
.side {
    background: var(--green-d);
    color: #fff;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.side .logo b {
    color: #fff;
    font-size: 1.1rem;
}
.side .logo {
    margin-bottom: 22px;
}
.side a,
.side button {
    color: #d5e0db;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.92rem;
    background: none;
    border: 0;
    text-align: left;
    font: inherit;
    cursor: pointer;
    width: 100%;
}
.side a.on,
.side a:hover,
.side button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.main {
    padding: 28px;
    min-width: 0;
}
.main h1 {
    font-size: 1.7rem;
    color: var(--green-d);
    margin-bottom: 20px;
}
.panel {
    background: #fff;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 1px 8px rgba(60, 40, 20, 0.07);
    margin-bottom: 20px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.stat {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
}
.stat b {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--green-d);
    display: block;
}
.stat span {
    color: var(--muted);
    font-size: 0.85rem;
}
.tbl-w {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
th,
td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.78rem;
}
.thumb {
    width: 52px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    background: var(--cream);
}
.tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
}
.tag.on {
    background: #e4f2e6;
    color: #1f5a2c;
}
.tag.off {
    background: #eee;
    color: #666;
}
.tag.star {
    background: #f7ecd2;
    color: #8a6a1d;
}
.acts {
    display: flex;
    gap: 6px;
}
.form-g {
    margin-bottom: 16px;
}
.form-g label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 5px;
}
.form-g small {
    color: var(--muted);
}
.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.chk {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 500;
}
.chk input {
    width: auto;
}
.login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--green-d);
    padding: 20px;
}
.login .panel {
    width: 100%;
    max-width: 400px;
}
@media (max-width: 980px) {
    .cats,
    .grid.g5 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .about {
        grid-template-columns: 1fr;
    }
    .about . {
        border-radius: 0;
        min-height: 260px;
    }
    .about .tx {
        padding: 50px 20px 0;
    }
    .detail {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* tablet */
@media (max-width: 1024px) {
    .nav {
        gap: 22px;
    }
    .site-head .wrap {
        gap: 12px;
    }
}
@media (max-width: 980px) {
    .foot .cols {
        grid-template-columns: 1fr 1fr;
    }
    .foot .cols > div:first-child {
        grid-column: 1/-1;
    }
}
@media (max-width: 900px) {
    .menu-btn {
        display: block;
    }
    .head-actions {
        margin-left: auto;
    }
    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 70px;
        background: var(--ivory);
        flex-direction: column;
        gap: 0;
        padding: 8px 20px 16px;
        border-bottom: 1px solid var(--line);
    }
    .nav.open {
        display: flex;
    }
    .nav a {
        padding: 12px 0;
    }

}
@media (max-width: 720px) {
    .menu-btn {
        display: block;
    }
    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 70px;
        background: var(--ivory);
        flex-direction: column;
        gap: 0;
        padding: 8px 20px 16px;
        border-bottom: 1px solid var(--line);
    }
    .nav.open {
        display: flex;
    }
    .nav a {
        padding: 12px 0;
    }
    .head-wa {
        display: none;
    }
    .cats,
    .grid,
    .grid.g5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .hero .wrap {
        padding-top: 52px;
    }
    .foot .cols {
        grid-template-columns: 1fr;
    }
    .two {
        grid-template-columns: 1fr;
    }

    .row-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .years {
        left: 16px;
    }
}
/* diskon */
.badge.sale {
    left: auto;
    right: 10px;
    background: #a83a2e;
}
.price .old {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.82em;
    text-decoration: line-through;
    white-space: nowrap;
}
.card .price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.card .price .old {
    font-size: 0.82rem;
    line-height: 1.2;
}
.card .price .now {
    white-space: nowrap;
    line-height: 1.25;
}
.detail .price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}
.detail .price .old {
    font-size: 1rem;
}
.price .save {
    display: inline-block;
    background: #a83a2e;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.5;
}
/* galeri */
.thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.thumbs .th {
    width: 76px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: var(--cream);
    cursor: pointer;
}
.thumbs .th img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbs .th.on {
    border-color: var(--gold-d);
}
.gal-adm {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.gal-adm .gi {
    width: 120px;
    font-weight: 400;
}
.gal-adm .gi img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 4px;
}
.gal-adm .gi .chk {
    font-size: 0.8rem;
    font-weight: 500;
}
/* zoom + lightbox */
.ph.zoomable{position:relative;cursor:zoom-in}
.ph .zoom-hint{position:absolute;right:12px;bottom:12px;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--green-d);display:grid;place-items:center;box-shadow:0 2px 8px rgba(0,0,0,.18);pointer-events:none}
.ph .zoom-hint svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#galMain{transition:opacity .35s ease}#galMain.fade{opacity:0}
.lb{position:fixed;inset:0;z-index:100;background:rgba(12,18,16,.94);display:flex;align-items:center;justify-content:center}
.lb[hidden]{display:none}
.lb-stage{width:min(94vw,1200px);height:84vh;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none}
.lb-stage img{max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in;transition:transform .2s ease;user-select:none;-webkit-user-drag:none;background:#fff;border-radius:6px}
.lb-stage.zoomed img{cursor:grab}.lb-stage img.drag{cursor:grabbing;transition:none}
.lb-x,.lb-nav{position:absolute;z-index:2;border:0;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;line-height:1;transition:background .15s}
.lb-x:hover,.lb-nav:hover{background:rgba(255,255,255,.28)}
.lb-x{top:16px;right:16px;width:44px;height:44px;border-radius:50%;font-size:1.8rem}
.lb-nav{top:50%;transform:translateY(-50%);width:46px;height:64px;border-radius:8px;font-size:2.4rem}
.lb-nav.prev{left:14px}.lb-nav.next{right:14px}
.lb-cap{position:absolute;bottom:14px;left:0;right:0;text-align:center;color:#d5e0db;font-size:.8rem}
@media(max-width:720px){.lb-stage{width:100vw;height:76vh}.lb-nav{width:38px;height:52px;font-size:2rem}.lb-nav.prev{left:6px}.lb-nav.next{right:6px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* logo navbar */
.logo img{height:42px;width:auto;flex:none}
.site-head .logo b{color:var(--red)}
/* ===== Portofolio ===== */
.pf-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.pf-card{position:relative;display:block;width:100%;padding:0;border:0;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 2px 14px rgba(60,40,20,.08);cursor:pointer;text-align:left;font:inherit;color:inherit;transition:transform .15s,box-shadow .15s}
.pf-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(60,40,20,.14)}
.pf-ph{display:block;aspect-ratio:4/3;background:var(--cream);overflow:hidden}
.pf-ph img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.pf-card:hover .pf-ph img{transform:scale(1.04)}
.pf-n{position:absolute;top:10px;right:10px;background:rgba(16,41,42,.85);color:#fff;font-size:.72rem;font-weight:600;padding:4px 10px;border-radius:99px}
.pf-cap{display:block;padding:12px 14px 14px}
.pf-cap b{display:block;font-family:var(--serif);font-size:1rem;color:var(--green-d);line-height:1.3}
.pf-cap small{display:block;margin-top:4px;color:var(--muted);font-size:.8rem;line-height:1.5}
.pf-modal{position:fixed;inset:0;z-index:100;background:rgba(12,18,16,.9);display:flex;align-items:center;justify-content:center;padding:20px}
.pf-modal[hidden]{display:none}
.pf-box{position:relative;width:min(960px,100%);max-height:100%;overflow-y:auto;background:var(--ivory);border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.pf-x{position:absolute;top:10px;right:10px;z-index:3;width:42px;height:42px;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:1.7rem;line-height:1;cursor:pointer}
.pf-x:hover{background:rgba(0,0,0,.75)}
.pf-media{position:relative;background:#14110e}
.pf-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;cursor:grab;user-select:none}
.pf-track::-webkit-scrollbar{display:none}
.pf-track:focus-visible{outline-offset:-3px}
.pf-track.drag{cursor:grabbing}
.pf-slide{flex:0 0 100%;scroll-snap-align:center;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;height:min(62vh,560px)}
.pf-slide img{max-width:100%;max-height:100%;object-fit:contain;-webkit-user-drag:none}
.pf-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:44px;height:60px;border:0;border-radius:8px;background:rgba(255,255,255,.16);color:#fff;font-size:2.2rem;line-height:1;cursor:pointer}
.pf-nav:hover{background:rgba(255,255,255,.3)}
.pf-nav.prev{left:10px}.pf-nav.next{right:10px}
.pf-count{position:absolute;left:12px;bottom:12px;background:rgba(0,0,0,.6);color:#fff;font-size:.75rem;font-weight:600;padding:3px 10px;border-radius:99px}
.pf-dots{display:flex;justify-content:center;flex-wrap:wrap;padding:8px 16px 0}
.pf-dot{position:relative;width:22px;height:22px;padding:0;border:0;background:none;cursor:pointer}
.pf-dot::before{content:"";position:absolute;inset:7px;border-radius:50%;background:#d8ccb8;transition:transform .15s,background .15s}
.pf-dot.on::before{background:var(--gold-d);transform:scale(1.3)}
.pf-info{padding:12px 24px 24px}
.pf-info h2{font-size:1.5rem;color:var(--green-d);padding-right:30px}
.pf-info p{margin:10px 0 0;color:#4a4036;white-space:pre-line}
.pf-box.single .pf-nav,.pf-box.single .pf-dots,.pf-box.single .pf-count{display:none}
.pf-box.single .pf-track{cursor:default}
@media(max-width:980px){.pf-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){
  .pf-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .pf-modal{padding:0;align-items:flex-end}
  .pf-box{border-radius:14px 14px 0 0;max-height:94vh}
  .pf-slide{height:min(52vh,420px)}
  .pf-nav{width:36px;height:48px;font-size:1.8rem}
  .pf-nav.prev{left:6px}.pf-nav.next{right:6px}
  .pf-info{padding:10px 18px 22px}
}
@media(max-width:480px){.pf-grid{grid-template-columns:minmax(0,300px);justify-content:center}}
/* =========================================================
   ADMIN RESPONSIVE
   Single source of truth:
   Desktop: left sidebar
   <=900px: top bar + off-canvas sidebar
   ========================================================= */

.adm {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 100vh;
    background: #f5f1e9;
}

.adm-top,
.adm-overlay {
    display: none;
}

.adm .side {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto;
    align-self: start;
}

.adm .main {
    min-width: 0;
    width: 100%;
}

.adm .head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.adm .head-row h1 {
    margin: 0;
}

.adm .filter-form {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
    gap: 16px;
    margin-bottom: 16px;
    align-items: center;
}

.adm .tbl-w {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.adm .tbl-w table {
    min-width: 650px;
}

.adm .tbl-w .acts {
    flex-wrap: nowrap;
}

.adm .tbl-w .acts form {
    margin: 0;
}

/* -------------------------
   MOBILE / TABLET
   ------------------------- */

@media screen and (max-width: 900px) {

    .adm {
        display: block !important;
        width: 100%;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .adm-top {
        display: flex !important;
        position: sticky;
        top: 0;
        z-index: 100;
        width: 100%;
        min-height: 64px;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 16px;
        background: var(--green-d) !important;
        color: #fff !important;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .adm-brand {
        display: inline-flex;
        flex-direction: column;
        min-width: 0;
        color: #fff;
        text-decoration: none;
    }

    .adm-brand b {
        display: block;
        font-family: var(--serif);
        font-size: 1.02rem;
        letter-spacing: .02em;
        line-height: 1;
    }

    .adm-brand small {
        display: block;
        margin-top: 4px;
        color: var(--gold);
        font-size: .54rem;
        font-weight: 700;
        letter-spacing: .34em;
        line-height: 1;
    }

    .adm-burger {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px;
        flex: none;
        display: grid !important;
        place-content: center;
        gap: 5px;
        padding: 0;
        border: 1px solid rgba(255,255,255,.24);
        border-radius: 8px;
        background: transparent !important;
        color: #fff !important;
        cursor: pointer;
    }

    .adm-burger span {
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
    }

    .adm-overlay {
        position: fixed;
        inset: 0;
        z-index: 110;
        display: block !important;
        visibility: hidden;
        opacity: 0;
        background: rgba(10,20,18,.52);
        pointer-events: none;
        transition: opacity .2s ease, visibility .2s ease;
    }

    .adm-overlay.show {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .adm .side {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 120;
        width: min(280px, 84vw) !important;
        height: 100dvh;
        min-height: 100dvh;
        margin: 0;
        padding: 78px 14px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch;
        gap: 4px;
        overflow-y: auto;
        background: var(--green-d) !important;
        transform: translate3d(-105%,0,0);
        visibility: hidden;
        transition: transform .24s ease, visibility .24s ease;
        box-shadow: 16px 0 40px rgba(0,0,0,.2);
    }

    .adm .side.open {
        transform: translate3d(0,0,0);
        visibility: visible;
    }

    .adm .side .logo {
        display: flex !important;
        width: 100%;
        margin: 0 0 18px;
        padding: 12px 10px;
    }

    .adm .side a,
    .adm .side button {
        display: flex !important;
        align-items: center;
        width: 100% !important;
        min-height: 44px;
        flex: none;
        padding: 10px 12px;
        border-radius: 8px;
    }

    .adm .side form {
        display: block;
        width: 100%;
        margin: 0;
    }

    .adm .main {
        display: block;
        width: 100%;
        min-width: 0;
        padding: 20px 16px !important;
    }

    .adm .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .adm .stat {
        min-width: 0;
        padding: 16px;
    }

    .adm .stat b {
        font-size: 1.7rem;
    }

    .adm .filter-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .adm .head-row {
        align-items: flex-start;
    }

    .adm .head-row > .btn {
        width: auto;
    }

    .adm .panel {
        max-width: 100%;
        overflow: hidden;
    }

    .adm .tbl-w {
        margin-right: -16px;
        margin-left: -16px;
        padding: 0 16px;
    }

    body.adm-lock {
        overflow: hidden;
    }
}

/* -------------------------
   SMALL PHONES
   ------------------------- */

@media screen and (max-width: 560px) {

    .adm-top {
        min-height: 60px;
        padding: 9px 12px;
    }

    .adm .main {
        padding: 16px 12px !important;
    }

    .adm .stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .adm .stat {
        padding: 14px;
    }

    .adm .stat b {
        font-size: 1.5rem;
    }

    .adm .panel {
        padding: 16px;
        border-radius: 10px;
    }

    .adm .head-row {
        gap: 12px;
    }

    .adm .head-row > .btn {
        width: 100%;
        justify-content: center;
    }

    .adm .acts {
        flex-wrap: wrap;
    }

    .adm .form-g {
        margin-bottom: 14px;
    }

    .adm .two {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .adm .gal-adm .gi {
        width: calc(50% - 6px);
    }

    .adm .gal-adm .gi img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .adm input,
    .adm select,
    .adm textarea {
        font-size: 16px;
    }
}
