:root {
  --hijau: #1a6b4a;
  --hijau-muda: #2d8f63;
  --emas: #c9a84c;
  --emas-muda: #f0d080;
  --gelap: #0f1f17;
  --teks: #1a2e22;
  --abu: #f4f7f5;
  --putih: #ffffff;
  --shadow: 0 4px 24px rgba(26,107,74,0.10);
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--abu); color: var(--teks); }

header { background: var(--gelap); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 16px rgba(0,0,0,0.3); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--emas); text-decoration: none; }
.logo span { color: white; }
nav { display: flex; gap: 8px; }
nav a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem; font-weight: 500; padding: 6px 12px; border-radius: 20px; transition: all 0.2s; }
nav a:hover, nav a.active { color: var(--emas); background: rgba(255,255,255,0.08); }

.page-header { background: linear-gradient(135deg, var(--gelap), #1a3d2a); padding: 40px 24px; color: white; }
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.breadcrumb a { color: var(--emas); text-decoration: none; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: 2rem; }
.page-header p { color: rgba(255,255,255,0.7); margin-top: 8px; }

.ads-banner { background: linear-gradient(135deg, #1a6b4a, #0f3d26); color: white; padding: 16px 24px; text-align: center; border-bottom: 3px solid var(--emas); }
.ads-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ads-icon { font-size: 2rem; }
.ads-text h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--emas); }
.ads-text p { font-size: 0.85rem; opacity: 0.85; }
.ads-btn { background: var(--emas); color: var(--gelap); padding: 8px 20px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.88rem; white-space: nowrap; display: inline-block; transition: all 0.2s; }
.ads-btn:hover { background: #f0d080; }

.main-layout { max-width: 1200px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }
.filter-box { background: var(--putih); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.filter-box h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 14px; color: var(--hijau); text-transform: uppercase; letter-spacing: 0.5px; }
.filter-box input[type=text] { width: 100%; padding: 10px 14px; border: 1.5px solid #e0e0e0; border-radius: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; outline: none; transition: border 0.2s; }
.filter-box input[type=text]:focus { border-color: var(--hijau); }

.rating-btns, .bintang-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { padding: 6px 14px; border-radius: 20px; border: 1.5px solid #ddd; background: white; cursor: pointer; font-size: 0.85rem; font-family: 'Plus Jakarta Sans', sans-serif; transition: all 0.2s; font-weight: 500; }
.filter-btn.active, .filter-btn:hover { background: var(--hijau); color: white; border-color: var(--hijau); }
.filter-btn.emas.active, .filter-btn.emas:hover { background: var(--emas); color: var(--gelap); border-color: var(--emas); }

.harga-labels { display: flex; justify-content: space-between; font-size: 0.8rem; color: #666; margin-bottom: 8px; }
input[type=range] { width: 100%; accent-color: var(--hijau); cursor: pointer; }
.harga-val { text-align: center; font-weight: 700; color: var(--hijau); font-size: 0.88rem; margin-top: 8px; }

.fas-list { display: flex; flex-direction: column; gap: 8px; }
.fas-item { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.88rem; }
.fas-item input { accent-color: var(--hijau); width: 16px; height: 16px; cursor: pointer; }

.reset-btn { width: 100%; padding: 10px; border-radius: 10px; border: 1.5px solid #ddd; background: white; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.88rem; font-weight: 600; color: #666; transition: all 0.2s; }
.reset-btn:hover { border-color: var(--hijau); color: var(--hijau); }

.ads-sidebar { background: var(--putih); border-radius: 16px; padding: 20px; border: 2px solid var(--emas); text-align: center; box-shadow: var(--shadow); }
.ads-sidebar .icon { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.ads-sidebar h4 { font-family: 'Playfair Display', serif; color: var(--hijau); font-size: 1rem; margin-bottom: 6px; }
.ads-sidebar p { font-size: 0.82rem; color: #555; margin-bottom: 12px; line-height: 1.5; }
.wa-btn { background: #25D366; color: white; padding: 10px 20px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.88rem; display: inline-block; transition: all 0.2s; }
.wa-btn:hover { background: #1da851; }

.list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.list-count { font-size: 0.9rem; color: #666; }
.list-count strong { color: var(--teks); }
.sort-select { padding: 8px 14px; border: 1.5px solid #ddd; border-radius: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.88rem; outline: none; cursor: pointer; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--putih); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.25s; cursor: pointer;
  border: 2px solid transparent;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(26,107,74,0.18); border-color: var(--hijau); }
.card-img { height: 160px; overflow: hidden; background: linear-gradient(135deg, #e8f5ee, #d0ead9); display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-badge { position: absolute; top: 10px; left: 10px; background: var(--hijau); color: white; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.card-body { padding: 14px; }
.card-nama { font-weight: 700; font-size: 0.93rem; margin-bottom: 6px; line-height: 1.3; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rating-badge { background: var(--hijau); color: white; padding: 2px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }
.card-sub { font-size: 0.78rem; color: #888; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.tag { background: var(--abu); color: #555; font-size: 0.72rem; padding: 2px 8px; border-radius: 6px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.page-btn { padding: 8px 14px; border-radius: 8px; border: 1.5px solid #ddd; background: white; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.88rem; transition: all 0.2s; }
.page-btn.active, .page-btn:hover { background: var(--hijau); color: white; border-color: var(--hijau); }

.no-result { text-align: center; padding: 60px 20px; color: #888; grid-column: 1/-1; }
.no-result .icon { font-size: 3rem; margin-bottom: 12px; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; overflow-y: auto; padding: 20px; }
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.modal { background: white; border-radius: 20px; max-width: 700px; width: 100%; margin: auto; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-imgs { height: 260px; overflow: hidden; background: #e8f5ee; display: flex; align-items: center; justify-content: center; font-size: 4rem; position: relative; }
.modal-imgs img { width: 100%; height: 100%; object-fit: cover; }
.img-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.img-nav.prev { left: 12px; }
.img-nav.next { right: 12px; }
.img-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.6); color: white; padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; }
.modal-body { padding: 24px; }
.modal-close { float: right; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #888; margin-left: 12px; }
.modal-nama { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 8px; padding-right: 40px; line-height: 1.3; }
.modal-meta { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.meta-badge { padding: 4px 12px; border-radius: 8px; font-weight: 700; font-size: 0.85rem; }
.meta-green { background: var(--hijau); color: white; }
.meta-light { background: var(--abu); color: var(--teks); }
.modal-section { margin-bottom: 14px; }
.modal-section h4 { font-size: 0.82rem; font-weight: 700; color: var(--hijau); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.modal-section p { font-size: 0.88rem; color: #444; line-height: 1.6; }
.info-row { display: flex; gap: 8px; margin-bottom: 6px; font-size: 0.88rem; align-items: flex-start; }
.info-icon { width: 20px; flex-shrink: 0; }
.fas-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.fas-pill { background: var(--abu); color: #444; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn-green { background: var(--hijau); color: white; padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; }
.btn-green:hover { background: var(--hijau-muda); }
.btn-light { background: var(--abu); color: var(--teks); padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; }
.btn-wa { background: #25D366; color: white; padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; }
.btn-wa:hover { background: #1da851; }

footer { background: var(--gelap); color: rgba(255,255,255,0.6); text-align: center; padding: 24px; font-size: 0.85rem; margin-top: 40px; }
footer strong { color: var(--emas); }

@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  nav { display: none; }
}
