/* ============================================================
   Roxana Travel — smart trip archives
   Destinations, package collections, activities and /trips/.
   ============================================================ */

/* ---------- Breadcrumbs ---------- */
.rx-arch-crumbs { background: #fff; padding: 18px 0 8px; }
.rx-arch .rx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.rx-arch .rx-crumbs a { color: var(--muted); text-decoration: none; }
.rx-arch .rx-crumbs a:hover { color: var(--brand-purple); }
.rx-arch .rx-crumbs__sep { color: var(--line); }
.rx-arch .rx-crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.rx-arch-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(380px, 42vw, 520px);
  display: flex;
  align-items: flex-end;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(140deg, #f6f4ff, #fdf4fa 55%, #eff6ff);
}
.rx-arch-hero__media,
.rx-arch-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rx-arch-hero__media img { object-fit: cover; object-position: center 45%; }
.rx-arch-hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 16, 42, .82) 0%, rgba(20, 16, 42, .58) 45%, rgba(20, 16, 42, .12) 100%);
}
.rx-arch-hero__inner { position: relative; z-index: 2; padding-block: clamp(34px, 4.4vw, 56px); }
.rx-arch-hero__panel { max-width: 760px; color: #fff; }
.rx-arch-hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(8px);
  font-family: var(--font-heading); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.rx-arch-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -.02em;
  color: #fff;
}
.rx-arch-hero__lead {
  max-width: 62ch; margin: 0 0 24px;
  font-size: clamp(1rem, .95rem + .25vw, 1.12rem);
  line-height: 1.65; color: rgba(255, 255, 255, .88);
}
.rx-arch-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.rx-arch-hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.rx-arch-hero__facts li {
  display: flex; align-items: baseline; gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
}
.rx-arch-hero__facts strong { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: #fff; }
.rx-arch-hero__facts span { font-size: 11.5px; color: rgba(255, 255, 255, .78); }

/* No photo available: tinted hero with dark text */
.rx-arch-hero--plain { min-height: 0; }
.rx-arch-hero--plain .rx-arch-hero__inner { padding-block: clamp(30px, 3.6vw, 46px); }
.rx-arch-hero--plain h1 { color: var(--ink); }
.rx-arch-hero--plain .rx-arch-hero__lead { color: var(--ink-2); }
.rx-arch-hero--plain .rx-arch-hero__kicker {
  background: rgba(106, 75, 209, .1);
  border-color: rgba(106, 75, 209, .18);
  color: var(--brand-purple);
}
.rx-arch-hero--plain .rx-arch-hero__facts li {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 6px 18px rgba(20, 18, 31, .05);
}
.rx-arch-hero--plain .rx-arch-hero__facts strong { color: var(--ink); }
.rx-arch-hero--plain .rx-arch-hero__facts span { color: var(--muted); }
.rx-arch-hero--plain .rx-btn--onimage {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(20, 18, 31, .08);
}
.rx-arch-hero--plain .rx-btn--onimage:hover { border-color: var(--brand-purple); color: var(--brand-purple); }

/* ---------- Gallery strip ---------- */
.rx-arch-gallery { margin-top: -58px; position: relative; z-index: 3; }
.rx-arch-gallery__row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; grid-auto-rows: 190px; gap: 12px; }
.rx-arch-gallery__item {
  margin: 0; overflow: hidden;
  border-radius: 16px;
  border: 4px solid #fff;
  box-shadow: 0 14px 32px rgba(20, 18, 31, .18);
  height: 100%;
}

.rx-arch-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); display: block; }
.rx-arch-gallery__item:hover img { transform: scale(1.04); }

/* ---------- Intro ---------- */
.rx-arch-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.rx-arch-intro__body h2 { margin: 8px 0 18px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.rx-arch-intro__body p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.rx-arch-intro__body p:last-child { margin-bottom: 0; }
.rx-arch-intro__aside { position: sticky; top: 96px; }

.rx-arch-highlights {
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, #fff, #faf8ff);
  box-shadow: 0 16px 40px rgba(106, 75, 209, .07);
}
.rx-arch-highlights__label {
  display: block; margin-bottom: 14px;
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.rx-arch-highlights ul { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.rx-arch-highlights li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.rx-arch-highlights li .rx-icon {
  width: 17px !important; height: 17px !important; max-width: 17px !important; max-height: 17px !important;
  flex: 0 0 auto; margin-top: 2px; padding: 3px;
  border-radius: 50%; background: rgba(31, 169, 113, .12); color: #15803d;
}
.rx-btn--block { display: flex; justify-content: center; width: 100%; }

/* ---------- Section head ---------- */
.rx-arch-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 14px 30px; margin-bottom: 26px;
}
.rx-arch-head h2 { margin: 6px 0 0; font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.35rem); }
.rx-arch-head__lead { flex: 0 1 480px; margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }

.rx-arch-tours { padding-top: clamp(30px, 3.4vw, 48px); }

/* ---------- Filter bar ---------- */
.rx-fbar {
  position: relative; z-index: 20;
  margin-bottom: 26px; padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 18, 31, .05);
}
.rx-fbar__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.rx-fdrop { position: relative; }
.rx-fdrop__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--ink);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.rx-fdrop__btn:hover { border-color: rgba(106, 75, 209, .45); color: var(--brand-purple); }
.rx-fdrop__btn.is-active { border-color: var(--brand-purple); background: rgba(106, 75, 209, .08); color: var(--brand-purple); }
.rx-fdrop__btn .rx-icon { width: 14px !important; height: 14px !important; transition: transform var(--dur-fast) var(--ease); }
.rx-fdrop.is-open .rx-fdrop__btn .rx-icon { transform: rotate(180deg); }
.rx-fdrop__count {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--brand-purple); color: #fff;
  font-size: 10.5px; font-style: normal; font-weight: 700;
}
.rx-fdrop__panel {
  position: absolute; top: calc(100% + 8px); left: 0;
  display: none;
  width: min(320px, calc(100vw - 48px));
  max-height: 340px; overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(20, 18, 31, .16);
}
.rx-fdrop.is-open .rx-fdrop__panel { display: block; }
.rx-fdrop__list { display: grid; gap: 2px; }

.rx-check {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px; border-radius: 10px;
  cursor: pointer; font-size: 13.5px; color: var(--ink-2);
}
.rx-check:hover { background: var(--surface-2); }
.rx-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rx-check__box {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; flex: 0 0 18px;
  border: 1.5px solid #d6d2e6; border-radius: 5px; background: #fff;
  transition: all var(--dur-fast) var(--ease);
}
.rx-check__box .rx-icon { width: 11px !important; height: 11px !important; color: #fff; opacity: 0; }
.rx-check input:checked + .rx-check__box { background: var(--brand-purple); border-color: var(--brand-purple); }
.rx-check input:checked + .rx-check__box .rx-icon { opacity: 1; }
.rx-check input:focus-visible + .rx-check__box { box-shadow: 0 0 0 3px rgba(106, 75, 209, .2); }
.rx-check__label { flex: 1; min-width: 0; }
.rx-check__num { font-size: 11px; color: var(--muted); }

.rx-range { display: grid; gap: 16px; }
.rx-range__row { display: grid; gap: 18px; }
.rx-range label { display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
.rx-range output { font-family: var(--font-heading); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.rx-range input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 999px;
  background: var(--line); outline: none;
}
.rx-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-purple); border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(106, 75, 209, .4); cursor: pointer;
}
.rx-range input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand-purple); border: 3px solid #fff; cursor: pointer;
}

.rx-fbar__clear {
  margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.rx-fbar__clear:hover { color: var(--brand-purple); }
.rx-fbar__apply {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--brand-purple); color: #fff;
  font-family: var(--font-heading); font-size: 13.5px; font-weight: 600;
  cursor: pointer;
}
.rx-fbar__apply:hover { background: var(--brand-purple-600); }

/* ---------- Toolbar ---------- */
.rx-arch-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.rx-arch-toolbar__count { font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--ink); }
.rx-arch-toolbar__in { font-weight: 400; color: var(--muted); }

.rx-sort { position: relative; }
.rx-sort__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-family: var(--font-heading); font-size: 12.5px; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.rx-sort__btn .rx-icon { width: 14px !important; height: 14px !important; transition: transform var(--dur-fast) var(--ease); }
.rx-sort.is-open .rx-sort__btn .rx-icon { transform: rotate(180deg); }
.rx-sort__list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  display: none;
  min-width: 220px; margin: 0; padding: 8px; list-style: none;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 0 22px 54px rgba(20, 18, 31, .16);
}
.rx-sort.is-open .rx-sort__list { display: block; }
.rx-sort__list a {
  display: block; padding: 9px 12px; border-radius: 9px;
  font-size: 13px; color: var(--ink-2); text-decoration: none;
}
.rx-sort__list a:hover { background: var(--surface-2); color: var(--brand-purple); }
.rx-sort__list a.is-active { background: rgba(106, 75, 209, .1); color: var(--brand-purple); font-weight: 600; }

/* ---------- Results ---------- */
.rx-arch-grid { align-items: stretch; }
.rx-arch-grid .rx-trip { height: 100%; }
@media (min-width: 1025px) {
  .rx-arch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .rx-arch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .rx-arch-grid { grid-template-columns: 1fr; }
}

.rx-arch-empty {
  padding: 44px 24px; text-align: center;
  border: 1px dashed rgba(106, 75, 209, .3); border-radius: 20px;
  background: rgba(255, 255, 255, .7);
}
.rx-arch-empty p { max-width: 52ch; margin: 0 auto 18px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.rx-arch-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.rx-arch-pagination { margin-top: 34px; }
.rx-arch-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.rx-arch-pagination .page-numbers {
  display: inline-grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-family: var(--font-heading); font-size: 13.5px; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.rx-arch-pagination .page-numbers:hover { border-color: var(--brand-purple); color: var(--brand-purple); }
.rx-arch-pagination .page-numbers.current { background: var(--brand-purple); border-color: var(--brand-purple); color: #fff; }

/* ---------- Map ---------- */
.rx-arch-map { margin-top: clamp(34px, 4vw, 54px); }
.rx-arch-map__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px 30px; margin-bottom: 16px;
}
.rx-arch-map__head h3 { margin: 6px 0 0; font-size: clamp(1.3rem, 1.1rem + .9vw, 1.8rem); }
.rx-arch-map__head p { flex: 0 1 420px; margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.rx-arch-map__canvas {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--surface-2);
}
.rx-arch-map__canvas .map-container { width: 100%; flex: none; margin: 0; }
.rx-arch-map__canvas > h4,
.rx-arch-map__canvas .map-container > h4 { display: none; }
.rx-arch-map__canvas #togo-map { width: 100%; height: clamp(340px, 40vw, 480px); min-height: 0; }
.rx-arch-map__canvas .view-full-map { display: none; }
.rx-arch-map__canvas .leaflet-container { border-radius: 22px; font-family: var(--font-body); }

/* ---------- Internal links ---------- */
.rx-arch-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.rx-arch-link {
  position: relative;
  display: flex; flex-direction: column; gap: 5px;
  padding: 20px 52px 20px 20px;
  border: 1px solid var(--line); border-radius: 16px;
  background: #fff; text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.rx-arch-link:hover {
  border-color: rgba(106, 75, 209, .35);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(106, 75, 209, .1);
}
.rx-arch-link__label { font-family: var(--font-heading); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.rx-arch-link__note { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.rx-arch-link__arrow {
  position: absolute; top: 50%; right: 20px; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(106, 75, 209, .09); color: var(--brand-purple);
}
.rx-arch-link__arrow .rx-icon { width: 14px !important; height: 14px !important; }
.rx-arch-link:hover .rx-arch-link__arrow { background: var(--brand-purple); color: #fff; }

/* ---------- FAQs ---------- */
.rx-arch-faqs__grid {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.rx-arch-faqs__intro { position: sticky; top: 96px; }
.rx-arch-faqs__intro h2 { margin: 8px 0 14px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.rx-arch-faqs__intro p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
/* The shared accordion already provides the card styling. */
.rx-arch-faqs .rx-accordion { border-top: 0; }

/* ---------- Blog ---------- */
.rx-arch-posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rx-arch-post {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.rx-arch-post:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20, 18, 31, .09); }
.rx-arch-post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.rx-arch-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); display: block; }
.rx-arch-post:hover .rx-arch-post__media img { transform: scale(1.04); }
.rx-arch-post__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.rx-arch-post__date { font-family: var(--font-heading); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rx-arch-post h3 { margin: 0; font-family: var(--font-heading); font-size: 17px; font-weight: 600; line-height: 1.35; }
.rx-arch-post h3 a { color: var(--ink); text-decoration: none; }
.rx-arch-post h3 a:hover { color: var(--brand-purple); }
.rx-arch-post p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.rx-arch-post__more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 10px;
  font-family: var(--font-heading); font-size: 12.5px; font-weight: 600; color: var(--brand-purple);
  text-decoration: none;
}
.rx-arch-post__more .rx-icon { width: 13px !important; height: 13px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .rx-arch-intro__grid,
  .rx-arch-faqs__grid { grid-template-columns: 1fr; }
  .rx-arch-intro__aside,
  .rx-arch-faqs__intro { position: static; }
  .rx-arch-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-arch-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-arch-gallery__row { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}
@media (max-width: 720px) {
  .rx-arch-hero { min-height: 0; border-radius: 0 0 20px 20px; }
  .rx-arch-hero__inner { padding-block: 32px; }
  .rx-arch-hero__veil { background: linear-gradient(180deg, rgba(20, 16, 42, .6) 0%, rgba(20, 16, 42, .78) 100%); }
  .rx-arch-hero__facts li { padding: 8px 12px; }
  .rx-arch-gallery { margin-top: -32px; }
  .rx-arch-gallery__row { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 128px; gap: 8px; }
  .rx-arch-gallery__item:nth-child(3):last-child { grid-column: span 2; }
  .rx-arch-links, .rx-arch-posts__grid { grid-template-columns: 1fr; }
  .rx-fbar__bar { gap: 6px; }
  .rx-fdrop { flex: 1 1 calc(50% - 6px); }
  .rx-fdrop__btn { width: 100%; justify-content: space-between; }
  .rx-fdrop__panel { width: min(320px, calc(100vw - 32px)); }
  .rx-fbar__clear { margin-left: 0; }
  .rx-fbar__apply { flex: 1 1 100%; }
  .rx-arch-toolbar { gap: 8px; }
}

/* ============================================================
   v2 — boxed hero, search-results mode, map beside the cards
   ============================================================ */

/* ---------- Boxed hero ---------- */
.rx-arch-hero-wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 24px);
}
.rx-arch-hero--boxed {
  border-radius: 24px;
  min-height: clamp(320px, 34vw, 440px);
}
.rx-arch-hero--boxed .rx-arch-hero__inner { padding: clamp(26px, 3.6vw, 46px); }
.rx-arch-hero--search { min-height: 0; }
.rx-arch-hero--search .rx-arch-hero__inner { padding-block: clamp(24px, 3vw, 38px); }
.rx-arch-hero--search .rx-arch-hero__lead { margin-bottom: 0; }
.rx-arch-hero--search h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); margin-bottom: 10px; }

/* ---------- Search bar inside the trips hero ---------- */
.rx-arch-searchbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .7fr) auto;
  gap: 10px;
  margin-top: 22px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 18px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
}
.rx-arch-hero--plain .rx-arch-searchbar,
.rx-arch-hero--search.rx-arch-hero--plain .rx-arch-searchbar {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(20, 18, 31, .06);
}
.rx-arch-searchbar__field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #fff;
}
.rx-arch-searchbar__field > span {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rx-arch-searchbar__field select,
.rx-arch-searchbar__field input {
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}
.rx-arch-searchbar__field select { cursor: pointer; }
.rx-arch-searchbar__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: stretch;
  padding-inline: 22px;
  border-radius: 12px;
  font-size: 14px;
}
.rx-arch-searchbar__submit .rx-icon { width: 15px !important; height: 15px !important; }

/* ---------- Results + sticky map ---------- */
.rx-arch-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 22px;
  align-items: start;
}
.rx-arch-results { min-width: 0; }
.rx-arch-side { position: sticky; top: 96px; }
.rx-arch-side .rx-arch-map { margin-top: 0; }
.rx-arch-side .rx-arch-map__head {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 12px;
}
.rx-arch-side .rx-arch-map__head h3 { font-size: 1.2rem; }
.rx-arch-side .rx-arch-map__head p { flex: none; font-size: 12.5px; line-height: 1.55; }
.rx-arch-side .rx-arch-map__canvas #togo-map { height: 520px; }

.rx-arch-results .rx-arch-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Compact cards inside the two-column results list */
.rx-arch-results .rx-trip__title,
.rx-arch-results .rx-trip h3 { font-size: 16px; }

/* ---------- Pagination: always horizontal ---------- */
.rx-arch-pagination { clear: both; margin-top: 28px; }
.rx-arch-pagination ul {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.rx-arch-pagination li { display: inline-block !important; margin: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .rx-arch-split { grid-template-columns: 1fr; }
  .rx-arch-side { position: static; }
  .rx-arch-side .rx-arch-map__head { flex-direction: row; align-items: flex-end; }
  .rx-arch-side .rx-arch-map__canvas #togo-map { height: 400px; }
}
@media (max-width: 860px) {
  .rx-arch-searchbar { grid-template-columns: 1fr 1fr; }
  .rx-arch-searchbar__submit { grid-column: 1 / -1; min-height: 46px; }
}
@media (max-width: 640px) {
  .rx-arch-results .rx-arch-grid { grid-template-columns: 1fr !important; }
  .rx-arch-searchbar { grid-template-columns: 1fr; }
  .rx-arch-hero--boxed { border-radius: 18px; }
}

/* Card → pin feedback */
.rx-arch-grid .type-trip.is-mapped {
  box-shadow: 0 0 0 2px var(--brand-purple), 0 18px 40px rgba(106, 75, 209, .18) !important;
}

/* ============================================================
   v3 — three-column results layout: filters | cards | map
   ============================================================ */
.rx-arch-split {
  grid-template-columns: 252px minmax(0, 1fr) 344px;
  grid-template-areas: "filters results map";
  gap: 22px;
}
.rx-arch-filters { grid-area: filters; position: sticky; top: 96px; }
.rx-arch-results { grid-area: results; }
.rx-arch-side { grid-area: map; }

.rx-fbar--side { margin-bottom: 0; padding: 12px; border-radius: 16px; box-shadow: 0 10px 28px rgba(20, 18, 31, .05); }
.rx-fbar--side .rx-fbar__bar { flex-direction: column; align-items: stretch; gap: 6px; }
.rx-fbar--side .rx-fdrop { width: 100%; }
.rx-fbar--side .rx-fdrop__btn { width: 100%; justify-content: space-between; height: 44px; border-radius: 11px; }
.rx-fbar--side .rx-fdrop__panel {
  position: static;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  max-height: 280px;
}
.rx-fbar--side .rx-fbar__clear { margin-left: 0; text-align: left; padding: 2px 4px; }
.rx-fbar--side .rx-fbar__apply { width: 100%; margin-top: 4px; }
.rx-fbar--side .rx-check { padding: 7px 8px; font-size: 13px; }

@media (max-width: 1279px) {
  .rx-arch-split {
    grid-template-columns: minmax(0, 1fr) 344px;
    grid-template-areas: "filters filters" "results map";
  }
  .rx-arch-filters { position: static; }
  .rx-fbar--side .rx-fbar__bar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .rx-fbar--side .rx-fdrop { width: auto; flex: 0 1 auto; }
  .rx-fbar--side .rx-fdrop__btn { width: auto; }
  .rx-fbar--side .rx-fdrop__panel {
    position: absolute;
    width: min(320px, calc(100vw - 48px));
    box-shadow: 0 22px 54px rgba(20, 18, 31, .16);
    max-height: 320px;
  }
  .rx-fbar--side .rx-fbar__apply { width: auto; margin-top: 0; }
  .rx-fbar--side .rx-fbar__clear { margin-left: auto; }
}

@media (max-width: 900px) {
  .rx-arch-split { grid-template-columns: 1fr; grid-template-areas: "filters" "results" "map"; }
  .rx-arch-side .rx-arch-map__canvas #togo-map { height: 360px; }
}

/* Keep the hero facts clear of the overlapping gallery strip */
.rx-arch-hero--gallery .rx-arch-hero__inner { padding-bottom: 92px; }
.rx-arch-hero--gallery { min-height: clamp(400px, 40vw, 520px); }
@media (max-width: 720px) {
  .rx-arch-hero--gallery .rx-arch-hero__inner { padding-bottom: 72px; }
}

/* Gallery row: fill the full width for every photo count */
.rx-arch-gallery__row--2 { grid-template-columns: 1.5fr 1fr; }
.rx-arch-gallery__row--3 { grid-template-columns: 1.6fr 1fr 1fr; }
.rx-arch-gallery__row--4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 720px) {
  .rx-arch-gallery__row--2,
  .rx-arch-gallery__row--3,
  .rx-arch-gallery__row--4 { grid-template-columns: repeat(2, 1fr); }
}
.rx-arch-gallery__row--1 { grid-template-columns: 1fr; }

/* ============================================================
   v4 — stacking fixes (wishlist must never float above dropdowns)
   ============================================================ */
.rx-arch-grid .rx-trip { isolation: isolate; position: relative; z-index: 1; }
.rx-arch-grid .rx-trip .rx-wish,
.rx-arch-grid .rx-trip .trip-wishlist-wrapper,
.rx-arch-grid .rx-trip .trip-wishlist { z-index: 3; }

.rx-arch-filters { z-index: 40; }
.rx-fbar { position: relative; z-index: 41; }
.rx-fdrop__panel { z-index: 60; }
.rx-arch-toolbar { position: relative; z-index: 45; }
.rx-sort__list { z-index: 61; }


/* ============================================================
   v5 — cross-link cards with imagery + from-price
   ============================================================ */
.rx-arch-links { gap: 12px; }
.rx-arch-link {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 12px 52px 12px 12px;
}
.rx-arch-link__thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-3);
}
.rx-arch-link__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-arch-link__thumb-fallback {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  color: var(--brand-purple);
  background: rgba(106, 75, 209, .1);
}
.rx-arch-link__thumb-fallback .rx-icon { width: 20px !important; height: 20px !important; }
.rx-arch-link__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rx-arch-link__label { font-size: 14.5px; }
.rx-arch-link__note { font-size: 12px; }
.rx-arch-link__price {
  margin-top: 2px;
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.rx-arch-link__price strong { font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.rx-arch-link__arrow { right: 18px; }

/* ============================================================
   v6 — advanced search selector + guest stepper
   ============================================================ */
.rx-searchsel { position: relative; }
.rx-searchsel__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.rx-searchsel__toggle > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rx-searchsel__toggle .rx-icon { flex: 0 0 auto; width: 16px !important; height: 16px !important; color: var(--muted); transition: transform var(--dur-fast) var(--ease); }
.rx-searchsel.is-open .rx-searchsel__toggle .rx-icon { transform: rotate(180deg); }

.rx-searchsel__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 80;
  display: none;
  width: min(340px, 88vw);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(20, 18, 31, .18);
}
.rx-searchsel.is-open .rx-searchsel__panel { display: block; }
.rx-searchsel__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.rx-searchsel__search .rx-icon { width: 15px !important; height: 15px !important; color: var(--muted); }
.rx-searchsel__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
}
.rx-searchsel__list { display: grid; gap: 2px; max-height: 268px; overflow-y: auto; }
.rx-searchsel__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
}
.rx-searchsel__option:hover { background: var(--surface-2); }
.rx-searchsel__option.is-active { background: rgba(106, 75, 209, .1); color: var(--brand-purple); font-weight: 600; }
.rx-searchsel__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rx-searchsel__count { flex: 0 0 auto; font-style: normal; font-size: 11.5px; color: var(--muted); }
.rx-searchsel__empty { margin: 8px; font-size: 12.5px; color: var(--muted); }

.rx-stepper { display: flex; align-items: center; gap: 2px; }
.rx-stepper button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(106, 75, 209, .1);
  color: var(--brand-purple);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.rx-stepper button:hover { background: var(--brand-purple); color: #fff; }
.rx-stepper input {
  width: 38px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  -moz-appearance: textfield;
}
.rx-stepper input::-webkit-outer-spin-button,
.rx-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ============================================================
   v7 — popovers must never be clipped; unified date picker
   ============================================================ */
.rx-arch-hero--boxed { overflow: visible; }
.rx-arch-hero--boxed .rx-arch-hero__media,
.rx-arch-hero--boxed .rx-arch-hero__veil {
  border-radius: 24px;
  overflow: hidden;
}
.rx-arch-searchbar { position: relative; z-index: 60; }
.rx-searchsel__panel { z-index: 95; }
.rx-arch-searchbar__field { position: relative; }

/* The date picker itself lives in components.css so every page shares one control. */
@media (max-width: 720px) {
  .rx-arch-hero--boxed .rx-arch-hero__media,
  .rx-arch-hero--boxed .rx-arch-hero__veil { border-radius: 18px; }
}

/* ============================================================
   v8 — search hero: spacing + panels above the filter bar
   ============================================================ */
/* The hero inner is a stacking context; lift it above the filters so
   the Where / Date popovers are never painted underneath them. */
.rx-arch-hero--search .rx-arch-hero__inner { z-index: 70; }

/* Breathing room between the search form and the facts chips */
.rx-arch-hero--search .rx-arch-searchbar { margin-bottom: 20px; }
.rx-arch-hero--search .rx-arch-hero__facts { margin-top: 0; }

@media (max-width: 860px) {
  .rx-arch-hero--search .rx-arch-searchbar { margin-bottom: 16px; }
}
/* Keep the apply button clickable above an open filter panel. */
.rx-fbar__apply { position: relative; z-index: 70; }