/* ============================================================
   404 Page Stylesheet — FURNORA | Deep Navy × Champagne Gold
   Matches the shared luxury theme (body.home-lux in style.css):
   Plus Jakarta Sans + Cormorant Garamond, 6px sharp corners,
   glossy navy/gold gradients via the --hx-* tokens.
   Palette: navy #0C2250 / #091B40 / #050F2A · gold #E2C06B / #C9962E / #94701F
   ============================================================ */

.error-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(12, 34, 80, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(201, 150, 46, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, #F3F6FB 55%, #FBF4E1 100%);
}

/* Soft navy & champagne background orbs */
.error-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.error-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
}

.error-glow-orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #0C2250 0%, transparent 70%);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.error-glow-orb-2 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #E2C06B 0%, transparent 70%);
  bottom: 8%;
  right: 12%;
  opacity: 0.30;
}

/* Content wrapper */
.error-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Giant "404" — Cormorant Garamond italic, navy → champagne gold gradient */
.error-code-badge {
  display: inline-block;
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-style: italic;
  font-size: clamp(6.5rem, 16vw, 12rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 0.05em 0.3em 0.05em 0.1em;
  color: #0C2250;
  background-image: linear-gradient(135deg, #050F2A 0%, #0C2250 32%, #1D3F85 50%, #E2C06B 78%, #C9962E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 1px rgba(5, 15, 42, 0.18)) drop-shadow(0 8px 28px rgba(201, 150, 46, 0.28));
  user-select: none;
  margin-bottom: 0.15rem;
  overflow: visible;
}

/* Page title (navy gradient comes from the shared h1 theme rule) */
.error-title {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  color: #091B40;
  overflow: visible;
}

.error-title .grad {
  display: inline-block;
  padding: 0.08em 0.2em 0.05em 0.05em;
  overflow: visible;
  line-height: 1.1;
  vertical-align: baseline;
  font-style: italic;
}

/* Subtitle */
.error-sub {
  font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 1.05rem;
  color: var(--muted, #5B6579);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* CTA buttons row (glossy navy / gold-outline buttons come from the shared theme) */
.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.error-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* ── Quick Navigation Destinations Panel ───────────────────── */
.error-destinations {
  width: 100%;
  max-width: 860px;
  margin-top: 1rem;
  padding: 2.5rem;
  border-radius: var(--radius, 6px) !important;
  text-align: left;
}

body.home-lux .error-destinations {
  border: 1px solid transparent;
  background: var(--hx-surface-soft) padding-box, var(--hx-bd-strong) border-box;
  box-shadow: var(--hx-sh-card);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

.error-destinations-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.error-destinations-header h3 {
  font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
  margin-inline: auto;
  color: #0C2250;
  background-image: linear-gradient(90deg, #0C2250 0%, #1D3F85 45%, #94701F 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-destinations-header p {
  font-size: 0.88rem;
  color: var(--muted, #5B6579);
  margin-top: 0.3rem;
}

/* Card grid */
.error-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Individual card — gradient hairline + glossy sheen */
.error-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius, 6px) !important;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

body.home-lux .error-card {
  border: 1px solid transparent;
  background: var(--hx-surface) padding-box, var(--hx-bd) border-box;
  box-shadow: var(--hx-sh-card);
}

body.home-lux .error-card:hover {
  --hx-bd: var(--hx-bd-strong);
  box-shadow: var(--hx-sh-card-hover);
  transform: translateY(-3px);
}

/* Card icon tile — champagne tile, glossy navy on hover */
.error-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius, 6px) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #E6EBF6 0%, #FBF3E4 100%);
  border: 1px solid rgba(201, 150, 46, 0.45);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 10px -3px rgba(5, 15, 42, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0C2250;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

body.home-lux .error-card:hover .error-card-icon {
  background: var(--hx-g-tile);
  color: #FFF8E6;
  border-color: rgba(226, 192, 107, 0.65);
  box-shadow: var(--hx-sh-tile);
}

.error-card-icon i,
.error-card-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.error-card-body h4 {
  font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: #091B40;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.error-card-body h4 svg {
  stroke: url(#hxStroke);
}

.error-card-body p {
  font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 0.78rem;
  color: var(--muted, #5B6579);
  line-height: 1.5;
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 820px) {
  .error-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .error-hero {
    min-height: auto;
    padding: 2rem 1rem 3.5rem;
  }

  .error-code-badge {
    font-size: clamp(5rem, 20vw, 7.5rem);
    padding: 0.05em 0.25em 0.05em 0.1em;
  }

  .error-title {
    font-size: clamp(1.75rem, 5.5vw, 2.4rem);
  }

  .error-sub {
    font-size: 0.98rem;
    margin-bottom: 2rem;
  }

  .error-destinations {
    padding: 1.5rem 1.1rem;
    margin-top: 1rem;
  }
}

@media (max-width: 520px) {
  .error-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .error-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .error-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .error-card {
    padding: 1rem;
    gap: 0.85rem;
  }

  .error-card-icon {
    width: 2.2rem;
    height: 2.2rem;
  }
}