/* =========================================================
   Okky Noisy - Direktori Aplikator Epoxy
   Design tokens
   ========================================================= */
:root {
    --bg: #f5f7f5;
    --surface: #ffffff;
    --surface-sunken: #eef1ee;
    --ink: #1a2420;
    --ink-muted: #5b655f;
    --border: #dfe4e0;
    --accent: #b8822c;
    --accent-dark: #93691f;
    --accent-soft: #f3e6cf;
    --teal: #1f4b45;
    --teal-soft: #e4eeec;
    --success: #2f7a4f;
    --danger: #b3413a;
    --danger-soft: #f7e4e2;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-card: 0 1px 2px rgba(26, 36, 32, 0.06), 0 8px 24px rgba(26, 36, 32, 0.06);
    --shadow-pop: 0 12px 32px rgba(26, 36, 32, 0.14);
    --font-display: "Plus Jakarta Sans", sans-serif;
    --font-body: "Plus Jakarta Sans", sans-serif;
    --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    color: var(--ink);
}

h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; }
h2 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.18; }
h3 { font-size: 19px; }

p { margin: 0 0 14px; color: var(--ink-muted); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--accent-dark);
    background: var(--accent-soft);
    padding: 5px 11px;
    border-radius: 999px;
}
.eyebrow svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    line-height: 1;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #163d38; box-shadow: var(--shadow-pop); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); box-shadow: var(--shadow-pop); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ink); }
.btn-whatsapp { background: #1f4b45; color: #fff; }
.btn-whatsapp:hover { background: #163d38; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(245, 247, 245, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.brand-mark { width: 34px; height: 34px; }
.nav-links { display: none; align-items: center; gap: 26px; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--accent-dark); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (min-width: 860px) {
    .nav-links { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
    padding: 56px 0 40px;
    position: relative;
}
.hero-grid {
    display: grid;
    gap: 28px;
    align-items: center;
}
@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
}
.hero-copy p { font-size: 17px; max-width: 46ch; }
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 22px;
}
.hero-stat-num { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--teal); }
.hero-stat-label { font-size: 13px; color: var(--ink-muted); }

.pour-divider { width: 100%; height: 46px; display: block; margin: 8px 0 0; }

/* ---------- Search / filter bar ---------- */
.search-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 18px;
}
.search-form {
    display: grid;
    gap: 12px;
}
@media (min-width: 700px) {
    .search-form { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.field .input-wrap { position: relative; }
.field .input-wrap svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: var(--ink-muted); pointer-events: none;
}
input, select, textarea {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    width: 100%;
}
.field .input-wrap input, .field .input-wrap select { padding-left: 40px; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-soft);
}
textarea { resize: vertical; min-height: 110px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: 14px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--teal); text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--ink); font-weight: 600; }
.breadcrumb-sep { color: var(--border); }

/* ---------- Section ---------- */
.section { padding: 44px 0; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.result-count { color: var(--ink-muted); font-size: 14px; }

/* ---------- Card grid ---------- */
.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--teal));
}
.card-top { display: flex; align-items: center; gap: 12px; }
.card-photo {
    width: 56px; height: 56px; border-radius: 12px; object-fit: cover;
    background: var(--surface-sunken); flex-shrink: 0;
}
.card-photo-placeholder {
    width: 56px; height: 56px; border-radius: 12px; background: var(--teal-soft);
    display: flex; align-items: center; justify-content: center; color: var(--teal); flex-shrink: 0;
}
.card-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.card-title-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.verified-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--success);
    color: #fff;
}
.verified-dot svg { width: 11px; height: 11px; stroke-width: 3; }
.badge-verified {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
    background: #e6f3ea; color: var(--success);
}
.badge-verified .verified-icon-circle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 999px; background: var(--success); color: #fff; flex-shrink: 0;
}
.badge-verified .verified-icon-circle svg { width: 10px; height: 10px; stroke-width: 3; }
.badge-unggulan {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--accent-soft); color: var(--accent-dark) !important;
}
.badge-unggulan svg { width: 13px; height: 13px; flex-shrink: 0; }
.card-loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.card-loc svg { width: 15px; height: 15px; }
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
    background: var(--teal-soft); color: var(--teal); width: fit-content;
    line-height: 1.4;
}
.badge svg { width: 13px; height: 13px; flex-shrink: 0; }
.card-desc { font-size: 14px; color: var(--ink-muted); flex-grow: 1; }
.card-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.card-rating svg { width: 16px; height: 16px; }
.card-actions { display: flex; gap: 8px; margin-top: 4px; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    color: var(--ink-muted);
}
.empty-state svg { width: 44px; height: 44px; color: var(--ink-muted); margin: 0 auto 12px; }

/* ---------- Forms / pages ---------- */
.page-narrow { max-width: 760px; margin: 0 auto; }
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-card);
}
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.form-grid-2 > * { min-width: 0; }
.helper-text { font-size: 13px; color: var(--ink-muted); margin-top: -8px; }
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert svg { width: 20px; height: 20px; flex-shrink: 0; }
.alert-success { background: #e6f3ea; color: var(--success); }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.upload-box {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
    color: var(--ink-muted);
    font-size: 14px;
}
.upload-box svg { width: 28px; height: 28px; margin: 0 auto 8px; }

.star-picker { display: flex; gap: 6px; }
.star-picker input { display: none; }
.star-picker label { cursor: pointer; }
.star-picker svg { width: 30px; height: 30px; color: var(--border); transition: color 0.15s; }
.star-picker input:checked ~ label svg,
.star-picker label:hover svg,
.star-picker label:hover ~ label svg { color: var(--accent); }

.trust-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    margin-top: 10px;
}
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
}
.trust-item svg { width: 26px; height: 26px; color: var(--teal); margin-bottom: 10px; }
.trust-item h3 { margin-bottom: 4px; font-size: 16px; }
.trust-item p { font-size: 13.5px; margin: 0; }

/* ---------- Stat cards (dashboard admin & akun) ---------- */
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-bottom: 28px; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--teal); }
.stat-label { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }
.tabel-analitik { min-width: 0; }
.tabel-analitik td:last-child, .tabel-analitik th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tabel-analitik td:first-child { color: var(--ink-muted); }
.tabel-analitik td:last-child { font-weight: 700; color: var(--ink); }

/* ---------- Profile page ---------- */
.profile-header {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.profile-photo {
    width: 84px; height: 84px; border-radius: 18px; object-fit: cover; background: var(--surface-sunken);
}
.profile-photo-placeholder {
    width: 84px; height: 84px; border-radius: 18px; background: var(--teal-soft);
    display: flex; align-items: center; justify-content: center; color: var(--teal);
}
.profile-meta { display: flex; flex-direction: column; gap: 6px; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.photo-strip img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; cursor: zoom-in; transition: opacity 0.15s; }
.photo-strip img:hover { opacity: 0.85; }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(20, 26, 24, 0.92);
    display: none; align-items: center; justify-content: center;
    z-index: 200; padding: 20px;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none;
    border-radius: 999px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.24); }
.lightbox-close { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 22px; line-height: 1; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 30px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 13px; font-weight: 600; background: rgba(255,255,255,0.12);
    padding: 5px 14px; border-radius: 999px;
}
@media (max-width: 640px) {
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 24px; }
}

.review-item {
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.review-item:last-child { border-bottom: none; }
.review-stars { display: flex; gap: 3px; margin-bottom: 6px; }
.review-stars svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- Table (admin) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--border); }
th { font-family: var(--font-display); font-weight: 700; color: var(--ink-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
tr:last-child td { border-bottom: none; }
.table-actions { display: flex; flex-direction: column; gap: 8px; min-width: 260px; }
.action-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.action-more { position: relative; }
.action-more summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    width: fit-content;
}
.action-more summary::-webkit-details-marker { display: none; }
.action-more-panel {
    position: absolute; z-index: 20; top: calc(100% + 6px); left: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop); padding: 8px; display: flex; flex-direction: column; gap: 6px;
    min-width: 190px;
}

/* ---------- Legal pages content typography ---------- */
.panel h2 { font-size: 19px; margin: 28px 0 10px; }
.panel h2:first-child { margin-top: 0; }
.panel ul { margin: 0 0 14px; padding-left: 22px; color: var(--ink-muted); }
.panel ul li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 40px;
    color: var(--ink-muted);
    font-size: 13.5px;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer-social { display: flex; gap: 10px; }
.footer-social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border);
    color: var(--ink-muted); transition: all 0.15s;
}
.footer-social-link:hover { color: var(--teal); border-color: var(--teal); }
.footer-social-link svg { width: 17px; height: 17px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; }
.footer-legal a { color: var(--ink-muted); }
.footer-legal a:hover { color: var(--teal); text-decoration: underline; }
.footer-legal span { color: var(--border); }

/* ---------- Admin login ---------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-box { width: 100%; max-width: 380px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
