/**
 * SafarPedia — permukaan & komponen luxury bersama (subpage + #directory)
 * Prinsip: satu hierarki navigasi, motion ringan, prefers-reduced-motion
 */
:root {
  --safar-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --safar-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --safar-gold: #c9a227;
  --safar-gold-mid: #d4af37;
  --safar-gold-light: #e8c547;
  --safar-ink: #1c1917;
  --safar-muted: #78716c;
  --safar-border: rgba(201, 162, 39, 0.22);
}

.safar-lux-bg {
  background: radial-gradient(120% 70% at 50% -12%, rgba(212, 175, 55, 0.09) 0%, transparent 50%),
    linear-gradient(180deg, #fffdf8 0%, #ffffff 48%, #fffbf0 100%);
  min-height: 100vh;
  min-height: 100dvh;
}

/* Hero gelap editorial (Doa, Destinasi, dll.) */
.safar-lux-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--safar-border);
  background: linear-gradient(135deg, #1c1917 0%, #292524 52%, #1c1917 100%);
  color: #fafaf9;
}
.safar-lux-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(212, 175, 55, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(232, 197, 71, 0.1) 0%, transparent 45%);
  pointer-events: none;
}
.safar-lux-hero-inner {
  position: relative;
  z-index: 1;
}
.safar-lux-eyebrow {
  margin: 0 0 0.75rem;
  font-family: "El Messiri", Georgia, serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--safar-gold-light);
}

/* Footer subpage */
.safar-lux-footer {
  border-top: 1px solid var(--safar-border);
  background: linear-gradient(180deg, #fffbf0, #fff8eb);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--safar-muted);
  line-height: 1.6;
}
.safar-lux-footer a {
  font-weight: 600;
  color: #92400e;
  text-decoration: none;
  transition: color 0.2s var(--safar-ease-out);
}
.safar-lux-footer a:hover {
  color: var(--safar-gold-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Pill filter (Doa, dll.) */
.safar-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s var(--safar-ease-out), box-shadow 0.22s var(--safar-ease-out), border-color 0.2s,
    background 0.2s, color 0.2s;
  touch-action: manipulation;
}
.safar-filter-pill:focus-visible {
  outline: 2px solid var(--safar-gold-mid);
  outline-offset: 2px;
}
.safar-filter-pill:active {
  transform: scale(0.97);
}
.safar-filter-pill.is-active {
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: linear-gradient(145deg, rgba(255, 252, 245, 0.98), rgba(255, 248, 230, 0.95));
  color: var(--safar-ink);
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.08), 0 0 0 1px rgba(212, 175, 55, 0.12);
}
.safar-filter-pill:not(.is-active) {
  border: 1px solid var(--safar-border);
  background: rgba(255, 255, 255, 0.92);
  color: #57534e;
}
.safar-filter-pill:not(.is-active):hover {
  border-color: rgba(212, 175, 55, 0.45);
  background: #fff;
  color: var(--safar-ink);
}

/* Kartu doa */
.safar-dua-details {
  border-radius: 1rem;
  border: 1px solid var(--safar-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 24px rgba(28, 25, 23, 0.05);
  transition: box-shadow 0.25s var(--safar-ease-out), border-color 0.2s var(--safar-ease-out);
}
.safar-dua-details[open] {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 12px 40px rgba(28, 25, 23, 0.08);
}
.safar-dua-details summary {
  transition: background 0.2s var(--safar-ease-out);
}
.safar-dua-details summary:hover {
  background: rgba(255, 251, 240, 0.65);
}

/* Destinasi — kartu */
.safar-dest-card {
  border-radius: 1rem;
  border: 1px solid var(--safar-border);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 24px rgba(28, 25, 23, 0.06);
  transition: transform 0.22s var(--safar-ease-out), box-shadow 0.25s var(--safar-ease-out);
}
.safar-dest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(28, 25, 23, 0.1);
}
.safar-dest-card:active {
  transform: translateY(-1px) scale(0.99);
}
@media (prefers-reduced-motion: reduce) {
  .safar-filter-pill,
  .safar-dest-card {
    transition: none;
  }
  .safar-dest-card:hover {
    transform: none;
  }
}

/* Beranda — blok direktori Paket: tab & judul */
#directory {
  scroll-margin-top: 5.5rem;
}
#directory .tab-pill-active {
  box-shadow: 0 4px 18px rgba(201, 162, 39, 0.28);
  transition: transform 0.18s var(--safar-ease-out), box-shadow 0.22s var(--safar-ease-out);
}
#directory .tab-pill-idle {
  transition: transform 0.18s var(--safar-ease-out), background 0.2s, border-color 0.2s;
}
#directory .tab-pill-idle:active,
#directory .tab-pill-active:active {
  transform: scale(0.97);
}
#directory-heading {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
#directory .search-glow {
  transition: box-shadow 0.25s var(--safar-ease-out), border-color 0.2s;
}
#directory .search-glow:focus-within {
  box-shadow: 0 8px 32px rgba(28, 25, 23, 0.08), 0 0 0 3px rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}
