*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: #f1f5f9;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  max-width: 160px;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

header nav a {
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: var(--radius-full);
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

header nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(150deg, #f0fdf4 0%, #FBF7EE 50%, #e8f5e3 100%);
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -15%;
  width: 560px;
  height: 560px;
  background: rgba(27,94,74,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -45%;
  left: -8%;
  width: 380px;
  height: 380px;
  background: rgba(198,69,43,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27,94,74,0.09);
  border: 1px solid rgba(27,94,74,0.18);
  color: #1B5E4A;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.hero-logo {
  width: min(560px, 88vw);
  height: auto;
  display: block;
  margin: 0 auto 28px;
  filter: drop-shadow(0 2px 12px rgba(27,94,74,0.12));
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #5A5347;
  margin: 0 0 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-white {
  background: #1B5E4A !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(27,94,74,0.30) !important;
}

.btn-white:hover {
  background: #155c3f !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(27,94,74,0.38) !important;
  color: #ffffff !important;
  text-decoration: none;
}

.btn-glass {
  background: transparent !important;
  color: #1B5E4A !important;
  border: 2px solid #1B5E4A !important;
  box-shadow: none !important;
}

.btn-glass:hover {
  background: rgba(27,94,74,0.08) !important;
  transform: translateY(-2px);
  text-decoration: none;
  color: #1B5E4A !important;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  max-width: 1100px;
  margin: -40px auto 0;
  padding: 0 24px 56px;
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 14px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px 20px;
  text-align: center;
  text-decoration: none !important;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
  display: block;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
  color: var(--primary);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  line-height: 1;
}

.feature-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.feature-card p {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 36px auto;
  padding: 32px 28px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ===== PAGE HEADER ===== */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.2;
}

.page-intro {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.97rem;
  max-width: 600px;
  line-height: 1.65;
}

/* ===== SECTION CARDS ===== */
section.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

section.card:last-child {
  margin-bottom: 0;
}

section.card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}

/* ===== PROMO CARDS (Hotel / Kuliner dll.) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

article.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

article.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.promo-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
}

.promo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

article.card:hover .promo-card-image img {
  transform: scale(1.06);
}

.promo-card-content {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.promo-card-content h2 {
  font-size: 0.97rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
  line-height: 1.35;
}

.promo-card-content .subtitle {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
  display: inline-block;
  padding: 3px 11px;
  border-radius: var(--radius-full);
  margin: 0 0 4px;
  width: fit-content;
}

.promo-card-content p {
  font-size: 0.83rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.55;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='date'],
input[type='number'],
input[type='file'],
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

input[type='file'] {
  padding: 8px 12px;
  cursor: pointer;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

/* ===== BUTTONS ===== */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.22);
  line-height: 1.4;
}

button:hover, .btn:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
  box-shadow: 0 5px 18px rgba(37, 99, 235, 0.28);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: var(--surface) !important;
  color: var(--text-2) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
}

.btn-secondary:hover {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border-color: var(--primary-border) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12) !important;
}

.btn-danger {
  background: var(--danger) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.22) !important;
}

.btn-danger:hover {
  background: #b91c1c !important;
  box-shadow: 0 5px 18px rgba(220, 38, 38, 0.28) !important;
}

.btn-success {
  background: var(--success) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.22) !important;
}

.btn-success:hover {
  background: #15803d !important;
}

/* ===== ALERTS ===== */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success {
  color: #065f46;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.alert-error {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.alert-info {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

/* ===== TABLE ===== */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
  font-size: 0.88rem;
}

thead {
  background: #f1f5f9;
}

th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 13px 16px;
  text-align: left;
  color: var(--text-2);
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #f8fafc;
}

/* ===== STATUS BADGES ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: #dcfce7;
  color: #15803d;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-info {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.badge-muted {
  background: #f1f5f9;
  color: #94a3b8;
}

/* ===== FOOTER ===== */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 36px 24px;
  margin-top: 60px;
}

footer .container {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-radius: 0;
}

.footer-brand {
  font-weight: 700;
  color: #e2e8f0;
  font-size: 0.95rem;
}

footer p {
  margin: 0;
  font-size: 0.82rem;
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card.stat-aktif .stat-number { color: var(--success); }
.stat-card.stat-selesai .stat-number { color: var(--muted); }

/* ===== INFO GRID (profil) ===== */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 0.9rem;
}

.info-row:last-child { border-bottom: none; }

.info-label {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ===== DYNAMIC FORM (hotel baris, anggota) ===== */
.dynamic-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
  background: var(--surface-2);
  position: relative;
}

.dynamic-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dynamic-section-header h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.btn-remove {
  background: transparent;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 4px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  box-shadow: none;
  cursor: pointer;
}

.btn-remove:hover {
  background: #fef2f2;
  transform: none;
  box-shadow: none;
  color: var(--danger);
}

.btn-add {
  background: var(--primary-light);
  color: var(--primary);
  border: 1.5px dashed var(--primary-border);
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: none;
  margin-top: 6px;
}

.btn-add:hover {
  background: #dbeafe;
  transform: none;
  box-shadow: none;
  color: var(--primary-dark);
}

/* ===== DETAIL PAGE ===== */
.detail-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.detail-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:nth-child(odd) { padding-right: 20px; }
.detail-row.full-width {
  grid-column: 1 / -1;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 3px;
}

.detail-value {
  font-size: 0.93rem;
  color: var(--text);
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

/* ===== PRINT STYLES (kartu registrasi) ===== */
@media print {
  header, footer, .no-print { display: none !important; }
  body { background: white; }
  .print-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
}

.print-card {
  max-width: 600px;
  margin: 40px auto;
  padding: 36px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.print-card-header {
  text-align: center;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.print-card-header h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.print-card-header p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.print-card-kode {
  text-align: center;
  margin: 20px 0;
}

.print-card-kode .kode-text {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid var(--border);
  padding: 10px 28px;
  border-radius: var(--radius-sm);
}

#qrcode {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

#qrcode canvas, #qrcode img {
  border-radius: 8px;
}

.print-card-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.print-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}

.print-row:last-child { border-bottom: none; }

.print-row-label {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.8rem;
}

.print-card-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* ===== WISATA PAGE ===== */

/* Mini hero */
.wisata-hero {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  padding: 56px 24px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.wisata-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 360px;
  height: 360px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.wisata-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.wisata-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.wisata-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  margin: 0;
}
.wisata-stats {
  display: inline-flex;
  gap: 20px;
  margin-top: 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 8px 22px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Filter tabs */
.wisata-filter-wrap {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.wisata-filter-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: #6ee7b7;
  background: #ecfdf5;
  color: #065f46;
}
.filter-btn.active {
  background: #065f46;
  color: white;
  border-color: #065f46;
}
.filter-count {
  background: rgba(255,255,255,0.25);
  color: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}
.filter-btn:not(.active) .filter-count {
  background: var(--surface-2);
  color: var(--muted);
}

/* Hasil & count bar */
.wisata-count-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px 0;
  font-size: 0.83rem;
  color: var(--muted);
}

/* Grid kartu */
.wisata-grid {
  max-width: 1200px;
  margin: 16px auto 48px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Kartu wisata */
.wisata-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--shadow-sm);
}
.wisata-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.wisata-card.hidden { display: none; }

/* Header kartu berwarna */
.wisata-card-header {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.wisata-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.10);
}
.wisata-emoji {
  font-size: 3rem;
  line-height: 1;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

/* Warna per sub-kategori */
.bg-desa    { background: linear-gradient(135deg, #16a34a, #0f766e); }
.bg-agro    { background: linear-gradient(135deg, #65a30d, #15803d); }
.bg-air     { background: linear-gradient(135deg, #0369a1, #0284c7); }
.bg-terjun  { background: linear-gradient(135deg, #0e7490, #0891b2); }
.bg-panas   { background: linear-gradient(135deg, #c2410c, #ea580c); }
.bg-gunung  { background: linear-gradient(135deg, #6d28d9, #7c3aed); }
.bg-budaya  { background: linear-gradient(135deg, #92400e, #b45309); }
.bg-default { background: linear-gradient(135deg, #475569, #64748b); }

/* Body kartu */
.wisata-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}
.wisata-cat-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  width: fit-content;
}
/* Badge warna per kategori */
.badge-desa    { background: #dcfce7; color: #15803d; }
.badge-agro    { background: #d9f99d; color: #4d7c0f; }
.badge-air     { background: #bae6fd; color: #0369a1; }
.badge-terjun  { background: #a5f3fc; color: #0e7490; }
.badge-panas   { background: #fed7aa; color: #c2410c; }
.badge-gunung  { background: #ede9fe; color: #6d28d9; }
.badge-budaya  { background: #fef3c7; color: #92400e; }

.wisata-card-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.35;
}
.wisata-lokasi {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.wisata-desc {
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wisata-highlights {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.wisata-highlights li {
  font-size: 0.76rem;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}
.wisata-highlights li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: #10b981;
  font-size: 0.6rem;
  top: 2px;
}

/* Empty state */
.wisata-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.wisata-empty .emoji { font-size: 3rem; margin-bottom: 12px; display: block; }

@media (max-width: 768px) {
  .wisata-hero { padding: 44px 20px 36px; }
  .wisata-filter-wrap { top: 0; }
  .wisata-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    padding: 0 14px;
  }
}

@media (max-width: 480px) {
  .wisata-grid { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeUp 0.45s ease both;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-inner {
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  header nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 2px;
  }

  header nav a {
    padding: 7px 11px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 72px 20px 56px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .features-section {
    margin-top: -24px;
    padding: 0 16px 40px;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .feature-card {
    padding: 18px 10px 14px;
  }

  .feature-icon {
    font-size: 1.6rem;
  }

  .container {
    margin: 14px;
    padding: 20px 16px;
    border-radius: 14px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== KULINER / EVENT / HOTEL HERO SECTIONS ===== */
.kuliner-hero {
  background: linear-gradient(135deg, #7c2d12 0%, #9a3412 50%, #c2410c 100%);
  padding: 56px 24px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.kuliner-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 360px;
  height: 360px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.event-hero {
  background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 50%, #6d28d9 100%);
  padding: 56px 24px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.event-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 360px;
  height: 360px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.hotel-hero {
  background: linear-gradient(135deg, #0f2d5e 0%, #1e3a8a 50%, #1d4ed8 100%);
  padding: 56px 24px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.hotel-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 360px;
  height: 360px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

/* Shared hero text styles (reuse .wisata-hero h1 + p) */
.kuliner-hero h1,
.event-hero h1,
.hotel-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.kuliner-hero p,
.event-hero p,
.hotel-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  margin: 0;
}

/* Card header gradients */
.bg-kuliner { background: linear-gradient(135deg, #b45309, #c2410c); }
.bg-event   { background: linear-gradient(135deg, #5b21b6, #7c3aed); }
.bg-hotel   { background: linear-gradient(135deg, #1d4ed8, #2563eb); }

/* Category badges */
.badge-kuliner { background: #ffedd5; color: #c2410c; }
.badge-event   { background: #ede9fe; color: #5b21b6; }
.badge-hotel   { background: #dbeafe; color: #1d4ed8; }

/* Filter button active colors per page type */
.kuliner-filters .filter-btn.active { background: #b45309; border-color: #b45309; }
.kuliner-filters .filter-btn:hover:not(.active) { border-color: #fcd34d; background: #fffbeb; color: #92400e; }
.event-filters .filter-btn.active   { background: #5b21b6; border-color: #5b21b6; }
.event-filters .filter-btn:hover:not(.active)   { border-color: #c4b5fd; background: #f5f3ff; color: #5b21b6; }
.hotel-filters .filter-btn.active   { background: #1e3a8a; border-color: #1e3a8a; }
.hotel-filters .filter-btn:hover:not(.active)   { border-color: #93c5fd; background: #eff6ff; color: #1e3a8a; }

/* Responsive */
@media (max-width: 768px) {
  .kuliner-hero,
  .event-hero,
  .hotel-hero { padding: 44px 20px 36px; }
}

/* ===== WISATA CARD — CLICKABLE LINK ===== */
.wisata-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.wisata-card-link.hidden {
  display: none;
}
.wisata-card-link .wisata-card {
  height: 100%;
  cursor: pointer;
}
.wisata-card-link:hover .wisata-card {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
/* Disable direct card hover (link wrapper handles it now) */
.wisata-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}
.wisata-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.82;
  transition: opacity 0.2s;
}
.wisata-card-link:hover .wisata-card-thumb {
  opacity: 0.95;
}
.wisata-view-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(0,0,0,0.55);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.18s;
  backdrop-filter: blur(4px);
}
.wisata-card-link:hover .wisata-view-btn {
  opacity: 1;
}
.wisata-card-cta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: #059669;
  display: block;
  transition: color 0.15s;
}
.wisata-card-link:hover .wisata-card-cta {
  color: #047857;
}

/* ===== WISATA DETAIL PAGE ===== */
.wd-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.wd-hero-photo {
  height: 420px;
}
.wd-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 36px 48px;
}
.wd-hero-nophoto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 24px 44px;
  text-align: center;
  min-height: 220px;
  color: white;
}
.wd-hero-emoji {
  font-size: 4rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.35));
}
.wd-hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: white;
  margin: 8px 0 6px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.wd-hero-loc {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  margin: 0;
}
.wd-main {
  background: var(--surface-2);
  min-height: 60vh;
}
.wd-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}
.wd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: color 0.15s, background 0.15s;
}
.wd-back:hover {
  color: var(--text);
  background: var(--surface-2);
}
.wd-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wd-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.wd-section-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.wd-desc {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-2);
  margin: 0;
}
.wd-highlights-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 20px 24px;
}
.wd-highlights-head {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #166534;
  margin-bottom: 14px;
}
.wd-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.wd-highlights-grid li {
  font-size: 0.88rem;
  color: #15803d;
  font-weight: 500;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.wd-highlights-grid li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 900;
  color: #16a34a;
}
.wd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.wd-gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4/3;
  background: var(--surface-2);
}
.wd-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.wd-gallery-item:hover img {
  transform: scale(1.06);
}
.wd-gallery-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(0,0,0,0.28);
  opacity: 0;
  transition: opacity 0.2s;
}
.wd-gallery-item:hover .wd-gallery-zoom {
  opacity: 1;
}
.wd-infobox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.wd-inforow {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  align-items: center;
}
.wd-inforow:last-child { border-bottom: none; }
.wd-infolabel {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wd-related .wd-section-heading {
  margin-bottom: 20px;
}
.wd-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.wd-rel-card {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.wd-rel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.wd-rel-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  position: relative;
  overflow: hidden;
}
.wd-rel-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wd-rel-info {
  padding: 10px 14px;
  flex: 1;
  min-width: 0;
}
.wd-rel-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 3px;
}
.wd-rel-loc {
  font-size: 0.73rem;
  color: var(--muted);
}
.wd-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.wd-lightbox.open {
  display: flex;
}
.wd-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.wd-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.wd-lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

@media (max-width: 640px) {
  .wd-hero-photo { height: 260px; }
  .wd-hero-overlay { padding: 20px 18px; }
  .wd-hero-nophoto { padding: 36px 18px 28px; min-height: 180px; }
  .wd-container { padding: 20px 14px 40px; }
  .wd-section { padding: 20px 16px; }
  .wd-gallery { grid-template-columns: repeat(2, 1fr); }
  .wd-highlights-grid { grid-template-columns: 1fr; }
  .wd-related-grid { grid-template-columns: 1fr; }
}
