/**
 * Reference UI parity layer — ports prototype utilities/components from
 * tmp/target-next-source (globals.css, ui.tsx, journey-finder.tsx, header.tsx).
 * Loaded last on public routes when body.swt-reference-ui is present.
 */

/* -------------------------------------------------------------------------- */
/* Legacy neutralisation                                                      */
/* -------------------------------------------------------------------------- */

body.swt-reference-ui {
  --container-page: 82.5rem;
  --container-narrow: 53.75rem;
  --muted-foreground: #756b60;
  --card: #ffffff;
  --ring-border: color-mix(in srgb, var(--sand) 75%, transparent);
  background: #fff;
}

body.swt-reference-ui .site-header,
body.swt-reference-ui .site-header.is-sticky {
  background: color-mix(in srgb, #fff 94%, transparent);
}

body.swt-reference-ui .mega-panel,
body.swt-reference-ui .mega-panel__inner,
body.swt-reference-ui .mobile-nav {
  background: #fff;
}

body.swt-reference-ui .tour-card,
body.swt-reference-ui .service-card,
body.swt-reference-ui .holiday-card,
body.swt-reference-ui .article-card {
  background: var(--card);
  border: 0;
  border-radius: .75rem;
  box-shadow: none;
  ring: none;
}

body.swt-reference-ui .btn,
body.swt-reference-ui .btn--primary,
body.swt-reference-ui .btn--dark,
body.swt-reference-ui .btn--outline,
body.swt-reference-ui .btn--ghost,
body.swt-reference-ui .btn--ghost-light,
body.swt-reference-ui .elementor-button,
body.swt-reference-ui button[type="submit"] {
  border-radius: 9999px;
  font-size: .84375rem;
  font-weight: 500;
  letter-spacing: .04em;
  min-height: 2.75rem;
  padding: 0 1.5rem;
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
}

body.swt-reference-ui .btn--primary,
body.swt-reference-ui .btn--dark,
body.swt-reference-ui .elementor-button,
body.swt-reference-ui button[type="submit"] {
  background: var(--clay);
  border: 1px solid transparent;
  box-shadow: 0 1px 2px -1px rgba(138, 58, 28, .25), 0 8px 20px -8px rgba(138, 58, 28, .4);
  color: var(--ivory);
}

body.swt-reference-ui .btn--primary:hover,
body.swt-reference-ui .btn--dark:hover,
body.swt-reference-ui .elementor-button:hover,
body.swt-reference-ui button[type="submit"]:hover {
  background: var(--acacia);
  color: var(--ivory);
}

body.swt-reference-ui .btn--outline,
body.swt-reference-ui .btn--ghost {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--espresso) 20%, transparent);
  box-shadow: none;
  color: var(--espresso);
}

body.swt-reference-ui .btn--outline:hover,
body.swt-reference-ui .btn--ghost:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--ivory);
}

body.swt-reference-ui .btn--ghost-light {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--ivory) 55%, transparent);
  box-shadow: none;
  color: var(--ivory);
}

body.swt-reference-ui .btn--ghost-light:hover {
  background: color-mix(in srgb, var(--ivory) 12%, transparent);
  border-color: var(--ivory);
  color: var(--ivory);
}

/* -------------------------------------------------------------------------- */
/* Reference utilities                                                        */
/* -------------------------------------------------------------------------- */

body.swt-reference-ui .premium-shadow {
  box-shadow:
    0 1px 2px -1px rgba(31, 26, 20, .04),
    0 8px 24px -8px rgba(31, 26, 20, .08),
    0 24px 48px -24px rgba(31, 26, 20, .06);
}

body.swt-reference-ui .premium-shadow-lg {
  box-shadow:
    0 1px 3px -1px rgba(31, 26, 20, .06),
    0 16px 40px -12px rgba(31, 26, 20, .14),
    0 40px 80px -40px rgba(31, 26, 20, .12);
}

body.swt-reference-ui .grain-overlay {
  position: relative;
}

body.swt-reference-ui .grain-overlay::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.13 0 0 0 0 0.10 0 0 0 0 0.08 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  content: "";
  inset: 0;
  mix-blend-mode: multiply;
  opacity: .04;
  pointer-events: none;
  position: absolute;
}

body.swt-reference-ui .image-zoom {
  filter: brightness(1.04) contrast(1.035) saturate(1.12);
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}

body.swt-reference-ui .group:hover .image-zoom,
body.swt-reference-ui .safari-card:hover .image-zoom,
body.swt-reference-ui .tour-card:hover .image-zoom,
body.swt-reference-ui .holiday-card:hover .image-zoom {
  transform: scale(1.04);
}

body.swt-reference-ui .eyebrow {
  color: var(--muted-foreground);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

body.swt-reference-ui .eyebrow--light {
  color: color-mix(in srgb, var(--ivory) 85%, transparent);
}

body.swt-reference-ui .section-heading h2,
body.swt-reference-ui .swt-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.08;
}

body.swt-reference-ui .section,
body.swt-reference-ui .swt-section {
  padding-block: clamp(2.75rem, 4.5vw, 3.75rem);
}

body.swt-reference-ui .section--tight {
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
}

body.swt-reference-ui .container-wide {
  max-width: var(--container-wide);
}

body.swt-reference-ui .container {
  max-width: var(--container-page);
}

/* -------------------------------------------------------------------------- */
/* Global chrome — utility bar + sticky nav                                     */
/* -------------------------------------------------------------------------- */

body.swt-reference-ui .utility-bar {
  background: var(--espresso);
  border-bottom: 0;
  color: color-mix(in srgb, var(--ivory) 90%, transparent);
  min-height: 2.25rem;
}

body.swt-reference-ui .utility-bar,
body.swt-reference-ui .utility-bar a {
  font-size: .78125rem;
  letter-spacing: .02em;
}

body.swt-reference-ui .utility-bar a {
  color: color-mix(in srgb, var(--ivory) 70%, transparent);
}

body.swt-reference-ui .utility-bar a:hover {
  color: var(--ivory);
}

body.swt-reference-ui .utility-bar__inner > span:first-child {
  color: color-mix(in srgb, var(--ivory) 90%, transparent);
}

body.swt-reference-ui .utility-bar--reference .utility-bar__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 2.25rem;
}

body.swt-reference-ui .utility-regions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem;
}

body.swt-reference-ui .utility-regions__icon {
  color: color-mix(in srgb, var(--brass) 80%, transparent);
  font-size: .875rem;
  margin-right: .25rem;
}

body.swt-reference-ui .utility-region {
  align-items: center;
  background: transparent;
  border: 0;
  color: color-mix(in srgb, var(--ivory) 55%, transparent);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: .78125rem;
  gap: .35rem;
  padding: .25rem .5rem;
}

body.swt-reference-ui .utility-region.is-active,
body.swt-reference-ui .utility-region:hover {
  color: var(--ivory);
}

body.swt-reference-ui .utility-region__code {
  color: color-mix(in srgb, var(--brass) 70%, transparent);
  font-family: var(--font-body);
  font-size: .625rem;
}

body.swt-reference-ui .utility-region__divider {
  background: color-mix(in srgb, var(--ivory) 15%, transparent);
  display: inline-block;
  height: .75rem;
  margin-inline: .15rem;
  width: 1px;
}

body.swt-reference-ui .utility-links--reference {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

body.swt-reference-ui .utility-link {
  color: color-mix(in srgb, var(--ivory) 70%, transparent);
  font-size: .78125rem;
  padding: .25rem .5rem;
  text-decoration: none;
}

body.swt-reference-ui .utility-link:hover,
body.swt-reference-ui .utility-link--button:hover {
  color: var(--ivory);
}

body.swt-reference-ui .utility-link--button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

body.swt-reference-ui .utility-link__divider {
  background: color-mix(in srgb, var(--ivory) 15%, transparent);
  display: inline-block;
  height: .75rem;
  width: 1px;
}

body.swt-reference-ui .site-header,
body.swt-reference-ui .site-header.is-sticky {
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--ivory) 95%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--sand) 76%, transparent);
  box-shadow: 0 1px 2px -1px rgba(31, 26, 20, .04);
  min-height: 4.5rem;
}

body.swt-reference-ui .primary-nav > ul > li > a,
body.swt-reference-ui .nav-list > li > a,
body.swt-reference-ui .nav-actions a,
body.swt-reference-ui .nav-actions button {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: none;
}

body.swt-reference-ui .primary-nav > ul > li > a:hover,
body.swt-reference-ui .primary-nav > ul > li.current-menu-item > a,
body.swt-reference-ui .primary-nav > ul > li.current-menu-ancestor > a,
body.swt-reference-ui .nav-list > li > a:hover,
body.swt-reference-ui .nav-list > li.current-menu-item > a,
body.swt-reference-ui .nav-list > li.current-menu-ancestor > a {
  color: var(--clay);
}

body.swt-reference-ui .mega-panel {
  border-radius: .75rem;
  box-shadow: var(--shadow);
}

body.swt-reference-ui .mega-panel--reference .mega-panel__inner--reference {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(16rem, .9fr);
  padding: 1.5rem;
}

body.swt-reference-ui .mega-panel__columns {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.swt-reference-ui .mega-panel__editorial {
  border: 1px solid color-mix(in srgb, var(--sand) 75%, transparent);
  border-radius: .75rem;
  color: inherit;
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

body.swt-reference-ui .mega-panel__editorial-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

body.swt-reference-ui .mega-panel__editorial-copy {
  background: linear-gradient(to top, color-mix(in srgb, var(--espresso) 88%, transparent), color-mix(in srgb, var(--espresso) 35%, transparent) 55%, transparent);
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: flex-end;
  min-height: 12rem;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

body.swt-reference-ui .mega-panel__editorial-eyebrow {
  color: color-mix(in srgb, var(--brass) 90%, transparent);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body.swt-reference-ui .mega-panel__editorial-title {
  color: var(--ivory);
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.2;
  margin-top: .35rem;
}

body.swt-reference-ui .mega-panel__editorial-body {
  color: color-mix(in srgb, var(--ivory) 78%, transparent);
  display: block;
  font-size: .75rem;
  line-height: 1.45;
  margin-top: .35rem;
}

body.swt-reference-ui .mega-panel__editorial-cta {
  color: var(--brass);
  display: block;
  font-size: .75rem;
  font-weight: 500;
  margin-top: .5rem;
}

body.swt-reference-ui .nav-list > li.has-mega > a.has-mega__trigger::after {
  border-bottom: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  display: inline-block;
  height: .35rem;
  margin-left: .35rem;
  transform: rotate(45deg) translateY(-1px);
  width: .35rem;
}

body.swt-reference-ui .search-overlay {
  align-items: flex-start;
  background: transparent;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 8vh 1rem 2rem;
  pointer-events: none;
  position: fixed;
  transition: opacity .2s ease;
  z-index: 120;
}

body.swt-reference-ui .search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.swt-reference-ui .search-overlay__backdrop {
  backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--espresso) 40%, transparent);
  inset: 0;
  position: absolute;
}

body.swt-reference-ui .search-overlay__panel {
  background: var(--card, color-mix(in srgb, white 72%, var(--ivory)));
  border: 1px solid color-mix(in srgb, var(--sand) 75%, transparent);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  max-width: 47.5rem;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 1;
}

body.swt-reference-ui .search-overlay__head {
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--sand) 75%, transparent);
  display: flex;
  gap: .75rem;
  padding: 1rem 1.25rem;
}

body.swt-reference-ui .search-overlay__icon {
  color: var(--muted);
  font-size: 1.125rem;
}

body.swt-reference-ui .search-overlay__input {
  background: transparent;
  border: 0;
  flex: 1;
  font: inherit;
  font-size: .9375rem;
  outline: none;
}

body.swt-reference-ui .search-overlay__notice {
  background: color-mix(in srgb, var(--stone) 70%, var(--ivory));
  border-bottom: 1px solid color-mix(in srgb, var(--sand) 75%, transparent);
  color: color-mix(in srgb, var(--espresso) 80%, transparent);
  font-size: .8125rem;
  padding: .65rem 1.25rem;
}

body.swt-reference-ui .search-overlay__results {
  max-height: 58vh;
  overflow-y: auto;
}

body.swt-reference-ui .search-overlay__group {
  border-bottom: 1px solid color-mix(in srgb, var(--sand) 75%, transparent);
  padding: .75rem 0;
}

body.swt-reference-ui .search-overlay__group-title {
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  padding: 0 1.25rem .35rem;
  text-transform: uppercase;
}

body.swt-reference-ui .search-overlay__item {
  color: inherit;
  display: block;
  padding: .55rem 1.25rem;
  text-decoration: none;
}

body.swt-reference-ui .search-overlay__item:hover {
  background: color-mix(in srgb, var(--stone) 45%, transparent);
}

body.swt-reference-ui .search-overlay__item-title {
  color: var(--espresso);
  font-size: .875rem;
  font-weight: 600;
}

body.swt-reference-ui .search-overlay__item-code {
  color: var(--brass);
  font-family: var(--font-body);
  font-size: .6875rem;
  margin-left: .35rem;
}

body.swt-reference-ui .search-overlay__item-meta {
  color: var(--muted);
  display: block;
  font-size: .75rem;
  margin-top: .15rem;
}

body.swt-reference-ui .search-overlay__empty {
  color: var(--muted);
  font-size: .875rem;
  padding: 1.25rem;
}

body.swt-reference-ui .search-overlay__foot {
  align-items: center;
  background: color-mix(in srgb, var(--stone) 55%, var(--ivory));
  border-top: 1px solid color-mix(in srgb, var(--sand) 75%, transparent);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .75rem;
  gap: .75rem 1.25rem;
  justify-content: space-between;
  padding: .75rem 1.25rem;
}

body.swt-reference-ui .search-overlay__foot kbd {
  background: var(--card, #fff);
  border: 1px solid color-mix(in srgb, var(--sand) 75%, transparent);
  border-radius: .25rem;
  font-family: inherit;
  font-size: .6875rem;
  padding: .1rem .35rem;
}

body.swt-reference-ui .mega-panel,
body.swt-reference-ui .mega-panel__inner {
  font-family: "Work Sans", var(--font-body), system-ui, sans-serif;
}

body.swt-reference-ui .mega-panel h3,
body.swt-reference-ui .mega-panel .mega-panel__title {
  font-family: "Work Sans", var(--font-body), system-ui, sans-serif !important;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body.swt-reference-ui .mega-panel__editorial-title {
  font-family: "Fraunces", var(--font-display), serif !important;
  font-weight: 500 !important;
}

body.swt-reference-ui .mega-panel__list a,
body.swt-reference-ui .mega-panel__card-label,
body.swt-reference-ui .mega-panel__lede,
body.swt-reference-ui .mega-panel__cta {
  font-family: "Work Sans", var(--font-body), system-ui, sans-serif !important;
}

body.swt-reference-ui .site-footer {
  background: var(--espresso);
  color: color-mix(in srgb, var(--ivory) 88%, transparent);
}

body.swt-reference-ui .footer-brand-strip {
  border-bottom: 1px solid color-mix(in srgb, var(--ivory) 10%, transparent);
}

body.swt-reference-ui .footer-brand-strip__inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  padding-block: 3rem;
}

body.swt-reference-ui .footer-brand-strip__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

body.swt-reference-ui .footer-brand-strip__lede {
  color: color-mix(in srgb, var(--ivory) 70%, transparent);
  font-size: .9rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 28rem;
}

body.swt-reference-ui .footer-brand-strip__regions {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.swt-reference-ui .footer-brand-strip__region {
  border-left: 1px solid color-mix(in srgb, var(--ivory) 15%, transparent);
  padding-left: .85rem;
}

body.swt-reference-ui .footer-brand-strip__region-name {
  color: color-mix(in srgb, var(--brass) 85%, transparent);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

body.swt-reference-ui .footer-brand-strip__region-detail {
  color: color-mix(in srgb, var(--ivory) 65%, transparent);
  font-size: .75rem;
  line-height: 1.4;
  margin-top: .35rem;
}

body.swt-reference-ui .site-footer a {
  color: color-mix(in srgb, var(--ivory) 78%, transparent);
}

body.swt-reference-ui .site-footer a:hover {
  color: var(--brass);
}

body.swt-reference-ui .footer-title {
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body.swt-reference-ui .search-overlay,
body.swt-reference-ui .search-panel--overlay {
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--ivory) 98%, transparent);
}

/* -------------------------------------------------------------------------- */
/* Hero + slide counter                                                       */
/* -------------------------------------------------------------------------- */

body.swt-reference-ui .hero,
body.swt-reference-ui .home-hero {
  min-height: clamp(35rem, 75vh, 52rem);
}

body.swt-reference-ui .hero-slide-counter {
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  color: color-mix(in srgb, var(--ivory) 75%, transparent);
  font-family: var(--font-body);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  z-index: 4;
}

body.swt-reference-ui .hero-slider__btn {
  backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--espresso) 35%, transparent);
  border: 1px solid color-mix(in srgb, var(--ivory) 20%, transparent);
  border-radius: 9999px;
  height: 2.75rem;
  width: 2.75rem;
}

/* -------------------------------------------------------------------------- */
/* Journey Finder panel                                                       */
/* -------------------------------------------------------------------------- */

body.swt-reference-ui .journey-finder-section {
  margin-top: -4.5rem;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 5;
}

body.swt-reference-ui .journey-finder {
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--card) 95%, transparent);
  border: 1px solid var(--ring-border);
  border-radius: 1rem;
  box-shadow:
    0 1px 3px -1px rgba(31, 26, 20, .06),
    0 16px 40px -12px rgba(31, 26, 20, .14),
    0 40px 80px -40px rgba(31, 26, 20, .12);
  margin: 0 auto;
  max-width: calc(var(--container-wide) + (var(--gutter) * 2));
  overflow: hidden;
}

body.swt-reference-ui .journey-finder__header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding: 1.25rem 1.5rem .75rem;
}

body.swt-reference-ui .journey-finder__badge {
  align-items: center;
  background: color-mix(in srgb, var(--savanna) 50%, transparent);
  border-radius: 9999px;
  color: var(--acacia);
  display: inline-flex;
  font-size: .65625rem;
  font-weight: 500;
  gap: .375rem;
  letter-spacing: .15em;
  padding: .25rem .625rem;
  text-transform: uppercase;
}

body.swt-reference-ui .journey-finder__intro {
  color: var(--muted-foreground);
  font-size: .75rem;
}

body.swt-reference-ui .journey-finder .search-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin: 0;
  max-width: none;
  padding: 0 1.5rem 1.5rem;
}

body.swt-reference-ui .journey-finder .search-panel.search-panel--reference {
  grid-template-columns: 1fr;
  padding: 0;
}

@media (min-width: 48rem) {
  body.swt-reference-ui .journey-finder .search-panel.search-panel--reference {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  body.swt-reference-ui .journey-finder .search-panel.search-panel--reference {
    grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  }
}

body.swt-reference-ui .journey-finder .search-panel label {
  background: color-mix(in srgb, var(--stone) 45%, var(--ivory));
  border: 1px solid var(--ring-border);
  border-radius: .75rem;
  color: var(--muted-foreground);
  display: flex;
  flex-direction: column;
  font-size: .6875rem;
  font-weight: 500;
  gap: .35rem;
  letter-spacing: .08em;
  min-height: 3.625rem;
  padding: .65rem .85rem .75rem;
  position: relative;
  text-transform: uppercase;
}

body.swt-reference-ui .journey-finder .search-panel select,
body.swt-reference-ui .journey-finder .search-panel input {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--espresso);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: 0;
  padding: 0;
  text-transform: none;
  width: 100%;
}

body.swt-reference-ui .journey-finder .search-panel label:has(select)::after {
  border-bottom: 1.5px solid var(--muted-foreground);
  border-right: 1.5px solid var(--muted-foreground);
  content: "";
  height: .4rem;
  pointer-events: none;
  position: absolute;
  right: 1rem;
  top: 2.35rem;
  transform: rotate(45deg);
  width: .4rem;
}

body.swt-reference-ui .journey-finder .search-panel .btn {
  align-self: end;
  border-radius: .75rem;
  box-shadow: 0 8px 24px -8px rgba(138, 58, 28, .45);
  grid-column: 1 / -1;
  justify-self: stretch;
  min-height: 3.625rem;
  width: 100%;
}

@media (min-width: 64rem) {
  body.swt-reference-ui .journey-finder .search-panel {
    grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  }

  body.swt-reference-ui .journey-finder .search-panel .btn,
  body.swt-reference-ui .journey-finder .search-panel .journey-finder__submit {
    grid-column: auto;
    width: auto;
  }
}

body.swt-reference-ui .journey-finder--reference .journey-finder__body {
  padding: 1.25rem 1.5rem 0;
}

body.swt-reference-ui .journey-finder--reference .journey-finder__form {
  padding: 0 0 1.5rem;
}

body.swt-reference-ui .journey-finder__field {
  background: color-mix(in srgb, var(--stone) 45%, var(--ivory));
  border: 1px solid var(--ring-border);
  border-radius: .75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-height: 3.625rem;
  padding: .65rem .85rem .75rem;
  position: relative;
}

body.swt-reference-ui .journey-finder__field-label {
  color: var(--muted-foreground);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.swt-reference-ui .journey-finder__field input,
body.swt-reference-ui .journey-finder__field select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--espresso);
  font-size: .875rem;
  font-weight: 500;
  outline: none;
  padding: 0;
  width: 100%;
}

body.swt-reference-ui .journey-finder__field:has(select)::after {
  border-bottom: 1.5px solid var(--muted-foreground);
  border-right: 1.5px solid var(--muted-foreground);
  content: "";
  height: .4rem;
  pointer-events: none;
  position: absolute;
  right: 1rem;
  top: 2.35rem;
  transform: rotate(45deg);
  width: .4rem;
}

body.swt-reference-ui .journey-finder__submit {
  align-self: end;
}

body.swt-reference-ui .journey-finder__search-btn {
  border-radius: .75rem;
  box-shadow: 0 8px 24px -8px rgba(138, 58, 28, .45);
  min-height: 3.625rem;
  padding-inline: 1.75rem;
  white-space: nowrap;
  width: 100%;
}

body.swt-reference-ui .journey-finder__browse {
  background: color-mix(in srgb, var(--stone) 35%, var(--ivory));
  border-top: 1px solid var(--ring-border);
  padding: .875rem 1.5rem;
}

body.swt-reference-ui .journey-finder__browse-label {
  color: var(--muted-foreground);
  display: inline-block;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  margin-right: .5rem;
  text-transform: uppercase;
}

body.swt-reference-ui .journey-finder__chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .5rem;
}

body.swt-reference-ui .journey-finder__chip {
  background: var(--card, #fff);
  border: 1px solid var(--ring-border);
  border-radius: 9999px;
  color: color-mix(in srgb, var(--espresso) 70%, transparent);
  display: inline-flex;
  font-size: .78125rem;
  font-weight: 500;
  padding: .375rem .75rem;
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}

body.swt-reference-ui .journey-finder__chip:hover {
  border-color: color-mix(in srgb, var(--clay) 40%, transparent);
  color: var(--espresso);
}

body.swt-reference-ui .journey-finder__chip.is-active {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--ivory);
}

body.reference-home .ref-journey-finder {
  margin-top: -4rem;
  position: relative;
  z-index: 20;
}

@media (min-width: 48rem) {
  body.reference-home .ref-journey-finder {
    margin-top: -5rem;
  }
}

body.reference-home .ref-journey-finder .journey-finder-section {
  margin-top: 0;
  padding-inline: 0;
}

body.reference-home .ref-journey-finder .journey-finder {
  border-radius: 1rem;
  max-width: none;
}

/* -------------------------------------------------------------------------- */
/* Compact homepage finder. Extra specificity overrides Elementor spacing. */
body.swt-reference-ui.reference-home .elementor .elementor-element .ref-journey-finder.ref-journey-finder--compact,
body.swt-reference-ui .ref-journey-finder.ref-journey-finder--compact {
  padding-block: 1.25rem !important;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder {
  border-radius: 1rem;
  background: var(--card, #fff);
  box-shadow: 0 8px 28px -16px rgba(31, 26, 20, .22);
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder__body {
  padding: 1rem 1.25rem .75rem;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder__header {
  padding: 0 0 .75rem;
  gap: .375rem .75rem;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder__badge {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--clay);
  font-weight: 700;
  font-size: .6875rem;
  letter-spacing: .1em;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder__intro {
  font-size: .8125rem;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder .search-panel--reference {
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) auto;
  gap: .625rem;
  padding: 0;
  align-items: stretch;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder .search-panel label {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: .5rem .75rem;
  gap: .125rem;
  border-radius: .625rem;
  background: color-mix(in srgb, var(--stone) 25%, var(--ivory));
  transition: border-color .2s, box-shadow .2s;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder__field-label {
  font-size: .625rem;
  line-height: 1.4;
  letter-spacing: .1em;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder .search-panel input,
body.swt-reference-ui .ref-journey-finder--compact .journey-finder .search-panel select {
  height: 2rem;
  min-height: 2rem;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  font-size: .875rem;
  line-height: 2rem;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder .search-panel select {
  padding-right: 1.25rem;
  cursor: pointer;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder .search-panel label:has(select)::after {
  top: 2rem;
  right: .875rem;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder .search-panel label:focus-within {
  border-color: var(--clay);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--clay) 18%, transparent);
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder__submit {
  align-self: stretch;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder .search-panel .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 100%;
  min-height: 3rem;
  padding: .75rem 1.25rem;
  border-radius: .625rem;
  box-shadow: none;
  font-size: .875rem;
  text-transform: none;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder__browse {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .375rem 1.25rem;
  background: transparent;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder__browse-label {
  margin: 0;
  flex-shrink: 0;
  font-size: .625rem;
  letter-spacing: .08em;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder__chips {
  gap: .25rem;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder__chip {
  align-items: center;
  min-height: 2.125rem;
  padding: .25rem .625rem;
  border-color: transparent;
  background: transparent;
  font-size: .75rem;
}

body.swt-reference-ui .ref-journey-finder--compact .journey-finder__chip:is(.is-active, :hover) {
  background: color-mix(in srgb, var(--clay) 9%, var(--ivory));
  color: var(--clay);
}

body.swt-reference-ui .ref-journey-finder--compact :is(.journey-finder__chip, .journey-finder__search-btn):focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

@media (max-width: 63.99rem) {
  body.swt-reference-ui .ref-journey-finder--compact .journey-finder .search-panel--reference {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.swt-reference-ui .ref-journey-finder--compact .journey-finder__submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 47.99rem) {
  body.swt-reference-ui .ref-journey-finder--compact .journey-finder__body {
    padding: .875rem;
  }

  body.swt-reference-ui .ref-journey-finder--compact .journey-finder__browse {
    padding: .375rem .875rem;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0 .5rem;
  }

  body.swt-reference-ui .ref-journey-finder--compact .journey-finder__browse-label {
    line-height: 2.75rem;
  }

  body.swt-reference-ui .ref-journey-finder--compact .journey-finder__chip {
    min-height: 2.75rem;
  }

  body.swt-reference-ui .ref-journey-finder--compact .journey-finder .search-panel input,
  body.swt-reference-ui .ref-journey-finder--compact .journey-finder .search-panel select {
    font-size: 1rem;
  }
}

/* Safari card (4:5)                                                          */
/* -------------------------------------------------------------------------- */

body.swt-reference-ui .safari-card,
body.swt-reference-ui .tour-card.safari-card {
  border: 1px solid var(--ring-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1);
}

body.swt-reference-ui .safari-card:hover,
body.swt-reference-ui .tour-card.safari-card:hover {
  box-shadow:
    0 1px 2px -1px rgba(31, 26, 20, .04),
    0 8px 24px -8px rgba(31, 26, 20, .08),
    0 24px 48px -24px rgba(31, 26, 20, .06);
  transform: none;
}

body.swt-reference-ui .safari-card__media,
body.swt-reference-ui .tour-card.safari-card .tour-card__media {
  aspect-ratio: 4 / 5;
  background: var(--stone, #efe7d9);
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

body.swt-reference-ui .safari-card__media::after,
body.swt-reference-ui .tour-card.safari-card .tour-card__media::after {
  background: linear-gradient(to top, color-mix(in srgb, var(--espresso) 32%, transparent), transparent 52%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

body.swt-reference-ui .safari-card__media img,
body.swt-reference-ui .safari-card__media .image-fallback,
body.swt-reference-ui .tour-card.safari-card .tour-card__media img,
body.swt-reference-ui .tour-card.safari-card .tour-card__media .image-fallback {
  aspect-ratio: auto;
  display: block;
  height: 100%;
  inset: 0;
  max-height: none;
  min-height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

body.swt-reference-ui .safari-card__code,
body.swt-reference-ui .tour-card__badge {
  backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--ivory) 95%, transparent);
  border-radius: 9999px;
  color: var(--clay);
  font-family: var(--font-body);
  font-size: .65625rem;
  font-weight: 500;
  left: .875rem;
  letter-spacing: .15em;
  padding: .25rem .625rem;
  position: absolute;
  text-transform: uppercase;
  top: .875rem;
  z-index: 2;
}

body.swt-reference-ui .safari-card__overlay-meta {
  bottom: .875rem;
  display: flex;
  justify-content: space-between;
  left: .875rem;
  position: absolute;
  right: .875rem;
  z-index: 2;
}

body.swt-reference-ui .safari-card__pill {
  backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--espresso) 40%, transparent);
  border-radius: 9999px;
  color: var(--ivory);
  font-size: .71875rem;
  padding: .25rem .625rem;
}

body.swt-reference-ui .safari-card__body,
body.swt-reference-ui .tour-card.safari-card .tour-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

body.swt-reference-ui .safari-card__style,
body.swt-reference-ui .tour-card__type {
  color: var(--brass);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}

body.swt-reference-ui .safari-card__title,
body.swt-reference-ui .tour-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  margin-top: .375rem;
}

body.swt-reference-ui .safari-card__title a:hover,
body.swt-reference-ui .tour-card__title a:hover {
  color: var(--clay);
}

body.swt-reference-ui .safari-card__excerpt,
body.swt-reference-ui .tour-card__excerpt {
  color: var(--muted-foreground);
  font-size: .84375rem;
  line-height: 1.55;
  margin-top: .5rem;
}

body.swt-reference-ui .safari-card__facts-divider {
  background: var(--ring-border);
  display: inline-block;
  height: .75rem;
  width: 1px;
}

body.swt-reference-ui .safari-card__facts,
body.swt-reference-ui .tour-card__facts {
  border-top: 1px solid var(--ring-border);
  color: color-mix(in srgb, var(--espresso) 70%, transparent);
  display: flex;
  font-size: .75rem;
  gap: .75rem;
  margin-top: 1rem;
  padding-top: .875rem;
}

body.swt-reference-ui .safari-card__footer,
body.swt-reference-ui .tour-card__footer {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}

body.swt-reference-ui .safari-card__footer a,
body.swt-reference-ui .tour-card__footer a {
  border-radius: 9999px;
  font-size: .78125rem;
  font-weight: 500;
  padding: .5rem 1rem;
  text-align: center;
}

body.swt-reference-ui .safari-card__footer .tour-card__cta,
body.swt-reference-ui .tour-card__footer .tour-card__cta {
  align-items: center;
  background: color-mix(in srgb, var(--espresso) 4%, transparent);
  color: var(--espresso);
  display: inline-flex;
  flex: 1;
  gap: .375rem;
  justify-content: center;
}

body.swt-reference-ui .safari-card__footer .tour-card__cta:hover,
body.swt-reference-ui .tour-card__footer .tour-card__cta:hover {
  background: var(--clay);
  color: var(--ivory);
}

body.swt-reference-ui .tour-card__footer a:not(.tour-card__cta) {
  border: 1px solid var(--ring-border);
  color: var(--espresso);
}

body.swt-reference-ui .tour-card__footer a:not(.tour-card__cta):hover {
  border-color: var(--clay);
  color: var(--clay);
}

/* Holiday card (3:2) */
body.swt-reference-ui .holiday-card__media,
body.swt-reference-ui .holiday-card .holiday-card__media {
  aspect-ratio: 3 / 2;
}

/* -------------------------------------------------------------------------- */
/* Safari archive filters                                                     */
/* -------------------------------------------------------------------------- */

body.swt-reference-ui .filter-layout {
  align-items: start;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
}

body.swt-reference-ui .filters {
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  border: 1px solid var(--ring-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
  position: sticky;
  top: 7rem;
}

body.swt-reference-ui .filter-group legend {
  color: var(--muted-foreground);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  margin-bottom: .5rem;
  text-transform: uppercase;
}

body.swt-reference-ui .filters .check {
  align-items: center;
  border-radius: .5rem;
  display: flex;
  font-size: .84375rem;
  gap: .5rem;
  padding: .35rem .25rem;
}

body.swt-reference-ui .filters .check:hover {
  background: color-mix(in srgb, var(--stone) 55%, transparent);
}

body.swt-reference-ui .filters .field input,
body.swt-reference-ui .filters .field select {
  background: var(--ivory);
  border: 1px solid var(--ring-border);
  border-radius: .5rem;
  font-size: .875rem;
  padding: .55rem .75rem;
  width: 100%;
}

body.swt-reference-ui .results-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--ring-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

body.swt-reference-ui .tour-results--grid {
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.swt-reference-ui .mobile-filter-bar .btn {
  border-radius: 9999px;
}

body.swt-reference-ui .filter-drawer {
  background: var(--ivory);
}

body.swt-reference-ui .chip.is-active {
  background: color-mix(in srgb, var(--savanna) 45%, transparent);
  border-radius: 9999px;
  color: var(--espresso);
  font-size: .75rem;
  padding: .25rem .75rem;
}

/* -------------------------------------------------------------------------- */
/* Safari detail — sticky CTA + facts                                         */
/* -------------------------------------------------------------------------- */

body.swt-reference-ui .tour-single__hero {
  min-height: clamp(28rem, 55vh, 40rem);
}

body.swt-reference-ui .tour-single__toc {
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--ivory) 95%, transparent);
  border-block: 1px solid var(--ring-border);
  position: sticky;
  top: 4.5rem;
  z-index: 20;
}

body.swt-reference-ui .tour-single__toc a {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .02em;
}

body.swt-reference-ui .tour-single__facts {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  margin-bottom: 2rem;
}

body.swt-reference-ui .tour-single__fact {
  background: color-mix(in srgb, var(--stone) 40%, var(--ivory));
  border: 1px solid var(--ring-border);
  border-radius: .75rem;
  padding: .875rem 1rem;
}

body.swt-reference-ui .tour-single__fact span {
  color: var(--muted-foreground);
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.swt-reference-ui .tour-single__rail {
  top: 7.5rem;
}

body.swt-reference-ui .tour-single__mobile-cta,
body.swt-reference-ui .mobile-cta.tour-single__mobile-cta {
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--ivory) 94%, transparent);
  border-top: 1px solid var(--ring-border);
  box-shadow: 0 -8px 24px -12px rgba(31, 26, 20, .12);
  gap: .5rem;
  padding: .75rem 1rem;
}

body.swt-reference-ui .tour-single__accordion details {
  border: 1px solid var(--ring-border);
  border-radius: .75rem;
  margin-bottom: .5rem;
  overflow: hidden;
}

body.swt-reference-ui .tour-single__accordion summary {
  cursor: pointer;
  font-weight: 500;
  padding: 1rem 1.25rem;
}

body.swt-reference-ui .tour-single__gallery {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

body.swt-reference-ui .tour-single__gallery button {
  border: 0;
  border-radius: .75rem;
  overflow: hidden;
  padding: 0;
}

/* -------------------------------------------------------------------------- */
/* Content cards + grids                                                      */
/* -------------------------------------------------------------------------- */

body.swt-reference-ui .service-card-grid,
body.swt-reference-ui .swt-card-grid,
body.swt-reference-ui .grid-3 {
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

body.swt-reference-ui .service-card:hover,
body.swt-reference-ui .swt-content-card:hover,
body.swt-reference-ui .holiday-card:hover,
body.swt-reference-ui .article-card:hover {
  box-shadow:
    0 1px 2px -1px rgba(31, 26, 20, .04),
    0 8px 24px -8px rgba(31, 26, 20, .08),
    0 24px 48px -24px rgba(31, 26, 20, .06);
  transform: none;
}

body.swt-reference-ui .service-card,
body.swt-reference-ui .swt-content-card {
  border: 1px solid var(--ring-border);
  border-radius: .75rem;
}

/* -------------------------------------------------------------------------- */
/* Forms                                                                      */
/* -------------------------------------------------------------------------- */

body.swt-reference-ui .conversion-form input,
body.swt-reference-ui .conversion-form select,
body.swt-reference-ui .conversion-form textarea,
body.swt-reference-ui .swt-form input,
body.swt-reference-ui .swt-form select,
body.swt-reference-ui .swt-form textarea {
  background: var(--ivory);
  border: 1px solid var(--ring-border);
  border-radius: .5rem;
  font-size: .9375rem;
  padding: .65rem .85rem;
}

body.swt-reference-ui .conversion-form input:focus,
body.swt-reference-ui .conversion-form select:focus,
body.swt-reference-ui .conversion-form textarea:focus,
body.swt-reference-ui .swt-form input:focus,
body.swt-reference-ui .swt-form select:focus,
body.swt-reference-ui .swt-form textarea:focus {
  border-color: var(--brass);
  outline: 2px solid color-mix(in srgb, var(--brass) 35%, transparent);
  outline-offset: 1px;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 63.99rem) {
  body.swt-reference-ui .filter-layout {
    grid-template-columns: 1fr;
  }

  body.swt-reference-ui .filters {
    display: none;
  }

  body.swt-reference-ui .tour-results--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.swt-reference-ui .journey-finder-section {
    margin-top: -2.5rem;
  }
}

@media (max-width: 47.99rem) {
  body.swt-reference-ui .tour-results--grid {
    grid-template-columns: 1fr;
  }

  body.swt-reference-ui .service-card-grid,
  body.swt-reference-ui .swt-card-grid,
  body.swt-reference-ui .grid-3 {
    grid-template-columns: 1fr;
  }
}
