/* ================================================================
   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 */
.rp-hero .hero-inner {
  position: relative;
  z-index: 10;
  padding-bottom: 48px;
}

/* hero-h1 on result pages is slightly smaller than homepage */
.rp-hero .hero-h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

/* Per content-type hero backgrounds */
.rp-hero--articles    { background-image: url('https://core.ghanatrvl.com/images/hero/xl/ghanatrvl-travel-insights.webp'); }
.rp-hero--news        { background-image: url('https://core.ghanatrvl.com/images/hero/xl/ghanatrvl-news.webp'); }
.rp-hero--newsletters { background-image: url('https://core.ghanatrvl.com/images/hero/xl/ghanatrvl-newsletters.webp'); }
.rp-hero--tsp         { background-image: url('https://core.ghanatrvl.com/images/hero/xl/ghanatrvl-places-to-stay.webp'); }
.rp-hero--events      { background-image: url('https://core.ghanatrvl.com/images/hero/xl/ghanatrvl-events.webp'); }
.rp-hero--tours       { background-image: url('https://core.ghanatrvl.com/images/hero/xl/ghanatrvl-tours.webp'); }
.rp-hero--community   { background-image: url('https://core.ghanatrvl.com/images/hero/xl/ghanatrvl-community.webp'); }
.rp-hero--gallery     { background-image: url('https://core.ghanatrvl.com/images/hero/xl/ghanatrvl-gallery.webp'); }
.rp-hero--directory   { background-image: url('https://core.ghanatrvl.com/images/hero/xl/ghanatrvl-contributors.webp'); }

/* 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: #007bff; background: #007bff; }
.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.
================================================================ */
.rp-statsbar {
  position: relative;
  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;
}


/* ================================================================
   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;
}
.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;
}


/* ================================================================
   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
   3-col default, responsive via §18.
   .rp-grid--2col for TSP / events taller cards.
================================================================ */
.rp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.rp-grid--2col { grid-template-columns: repeat(2, 1fr); }


/* ================================================================
   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 — spans 2 columns, horizontal layout */
.acard.wide {
  grid-column: span 2;
  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)
================================================================ */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  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.
================================================================ */
.cat-banner {
  border-radius: 6px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
  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;
}
.popular-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.pitem {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 13px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.pitem:hover { box-shadow: 0 6px 20px rgba(35,15,66,.1); transform: translateY(-2px); }
.p-rank {
  font-family: var(--ff-h);
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(89,45,140,.15);
  line-height: 1;
  flex-shrink: 0;
  min-width: 26px;
}
.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 skip animation */
.rp-grid > *.no-anim      { animation: none; }


/* ================================================================
   18. RESPONSIVE
================================================================ */
@media (max-width: 1199px) {
  .rp-grid                      { grid-template-columns: repeat(2, 1fr); }
  .acard.wide                   { grid-column: span 2; }
  .popular-list                 { grid-template-columns: repeat(2, 1fr); }
  .featured-card                { min-height: 360px; }
}

@media (max-width: 991px) {
  .featured-card                { grid-template-columns: 1fr; }
  .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) {
  .rp-grid                      { grid-template-columns: 1fr; }
  .acard.wide                   { grid-column: span 1; flex-direction: column; }
  .acard.wide .acimg            { width: 100%; min-height: 190px; height: 190px; }
  .popular-list                 { grid-template-columns: 1fr; }
  .filter-bar                   { flex-direction: column; align-items: flex-start; }
  .filter-search                { min-width: 100%; }
  .fc-body                      { padding: 24px 20px; }
}
