/* =========================================================
   SafarPedia — Gold • Pale Yellow • Black (80%)
   Designed for animated, modern Islamic safar directory UI.
   ========================================================= */

:root {
  color-scheme: dark;

  /* Warm charcoal base (no pure black), with bright gold / pale yellow accents */
  --bg: #171117;
  --bg-2: #1c151e;
  --panel: rgba(22, 17, 26, 0.78);
  --panel-2: rgba(18, 14, 22, 0.62);
  --stroke: rgba(255, 241, 195, 0.18);
  --stroke-2: rgba(255, 241, 195, 0.10);

  --text: rgba(255, 248, 220, 0.92);
  --muted: rgba(255, 248, 220, 0.68);
  --soft: rgba(255, 248, 220, 0.38);

  --gold-1: #fff1c3;
  --gold-2: #ffd98c;
  --gold-3: #f7c84b;
  --gold-4: #c9951a;
  --gold-5: #b07b12;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);

  --radius: 14px;
  --radius-lg: 22px;

  --font-sans: 'Outfit', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: 'Playfair Display', ui-serif, Georgia, serif;
  --font-brand: 'El Messiri', ui-serif, Georgia, serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.2, 1.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(1300px 720px at 15% 8%, rgba(255, 215, 135, 0.14) 0%, rgba(0, 0, 0, 0) 62%),
    radial-gradient(1200px 680px at 85% 12%, rgba(255, 241, 195, 0.12) 0%, rgba(0, 0, 0, 0) 58%),
    radial-gradient(1400px 960px at 50% 115%, rgba(255, 200, 75, 0.10) 0%, rgba(0, 0, 0, 0) 64%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, #241a27 100%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.main { padding-bottom: 44px; }

/* ===== Ambient background layers ===== */
.safar-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0.75;
}

.safar-ambient {
  position: fixed;
  inset: -20% -10%;
  z-index: -2;
  pointer-events: none;
  filter: blur(16px);
  opacity: 0.85;
}

.safar-orb {
  position: absolute;
  width: min(62vw, 780px);
  height: min(62vw, 780px);
  background: radial-gradient(circle at 30% 30%, rgba(255, 241, 195, 0.22) 0%, rgba(255, 241, 195, 0.08) 30%, rgba(0,0,0,0) 65%);
  animation: orbFloat 16s var(--ease-out) infinite;
}
.safar-orb--a { left: -12%; top: -14%; animation-delay: -2s; }
.safar-orb--b { right: -18%; top: -6%; animation-duration: 18s; animation-delay: -7s; }
.safar-orb--c { left: 10%; bottom: -28%; animation-duration: 20s; animation-delay: -11s; }

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  45% { transform: translate3d(40px, 28px, 0) scale(1.05); }
  75% { transform: translate3d(-24px, 34px, 0) scale(0.98); }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 14, 22, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 241, 195, 0.10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold-1);
}
.logo-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, #d4af37 0%, #e8c547 100%);
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.logo-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
  filter: none;
}
.logo-text {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 2px;
  transition: color 180ms var(--ease-out), transform 200ms var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(247,200,75,0.9) 45%, rgba(0,0,0,0) 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms var(--ease-out);
  opacity: 0.9;
}
.nav a:hover { color: var(--gold-1); transform: translateY(-1px); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Pemilih bahasa — visual selaras beranda (pada header gelap marketplace) */
.header .sp-lang-switcher-host .lang-switcher {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid rgba(255, 248, 230, 0.35);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}
.header .sp-lang-switcher-host .lang-switcher button {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  color: rgba(255, 248, 230, 0.75);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}
.header .sp-lang-switcher-host .lang-switcher button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.header .sp-lang-switcher-host .lang-switcher button.lang-btn-active {
  background: linear-gradient(135deg, #e8c547, #c9951a);
  color: #1a1408;
}

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

/* ===== Buttons (energetic, fun, modern) ===== */
.btn {
  --glow: rgba(247, 200, 75, 0.35);
  appearance: none;
  border: 0;
  text-decoration: none;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  transform: translateZ(0);
  transition: transform 200ms var(--ease-spring), box-shadow 220ms var(--ease-out), filter 220ms var(--ease-out);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary {
  background: linear-gradient(135deg, rgba(247, 200, 75, 0.98) 0%, rgba(255, 217, 140, 0.92) 35%, rgba(201, 149, 26, 0.96) 100%);
  color: #0a0a0a;
  box-shadow: 0 18px 45px rgba(247, 200, 75, 0.18), 0 8px 18px rgba(0, 0, 0, 0.55);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 220deg, rgba(255, 241, 195, 0.0), rgba(255, 241, 195, 0.55), rgba(247, 200, 75, 0.0) 60%, rgba(255, 241, 195, 0.4), rgba(255, 241, 195, 0.0));
  filter: blur(10px);
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
  z-index: -1;
}
.btn--primary:hover { transform: translateY(-2px) rotate(-0.2deg); filter: saturate(1.05); }
.btn--primary:hover::before { opacity: 1; }
.btn--ghost {
  background: rgba(255, 241, 195, 0.08);
  border: 1px solid rgba(255, 241, 195, 0.18);
  color: var(--gold-1);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 241, 195, 0.10) inset;
}
.btn--mini {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 241, 195, 0.08);
  border: 1px solid rgba(255, 241, 195, 0.16);
  font-size: 0.9rem;
}
.btn--mini:hover { transform: translateY(-2px); }

/* ===== Banner / Carousel ===== */
.banner-section { margin: 22px 0 18px; }
.banner-carousel {
  position: relative;
  overflow: hidden;
  border-radius: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(255, 241, 195, 0.12);
  background: rgba(21, 16, 26, 0.82);
  box-shadow: var(--shadow-lg);
}
.banner-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 420px at 10% 20%, rgba(255, 241, 195, 0.08) 0%, rgba(0,0,0,0) 60%),
    radial-gradient(900px 500px at 90% 30%, rgba(247, 200, 75, 0.06) 0%, rgba(0,0,0,0) 58%);
  pointer-events: none;
  z-index: 0;
}
.banner-slides {
  display: flex;
  transition: transform 620ms var(--ease-out);
  position: relative;
  z-index: 1;
}
.banner-slide {
  min-width: 100%;
  padding: clamp(28px, 4vw, 58px);
  padding-right: clamp(18px, 3vw, 52px);
  color: var(--text);
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 22px;
}
.banner-content { max-width: 620px; }
.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 241, 195, 0.10);
  border: 1px solid rgba(255, 241, 195, 0.14);
  color: rgba(255, 241, 195, 0.92);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 14px;
}
.banner-content h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.banner-content p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 56ch;
}
.banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.banner-art { display: grid; place-items: center; }

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 241, 195, 0.18);
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(10px);
  color: var(--gold-1);
  font-size: 2rem;
  cursor: pointer;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  z-index: 10;
}
.banner-nav:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(255, 241, 195, 0.10);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
}
.banner-prev { left: 16px; }
.banner-next { right: 16px; }

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.banner-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 241, 195, 0.18);
  border: 1px solid rgba(255, 241, 195, 0.16);
  cursor: pointer;
  transition: width 240ms var(--ease-out), background 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.banner-dot.active {
  width: 30px;
  background: linear-gradient(90deg, rgba(247,200,75,1) 0%, rgba(255,241,195,0.9) 100%);
  transform: translateY(-1px);
}

/* ===== Banner art (unique animations) ===== */
.portal {
  width: min(360px, 38vw);
  aspect-ratio: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 34px 80px rgba(0, 0, 0, 0.65));
}
.portal-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 241, 195, 0.35) 0%, rgba(255, 241, 195, 0.06) 38%, rgba(0,0,0,0) 62%),
    conic-gradient(from 200deg, rgba(255, 241, 195, 0.0) 0%, rgba(247, 200, 75, 0.95) 22%, rgba(255, 241, 195, 0.0) 44%, rgba(247, 200, 75, 0.85) 62%, rgba(255, 241, 195, 0.0) 86%, rgba(255, 241, 195, 0.0) 100%);
  mask: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 58%, rgba(0,0,0,1) 62%);
  opacity: 0.9;
  animation: spin 7s linear infinite;
}
.portal-ring--2 {
  inset: 14%;
  opacity: 0.85;
  animation-duration: 9s;
  animation-direction: reverse;
}
.portal-core {
  width: 42%;
  height: 42%;
  border-radius: 26px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 241, 195, 0.85) 0%, rgba(255, 217, 140, 0.55) 40%, rgba(201, 149, 26, 0.25) 70%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(255, 241, 195, 0.16) 0%, rgba(0,0,0,0.25) 100%);
  border: 1px solid rgba(255, 241, 195, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 241, 195, 0.08) inset, 0 30px 80px rgba(247, 200, 75, 0.12);
  animation: morph 6.5s var(--ease-out) infinite;
}

.kinesis {
  width: min(360px, 38vw);
  height: min(260px, 28vw);
  position: relative;
  perspective: 900px;
}
.kinesis-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 241, 195, 0.10) 0%, rgba(255, 241, 195, 0.04) 60%, rgba(0,0,0,0) 100%);
  border: 1px solid rgba(255, 241, 195, 0.14);
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.55);
  transform: rotateX(8deg) rotateY(-14deg) translateZ(0);
  animation: kinesis 4.4s var(--ease-out) infinite;
}
.kinesis-card--2 {
  inset: 10% 8%;
  opacity: 0.75;
  transform: rotateX(10deg) rotateY(14deg) translateZ(-30px);
  animation-delay: -1.4s;
}
.kinesis-card--3 {
  inset: 20% 16%;
  opacity: 0.55;
  transform: rotateX(-8deg) rotateY(-10deg) translateZ(-60px);
  animation-delay: -2.7s;
}

.sparkline {
  width: min(360px, 38vw);
  height: min(180px, 20vw);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 241, 195, 0.14);
  background: linear-gradient(180deg, rgba(255, 241, 195, 0.08) 0%, rgba(0,0,0,0.25) 100%);
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.55);
}
.sparkline span {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(247,200,75,1) 0%, rgba(255,241,195,0.6) 55%, rgba(0,0,0,0) 100%);
  animation: bars 1.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 26px rgba(247, 200, 75, 0.18));
}
.sparkline span:nth-child(1) { height: 46%; animation-delay: -0.1s; }
.sparkline span:nth-child(2) { height: 78%; animation-delay: -0.2s; }
.sparkline span:nth-child(3) { height: 58%; animation-delay: -0.3s; }
.sparkline span:nth-child(4) { height: 88%; animation-delay: -0.4s; }
.sparkline span:nth-child(5) { height: 64%; animation-delay: -0.5s; }
.sparkline span:nth-child(6) { height: 72%; animation-delay: -0.6s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes morph {
  0%, 100% { border-radius: 26px; transform: scale(1) rotate(-0.5deg); }
  45% { border-radius: 44px 24px 42px 18px; transform: scale(1.05) rotate(0.6deg); }
  70% { border-radius: 18px 46px 22px 44px; transform: scale(0.98) rotate(-0.2deg); }
}
@keyframes kinesis {
  0%, 100% { transform: rotateX(8deg) rotateY(-14deg) translateY(0); }
  45% { transform: rotateX(12deg) rotateY(10deg) translateY(-6px); }
  70% { transform: rotateX(4deg) rotateY(-6deg) translateY(2px); }
}
@keyframes bars {
  0%, 100% { transform: scaleY(0.92); opacity: 0.9; }
  50% { transform: scaleY(1.06); opacity: 1; }
}

/* ===== Search ===== */
.search-section { margin: 14px 0 22px; }
.search-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(22, 17, 26, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 241, 195, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.search-wrapper:focus-within {
  border-color: rgba(247, 200, 75, 0.55);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62), 0 0 0 4px rgba(247, 200, 75, 0.08);
  transform: translateY(-1px);
}
.search-icon { color: rgba(255, 241, 195, 0.85); display: grid; place-items: center; padding-left: 4px; }
.search-icon svg { width: 22px; height: 22px; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
}
.search-input::placeholder { color: rgba(255, 241, 195, 0.42); }
.search-filters {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-filters select {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 241, 195, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.search-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, rgba(247, 200, 75, 0.98) 0%, rgba(255, 217, 140, 0.9) 50%, rgba(201, 149, 26, 0.95) 100%);
  color: #0a0a0a;
  transition: transform 200ms var(--ease-spring), box-shadow 220ms var(--ease-out);
  box-shadow: 0 18px 45px rgba(247, 200, 75, 0.12);
}
.search-btn:hover { transform: translateY(-2px) rotate(0.15deg); box-shadow: 0 24px 65px rgba(247, 200, 75, 0.18); }

/* ===== Sections ===== */
.section-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
}
.section-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 75ch;
}

/* ===== Gateway (dynamic shapes) ===== */
.gateway-section { margin: 22px 0 34px; }
.gateway-head { margin-bottom: 14px; }
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.gateway-card {
  --mx: 0px;
  --my: 0px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 241, 195, 0.10) 0%, rgba(10, 6, 14, 0.05) 30%, rgba(0, 0, 0, 0.36) 100%);
  border: 1px solid rgba(255, 241, 195, 0.14);
  border-radius: 26px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.58);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
  transition: transform 220ms var(--ease-spring), border-color 220ms var(--ease-out), filter 220ms var(--ease-out);
  will-change: transform;
}
.gateway-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 28px;
  background: conic-gradient(from 220deg, rgba(255,241,195,0) 0%, rgba(247,200,75,0.55) 18%, rgba(255,241,195,0) 40%, rgba(247,200,75,0.45) 62%, rgba(255,241,195,0) 82%, rgba(255,241,195,0) 100%);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 260ms var(--ease-out);
  z-index: 0;
}
.gateway-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px 240px at var(--mx) var(--my), rgba(255, 241, 195, 0.22) 0%, rgba(255, 241, 195, 0.06) 45%, rgba(0,0,0,0) 70%);
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
  z-index: 0;
}
.gateway-card:hover {
  border-color: rgba(247, 200, 75, 0.38);
  filter: saturate(1.05);
}
.gateway-card:hover::before { opacity: 1; }
.gateway-card:hover::after { opacity: 1; }

.gateway-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 40% 40%, rgba(247, 200, 75, 0.18) 0%, rgba(255, 241, 195, 0.06) 35%, rgba(0,0,0,0) 70%);
  opacity: 0.85;
  filter: blur(18px);
  animation: glowDrift 7.5s var(--ease-out) infinite;
  z-index: 0;
}
@keyframes glowDrift {
  0%, 100% { transform: translate3d(-2%, -1%, 0) scale(1); }
  55% { transform: translate3d(3%, 2%, 0) scale(1.03); }
}

.gateway-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.gateway-kicker {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #0a0a0a;
  background: linear-gradient(135deg, rgba(247,200,75,0.98), rgba(255,241,195,0.9));
  box-shadow: 0 18px 40px rgba(247, 200, 75, 0.14);
}
.gateway-pill {
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255, 241, 195, 0.88);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 241, 195, 0.14);
  background: rgba(0, 0, 0, 0.25);
}
.gateway-card h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}
.gateway-card p {
  margin: 0 0 16px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.gateway-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.gateway-arrow {
  font-size: 1.15rem;
  color: rgba(255, 241, 195, 0.75);
  transform: translateX(0);
  transition: transform 220ms var(--ease-spring), color 220ms var(--ease-out);
}
.gateway-card:hover .gateway-arrow { transform: translateX(8px); color: var(--gold-2); }

/* Dynamic shape placements */
.gateway-card--package { grid-column: span 7; grid-row: span 2; border-radius: 28px 28px 34px 22px; }
.gateway-card--info { grid-column: span 5; grid-row: span 1; border-radius: 22px 34px 22px 34px; }
.gateway-card--product { grid-column: span 5; grid-row: span 1; border-radius: 34px 22px 34px 22px; }
.gateway-card--dest { grid-column: span 7; grid-row: span 1; border-radius: 28px 22px 40px 22px; }

/* ===== Directory table (packages) ===== */
.directory-section { margin: 22px 0 40px; }
.table-filters-wrapper { margin: 18px 0 14px; }
.table-filters-toggle {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 241, 195, 0.16);
  background: rgba(22, 17, 26, 0.82);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: transform 200ms var(--ease-out), border-color 220ms var(--ease-out), background 220ms var(--ease-out);
}
.table-filters-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 200, 75, 0.32);
  background: rgba(255, 241, 195, 0.08);
}
.filter-toggle-icon { transition: transform 260ms var(--ease-out); }
.table-filters-wrapper.is-open .filter-toggle-icon { transform: rotate(180deg); }

.table-filters {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(22, 17, 26, 0.86);
  border: 1px solid rgba(255, 241, 195, 0.16);
  box-shadow: var(--shadow-md);
}
.table-filters-wrapper.is-open .table-filters { display: grid; }

.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label { font-size: 0.78rem; font-weight: 900; color: rgba(255, 241, 195, 0.82); letter-spacing: 0.04em; text-transform: uppercase; }
.filter-group input,
.filter-group select {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 241, 195, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
}
.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: rgba(247, 200, 75, 0.55);
  box-shadow: 0 0 0 4px rgba(247, 200, 75, 0.08);
}
.filter-actions { align-items: flex-end; }
.filter-reset-btn {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 241, 195, 0.16);
  background: rgba(255, 241, 195, 0.06);
  color: rgba(255, 241, 195, 0.92);
  font-weight: 900;
  cursor: pointer;
  transition: transform 200ms var(--ease-out), border-color 220ms var(--ease-out), background 220ms var(--ease-out);
}
.filter-reset-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 200, 75, 0.35);
  background: rgba(255, 241, 195, 0.10);
}

.table-wrapper {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 241, 195, 0.12);
  background: rgba(22, 17, 26, 0.85);
  box-shadow: var(--shadow-lg);
}
.directory-table { width: 100%; border-collapse: collapse; }
.directory-table thead {
  background: linear-gradient(135deg, rgba(255, 241, 195, 0.10) 0%, rgba(247, 200, 75, 0.07) 40%, rgba(0, 0, 0, 0.40) 100%);
  border-bottom: 1px solid rgba(255, 241, 195, 0.14);
}
.directory-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 241, 195, 0.9);
}
.directory-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 241, 195, 0.08);
  color: rgba(255, 248, 220, 0.88);
}
.directory-table tbody tr {
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.directory-table tbody tr:hover {
  background: rgba(255, 241, 195, 0.06);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 241, 195, 0.14);
}
.badge-tour { background: rgba(247, 200, 75, 0.10); color: rgba(255, 241, 195, 0.95); }
.badge-flight { background: rgba(255, 241, 195, 0.09); color: rgba(255, 241, 195, 0.90); }
.badge-hotel { background: rgba(255, 241, 195, 0.07); color: rgba(255, 241, 195, 0.85); }
.badge-product { background: rgba(247, 200, 75, 0.08); color: rgba(255, 241, 195, 0.92); }

.rating { color: rgba(247, 200, 75, 0.95); letter-spacing: 1px; }
.action-link {
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(247, 200, 75, 0.98) 0%, rgba(255, 241, 195, 0.9) 100%);
  box-shadow: 0 16px 45px rgba(247, 200, 75, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms var(--ease-spring), box-shadow 220ms var(--ease-out), filter 220ms var(--ease-out);
}
.action-link:hover { transform: translateY(-2px); filter: saturate(1.05); }
.agency-link { color: rgba(255, 241, 195, 0.92); text-decoration: none; font-weight: 800; }
.agency-link:hover { text-decoration: underline; text-decoration-color: rgba(247, 200, 75, 0.8); }
.no-results { text-align: center; padding: 42px 18px; color: var(--muted); }

/* ===== Content sections (Latest info / Products / Destinations) ===== */
.content-section { padding: 18px 0 10px; margin: 10px 0 10px; }
.content-head { margin-bottom: 14px; }
.info-grid,
.product-grid,
.dest-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.info-card, .product-card, .dest-card {
  grid-column: span 4;
  padding: 18px;
  border-radius: 22px;
  background: rgba(22, 17, 26, 0.86);
  border: 1px solid rgba(255, 241, 195, 0.14);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.58);
  position: relative;
  overflow: hidden;
}
.info-card::before, .product-card::before, .dest-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(420px 260px at 20% 10%, rgba(247, 200, 75, 0.14) 0%, rgba(0,0,0,0) 58%);
  opacity: 0.8;
  pointer-events: none;
}
.info-card h3, .product-card h3, .dest-card h3 { margin: 0 0 8px; position: relative; z-index: 1; }
.info-card p, .product-card p, .dest-card p { margin: 0 0 12px; color: var(--muted); position: relative; z-index: 1; }
.text-link {
  color: rgba(255, 241, 195, 0.92);
  text-decoration: none;
  font-weight: 900;
  position: relative;
  z-index: 1;
}
.text-link:hover { text-decoration: underline; text-decoration-color: rgba(247, 200, 75, 0.9); }

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.product-badge {
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(255, 241, 195, 0.9);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 241, 195, 0.14);
  background: rgba(0, 0, 0, 0.35);
}
.product-price { color: rgba(247, 200, 75, 0.95); font-weight: 900; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Footer ===== */
.footer {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 241, 195, 0.10);
  background: rgba(18, 14, 22, 0.88);
  color: var(--muted);
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nav { display: none; }
  .banner-slide { grid-template-columns: 1fr; }
  .banner-art { display: none; }

  .gateway-card--package { grid-column: span 12; grid-row: span 1; }
  .gateway-card--dest { grid-column: span 12; }
  .gateway-card--info,
  .gateway-card--product { grid-column: span 6; }

  .info-card, .product-card, .dest-card { grid-column: span 6; }
}

@media (max-width: 768px) {
  .header-cta { display: none; }

  .search-wrapper { flex-direction: column; align-items: stretch; border-radius: 22px; }
  .search-filters { flex-wrap: wrap; justify-content: space-between; }

  .gateway-grid { grid-template-columns: repeat(6, 1fr); }
  .gateway-card--package,
  .gateway-card--dest,
  .gateway-card--info,
  .gateway-card--product { grid-column: span 6; }

  .table-wrapper { overflow-x: auto; }
  .directory-table { min-width: 980px; }

  .info-grid, .product-grid, .dest-grid { grid-template-columns: repeat(6, 1fr); }
  .info-card, .product-card, .dest-card { grid-column: span 6; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
