/*
Theme Name: WeDu Child
Theme URI: https://wedu.ca
Description: Design-system child theme — indigo + teal, clean academic feel for e-learning.
Template: generatepress
Version: 1.0.0
Author: Site Admin
License: GNU General Public License v2 or later
Text Domain: wedu-child
*/

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

/* ---------------------------------------------
   Design tokens
--------------------------------------------- */
:root {
  --wedu-indigo: #4338ca;
  --wedu-indigo-dark: #3730a3;
  --wedu-teal: #0d9488;
  --wedu-teal-soft: rgba(13, 148, 136, 0.1);
  --wedu-ink: #1e1b4b;
  --wedu-text: #3f3d56;
  --wedu-muted: #6b7280;
  --wedu-surface: #ffffff;
  --wedu-surface-2: #f5f6fb;
  --wedu-line: #e5e7f0;

  --wedu-text-sm: 0.9rem;
  --wedu-text-base: 1.0625rem;
  --wedu-text-xl: clamp(1.5rem, 2.5vw, 1.9rem);
  --wedu-text-2xl: clamp(1.9rem, 3.5vw, 2.6rem);
  --wedu-text-3xl: clamp(2.4rem, 5vw, 3.4rem);

  --wedu-radius-md: 0.75rem;
  --wedu-radius-lg: 1.1rem;
  --wedu-radius-pill: 999px;
  --wedu-shadow-sm: 0 1px 2px rgba(30, 27, 75, 0.06), 0 4px 12px rgba(30, 27, 75, 0.04);
  --wedu-shadow-md: 0 4px 16px rgba(30, 27, 75, 0.08), 0 12px 32px rgba(30, 27, 75, 0.06);
  --wedu-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------
   Base typography
--------------------------------------------- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--wedu-text-base);
  line-height: 1.7;
  color: var(--wedu-text);
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: var(--wedu-text-3xl); }
h2 { font-size: var(--wedu-text-2xl); }
h3 { font-size: var(--wedu-text-xl); }

a { transition: color var(--wedu-transition); }

/* ---------------------------------------------
   Content links — indigo underline
--------------------------------------------- */
.content-area :is(p, li) a,
.entry-content :is(p, li) a {
  font-weight: 500;
  color: var(--wedu-indigo);
  text-decoration: none;
  border-bottom: 1px solid var(--wedu-indigo);
  padding-bottom: 1px;
}

.content-area :is(p, li) a:hover,
.entry-content :is(p, li) a:hover {
  color: var(--wedu-indigo-dark);
  border-bottom-color: var(--wedu-indigo-dark);
}

/* ---------------------------------------------
   Buttons
--------------------------------------------- */
.button,
.wp-block-button__link,
button,
input[type="submit"] {
  border-radius: var(--wedu-radius-pill);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background-color var(--wedu-transition), box-shadow var(--wedu-transition), transform var(--wedu-transition);
}

.button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: var(--wedu-shadow-md);
}

/* ---------------------------------------------
   Tables & quotes
--------------------------------------------- */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--wedu-radius-md);
  overflow: hidden;
  box-shadow: var(--wedu-shadow-sm);
}

.entry-content th {
  background: var(--wedu-teal-soft);
  color: var(--wedu-ink);
  text-align: left;
}

.entry-content th,
.entry-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--wedu-line);
}

.entry-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--wedu-teal);
  background: var(--wedu-teal-soft);
  border-radius: 0 var(--wedu-radius-md) var(--wedu-radius-md) 0;
}

/* ---------------------------------------------
   Sidebar widgets
--------------------------------------------- */
.sidebar .widget,
.widget-area .widget {
  border: 1px solid var(--wedu-line);
  border-radius: var(--wedu-radius-lg);
  padding: var(--wedu-text-xl);
  box-shadow: var(--wedu-shadow-sm);
  background: var(--wedu-surface);
}

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

:focus-visible {
  outline: 2px solid var(--wedu-indigo);
  outline-offset: 2px;
}

/* =============================================================
   WeDu Directory — design system (Airbnb-inspired marketplace UI)
   90% neutral + ink, one indigo accent, warm saffron moments only
============================================================= */
:root {
  --wdx-ink: #1d1d2b;
  --wdx-body: #4a4a58;
  --wdx-muted: #77778a;
  --wdx-muted-soft: #9c9cae;
  --wdx-hairline: #e9e9f0;
  --wdx-surface: #f7f7fa;
  --wdx-surface-strong: #f1f1f6;
  --wdx-accent: #4f46e5;
  --wdx-accent-deep: #4338ca;
  --wdx-accent-soft: #eeedfd;
  --wdx-saffron: #f59e0b;
  --wdx-white: #ffffff;
  --wdx-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wdx-radius: 14px;
  --wdx-radius-lg: 20px;
  --wdx-radius-pill: 9999px;
  --wdx-shadow:
    rgba(0, 0, 0, 0.02) 0 0 0 1px,
    rgba(0, 0, 0, 0.04) 0 2px 6px,
    rgba(0, 0, 0, 0.10) 0 4px 8px;
  --wdx-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Header ---------- */
.wdx-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--wdx-hairline);
}

.wdx-header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.5rem;
}

.wdx-container {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding-left: clamp(1rem, 3.4vw, 2.5rem);
  padding-right: clamp(1rem, 3.4vw, 2.5rem);
}

.wdx-main { min-height: 60vh; }

.wdx-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.wdx-logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--wdx-accent) 0%, #7c3aed 100%);
  color: var(--wdx-white);
  font-weight: 800;
  font-size: 1.05rem;
}

.wdx-logo-text {
  color: var(--wdx-ink);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.wdx-logo-dot { color: var(--wdx-accent); }

.wdx-logo-tag {
  margin-left: 0.15rem;
  padding: 0.18rem 0.6rem;
  border-radius: var(--wdx-radius-pill);
  background: var(--wdx-accent-soft);
  color: var(--wdx-accent-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.wdx-footer .wdx-logo-tag { display: none; }

.wdx-logo-mark .wedu-ic { display: block; }

.wdx-nav {
  display: flex;
  gap: 0.25rem;
  margin-right: auto;
}

.wdx-nav a {
  padding: 0.55rem 0.95rem;
  border-radius: var(--wdx-radius-pill);
  color: var(--wdx-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--wdx-transition), color var(--wdx-transition);
}

.wdx-nav a:hover {
  background: var(--wdx-surface);
  color: var(--wdx-ink);
}

.wdx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.5rem;
  font-family: var(--wdx-font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--wdx-transition), box-shadow var(--wdx-transition), transform var(--wdx-transition);
}

.wdx-btn-accent {
  background: var(--wdx-accent);
  color: var(--wdx-white);
}

.wdx-btn-accent:hover {
  background: var(--wdx-accent-deep);
  transform: translateY(-1px);
  box-shadow: var(--wdx-shadow);
}

.wdx-btn-outline {
  background: var(--wdx-white);
  color: var(--wdx-ink);
  border: 1px solid var(--wdx-ink);
}

.wdx-btn-outline:hover { background: var(--wdx-surface); }

.wdx-btn-block { width: 100%; }
.wdx-btn-sm { min-height: 2.4rem; padding: 0 1rem; font-size: 0.9rem; }
.wdx-btn-lg { min-height: 3rem; padding: 0 1.6rem; font-size: 1rem; }

/* ---------- Hero ---------- */
.wdx-hero {
  position: relative;
  overflow: hidden;
  color: var(--wdx-white);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(245, 158, 11, 0.28), transparent 55%),
    radial-gradient(50rem 28rem at -10% 110%, rgba(124, 58, 237, 0.4), transparent 55%),
    linear-gradient(135deg, #17163a 0%, #2b2670 55%, #4338ca 100%);
}

.wdx-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 9vw, 6rem);
  max-width: 46rem;
  margin-left: 0;
}

.wdx-hero--compact .wdx-hero-inner { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }

.wdx-hero-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--wdx-radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wdx-hero-title {
  margin: 0 0 1rem;
  color: var(--wdx-white);
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.wdx-hero-sub {
  margin: 0 0 2.2rem;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

/* Signature segmented search bar */
.wdx-searchbar {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 44rem;
  background: var(--wdx-white);
  border-radius: var(--wdx-radius-pill);
  box-shadow: var(--wdx-shadow);
}

.wdx-searchbar-seg {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.6rem 1.4rem;
  min-width: 0;
}

.wdx-searchbar-divider {
  width: 1px;
  margin: 0.7rem 0;
  background: var(--wdx-hairline);
}

.wdx-searchbar-seg label {
  color: var(--wdx-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wdx-searchbar-seg input,
.wdx-searchbar-seg select {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  font-family: var(--wdx-font);
  font-size: 0.92rem;
  color: var(--wdx-body);
  outline: none;
}

.wdx-searchbar-seg input::placeholder { color: var(--wdx-muted-soft); }

.wdx-searchbar-go {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  align-self: center;
  margin: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--wdx-radius-pill);
  background: var(--wdx-accent);
  color: var(--wdx-white);
  cursor: pointer;
  transition: background-color var(--wdx-transition), transform var(--wdx-transition);
}

.wdx-searchbar-go:hover {
  background: var(--wdx-accent-deep);
  transform: scale(1.05);
}

.wdx-searchbar--compact .wdx-searchbar-seg { padding: 0.4rem 1.4rem; }
.wdx-searchbar--compact .wdx-searchbar-go { margin: 0.4rem 0.4rem; }

.wdx-hero-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.3rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
}

.wdx-hero-chips a {
  padding: 0.32rem 0.85rem;
  border-radius: var(--wdx-radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--wdx-transition);
}

.wdx-hero-chips a:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- Sections ---------- */
.wdx-section { padding: clamp(2.2rem, 5vw, 3.5rem) 0 0; }

.wdx-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.wdx-section-head h2 {
  margin: 0;
  color: var(--wdx-ink);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wdx-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--wdx-ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.wdx-section-link:hover { color: var(--wdx-accent); }

/* ---------- Category tiles ---------- */
.wdx-catrow {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.5rem;
}

.wdx-cattile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.1rem;
  border-radius: var(--wdx-radius);
  text-decoration: none;
  transition: background-color var(--wdx-transition), transform var(--wdx-transition), box-shadow var(--wdx-transition);
}

.wdx-cattile:hover {
  background: var(--wdx-surface);
  transform: translateY(-2px);
  box-shadow: var(--wdx-shadow);
}

.wdx-cattile-disc {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--wdx-radius-pill);
  color: var(--wdx-accent);
  background: var(--wdx-accent-soft);
}

.wdx-cattile:hover .wdx-cattile-disc {
  background: var(--wdx-accent);
  color: var(--wdx-white);
}

.wdx-cattile-name {
  color: var(--wdx-ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wdx-cattile-count {
  color: var(--wdx-muted);
  font-size: 0.8rem;
}

/* ---------- Listing grid & cards ---------- */
.wdx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19.5rem, 1fr));
  gap: 1rem;
}

.wdx-card {
  display: flex;
  flex-direction: column;
  background: var(--wdx-white);
  border-radius: var(--wdx-radius);
  overflow: hidden;
  transition: box-shadow var(--wdx-transition), transform var(--wdx-transition);
}

.wdx-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--wdx-shadow);
}

.wdx-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--wdx-surface-strong);
}

.wdx-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.wdx-card:hover .wdx-card-media img { transform: scale(1.04); }

.wdx-card-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
}

.wdx-card-ph--hero { aspect-ratio: auto; height: 100%; min-height: 18rem; border-radius: var(--wdx-radius-lg); }

.wdx-card-ph--restaurants          { background: linear-gradient(135deg, #b45309, #f59e0b); }
.wdx-card-ph--grocery-sweets       { background: linear-gradient(135deg, #166534, #4ade80); }
.wdx-card-ph--wedding-services     { background: linear-gradient(135deg, #be185d, #f472b6); }
.wdx-card-ph--beauty-fashion       { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.wdx-card-ph--real-estate          { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.wdx-card-ph--community-services   { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.wdx-card-ph--travel               { background: linear-gradient(135deg, #1e40af, #38bdf8); }
.wdx-card-ph--health-wellness      { background: linear-gradient(135deg, #be123c, #fb7185); }
.wdx-card-ph--default             { background: linear-gradient(135deg, #4338ca, #818cf8); }

.wdx-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--wdx-radius-pill);
  background: var(--wdx-white);
  color: var(--wdx-ink);
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: var(--wdx-shadow);
}

.wdx-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.1rem 1.15rem;
}

.wdx-card-titleline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.wdx-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.wdx-card-title a {
  color: var(--wdx-ink);
  text-decoration: none;
}

.wdx-card-title a:hover { color: var(--wdx-accent); }

.wdx-card-city {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--wdx-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.wdx-card-cat {
  margin: 0;
  color: var(--wdx-muted);
  font-size: 0.85rem;
}

.wdx-card-cat a {
  color: var(--wdx-body);
  font-weight: 600;
  text-decoration: none;
}

.wdx-card-cat a:hover { color: var(--wdx-accent); }

.wdx-card-dot { margin: 0 0.15rem; }

.wdx-card-excerpt {
  margin: 0;
  color: var(--wdx-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.wdx-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.wdx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.1rem;
  padding: 0 0.85rem;
  border-radius: var(--wdx-radius-pill);
  background: var(--wdx-surface);
  color: var(--wdx-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--wdx-transition), color var(--wdx-transition), border-color var(--wdx-transition);
}

.wdx-chip:hover {
  background: var(--wdx-surface-strong);
  color: var(--wdx-ink);
}

.wdx-chip-strong {
  background: var(--wdx-accent-soft);
  color: var(--wdx-accent);
}

.wdx-chip-strong:hover {
  background: var(--wdx-accent);
  color: var(--wdx-white);
}

.wdx-chip-ghost {
  background: transparent;
  border: 1px solid var(--wdx-hairline);
}

/* ---------- City tiles ---------- */
.wdx-cityrow {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
}

.wdx-citytile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--wdx-hairline);
  border-radius: var(--wdx-radius);
  text-decoration: none;
  transition: border-color var(--wdx-transition), box-shadow var(--wdx-transition), transform var(--wdx-transition);
}

.wdx-citytile:hover {
  border-color: var(--wdx-accent);
  transform: translateY(-2px);
  box-shadow: var(--wdx-shadow);
}

.wdx-citytile-name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--wdx-ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.wdx-citytile-name .wdx-ic { color: var(--wdx-accent); }

.wdx-citytile-count {
  color: var(--wdx-muted);
  font-size: 0.82rem;
}

/* ---------- CTA band ---------- */
.wdx-cta { padding-bottom: 3rem; }

.wdx-cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.8rem, 4.5vw, 2.8rem);
  border-radius: var(--wdx-radius-lg);
  color: var(--wdx-white);
  background:
    radial-gradient(30rem 16rem at 90% -20%, rgba(245, 158, 11, 0.35), transparent 55%),
    linear-gradient(120deg, #17163a, #3730a3);
}

.wdx-cta-card h2 {
  margin: 0 0 0.4rem;
  color: var(--wdx-white);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wdx-cta-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  line-height: 1.6;
}

.wdx-cta-actions { text-align: center; }

.wdx-cta-note {
  margin: 0.6rem 0 0 !important;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ---------- Archive ---------- */
.wdx-archive-head {
  padding: 1.6rem 0 1rem;
}

.wdx-count {
  margin: 0;
  color: var(--wdx-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.wdx-pagination {
  padding: 2.2rem 0;
  display: flex;
  justify-content: center;
}

.wdx-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  margin: 0 0.2rem;
  border-radius: var(--wdx-radius-pill);
  background: var(--wdx-surface);
  color: var(--wdx-body);
  font-weight: 600;
  text-decoration: none;
}

.wdx-pagination .page-numbers.current {
  background: var(--wdx-ink);
  color: var(--wdx-white);
}

.wdx-pagination .page-numbers:hover:not(.current) {
  background: var(--wdx-surface-strong);
  color: var(--wdx-ink);
}

.wdx-empty {
  padding: 4rem 1.5rem;
  margin-bottom: 3rem;
  text-align: center;
  background: var(--wdx-surface);
  border-radius: var(--wdx-radius-lg);
}

.wdx-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: var(--wdx-radius-pill);
  background: var(--wdx-white);
  color: var(--wdx-muted);
  box-shadow: var(--wdx-shadow);
}

.wdx-empty h2 {
  margin: 0 0 0.5rem;
  color: var(--wdx-ink);
  font-size: 1.4rem;
}

.wdx-empty p {
  margin: 0 auto;
  max-width: 26rem;
  color: var(--wdx-muted);
}

.wdx-empty a { color: var(--wdx-accent); font-weight: 600; }

/* ---------- Breadcrumbs ---------- */
.wdx-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0 1.2rem;
  color: var(--wdx-muted-soft);
  font-size: 0.85rem;
}

.wdx-crumbs a {
  color: var(--wdx-body);
  font-weight: 500;
  text-decoration: none;
}

.wdx-crumbs a:hover { color: var(--wdx-accent); }

/* ---------- Single listing (64/32 split) ---------- */
.wdx-single {
  display: grid;
  grid-template-columns: minmax(0, 64fr) minmax(0, 32fr);
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2.5rem;
}

.wdx-single-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--wdx-radius-pill);
  background: var(--wdx-accent-soft);
  color: var(--wdx-accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.wdx-single-head h1 {
  margin: 0 0 0.6rem;
  color: var(--wdx-ink);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.wdx-single-loc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.6rem;
  color: var(--wdx-muted);
  font-size: 0.98rem;
}

.wdx-single-loc .wdx-ic { color: var(--wdx-accent); }

.wdx-single-media img,
.wdx-card-ph--hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--wdx-radius-lg);
  overflow: hidden;
}

.wdx-single-desc {
  padding-top: 1.6rem;
  color: var(--wdx-body);
  font-size: 1.02rem;
  line-height: 1.75;
}

.wdx-single-desc h2, .wdx-single-desc h3 { color: var(--wdx-ink); }

.wdx-railcard {
  position: sticky;
  top: 5.5rem;
  padding: 1.4rem;
  border-radius: var(--wdx-radius-lg);
  border: 1px solid var(--wdx-hairline);
  background: var(--wdx-white);
  box-shadow: var(--wdx-shadow);
}

.wdx-railcard h3 {
  margin: 0 0 1rem;
  color: var(--wdx-ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.wdx-railcard .wdx-btn + .wdx-btn { margin-top: 0.6rem; }

.wdx-rail-meta {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--wdx-hairline);
}

.wdx-rail-row {
  display: flex;
  gap: 0.6rem;
  color: var(--wdx-body);
  font-size: 0.9rem;
  line-height: 1.5;
}

.wdx-rail-row .wdx-ic {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--wdx-accent);
}

/* ---------- Footer ---------- */
.wdx-footer {
  margin-top: 3rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
  background:
    radial-gradient(40rem 20rem at 110% 0%, rgba(245, 158, 11, 0.12), transparent 55%),
    #17163a;
  color: rgba(255, 255, 255, 0.72);
}

.wdx-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.wdx-footer-brand p {
  margin: 1rem 0 0;
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.wdx-logo-light .wdx-logo-text { color: var(--wdx-white); }

.wdx-footer-col h4 {
  margin: 0 0 0.9rem;
  color: var(--wdx-white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wdx-footer-col a {
  display: block;
  padding: 0.28rem 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  text-decoration: none;
}

.wdx-footer-col a:hover { color: var(--wdx-white); }

.wdx-footer-bottom {
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wdx-footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Icon default size ---------- */
.wdx-ic { flex-shrink: 0; }

/* ---------- Responsive ---------- */
/* ---------- Mobile nav ---------- */
.wdx-header-inner { position: relative; }
.wdx-header-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }

.wdx-nav { margin-right: auto; }

.wdx-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--wdx-hairline);
  border-radius: 10px;
  background: var(--wdx-surface);
  color: var(--wdx-ink);
  cursor: pointer;
}

.wdx-menu-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

.wdx-mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem clamp(1rem, 3.4vw, 2.5rem) 1rem;
  border-top: 1px solid var(--wdx-hairline);
  background: var(--wdx-surface);
}

.wdx-mobile-nav a {
  padding: 0.8rem 0.4rem;
  color: var(--wdx-ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--wdx-hairline);
}

.wdx-mobile-nav a:last-child { border-bottom: 0; }

.wdx-mobile-nav-cta {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--wdx-white) !important;
  background: var(--wdx-accent);
  border-radius: 0.5rem;
  border-bottom: 0 !important;
}

@media (max-width: 960px) {
  .wdx-nav { display: none; }
  .wdx-menu-btn { display: inline-flex; }
  .wdx-single { grid-template-columns: 1fr; }
  .wdx-railcard { position: static; }
  .wdx-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .wdx-searchbar {
    flex-direction: column;
    border-radius: var(--wdx-radius-lg);
  }

  .wdx-searchbar-divider { display: none; }
  .wdx-searchbar-seg { padding: 0.85rem 1.2rem 0.2rem; }
  .wdx-searchbar-seg + .wdx-searchbar-seg { padding-top: 0.2rem; padding-bottom: 0.6rem; }
  .wdx-searchbar-seg input, .wdx-searchbar-seg select { padding: 0.35rem 0 0.5rem; border-bottom: 1px solid var(--wdx-hairline); }
  .wdx-searchbar-go {
    width: calc(100% - 1rem);
    height: 2.9rem;
    margin: 0.5rem;
  }

  .wdx-hero-chips { display: none; }
  .wdx-catrow { grid-template-columns: repeat(2, 1fr); }
  .wdx-grid { grid-template-columns: 1fr; }
  .wdx-cityrow { grid-template-columns: 1fr 1fr; }
  .wdx-footer-inner { grid-template-columns: 1fr; }
  .wdx-cta-actions { width: 100%; }
  .wdx-cta-actions .wdx-btn { width: 100%; }
}

/* ---------- Submit-listing form ---------- */
.wdx-submit-wrap {
  max-width: 780px;
  padding: var(--wdx-space-8) var(--wdx-space-4) var(--wdx-space-16);
}

.wdx-form {
  background: var(--wdx-surface);
  border-radius: var(--wdx-radius-lg);
  box-shadow: var(--wdx-shadow);
  padding: var(--wdx-space-7);
}

.wdx-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wdx-space-5) var(--wdx-space-6);
}

.wdx-field { display: flex; flex-direction: column; gap: 0.4rem; }
.wdx-field--full { grid-column: 1 / -1; }

.wdx-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wdx-ink);
}

.wdx-field label em { color: #dc2626; font-style: normal; }
.wdx-field-hint { color: var(--wdx-muted); font-weight: 400; font-size: 0.8rem; }

.wdx-field input,
.wdx-field select,
.wdx-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--wdx-ink);
  background: var(--wdx-surface);
  border: 1px solid var(--wdx-hairline);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wdx-field textarea { resize: vertical; min-height: 120px; }

.wdx-field input:focus,
.wdx-field select:focus,
.wdx-field textarea:focus {
  outline: none;
  border-color: var(--wdx-accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.wdx-field input::placeholder,
.wdx-field textarea::placeholder { color: #9b9aa8; }

.wdx-form-foot {
  margin-top: var(--wdx-space-6);
  padding-top: var(--wdx-space-5);
  border-top: 1px solid var(--wdx-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wdx-space-4);
  flex-wrap: wrap;
}

.wdx-form-note {
  font-size: 0.82rem;
  color: var(--wdx-muted);
  max-width: 380px;
}

/* Thanks / warn states */
.wdx-thanks {
  max-width: 560px;
  margin: var(--wdx-space-10) auto;
  text-align: center;
  background: var(--wdx-surface);
  border-radius: var(--wdx-radius-lg);
  box-shadow: var(--wdx-shadow);
  padding: var(--wdx-space-9) var(--wdx-space-6);
}

.wdx-thanks h2 { font-size: 1.7rem; margin: var(--wdx-space-4) 0 var(--wdx-space-2); }
.wdx-thanks p { color: var(--wdx-muted); margin-bottom: var(--wdx-space-5); }
.wdx-thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.1);
  color: var(--wdx-accent);
}

.wdx-thanks--warn .wdx-thanks-icon,
.wdx-thanks--warn h2 { color: #b45309; }
.wdx-thanks--warn .wdx-thanks-icon { background: rgba(245, 158, 11, 0.14); }

@media (max-width: 640px) {
  .wdx-form { padding: var(--wdx-space-5); }
  .wdx-form-grid { grid-template-columns: 1fr; }
  .wdx-form-foot { flex-direction: column; align-items: stretch; }
  .wdx-form-foot .wdx-btn { width: 100%; }
}

/* ---------- Map view ---------- */
.wdx-map {
  border-radius: var(--wdx-radius);
  box-shadow: var(--wdx-shadow);
  overflow: hidden;
  z-index: 0; /* keep Leaflet panes under header */
}

.wdx-map--archive {
  height: 420px;
  margin-bottom: var(--wdx-space-6);
}

.wdx-map--single {
  height: 220px;
  margin-top: var(--wdx-space-3);
  border-radius: 12px;
}

.wdx-map-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wdx-accent);
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.wdx-map-toggle:hover { background: rgba(79, 70, 229, 0.14); }

.wdx-archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wdx-space-4);
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .wdx-card, .wdx-card-media img, .wdx-cattile, .wdx-citytile, .wdx-btn, .wdx-searchbar-go {
    transition: none;
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid var(--wdx-accent);
  outline-offset: 2px;
}
