:root {
  --primary: #16a34a;
  --primary-light: #22c55e;
  --primary-bg: #f0fdf4;
  --primary-dark: #15803d;
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
}

body {
  background-color: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== LANDING PAGE ===== */
#landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

/* --- Navbar --- */
#landing-page nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 80px 60px;
  background: url('https://i.pinimg.com/1200x/27/8c/b9/278cb97d8c12cf3271f75ec432ed322d.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.85) 40%,
      rgba(255, 255, 255, 0.4) 75%,
      rgba(255, 255, 255, 0.1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.tag-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
}

.hero h1 {
  font-size: 48px;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.btn-explore {
  background: var(--primary);
  color: var(--white);
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-explore:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  padding: 14px 32px;
  border: 2px solid var(--primary-light);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--white);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  padding: 20px 28px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  display: inline-flex;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

.stat-item span {
  font-size: 13px;
  color: var(--text-body);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* --- Categories Section --- */
.categories-section {
  padding: 80px 60px;
  background: var(--bg-light);
  text-align: center;
}

.categories-section h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-body);
  font-size: 16px;
  margin-bottom: 40px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.cat-item {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.cat-item:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.1);
}

.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.cat-kuliner {
  background: #fef3c7;
  color: #d97706;
}

.cat-destinasi {
  background: #dcfce7;
  color: #16a34a;
}

.cat-event {
  background: #dbeafe;
  color: #2563eb;
}

.cat-berita {
  background: #ede9fe;
  color: #7c3aed;
}

.cat-item strong {
  font-size: 15px;
  color: var(--text-dark);
}

.cat-item span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Footer */
.landing-footer {
  padding: 24px 60px;
  text-align: center;
  border-top: 1px solid var(--border-light);
  background: var(--white);
}

.landing-footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* MAIN APP STYLE */
#main-app {
  display: none;
  /* Hidden by default */
  background-color: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background-color: var(--white);
  border-right: 1px solid var(--border);
  height: 100vh;
  position: fixed;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 20px;
  font-weight: bold;
}

.sidebar-menu {
  padding: 20px 10px;
  list-style: none;
  flex: 1;
}

.sidebar-menu button {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  background: none;
  border-radius: 10px;
  margin-bottom: 5px;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: 0.2s;
}

.sidebar-menu button:hover {
  background-color: var(--bg-light);
  color: var(--primary);
}

.sidebar-menu button.active {
  background-color: var(--primary);
  color: var(--white);
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-content {
  margin-left: 260px;
  width: calc(100% - 260px);
}

header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 15px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.search-box {
  position: relative;
  width: 400px;
}

.search-box input {
  width: 100%;
  padding: 10px 20px;
  background-color: #f1f5f9;
  border: 2px solid transparent;
  border-radius: 20px;
  outline: none;
  transition: 0.3s;
}

.search-box input:focus {
  background-color: white;
  border-color: var(--primary);
}

.location-badge {
  color: var(--primary);
  font-weight: bold;
  font-size: 14px;
}

.content-body {
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== FILTER COUNTER ===== */
.filter-counter {
  max-width: 1000px;
  margin: 24px auto 0;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 28px;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.filter-counter.counter-fade {
  animation: fadeSlideIn 0.25s ease forwards;
}

.counter-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  line-height: 1;
}

.counter-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
}

.counter-divider {
  font-size: 14px;
  color: var(--text-muted);
}

.counter-cat {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
}

.card-img {
  height: 260px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.card-tags {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
}

.card-tag {
  background: #15803d; /* dark green */
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
}

.tag-rating {
  background: var(--white);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #0f172a;
  font-weight: 700;
}

.card-loc {
  font-size: 16px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.card-loc svg {
  color: #94a3b8;
}

.card p {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
}

.btn-detail-text {
  color: #16a34a; /* primary green */
  font-weight: 600;
  font-size: 15px;
}

.empty-state {
  text-align: center;
  padding: 100px 0;
  color: var(--text-muted);
}

/* ===== DETAIL MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
}

.modal-card {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-body);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
  background: var(--white);
  transform: scale(1.1);
}

.modal-img-container {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--primary);
}

/* Warna modal tag per kategori */
.modal-tag-kuliner  { background: #d97706; }
.modal-tag-destinasi{ background: #16a34a; }
.modal-tag-event    { background: #2563eb; }
.modal-tag-berita   { background: #7c3aed; }

.modal-body {
  padding: 28px;
}

/* Tanggal publikasi di modal */
.modal-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #7c3aed;
  background: #f5f3ff;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.modal-location {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--primary-bg);
  border-radius: 12px;
  margin-bottom: 16px;
}

.modal-loc-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.modal-location strong {
  display: block;
  font-size: 14px;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.modal-location p {
  font-size: 13px;
  color: var(--text-body);
  margin: 0;
}

.modal-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 24px;
}

.btn-maps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-maps:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
}

/* Tombol khusus Berita — warna ungu */
.btn-maps.btn-berita {
  background: #7c3aed;
}

.btn-maps.btn-berita:hover {
  background: #6d28d9;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.maps-icon {
  font-size: 20px;
}

.maps-arrow {
  font-size: 16px;
  opacity: 0.7;
}

/* ===== HAMBURGER BUTTON (sembunyikan di desktop) ===== */
.hamburger-btn {
  display: none;
}

/* ===== SIDEBAR OVERLAY (sembunyikan di desktop) ===== */
.sidebar-overlay {
  display: none;
}

@media (max-width: 768px) {
  #landing-page nav {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 60px 24px;
    min-height: 400px;
  }

  .hero-overlay {
    background: rgba(255, 255, 255, 0.88);
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 15px;
    max-width: 100%;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .btn-explore,
  .btn-outline {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    gap: 16px;
    padding: 16px 20px;
  }

  .stat-item strong {
    font-size: 22px;
  }

  .categories-section {
    padding: 40px 20px;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* ===== HAMBURGER BUTTON ===== */
  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    transition: background 0.2s;
    order: -1;
  }

  .hamburger-btn:hover {
    background: var(--bg-light);
  }

  .hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  /* Animasi hamburger → X saat sidebar terbuka */
  .hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ===== SIDEBAR MOBILE ===== */
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 200;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  /* ===== OVERLAY ===== */
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  /* Content penuh karena sidebar sudah overlay */
  .main-content {
    margin-left: 0;
    width: 100%;
  }

  header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .search-box {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  .location-badge {
    display: none;
  }
}