/* ============================================================
   JelajahMadiun — Main Stylesheet (All-in-One)
   
   Struktur:
   1. Tokens / Variables
   2. Reset & Base
   3. Layout (Container, Grid, Section)
   4. Navbar
   5. Hero
   6. Components (Cards, Buttons, Badges)
   7. Footer
   8. Halaman Wisata (Filter, Search, Grid)
   9. Halaman Detail
   10. Utilities & Animations
   11. Responsive (Mobile-first breakpoints)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ============================================================
   1. TOKENS / VARIABLES
   ============================================================ */
:root {
  /* Brand */
  --primary:         #0d9488;
  --primary-dark:    #0f766e;
  --primary-darker:  #115e59;
  --primary-light:   #ccfbf1;
  --primary-xlight:  #f0fdfa;

  /* Accent */
  --accent:          #f59e0b;

  /* Surfaces (light theme) */
  --bg:              #f8fafc;
  --surface:         #ffffff;
  --surface-2:       #f1f5f9;
  --surface-3:       #e2e8f0;

  /* Borders */
  --border:          #e2e8f0;
  --border-mid:      #cbd5e1;

  /* Text */
  --text:            #0f172a;
  --text-sub:        #475569;
  --text-muted:      #94a3b8;

  /* Typography */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;

  /* Radius */
  --r-sm: 6px;   --r-md: 12px;  --r-lg: 20px;
  --r-xl: 28px;  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(15,23,42,0.08);
  --shadow-md:   0 4px 16px rgba(15,23,42,0.10);
  --shadow-lg:   0 8px 32px rgba(15,23,42,0.12);
  --shadow-xl:   0 16px 48px rgba(15,23,42,0.15);
  --shadow-teal: 0 8px 24px rgba(13,148,136,0.28);

  /* Glass */
  --glass: rgba(255,255,255,0.9);
  --blur:  blur(16px);

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-base:   0.25s ease;
  --t-spring: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-sticky:  100;
  --z-overlay: 300;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--primary-dark); }

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

ul, ol { list-style: none; }

button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* Focus ring — accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================================
   3. LAYOUT — Container, Grid, Section
   ============================================================ */

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Sections */
.section          { padding-block: var(--space-20); }
.section--sm      { padding-block: var(--space-12); }
.section--lg      { padding-block: 6rem; }
.bg-surface       { background: var(--surface); }

/* Section header */
.section-header   { text-align: center; margin-bottom: var(--space-12); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-xlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--r-full);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-3);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.7;
}

/* Grids */
.grid   { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Text helpers */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-sub     { color: var(--text-sub); }
.text-primary { color: var(--primary); }

/* Spacing helpers */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }

.main-content { min-height: calc(100vh - 300px); }


/* ============================================================
   4. NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-base);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.navbar-brand:hover { color: var(--primary); }

.navbar-brand-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

/* Desktop nav links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-sub);
  text-decoration: none;
  transition: all var(--t-fast);
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-xlight);
}

/* Mobile toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--r-sm);
}
.nav-toggle:hover { background: var(--surface-2); }

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t-base);
}

/* Mobile drawer */
.nav-drawer { display: none; position: fixed; inset: 0; z-index: var(--z-overlay); }
.nav-drawer.open { display: block; }

.nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
}

.nav-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--surface);
  padding: var(--space-6);
  overflow-y: auto;
  animation: slideInRight 0.3s cubic-bezier(0.34,1.1,0.64,1);
  box-shadow: -8px 0 40px rgba(15,23,42,0.15);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.nav-drawer-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: var(--surface-2);
  border-radius: var(--r-full);
  cursor: pointer;
  color: var(--text-sub);
}

.nav-drawer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  margin-bottom: var(--space-8);
  margin-top: var(--space-2);
}

.nav-drawer-links { display: flex; flex-direction: column; gap: var(--space-1); }

.nav-drawer-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-md);
  color: var(--text-sub);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--t-fast);
}
.nav-drawer-link:hover { background: var(--primary-xlight); color: var(--primary); }

.nav-drawer-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: var(--space-4) var(--space-4) var(--space-2);
}

/* Nav item wrapper (for potential dropdowns) */
.nav-item { position: relative; }


/* ============================================================
   5. HERO — Full-bleed editorial dengan foto nyata
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a1628;
}

/* Background image */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Gradient overlay agar teks terbaca */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  rgba(5,12,30,0.95) 0%, rgba(5,12,30,0.5) 50%, transparent 80%),
    linear-gradient(to right, rgba(5,12,30,0.4) 0%, transparent 65%);
  z-index: 1;
}

/* Content wrapper */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 5rem;
  width: 100%;
}

/* Eyebrow badge */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  backdrop-filter: blur(12px);
}

/* Big headline */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-5);
  max-width: 660px;
}
.hero-title em {
  font-style: normal;
  color: #6ee7b7; /* teal green accent */
}

/* Subtitle */
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: var(--space-8);
  line-height: 1.7;
  max-width: 480px;
}

/* CTA buttons */
.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--r-full);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--primary);
  transition: all var(--t-base);
  box-shadow: 0 4px 20px rgba(13,148,136,0.45);
}
.btn-hero-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13,148,136,0.5);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--r-full);
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all var(--t-base);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  transform: translateY(-2px);
}

/* Stats bar (glassmorphism) */
.hero-stats {
  display: flex;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  overflow: hidden;
  width: fit-content;
}

.hero-stat {
  text-align: center;
  padding: var(--space-4) var(--space-6);
  border-right: 1px solid rgba(255,255,255,0.1);
}
.hero-stat:last-child { border-right: none; }

.hero-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #6ee7b7;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  margin-top: var(--space-1);
  display: block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* ============================================================
   6. COMPONENTS
   ============================================================ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.65rem 1.4rem;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t-base);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow-teal);
  transform: translateY(-1px);
}

.btn-outline { background: transparent; border-color: var(--border-mid); color: var(--text-sub); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-xlight); }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* ── Category Cards (Photo Background) ── */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  height: 260px;
  padding: var(--space-5);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: #fff;
  transition: transform var(--t-spring), box-shadow var(--t-spring);
  cursor: pointer;
  overflow: hidden;
  background: #0f172a;
}
.cat-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.75;
}
.cat-card:hover .cat-card-bg {
  transform: scale(1.08);
  opacity: 0.85;
}
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.3) 60%, transparent 100%);
  z-index: 1;
}
.cat-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.cat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: #fff;
  transition: all var(--t-base);
}
.cat-card-icon svg { width: 20px; height: 20px; }
.cat-card:hover .cat-card-icon {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}
.cat-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.cat-card-count {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  display: block;
}

/* ── Photo Cards (Destinasi Unggulan — 1 per kategori) ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.photo-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--t-spring), box-shadow var(--t-spring);
  background: #111;
}
.photo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.photo-card-link { display: block; text-decoration: none; color: inherit; }

.photo-card-img {
  position: relative;
  height: 400px;
  overflow: hidden;
}
.photo-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.photo-card:hover .photo-card-img img { transform: scale(1.07); }

.photo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,12,30,0.92) 0%,
    rgba(5,12,30,0.4) 50%,
    transparent 75%
  );
}

.photo-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 3px 10px;
  background: var(--badge-color, var(--primary));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.photo-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-5);
  z-index: 2;
}

.photo-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-2);
  line-height: 1.25;
}

.photo-card-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.photo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.photo-card-hours {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

.photo-card-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6ee7b7;
  transition: letter-spacing var(--t-fast);
}
.photo-card:hover .photo-card-cta { letter-spacing: 0.04em; }

/* ── Destination Cards (Halaman Wisata) ── */
.dest-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t-spring);
  text-decoration: none;
  color: inherit;
}
.dest-card:hover {
  border-color: rgba(13,148,136,0.35);
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.dest-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--surface-3);
  flex-shrink: 0;
}
.dest-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.dest-card:hover .dest-card-img img { transform: scale(1.07); }

.dest-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 3px 10px;
  background: rgba(10,15,30,0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--r-full);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
}

.dest-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.dest-card-title { font-size: 1rem; font-weight: 800; margin-bottom: var(--space-2); line-height: 1.3; }
.dest-card-desc {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.dest-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.dest-card-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.dest-card-meta svg { width: 13px; height: 13px; }

.dest-card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  transition: gap var(--t-fast);
}
.dest-card-link:hover { gap: 6px; color: var(--primary-dark); }
.dest-card-link svg { width: 13px; height: 13px; }

/* ── Feature Cards (Why Madiun) ── */
.feature-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: all var(--t-base);
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  width: 60px; height: 60px;
  border-radius: var(--r-lg);
  background: var(--primary-xlight);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--primary);
  transition: all var(--t-base);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card:hover .feature-icon { background: var(--primary); color: #fff; }

.feature-title { font-size: 1.05rem; font-weight: 800; margin-bottom: var(--space-3); }
.feature-desc  { font-size: 0.875rem; color: var(--text-sub); line-height: 1.7; }

/* ── FAQ Accordion ── */
.faq-list { max-width: 760px; margin-inline: auto; }

.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item.open { border-color: var(--primary); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  gap: var(--space-4);
  user-select: none;
  color: var(--text);
}
.faq-item.open .faq-q { color: var(--primary); }

.faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-base);
}
.faq-icon svg { width: 12px; height: 12px; color: var(--text-sub); }
.faq-item.open .faq-icon { background: var(--primary); transform: rotate(45deg); }
.faq-item.open .faq-icon svg { color: #fff; }

.faq-a {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
  border-radius: var(--r-xl);
  padding: var(--space-12);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: var(--space-3); }
.cta-banner p  { color: rgba(255,255,255,0.8); margin-bottom: var(--space-6); }

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-teal);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all var(--t-base);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ── Loading Skeleton ── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--r-sm);
}

/* ── Empty State ── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-20) var(--space-8);
  color: var(--text-muted);
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto var(--space-4); opacity: 0.4; }
.empty-state h3  { font-size: 1.1rem; color: var(--text-sub); margin-bottom: var(--space-2); }

/* ── Page Header (halaman dalam) ── */
.page-header {
  background: linear-gradient(135deg, #0a4f4a 0%, #0f766e 100%);
  padding: var(--space-12) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header h1 { color: #fff; font-size: clamp(1.75rem,4vw,2.5rem); margin-bottom: var(--space-3); }
.page-header p  { color: rgba(255,255,255,0.8); font-size: 1rem; max-width: 520px; }

/* ── Search Bar (Hero) ── */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.97);
  border-radius: var(--r-full);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  max-width: 540px;
  margin-inline: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  gap: var(--space-2);
}
.search-bar input {
  flex: 1;
  border: none; outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.search-bar input::placeholder { color: var(--text-muted); }

/* ── Search Box (halaman wisata) ── */
.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  gap: var(--space-2);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}
.search-input {
  flex: 1;
  border: none; outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text);
}
.search-input::placeholder { color: var(--text-muted); }

/* ── Filter Pills ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.pill:hover,
.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Sticky Filter Bar ── */
.filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
  position: sticky;
  top: 64px;
  z-index: 90;
  box-shadow: 0 1px 4px rgba(15,23,42,0.06);
}
.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── Detail Page ── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-8);
  align-items: start;
}
.detail-cover {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--r-xl);
  display: block;
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-lg);
}
.detail-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}
.detail-card-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}
.info-value { font-size: 0.95rem; font-weight: 700; color: var(--text); }

.facility-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--primary-xlight);
  color: var(--primary-dark);
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 600;
}


/* ============================================================
   7. FOOTER
   ============================================================ */
.footer {
  background: #0d1b2a;
  color: #6b7a8d;
  padding-top: 4rem;
  padding-bottom: 1.5rem;
  margin-top: var(--space-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid #1e2d3d;
}

.footer-brand-name { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: var(--space-3); }
.footer-brand-icon { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; margin-bottom: var(--space-3); }

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: var(--space-5);
  max-width: 280px;
}

.footer-social { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.footer-social-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: #1a2a3a;
  display: flex; align-items: center; justify-content: center;
  color: #6b7a8d;
  text-decoration: none;
  transition: all var(--t-fast);
  border: 1px solid #1e2d3d;
}
.footer-social-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-social-btn svg { width: 16px; height: 16px; }

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a {
  font-size: 0.875rem;
  color: #6b7a8d;
  text-decoration: none;
  transition: all var(--t-fast);
}
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.85rem;
  margin-bottom: var(--space-4);
  line-height: 1.5;
}
.footer-contact-item svg {
  width: 16px; height: 16px;
  margin-top: 2px;
  color: var(--primary);
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: #4a5a6a;
}
.footer-bottom a { color: #4a5a6a; text-decoration: none; transition: color var(--t-fast); }
.footer-bottom a:hover { color: var(--primary); }


/* ============================================================
   8. HALAMAN WISATA — Filter, Search, Grid
   ============================================================ */
/* (Filter bar, search box, pills sudah di-cover di bagian 6) */

/* Result count */
#result-count-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}


/* ============================================================
   9. HALAMAN DETAIL WISATA
   ============================================================ */
/* (Sudah di-cover di bagian 6 .detail-*) */

/* Breadcrumb */
.page-header-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-4);
}
.page-header-breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.page-header-breadcrumb a:hover { color: #fff; }


/* ============================================================
   10. UTILITIES & ANIMATIONS
   ============================================================ */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-2        { gap: var(--space-2); }
.gap-3        { gap: var(--space-3); }
.gap-4        { gap: var(--space-4); }
.gap-6        { gap: var(--space-6); }

/* Fade in on scroll (opsional — tidak ada JS dependency) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   11. RESPONSIVE — Mobile-first breakpoints
   ============================================================ */

/* Large desktop (≥1400px) */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

/* Tablet landscape (≤1199px) */
@media (max-width: 1199px) {
  .grid-4    { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .detail-layout { grid-template-columns: 1fr 300px; }
}

/* Tablet portrait (≤991px) */
@media (max-width: 991px) {
  .grid-3     { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-card-img { height: 320px; }
  .hero       { min-height: 80vh; }
  .hero-title { font-size: 2.6rem; }
  .hero-stats { flex-wrap: wrap; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-cover  { height: 320px; }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
  /* Grids jadi 1 kolom */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .photo-card-img { height: 260px; }

  /* Navbar mobile */
  .navbar-nav { display: none; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-content { padding: 7rem 0 3rem; }
  .hero-title { font-size: 2rem; max-width: 100%; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-stats { flex-wrap: wrap; border-radius: var(--r-md); }
  .hero-stat  { padding: var(--space-3) var(--space-4); }
  .hero-stat-num { font-size: 1.4rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-hero-primary,
  .btn-hero-outline { width: 100%; max-width: 280px; justify-content: center; }

  /* Sections */
  .section { padding-block: var(--space-12); }
  .section-title { font-size: 1.65rem; }
  .section-header { margin-bottom: var(--space-8); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer      { padding-top: var(--space-12); }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Misc */
  .page-header { padding: var(--space-8) 0 var(--space-12); }
  .filter-bar-inner { gap: var(--space-3); }
  .filter-bar-inner > *:first-child { width: 100%; }
  .detail-cover { height: 240px; border-radius: var(--r-md); }
  .dest-card-img { height: 180px; }
  .cta-banner { padding: var(--space-8) var(--space-6); border-radius: var(--r-lg); }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  .container,
  .container--narrow { padding-inline: var(--space-4); }
  .hero-title  { font-size: 1.75rem; }
  .photo-grid  { grid-template-columns: 1fr; }
  .photo-card-img { height: 300px; }
  .cat-card    { padding: var(--space-6) var(--space-5); }
  .cat-card-icon { width: 56px; height: 56px; }
}
