/* ================================================================
   GhanaTRVL — Result Pages Addon
   File: result-pages-addon-v4.css
   Depends on: custom-v4.css (tokens, base, .acard, .eyebrow,
               .nl-band/.nl-form/.nl-i/.nl-b, hero layers, buttons)

   Structure:
   01. Result Page Hero (.rp-hero)
   02. Hero Breadcrumb (.rp-breadcrumb)
   03. Hero Stats Bar (.rp-statsbar)
   04. Content Wrapper (.rp-wrap)
   05. Filter Bar — pill variant (.filter-bar)
   06. Map Panel (.rp-map-panel)
   07. Grid Header (.rp-grid-header)
   08. Result Grid (.rp-grid)
   09. Article Card Extensions (.acard modifiers)
   10. Featured Card (.featured-card)
   11. Category Interlude Banner (.cat-banner)
   12. Popular Strip (.popular-section)
   13. Load More (.rp-load-more)
   14. Newsletter Strip — inline variant (.nl-strip)
   15. Pagination (.rp-pagination)
   16. Scroll To Top (.scroll-top)
   17. Animations
   18. Responsive

   Last updated: 2026-05
================================================================ */


/* ================================================================
   01. RESULT PAGE HERO
   Shorter variant of the full .hero from custom-v4.css §07.
   Overlay layers (.h-patt, .h-atm, .h-bar) are defined in §07
   and used directly — no duplication here.
   Per-type background images set via modifier classes.
================================================================ */
.rp-hero {
  background-color: var(--dv);
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Directional gradient — softer than full-page hero */
.rp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,  rgba(10,4,22,.90) 0%, rgba(10,4,22,.55) 45%, rgba(10,4,22,.20) 100%),
    linear-gradient(to top,    rgba(10,4,22,.80) 0%, rgba(10,4,22,.25) 50%, transparent 85%);
  pointer-events: none;
  z-index: 1;
}

/* Overlay layers sit above gradient */
.rp-hero .h-patt,
.rp-hero .h-atm { z-index: 2; }
.rp-hero .h-bar { z-index: 2; }

/* Content sits above all layers.
   padding-top matches padding-bottom so justify-content:flex-end always leaves breathing
   room at the top, same as .page-hero--inner — without it, tall stacked content (e.g.
   tours' hero-row + statsbar) can fill all the way to the hero's top edge with no slack
   left for flex-end to push into, and the text ends up flush against it. */
.rp-hero .hero-inner {
  position: relative;
  z-index: 10;
  padding-top: 48px;
  padding-bottom: 48px;
}

/* 2026-08-31 - .rp-statsbar measures 84.98px live, but the +20px margin (105px total) still
   pushed things too far, same direction as the original 130px overshoot, just milder - Marcel's
   call after checking it rendered: 80px is correct. Leaving the measured figure in this comment
   for context, but 80px is the confirmed value, not a calculation to "improve" later. */
.rp-hero:has(.rp-statsbar) .hero-inner {
  padding-bottom: 80px;
}

/* Per content-type hero backgrounds — NOT set here. Image comes from PAGE_IMAGE_URL via
   page_head() ($nPage_ID set by error_pages/404.php), applied as an inline style on
   .rp-hero by the calling page, same pattern as __page_title.php / .page-hero.
   Modifier classes below are kept for their non-image overrides (eyebrow colour etc). */

/* Per-type eyebrow accent colour overrides */
.rp-hero--news .h-eyebrow,
.rp-hero--news .h-eyebrow::before        { color: var(--gr); background: var(--gr); }
.rp-hero--events .h-eyebrow,
.rp-hero--events .h-eyebrow::before      { color: var(--wh2); }
.rp-hero--community .h-eyebrow,
.rp-hero--community .h-eyebrow::before   { color: var(--gr); background: var(--gr); }


/* ================================================================
   02. HERO BREADCRUMB
================================================================ */
.rp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-h);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.rp-breadcrumb a         { color: rgba(255,255,255,.45); text-decoration: none; transition: color .18s; }
.rp-breadcrumb a:hover   { color: var(--ye); }
.rp-breadcrumb .sep      { color: rgba(255,255,255,.22); }
.rp-breadcrumb .current  { color: var(--ye); }


/* ================================================================
   03. HERO STATS BAR
   .hstat / .hstat-n / .hstat-l are defined in custom-v4.css §07
   This wrapper anchors the bar to the bottom of .rp-hero.
================================================================ */
/* 2026-08-31 - was position:relative, a normal flex sibling of .hero-inner inside .rp-hero's
   justify-content:flex-end. That meant a tall stats bar (4 stat items, each with a multi-line
   label+subtitle) pushed the title block upward to clear room underneath it - confirmed live,
   places-to-see/historical/'s hero was 1017px tall with the title sitting at only ~25% down,
   versus a hero with no stats bar sitting properly bottom-anchored. Pinning this to the box's
   own bottom edge instead means the title's position no longer depends on whether a stats bar
   exists or how tall it is - .hero-inner's padding-bottom above (only added when this is
   present, via :has()) keeps the title clear of it. */
.rp-statsbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: rgba(35,15,66,.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(246,238,39,.15);
}
.rp-statsbar .hstat-row {
  display: flex;
  flex-wrap: wrap;
}


/* ================================================================
   04. CONTENT WRAPPER
================================================================ */
.rp-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 767.98px) {
  .rp-wrap {
    padding: 0 14px;
  }
}


/* ================================================================
   05. FILTER BAR — PILL VARIANT
   Used on all result pages except _entity_result.php (sidebar)
================================================================ */
.filter-bar {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 36px 0 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 12px rgba(35,15,66,.06);
}

.filter-bar-label {
  font-family: var(--ff-h);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mu);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 1;
}

/* Individual pill */
.fpill {
  font-family: var(--ff-h);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1.5px solid var(--rule);
  background: transparent;
  color: var(--mu);
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
  white-space: nowrap;
}
.fpill i { font-size: 11px; }
.fpill:hover          { background: var(--mv); border-color: var(--mv); color: #fff; }
.fpill.active         { background: var(--mv); border-color: var(--mv); color: #fff; }

/* Per-category active colours map to CSS content-type tokens */
.fpill.active[data-cat="travel-insight"]    { background: var(--travel-insights);    border-color: var(--travel-insights); }
.fpill.active[data-cat="places-to-see"]     { background: var(--places-to-see);      border-color: var(--places-to-see); }
.fpill.active[data-cat="how-to"]            { background: var(--how-to);             border-color: var(--how-to); }
.fpill.active[data-cat="transportation"]    { background: var(--transportation);      border-color: var(--transportation); }
.fpill.active[data-cat="destinations"]      { background: var(--destinations);        border-color: var(--destinations); }
.fpill.active[data-cat="culture"]           { background: var(--culture-and-people);  border-color: var(--culture-and-people); }
.fpill.active[data-cat="food"]              { background: var(--food);               border-color: var(--food); }
.fpill.active[data-cat="work-travel"]       { background: var(--work-travel);        border-color: var(--work-travel); }

/* Recency toggle pill — slightly different visual */
.fpill.fpill-toggle.active {
  background: var(--dv);
  border-color: var(--ye);
  color: var(--ye);
}

/* Divider between pill groups and search */
.filter-divider {
  width: 1px;
  height: 24px;
  background: var(--rule);
  flex-shrink: 0;
  align-self: center;
}

/* Inline search widget */
.filter-search {
  display: flex;
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  min-width: 190px;
  transition: border-color .2s;
  flex-shrink: 0;
}
.filter-search:focus-within   { border-color: var(--mv); }
.filter-search input {
  flex: 1;
  border: none;
  padding: 7px 11px;
  font-family: var(--ff-b);
  font-size: 13px;
  color: var(--bk);
  outline: none;
  background: transparent;
  min-width: 0;
}
.filter-search input::placeholder { color: var(--mu); }
.filter-search button {
  background: var(--mv);
  border: none;
  padding: 0 13px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background .18s;
  flex-shrink: 0;
}
.filter-search button:hover { background: var(--dv); }

/* Active filter summary line below bar */
.filter-active-summary {
  font-family: var(--ff-h);
  font-size: 11px;
  color: var(--mu);
  margin-top: -20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-active-summary .fas-clear {
  color: var(--mv);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s;
}
.filter-active-summary .fas-clear:hover { color: var(--dv); }


/* ================================================================
   06. MAP PANEL
   Inline collapsible map — desktop visible by default,
   mobile hidden behind "View on map" button.
================================================================ */
.rp-map-panel {
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 36px;
  background: #fff;
}

/* Panel header / toggle bar */
.rp-map-header {
  background: var(--dv);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.rp-map-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rp-map-header-left i {
  color: var(--ye);
  font-size: 13px;
}
.rp-map-header-left span {
  font-family: var(--ff-h);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}
.rp-map-toggle-btn {
  font-family: var(--ff-h);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ye);
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color .18s;
}
.rp-map-toggle-btn:hover { color: var(--gr); }
.rp-map-toggle-btn i { font-size: 12px; transition: transform .25s; }
.rp-map-panel.collapsed .rp-map-toggle-btn i { transform: rotate(180deg); }

/* Map render target */
.rp-map-body {
  height: 380px;
  width: 100%;
  display: block;
  background: var(--wh2);
  position: relative;
  z-index: 0;
  transition: height .3s ease;
}
.rp-map-panel.collapsed .rp-map-body {
  height: 0;
  overflow: hidden;
}

/* Mobile — "View on map" button replaces inline panel */
.rp-map-mobile-btn {
  display: none;
  width: 100%;
  margin-bottom: 24px;
}
.rp-map-mobile-btn button {
  width: 100%;
  background: var(--dv);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 13px 20px;
  font-family: var(--ff-h);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background .18s;
}
.rp-map-mobile-btn button i { font-size: 14px; color: var(--ye); }
.rp-map-mobile-btn button:hover { background: var(--mv); }

/* Full-screen map overlay — mobile only */
.rp-map-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: var(--dv);
  flex-direction: column;
}
.rp-map-overlay.open { display: flex; }
.rp-map-overlay-header {
  background: var(--dv);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(246,238,39,.15);
  flex-shrink: 0;
}
.rp-map-overlay-header span {
  font-family: var(--ff-h);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}
.rp-map-overlay-close {
  background: none;
  border: none;
  color: var(--ye);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.rp-map-overlay-body {
  flex: 1;
  position: relative;
}
#rp-map-overlay-target {
  position: absolute;
  inset: 0;
}

/* Leaflet z-index — keep below navbar */
.rp-map-body .leaflet-top,
.rp-map-body .leaflet-bottom,
#rp-map-overlay-target .leaflet-top,
#rp-map-overlay-target .leaflet-bottom { z-index: 400 !important; }

/* Leaflet attribution */
.rp-map-body .leaflet-control-attribution,
#rp-map-overlay-target .leaflet-control-attribution {
  font-family: var(--ff-h) !important;
  font-size: 9px !important;
  color: var(--mu) !important;
  background: rgba(255,255,255,.85) !important;
}

/* Marker popup */
.rp-map-popup .leaflet-popup-content-wrapper {
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(35,15,66,.2);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.rp-map-popup .leaflet-popup-content { margin: 0; }
.rp-map-popup-inner {
  padding: 11px 13px;
  min-width: 150px;
  max-width: 210px;
}
.rp-map-popup-cat {
  font-family: var(--ff-h);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 6px;
  background: var(--mv);
  color: #fff;
}
.rp-map-popup-title {
  font-family: var(--ff-h);
  font-size: .8rem;
  font-weight: 700;
  color: var(--dv);
  line-height: 1.3;
  margin-bottom: 6px;
}
.rp-map-popup-link {
  font-family: var(--ff-h);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mv);
  text-decoration: none;
  transition: color .15s;
}
.rp-map-popup-link:hover { color: var(--dv); }
.rp-map-popup .leaflet-popup-close-button {
  color: var(--mu) !important;
  font-size: 16px !important;
  padding: 4px 6px !important;
}

/* ── Result card ↔ map pin bidirectional highlight (__map_result_v4_script.js) ── */
.acard.rp-card-active {
  outline: 2px solid var(--ye);
  outline-offset: -2px;
  box-shadow: 0 4px 16px rgba(35,15,66,.25) !important;
}

/* ── Marker cluster bubbles — brand-colour override of MarkerCluster.Default.css ── */
.rp-map-body .marker-cluster-small,
#rp-map-overlay-target .marker-cluster-small {
  background-color: rgba(89,45,140,.5);
}
.rp-map-body .marker-cluster-small div,
#rp-map-overlay-target .marker-cluster-small div {
  background-color: rgba(89,45,140,.8);
}
.rp-map-body .marker-cluster-medium,
#rp-map-overlay-target .marker-cluster-medium {
  background-color: rgba(35,15,66,.5);
}
.rp-map-body .marker-cluster-medium div,
#rp-map-overlay-target .marker-cluster-medium div {
  background-color: rgba(35,15,66,.8);
}
.rp-map-body .marker-cluster-large,
#rp-map-overlay-target .marker-cluster-large {
  background-color: rgba(35,15,66,.6);
}
.rp-map-body .marker-cluster-large div,
#rp-map-overlay-target .marker-cluster-large div {
  background-color: rgba(35,15,66,.9);
}
.rp-map-body .marker-cluster span,
#rp-map-overlay-target .marker-cluster span {
  color: #fff;
  font-family: var(--ff-h);
  font-weight: 700;
}


/* ================================================================
   07. GRID HEADER
================================================================ */
.rp-grid-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}

.rp-grid-count {
  font-family: var(--ff-h);
  font-size: 12px;
  font-weight: 600;
  color: var(--mu);
  margin-bottom: 20px;
}

.rp-grid-sort {
  font-family: var(--ff-h);
  font-size: 11px;
  font-weight: 600;
  color: var(--mu);
  display: flex;
  align-items: center;
  gap: 8px;
}
.rp-grid-sort label { white-space: nowrap; }
.rp-grid-sort select {
  font-family: var(--ff-h);
  font-size: 11px;
  font-weight: 600;
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  padding: 5px 10px;
  background: #fff;
  color: var(--dv);
  cursor: pointer;
  outline: none;
  transition: border-color .18s;
}
.rp-grid-sort select:focus { border-color: var(--mv); }


/* ================================================================
   08. RESULT GRID
   Bootstrap row/col (.row.g-4 on #rp-grid, .col-12.col-sm-6.col-xl-4
   per card in __editorial_card.php) - not a CSS Grid. Column count/
   breakpoints live in the markup, not here; this just owns spacing
   that isn't part of the Bootstrap gutter.
================================================================ */
.rp-grid {
  margin-bottom: 48px;
}


/* ================================================================
   09. ARTICLE CARD EXTENSIONS
   Base .acard / .acimg / .acbody / .accat / .actitle /
   .acdesc / .acmeta / .md / .art-photo are in custom-v4.css §13.
   Only modifiers and new sub-elements here.
================================================================ */

/* Emoji / gradient fallback inside .acimg */
.ac-img-placeholder {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,.15);
  transition: transform .5s ease;
}
.acard:hover .ac-img-placeholder { transform: scale(1.08); }

/* View count badge on image */
.ac-views {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(35,15,66,.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.8);
  font-family: var(--ff-h);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Read time badge on image */
.ac-readtime {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(35,15,66,.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.7);
  font-family: var(--ff-h);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* "Read →" link in .acmeta */
.ac-read-more {
  font-family: var(--ff-h);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mv);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .18s;
  flex-shrink: 0;
  white-space: nowrap;
}
.acard:hover .ac-read-more { color: var(--dv); }

/* Location tag in .acmeta */
.ac-location {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--mu);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-location i { font-size: 10px; color: var(--mv); flex-shrink: 0; }

/* Wide card — horizontal layout. Column span (2 of 3 at xl, full row below)
   is set on the wrapper .col-* in __editorial_card.php, not here. */
.acard.wide {
  flex-direction: row;
}
.acard.wide .acimg {
  height: auto;
  min-height: 220px;
  width: 42%;
  flex-shrink: 0;
  border-radius: 0;
}
.acard.wide .art-photo    { height: 100%; }
.acard.wide .acbody       { padding: 28px; }
.acard.wide .actitle      { font-size: 1.2rem; }
.acard.wide .acdesc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card highlight state — triggered by map marker interaction */
.acard.map-active {
  box-shadow: 0 0 0 2px var(--mv), 0 8px 24px rgba(35,15,66,.16);
  transform: translateY(-3px);
}


/* ================================================================
   10. FEATURED CARD (Editor's Pick)
   Bootstrap row/col (.featured-card carries .row.g-0 itself - it's the
   whole clickable <a> - .fc-img/.fc-body are .col-12.col-lg-6). Column
   split and gutter come from Bootstrap, not a CSS Grid.
================================================================ */
.featured-card {
  border-radius: 6px;
  overflow: hidden;
  background: var(--dv);
  margin-bottom: 56px;
  box-shadow: 0 8px 40px rgba(35,15,66,.18);
  min-height: 420px;
  text-decoration: none;
  color: inherit;
  transition: transform .3s, box-shadow .3s;
}
.featured-card:hover               { transform: translateY(-4px); box-shadow: 0 16px 56px rgba(35,15,66,.24); }
.featured-card:hover .fc-img-inner { transform: scale(1.04); }

/* Image side */
.fc-img {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.fc-img-inner {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}
.fc-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(35,15,66,.35) 0%, transparent 70%);
  pointer-events: none;
}
.fc-img::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ye), var(--gr));
  z-index: 3;
}
.fc-featured-badge {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 5;
  background: var(--ye);
  color: var(--dv);
  font-family: var(--ff-h);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Text side */
.fc-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: var(--dv);
}
.fc-body::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(89,45,140,.5) 0%, transparent 60%);
  pointer-events: none;
}
.fc-cat {
  font-family: var(--ff-h);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ye);
  background: rgba(246,238,39,.12);
  padding: 3px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  width: fit-content;
}
.fc-title {
  font-family: var(--ff-h);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.fc-desc {
  font-family: var(--ff-s);
  font-size: .93rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.fc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-h);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.fc-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}
/* CTA button — reuses .btn-p style but positioned in dark context */
.fc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ye);
  color: var(--dv);
  font-family: var(--ff-h);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 24px;
  text-decoration: none;
  transition: background .18s, transform .2s;
  width: fit-content;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.fc-cta:hover { background: var(--gr); transform: translateY(-2px); color: var(--dv); }


/* ================================================================
   11. CATEGORY INTERLUDE BANNER
   Injected automatically every N cards to break up the grid.
================================================================ */
/* No margin-bottom - it's a col-12 inside #rp-grid's own row now (__editorial_card.php), so the
   row's g-4 row-gap already provides consistent spacing above/below it, same as between any two
   rows of cards. A margin here would stack on top of that gap instead of replacing it. */
.cat-banner {
  border-radius: 6px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.cat-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg,  transparent 0, transparent 24px, rgba(255,255,255,.04) 24px, rgba(255,255,255,.04) 26px),
    repeating-linear-gradient(90deg, transparent 0, transparent 24px, rgba(255,255,255,.03) 24px, rgba(255,255,255,.03) 26px);
  pointer-events: none;
}
.cat-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 30%, rgba(89,45,140,.4) 0%, transparent 60%);
  pointer-events: none;
}
.cb-content  { position: relative; z-index: 1; }
.cb-eyebrow  {
  font-family: var(--ff-h); font-size: 10px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gr); margin-bottom: 6px;
}
.cb-title {
  font-family: var(--ff-h);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -.02em; color: #fff; line-height: 1;
}
.cb-desc {
  font-family: var(--ff-s);
  font-size: .88rem; color: rgba(255,255,255,.55);
  margin-top: 7px; max-width: 440px;
}
.cb-action { position: relative; z-index: 1; flex-shrink: 0; }


/* ================================================================
   12. POPULAR STRIP
================================================================ */
.popular-section {
  background: var(--wh2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 26px 28px;
  margin-bottom: 56px;
}
/* Bootstrap row/col (.row.g-3 in __editorial_popular.php, .col-12.col-sm-6.col-xl-4
   per item) - not a CSS Grid. */
.popular-list {
  margin-top: 18px;
}
.pitem {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}
.pitem:hover { box-shadow: 0 6px 20px rgba(35,15,66,.1); transform: translateY(-2px); }
.p-img {
  position: relative;
  height: 110px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--dv);
}
.p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.pitem:hover .p-img img { transform: scale(1.05); }
.p-img-fallback {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: rgba(255,255,255,.15);
}
.p-rank {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(35,15,66,.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ye);
  font-family: var(--ff-h);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 2px;
}
.p-body {
  padding: 13px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.p-title {
  font-family: var(--ff-h);
  font-size: .82rem;
  font-weight: 700;
  color: var(--dv);
  line-height: 1.25;
  margin-bottom: 4px;
  transition: color .18s;
}
.pitem:hover .p-title { color: var(--mv); }
.p-meta {
  font-size: 10.5px;
  color: var(--mu);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}


/* ================================================================
   13. LOAD MORE
================================================================ */
.rp-load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0 56px;
}
.rp-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--dv);
  border: 2px solid var(--rule);
  padding: 12px 32px;
  font-family: var(--ff-h);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 24px;
  cursor: pointer;
  transition: all .2s;
}
.rp-load-more-btn:hover {
  border-color: var(--mv);
  color: var(--mv);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(35,15,66,.1);
}
.rp-load-more-btn.loading {
  opacity: .6;
  pointer-events: none;
}
.rp-load-more-btn i { font-size: 13px; }
.rp-load-more-count {
  font-family: var(--ff-h);
  font-size: 11px;
  color: var(--mu);
  font-weight: 500;
}
/* Spinner shown during fetch */
.rp-load-more-spinner {
  display: none;
  width: 20px; height: 20px;
  border: 2px solid var(--rule);
  border-top-color: var(--mv);
  border-radius: 50%;
  animation: spin-lm .7s linear infinite;
}
.rp-load-more-btn.loading .rp-load-more-spinner { display: block; }
@keyframes spin-lm { to { transform: rotate(360deg); } }


/* ================================================================
   14. NEWSLETTER STRIP — inline rounded variant
   Full-bleed .nl-band is in custom-v4.css §17.
   .nl-strip is the inset card used mid-page on result pages.
   Reuses .nl-form / .nl-i / .nl-b from custom-v4.css §17.
================================================================ */
.nl-strip {
  background: var(--mv);
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 56px;
}
.nl-strip::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg,  transparent 0, transparent 24px, rgba(246,238,39,.04) 24px, rgba(246,238,39,.04) 26px),
    repeating-linear-gradient(90deg, transparent 0, transparent 24px, rgba(197,220,100,.03) 24px, rgba(197,220,100,.03) 26px);
  pointer-events: none;
}
.nl-strip::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 90% at 90% 50%, rgba(35,15,66,.35) 0%, transparent 60%);
  pointer-events: none;
}
.nl-strip-text { position: relative; z-index: 1; }
.nl-strip-eyebrow {
  font-family: var(--ff-h);
  font-size: 10px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ye);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 7px;
}
.nl-strip-eyebrow::before { content: ''; width: 14px; height: 2px; background: var(--ye); display: block; flex-shrink: 0; }
.nl-strip h2 {
  font-family: var(--ff-h);
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -.02em; color: #fff; line-height: 1;
  margin: 0;
}
.nl-strip p {
  font-family: var(--ff-s);
  font-size: .88rem; color: rgba(255,255,255,.5);
  margin: 5px 0 0;
}
.nl-strip .nl-form {
  position: relative; z-index: 1;
  min-width: 260px; max-width: 320px;
}


/* ================================================================
   15. PAGINATION
   Kept as fallback for pages that don't use Load More.
================================================================ */
.rp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 56px;
  flex-wrap: wrap;
}
.page-btn {
  font-family: var(--ff-h);
  font-size: 12px; font-weight: 700;
  letter-spacing: .06em;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1.5px solid var(--rule);
  background: #fff;
  color: var(--mu);
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  display: inline-block;
  min-width: 40px;
  text-align: center;
  line-height: 1.4;
}
.page-btn:hover           { border-color: var(--mv); color: var(--mv); }
.page-btn.active          { background: var(--mv); border-color: var(--mv); color: #fff; }
.page-btn.disabled        { opacity: .35; cursor: not-allowed; pointer-events: none; }
.page-btn.page-ellipsis   { border: none; background: transparent; cursor: default; color: var(--mu); }


/* ================================================================
   16. SCROLL TO TOP
================================================================ */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 24px;
  width: 42px; height: 42px;
  background: var(--mv);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(35,15,66,.25);
  z-index: 990;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, background .18s, transform .2s;
}
.scroll-top.visible       { opacity: 1; pointer-events: auto; }
.scroll-top:hover         { background: var(--dv); transform: translateY(-3px); }


/* ================================================================
   17. ANIMATIONS
   Global @keyframes up is in custom-v4.css §07.
   fadeUp used for grid card stagger on initial page load.
================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rp-grid > *:nth-child(1) { animation: fadeUp .4s .04s ease both; }
.rp-grid > *:nth-child(2) { animation: fadeUp .4s .10s ease both; }
.rp-grid > *:nth-child(3) { animation: fadeUp .4s .16s ease both; }
.rp-grid > *:nth-child(4) { animation: fadeUp .4s .22s ease both; }
.rp-grid > *:nth-child(5) { animation: fadeUp .4s .28s ease both; }
.rp-grid > *:nth-child(6) { animation: fadeUp .4s .34s ease both; }
.rp-grid > *:nth-child(7) { animation: fadeUp .4s .40s ease both; }
.rp-grid > *:nth-child(8) { animation: fadeUp .4s .46s ease both; }
.rp-grid > *:nth-child(9) { animation: fadeUp .4s .52s ease both; }
/* Cards loaded via Load More: nth-child can't target dynamically appended elements (they're always
   past position 9), so __editorial_load_more.php's JS adds this class + an inline animation-delay
   per card instead, for the same staggered fade-up entrance. */
.rp-grid > *.card-enter   { animation: fadeUp .4s ease both; }


/* ================================================================
   18. RESPONSIVE
================================================================ */
/* Column counts for .rp-grid / .popular-list / .featured-card / .acard.wide now
   come from Bootstrap col-* classes in the markup (col-12/col-sm-6/col-xl-4 etc) -
   only non-grid responsive tweaks remain here. */

@media (max-width: 1199px) {
  .featured-card                { min-height: 360px; }
}

@media (max-width: 991px) {
  .fc-img                       { min-height: 260px; }
  .rp-map-panel                 { display: none; }
  .rp-map-mobile-btn            { display: block; }
}

@media (max-width: 767px) {
  .rp-hero                      { min-height: 320px; }
  .nl-strip                     { flex-direction: column; padding: 28px 22px; }
  .nl-strip .nl-form            { min-width: 100%; max-width: 100%; }
  .cat-banner                   { flex-direction: column; padding: 24px 20px; }
  .rp-statsbar .hstat           { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(246,238,39,.1); }
}

@media (max-width: 575px) {
  .acard.wide                   { flex-direction: column; }
  .acard.wide .acimg            { width: 100%; min-height: 190px; height: 190px; }
  .filter-bar                   { flex-direction: column; align-items: flex-start; }
  .filter-search                { min-width: 100%; }
  .fc-body                      { padding: 24px 20px; }
}

/* ================================================================
   19. TSP RESULT CARD (.rcard)
   ---------------------------------------------------------------
   Append this section to the END of result-pages-addon-v4.css
   (after the §22-H .rcard-img patch already appended there).

   DOES NOT DUPLICATE:
     - .rcard-tier-badge / .rcard-icons* / .rcard:hover .ac-read-more
       -> already live in custom-v4.css (appended §22-S block)
     - .rcard-img { position:relative; background:var(--wh2); flex-shrink:0; }
       -> already live in result-pages-addon-v4.css (appended §22-H patch)

   TIER LAYOUT SYSTEM
   ---------------------------------------------------------------
   Platinum / Gold  .rcard--featured   col-12   horizontal (image 40% / body 60%)
   Silver           (base .rcard)      col-md-6 vertical, description shown
   Starter          (base .rcard)      col-lg-4 vertical, no description

   Badge colour variants:
     .rcard-tier-badge--platinum  deep violet background, yellow text
     .rcard-tier-badge--gold      yellow background, dark violet text (default)
================================================================ */


/* ── Base card container ── */
.rcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .3s, box-shadow .3s;
}
.rcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(35,15,66,.12);
}


/* ── Photo zoom on hover ── */
.rcard-photo {
  transition: transform .5s ease;
}
.rcard:hover .rcard-photo {
  transform: scale(1.05);
}


/* ── Price badge — top-right overlay on the image ── */
.rcard-price {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: #fff;
  color: var(--dv);
  font-family: var(--ff-h);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(35,15,66,.15);
  pointer-events: none;
}


/* ── Type badge — bottom-left overlay on the image ── */
.rcard-type {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 5;
  background: rgba(35,15,66,.75);
  color: #fff;
  font-family: var(--ff-h);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  pointer-events: none;
}


/* ── Tier badge colour variants ──
   Base .rcard-tier-badge (gold colours) already lives in custom-v4.css §22-S.
   Only the Platinum variant needs overriding here. ── */
.rcard-tier-badge--platinum {
  background: var(--mv);
  color: var(--ye);
}
.rcard-tier-badge--platinum i {
  color: var(--ye);
}

.rcard-rating-badge-starter {
  font-size: 0.7em;
  color: var(--mv);
}

/* ── Card body ── */
.rcard-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rcard-name {
  font-family: var(--ff-h);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dv);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.rcard-loc {
  font-size: 12px;
  color: var(--mu);
  font-weight: 400;
  margin-bottom: 4px;
}
.rcard-loc i {
  color: var(--mv);
}

/* ── Description — Silver / Gold / Platinum only ──
   Capped at 3 lines via -webkit-line-clamp to prevent runaway text
   on cards that share a row with shorter ones. ── */
.rcard-desc {
  font-family: var(--ff-s);
  font-size: 13px;
  color: var(--mu);
  line-height: 1.6;
  font-weight: 300;
  margin-top: 8px;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured cards (Gold / Platinum) get more lines —
   they have the full row width and the body is taller. */
.rcard--featured .rcard-desc {
  -webkit-line-clamp: 5;
}


/* ── View Profile CTA — base typography.
   Hover colour change and arrow nudge already live in custom-v4.css §22-S-5.
   .mt-auto on the element in the markup pushes it to the card bottom. ── */
.ac-read-more {
  font-family: var(--ff-h);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mv);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  transition: color .15s;
}


/* ================================================================
   FEATURED CARD — horizontal layout (Gold / Platinum)
   .rcard--featured applies from the md breakpoint upward.
   Below md the card collapses to the standard vertical layout so
   it remains usable on narrow viewports.
================================================================ */

@media (min-width: 768px) {

  .rcard--featured {
    flex-direction: row;
  }

  /* Image column — fixed 40% width, full card height */
  .rcard--featured .rcard-img {
    width: 40%;
    flex-shrink: 0;
  }

  /* .ratio sets height via padding-top; inside a fixed-width flex
     child that also needs to fill 100% height we override it so the
     image fills the full card height rather than locking to 16:9. */
  .rcard--featured .rcard-img .ratio {
    height: 100%;
    padding-top: 0 !important;
  }

  /* The <img> inside .ratio is position:absolute by Bootstrap.
     Ensure it covers the full container. */
  .rcard--featured .rcard-img .ratio img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Body column — takes remaining 60% */
  .rcard--featured .rcard-body {
    width: 60%;
    padding: 24px 28px;
    justify-content: center;
  }

  /* Name slightly larger on featured cards */
  .rcard--featured .rcard-name {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  /* No hover lift on featured — it's a wide card and the lift looks
     disproportionate; instead deepen the shadow only. */
  .rcard--featured:hover {
    transform: none;
    box-shadow: 0 12px 40px rgba(35,15,66,.16);
  }

}


/* ================================================================
   MAP — FULL-WIDTH TOP PANEL ADJUSTMENTS
   ---------------------------------------------------------------
   The map has moved from a col-lg-4 sticky sidebar to a full-width
   collapsible panel above the results grid.

   1. Map height: shorter now that it spans the full container width.
      The sidebar variant was 480px (col-4 ~320px wide). Full width
      at ~1200px container is ~4:1 ratio at 320px height.
   2. Chevron: rotates when Bootstrap collapse closes the panel.
   3. Remove the responsive override that previously set 400px on
      the narrow lg breakpoint — no longer needed.
================================================================ */

/* Full-width map height */
.tsp-map-area {
  height: 320px;
}

/* Chevron icon in the map header — rotates when collapsed */
.tsp-map-chevron {
  transition: transform .25s ease;
  flex-shrink: 0;
}
.tsp-map-head[aria-expanded="false"] .tsp-map-chevron {
  transform: rotate(180deg);
}

/* Map head cursor is already set inline; ensure it has the right
   flex alignment for the chevron pushed to the right. */
.tsp-map-head {
  cursor: pointer;
  user-select: none;
}


/* ================================================================
   MAP PANEL — STICKY TO NAVBAR
   ---------------------------------------------------------------
   .tsp-map-panel sticks below the navbar when the user scrolls
   down through the results grid. Top offset matches .gt-nav height.

   PIETER: verify 74px against the live .gt-nav computed height.
   If the nav shrinks on scroll (the .scrolled class reduces it),
   consider using the reduced height here instead.

   When collapsed, only the header strip remains pinned — a compact
   but still interactive affordance to re-open the map.

   z-index 200: above card content, below Bootstrap dropdowns (1000).
================================================================ */
.tsp-map-panel {
  position: sticky;
  top: 74px;
  z-index: 200;
}


/* ================================================================
   ICON ROW LABELS (.rcard-icons-label)
   ---------------------------------------------------------------
   Small inline label that precedes each .rcard-icons row,
   clarifying what the icons represent ("Accessibility", "Facilities").
   Sits on the same line as the icons — no extra vertical space.
================================================================ */
.rcard-icons-label {
  font-family: var(--ff-h);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mu);
  margin-right: 6px;
  flex-shrink: 0;
  align-self: center;
}


/* ================================================================
   COMBINED STICKY UNIT — map + filter sidebar
   ---------------------------------------------------------------
   Replaces the standalone .tsp-map-panel. The sticky unit holds
   the map (col-lg-8) and the filter sidebar (col-lg-4) as a single
   sticky block so both travel together on scroll.

   The previous .tsp-map-panel sticky rule is superseded by
   .tsp-sticky-unit. The old .tsp-map-panel inside this unit
   no longer needs position:sticky (it is now a col child, not the
   outer wrapper).
================================================================ */

.tsp-sticky-unit {
  position: sticky;
  top: 74px;           /* PIETER: verify against live .gt-nav height */
  z-index: 200;
  background: #fff;   /* covers card content scrolling beneath */
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;    /* clips child borders/backgrounds cleanly */
}

/* Map column: no radius (parent clips it) */
.tsp-map-col .tsp-map-head {
  border-radius: 0;
}

/* Map area height for the narrower col-lg-8 context */
.tsp-sticky-unit .tsp-map-area {
  height: 320px;
}

/* Hint text inside collapse — compact in the new layout */
.tsp-sticky-unit .tsp-map-hint {
  padding: 6px 14px;
  margin: 0;
  border-top: 1px solid var(--rule);
  background: var(--wh2);
}


/* ── Filter sidebar ── */

.tsp-filter-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--wh2);
  border-left: 1px solid var(--rule);
  /* Scrollable if many pills exceed map height */
  max-height: 365px;   /* map area 320 + header 44 + hint ~30 */
  overflow-y: auto;
  margin-block-end: 0px;
}

/* Filter sidebar header — mirrors .tsp-map-head dark bar */
.tsp-filter-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--dv);
  color: #fff;
  font-family: var(--ff-h);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Filter groups — sections within the sidebar */
.tsp-filter-group {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}
.tsp-filter-group:last-child {
  border-bottom: none;
}

/* Pill container within a filter group */
.tsp-filter-pills {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Full-width pill variant — for sidebar layout */
.fpill--block {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}

/* Small pill variant — for the Clear button in the sidebar header */
.fpill--sm {
  font-size: 9px;
  padding: 3px 8px;
  gap: 4px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.fpill--sm:hover,
.fpill--sm.active {
  background: rgba(255,255,255,.25);
  color: #fff;
}

/* Search inputs full-width in sidebar */
.tsp-search-full {
  width: 100%;
  min-width: 0;
}
.tsp-search-full input {
  width: 100%;
  min-width: 0;
}

/* Mobile: sidebar stacks below map, remove left border, restore border-top */
@media (max-width: 991.98px) {
  .tsp-filter-sidebar {
    border-left: none;
    border-top: 1px solid var(--rule);
    max-height: none;   /* let it expand fully when stacked */
  }
}


/* ================================================================
   REGION DROPDOWN (.tsp-select)
   ---------------------------------------------------------------
   Replaces the region text input + button. Styled to match the
   .search-mini height and border treatment within the filter sidebar.
================================================================ */
.tsp-select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--ff-h);
  font-size: 12px;
  color: var(--dv);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23592d8c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
.tsp-select:focus {
  outline: 2px solid var(--mv);
  outline-offset: 1px;
  border-color: var(--mv);
}


/* ================================================================
   STARTER CARD — compact horizontal (.rcard--starter)
   ---------------------------------------------------------------
   Always horizontal at all viewport sizes (no @media wrapper).
   Image: fixed 120px wide, fills full card height.
   Body: name, location, type badge, CTA only.
   No hover lift — card is too compact for the 4px translateY.

   The .ratio/.ratio-16x9 markup is reused unchanged. The CSS
   overrides the padding-top trick so the image fills height
   rather than locking to 16:9 aspect ratio (same pattern as
   .rcard--featured, but without a breakpoint).
================================================================ */

.rcard--starter {
  flex-direction: row;
  min-height: 84px;  /* enough for name + loc + CTA at 12px */
}

/* Forces a row wrap between a Silver and a Starter card (they share col-12 col-md-6, so
   without this Bootstrap will happily place one of each side by side). No visible content -
   the #tspGrid row's own g-3 gutter still applies its normal margin-bottom to this element,
   so it reads as an ordinary gap between rows, not an extra one. See __entities_results_card.php
   ("Tier-change row break"). */
.rcard-tier-break {
  height: 0;
  padding: 0;
}

.rcard--starter .rcard-img {
  width: 120px;
  flex-shrink: 0;
}

.rcard--starter .rcard-img .ratio {
  height: 100%;
  padding-top: 0 !important;
}

.rcard--starter .rcard-img .ratio img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rcard--starter .rcard-body {
  padding: 10px 12px;
  justify-content: center;
  gap: 3px;
}

.rcard--starter .rcard-name {
  font-size: .875rem;
  margin-bottom: 2px;
}

.rcard--starter .rcard-loc {
  margin-bottom: 6px;
}

.rcard--starter .ac-read-more {
  padding-top: 4px;
}

/* Suppress image overlay badges that are too tight in 120px */
.rcard--starter .rcard-type {
  font-size: 8px;
  padding: 2px 6px;
  bottom: 6px;
  left: 6px;
}

.rcard--starter .rcard-price {
  font-size: 10px;
  padding: 2px 6px;
  top: 6px;
  right: 6px;
}

/* No translateY lift on compact cards — disproportionate */
.rcard--starter:hover {
  transform: none;
  box-shadow: 0 4px 16px rgba(35,15,66,.10);
}


/* ================================================================
   OPTION B SIDEBAR — sticky results sidebar
   ---------------------------------------------------------------
   .tsp-sidebar-inner replaces .tsp-sticky-unit.
   Sits inside col-lg-4. Sticky to navbar, max-height to viewport,
   scrolls internally so the user can reach all filter pills without
   the sidebar ever covering the results column.

   Map area is smaller (200px) — appropriate for the narrow col-4
   context vs the previous full-width 320px panel.
================================================================ */

.tsp-sidebar-inner {
  position: sticky;
  top: 74px;               /* PIETER: confirm against live .gt-nav height */
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow-x: hidden;
  background: #fff;
}

/* Compact map in sidebar */
.tsp-sidebar-inner .tsp-map-area {
  height: 200px;
}

/* Filter pills in sidebar — wrapped, NOT full-width.
   Overrides .fpill--block if it leaked from previous renders. */
.tsp-sidebar-inner .fpill {
  width: auto !important;
  text-align: initial !important;
  justify-content: initial !important;
}

/* Filter pill container — wraps naturally */
.tsp-sidebar-inner .tsp-filter-pills {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
}

/* Filter groups tighter in narrow sidebar */
.tsp-sidebar-inner .tsp-filter-group {
  padding: 8px 12px;
}

/* Scrollbar — subtle, to not compete visually */
.tsp-sidebar-inner::-webkit-scrollbar {
  width: 4px;
}
.tsp-sidebar-inner::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 2px;
}


/* ================================================================
   FIX 1 — Sticky sidebar: separate positioning from overflow scroll
   ---------------------------------------------------------------
   position:sticky + overflow-y:auto on the same element cancels
   stickiness — the element creates its own scroll container and
   sticks within itself rather than the page viewport.

   Solution: two-div pattern.
     .tsp-sidebar-sticky  — outer, handles position:sticky only
     .tsp-sidebar-inner   — inner, handles overflow scroll only

   Override the sticky rule previously set on .tsp-sidebar-inner.
================================================================ */

.tsp-sidebar-sticky {
  position: sticky;
  top: 74px;            /* PIETER: verify against live .gt-nav height */
}

/* Remove position:sticky from inner — it now belongs to the outer */
.tsp-sidebar-inner {
  position: static;
  top: auto;
}


/* ================================================================
   FIX 2 — Search button: inline + site-standard styling
   ---------------------------------------------------------------
   The .tsp-search-full container needs explicit flex layout so the
   button stays inline with the input. The button uses the site's
   dark violet / yellow colour scheme to match other interactive
   elements (nav, map header, filter header).

   The input loses its right border and right radius to join flush
   with the button, forming a single compound control.
================================================================ */

.tsp-search-full {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}

.tsp-search-full input {
  flex: 1;
  min-width: 0;
  width: auto;                        /* override any earlier % width */
  border-right: none !important;
  border-radius: 3px 0 0 3px !important;
}

/* Site-standard button: dark violet background, yellow icon */
.tsp-search-full button {
  flex-shrink: 0;
  width: 38px;
  padding: 0;
  background: var(--dv);
  color: var(--ye);
  border: 1px solid var(--dv);
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background .15s, border-color .15s;
}

.tsp-search-full button:hover {
  background: var(--mv);
  border-color: var(--mv);
}

/* ================================================================
   PATCH — §22-H, .rcard-img
   ---------------------------------------------------------------
   Find the existing .rcard-img rule in result-pages-addon-v4.css
   (§22-H. TSP CARD) and replace it with the version below.

   WHY
   ---------------------------------------------------------------
   The card image is now sized using Bootstrap's .ratio.ratio-16x9
   + .object-fit-cover utilities (see __entities_results_card.php),
   not a fixed pixel height on .rcard-img. The old height/overflow
   on .rcard-img conflicted with .ratio's own height mechanism
   (height:0 + padding-top aspect-ratio trick) and was the root
   cause of the broken card grid — cards rendered full-width,
   single-column, with images at intrinsic size instead of a
   cropped 220px-tall band.

   .rcard-img now only needs to:
     - establish a positioning context for the absolutely-positioned
       badges (.rcard-tier-badge, .rcard-price, .rcard-type)
     - provide the placeholder background while the image loads
     - provide the bottom gradient (::after) that the badges sit on

   .ratio gives .rcard-img a definite height via its in-flow
   .ratio child, so the ::after percentage height still resolves
   correctly.

   SCOPE
   ---------------------------------------------------------------
   .rcard / .rcard-img is only used by __entities_results_card.php
   (the shared TSP result card, all TSP types). Not used by
   .tcard / .evcard / .acard, so this change is scoped to the TSP
   result pages only.
================================================================ */


/* ── BEFORE (remove) ── */
/*
.rcard-img {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--wh2);
  flex-shrink: 0;
}
*/


/* ── AFTER (use this) ── */
.rcard-img {
  position: relative;
  background: var(--wh2);
  flex-shrink: 0;
}


/* ── UNCHANGED — confirm these two rules are still present as-is ── */
/*
.rcard-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .5s ease;
}
.rcard-img::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(35,15,66,.85) 0%, transparent 100%);
  pointer-events: none;
}
*/