/* ===========================================================
   Exemplar REITail — Portfolio page (Figma nodes 96:606,
   96:897, 107:881). Interactive Google map filtered by
   province / mall with a mall detail panel.
   Mobile-first: base styles = phone; media queries scale up.
   Page states are classes on #pfStage:
     .is-province  a province chip is active (search hidden)
     .is-focused   a mall is selected (map zoomed, panel open)
     .is-collapsed the mall panel is tucked away
     .pf--nokey    no Google Maps API key configured
   =========================================================== */

body.pf-body {
  background: var(--bg);
  color: #fff;
}

/* ============================ Stage ========================== */
.pf-stage {
  position: relative;
  height: 100dvh;
  min-height: 620px;
  overflow: hidden;
  background: var(--bg);
}

section#pfStage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(1, 5, 18, 1) 0%,
    rgba(1, 5, 18, 0.89) 30%,
    rgba(1, 5, 18, 0.3) 60%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

section#pfStage.is-search-open::before {
  opacity: 0.5;
}

section#pfStage.is-focused::before {
  opacity: 0;
  visibility: visible;
}

.pf-map {
  position: absolute;
  inset: 0;
  background: var(--bg);
}
.pf-map > div {
  background: var(--bg) !important;
}

/* fallback backdrop when no API key is configured */
.pf-map__fallback {
  position: absolute;
  inset: 0;
  display: none;
  background: var(--bg);
}
.pf--nokey .pf-map__fallback {
  display: block;
}
.pf-map__fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.pf-map__fallback figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.75);
}

/* soft vignette so the map melts into the page background. The top and
   bottom halves are separate layers so the top can fade in on its own
   (see the desktop rule below) while the bottom waits for the filter. */
.pf-stage__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.pf-stage__shade::before,
.pf-stage__shade::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.pf-stage__shade::before {
  background: linear-gradient(
    180deg,
    rgba(1, 5, 18, 0.55) 0%,
    rgba(1, 5, 18, 0.18) 26%,
    rgba(1, 5, 18, 0) 45%
  );
}
.pf-stage__shade::after {
  background: linear-gradient(
    180deg,
    rgba(1, 5, 18, 0) 55%,
    rgba(1, 5, 18, 0.55) 80%,
    #010512 99%
  );
}

.is-search-open .pf-stage__shade::before,
.is-search-open .pf-stage__shade::after {
  opacity: 1;
}
.is-focused .pf-stage__shade::before,
.is-focused .pf-stage__shade::after {
  opacity: 0.6;
}

/* Desktop only: the top haze is part of the page's resting look, so it
   is on from first paint rather than arriving with the filter panel.
   Lower specificity than the state rules above, so .is-search-open /
   .is-focused still take it to 1 / 0.6. */
@media (min-width: 900px) {
  .pf-stage__shade::before {
    opacity: 1;
  }
}

/* ====================== Top overlay (title / search / chips) */
.pf-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
  width: 100%;
  max-width: 90%;
  margin-inline: auto;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
@media (min-width: 900px) {
  .pf-overlay {
    padding: 0 20px;
  }
}

.is-focused .pf-overlay {
  opacity: 0;
  visibility: hidden;
}

.pf-title {
  margin: 0 0 46px;
  font-weight: 200;
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: normal;
  text-align: left;
  color: #fff;
}

/* --- search --------------------------------------------------- */
.pf-search {
  position: relative;
  width: min(461px, 100%);
  margin-bottom: 46px;
  pointer-events: auto;
  height: 54px;
  transition:
    margin-bottom 0.4s ease-in-out,
    height 0.4s ease-in-out,
    opacity 0.4s ease,
    visibility 0.4s ease 0.4s;
  margin-inline: 0;
}
.is-province .pf-search,
.pf-search.is-gone {
  opacity: 0;
  visibility: hidden;
  margin-bottom: 0;
  height: 1px;
  overflow: hidden;
}

.pf-search__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 54px;
  padding: 0 19px 0 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.pf-search__border {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  pointer-events: none;
  fill: none;
  stroke: #fff;
  stroke-width: 2px;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition:
    stroke-dashoffset 0.8s ease-in-out,
    opacity 0.3s ease-out;
  opacity: 0;
}

.pf-search__box:focus-within .pf-search__border {
  stroke-dashoffset: 0;
  opacity: 1;
  transition:
    stroke-dashoffset 1.5s cubic-bezier(0.1, 1, 0.2, 1),
    opacity 0.1s;
}

.pf-search__box input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pf-search__box input::placeholder {
  color: #fff;
  opacity: 1;
}

.pf-search__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
  opacity: 0;
  transform: translateX(-30px);
  pointer-events: none;
  transition:
    opacity 1.2s ease-out,
    transform 1.2s ease-out;
}

#pfSearchInput:not(:placeholder-shown) + .pf-search__btn {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  animation: pfSway 2s ease-in-out infinite 1.2s;
}

@keyframes pfSway {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

.pf-search__results {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 10;
  max-height: 264px;
  overflow-y: scroll;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  display: none;
}
/* Using the modern standard instead of -webkit */
.pf-search__results.is-open {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent; /* thumb color, track color */
}
.pf-search__results.is-open {
  display: block;
}
.pf-search__results button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background-color 0.15s ease;
}
.pf-search__results button:hover {
  background: rgba(255, 255, 255, 0.1);
}
.pf-search__results small {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--mall-colour, var(--gold));
  white-space: nowrap;
}
.pf-search__empty {
  padding: 12px 20px;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

/* --- province chips ------------------------------------------- */
.pf-provinces {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px 26px;
  pointer-events: auto;
}
@media (min-width: 900px) {
  .pf-provinces {
    gap: 32px;
  }
}

.pf-provinces button {
  position: relative;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 40px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--prov-colour, #fff);
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}
/*.pf-provinces button:hover {
    font-weight: 500;
}*/

.pf-provinces button::after {
  content: "";
  width: 0;
  height: 0;
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  border-top: 1px solid var(--prov-colour);
  transition: all 0.3s ease-in-out;
}

.pf-provinces button:hover::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  border-top: 1px solid var(--prov-colour);
}

/* province mode: unselected chips turn white-light, active keeps its colour */
.is-province .pf-provinces button {
  color: #fff;
  font-weight: 300;
}
.is-province .pf-provinces button.is-active {
  color: var(--prov-colour, var(--gold));
  font-weight: 500;
}

/* --- filter actions (toggle + clear) --------------------------- */
/* One row below the chips accordion. Clear only joins it in province
   mode, and the row keeps its height either way since the toggle is
   always there. */
.pf-filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 40px;
}

/* All read as the same caps link; only .pf-filter-link drops the rule */
.pf-clear,
.pf-search-toggle,
.pf-filter-link {
  padding: 0 2px 4px;
  background: none;
  border: 0;
  border-bottom: 1px solid #fff;
  cursor: pointer;
  pointer-events: auto;
  color: #fff;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.pf-clear {
  display: none;
}
.is-province .pf-clear {
  display: inline-block;
}

/* --- entrance -------------------------------------------------- */
/* Runs once the preloader overlay (header.js) has slid out —
   portfolio.js adds .is-revealed to the stage. Mirrors the
   Spaces of Impact reveal on the landing page. */
.pf-title .anim-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.is-revealed .pf-title .anim-word {
  opacity: 1;
  transform: translateY(0);
}
.is-revealed .pf-title .anim-word:nth-child(1) {
  transition-delay: 0.1s;
}
.is-revealed .pf-title .anim-word:nth-child(2) {
  transition-delay: 0.2s;
}

.is-revealed .pf-title .anim-word:nth-child(2) b {
  font-weight: 600;
}

/* --- Search Toggle Button --- */
/* Look comes from the shared .pf-clear rule above; what is left here is
   the entrance it rises in on. */
.pf-search-toggle {
  display: inline-block;
  /* no underline on "Filter Portfolio"; the open state ("Collapse Filter")
     restores it below. Colour (not removal) keeps the row height. */
  border-bottom-color: transparent;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  opacity: 0;
  transform: translateY(20px);
}
.is-search-open .pf-search-toggle {
  border-bottom-color: #fff;
}
.is-revealed .pf-search-toggle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* --- Secondary Filter Links --- */
/* Same caps type as the toggle with the underline held in reserve for
   hover, so the toggle stays the one ruled item in the row. They sit in
   a group because they leave as one: opening the filter takes the group
   out of the row (its width and its share of the gap) so Clear lands
   beside the toggle rather than out past two invisible labels. */
.pf-filter-links {
  display: flex;
  align-items: center;
  /* has to stay one line: wrapping as it narrows would stack the pair and
     grow the row, dragging the toggle off its baseline mid-collapse */
  flex-wrap: nowrap;
  gap: 26px;
  overflow: hidden;
  max-width: 400px;
  transition:
    max-width 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    margin-left 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.is-search-open .pf-filter-links {
  max-width: 0;
  /* cancels the row gap the collapsed group would still claim */
  margin-left: -26px;
  pointer-events: none;
}

.pf-filter-link {
  border-bottom-color: transparent;
  /* the group narrows to nothing around them, so they must neither shrink
     nor rewrap on the way out — either would grow the row mid-collapse */
  flex-shrink: 0;
  white-space: nowrap;
  transition:
    opacity 0.45s ease,
    transform 0.8s ease,
    border-bottom-color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}
.pf-filter-link:hover {
  border-bottom-color: #fff;
}
.is-revealed .pf-filter-link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}
/* the pair fades the moment the filter opens, ahead of the collapse */
.is-revealed.is-search-open .pf-filter-link {
  opacity: 0;
  transition-delay: 0s;
}

/* --- Expandable Wrapper --- */
.pf-search-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}
.is-search-open .pf-search-wrap {
  grid-template-rows: 1fr;
}
.pf-search-wrap-inner {
  overflow: hidden;
  width: 100%;
}

/* the box animates rather than .pf-search itself, whose transition
   and opacity belong to the province-mode hide */
.pf-search__box {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.is-revealed .pf-search__box {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.25s;
}

/* chips rise in sequence after the search; the delay lists are
   per-property (color, opacity, transform) so the colour keeps its
   snappy 0.2s hover/province transition */
.pf-provinces button {
  opacity: 0;
  transform: translateY(24px);
  transition:
    color 0.2s ease,
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.is-search-open .pf-provinces button {
  opacity: 1;
  transform: translateY(0);
}
.is-search-open .pf-provinces button:nth-child(1) {
  transition-delay: 0s, 0.3s, 0.3s;
}
.is-search-open .pf-provinces button:nth-child(2) {
  transition-delay: 0s, 0.4s, 0.4s;
}
.is-search-open .pf-provinces button:nth-child(3) {
  transition-delay: 0s, 0.5s, 0.5s;
}
.is-search-open .pf-provinces button:nth-child(4) {
  transition-delay: 0s, 0.6s, 0.6s;
}
.is-search-open .pf-provinces button:nth-child(5) {
  transition-delay: 0s, 0.7s, 0.7s;
}
.is-search-open .pf-provinces button:nth-child(6) {
  transition-delay: 0s, 0.8s, 0.8s;
}
.is-search-open .pf-provinces button:nth-child(n + 7) {
  transition-delay: 0s, 0.9s, 0.9s;
}

/* ======================= Logo strip ========================== */
/* Static + centred when the logos fit the viewport; otherwise the
   strip JS adds .is-carousel and loops the track continuously
   (translate3d on .pf-strip__track, drag to scrub). */
.pf-strip {
  /* One rendered height for every mall logo, so no artwork can read as larger
     than another (see .pf-strip__logo img). The width cap, gap and divider all
     scale off it, so the mobile override below shrinks the whole strip. */
  --pf-logo-h: 90px;
  --pf-logo-w: calc(var(--pf-logo-h) * 5 / 3);
  /* Distance from each logo to its neighbouring divider. The tiles shrink-wrap
     their logo, so this is the real gap for every mall - it used to be 30px plus
     whatever slack the logo left inside its per-mall square tile (~42px on
     average, less for the widest), which is why the spacing read unevenly. */
  --pf-logo-gap: calc(var(--pf-logo-h) * 0.6);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 4;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
.is-search-open .pf-strip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pf-strip.is-carousel {
  cursor: grab;
}
.pf-strip.is-dragging {
  cursor: grabbing;
}
.is-focused .pf-strip {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.pf-strip__track {
  display: flex;
  align-items: center;
  gap: var(--pf-logo-gap);
  width: max-content;
  margin: 0 auto;
  padding: 0 24px;
  will-change: transform;
}
/* the loop never shows an edge, so the breathing room only applies
   to the static centred layout */
.pf-strip.is-carousel .pf-strip__track {
  padding: 0;
}

.pf-strip__item {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--pf-logo-gap);
}

.pf-strip__divider {
  flex: none;
  width: 3px;
  /* 53px against the desktop logo height; tracks it down on mobile */
  height: calc(var(--pf-logo-h) * 0.44);
}
.pf-strip__item[hidden],
.pf-strip__divider[hidden] {
  display: none;
}

/* Logo treatment mirrors the landing page carousel (.ex-logos__cell): the tile
   is spacing/hit-area, and the logo inside it renders greyscale at a height
   shared by every mall, growing ~17% in colour on hover. min-height (not height)
   so the text tile below can still grow for a long mall name. */
.pf-strip__logo {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  /* shrink-wraps the logo (max-width mirrors the img's cap) so the gaps above
     are measured from the artwork itself, not from a wider fixed tile */
  max-width: var(--pf-logo-w);
  min-height: calc(var(--pf-logo-h) * 1.25);
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-user-drag: none;
}
/* Uniform height with an auto width: the artwork ranges from ~3.3:1 wordmarks to
   taller-than-wide crests, and sizing on width alone (or on the old per-mall
   width/height pair) left the tall ones reading much larger. --pf-logo-w caps the
   widest so they still fit the tile, with contain letterboxing the remainder. */
.pf-strip__logo img {
  width: auto;
  height: var(--pf-logo-h);
  max-width: var(--pf-logo-w);
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: grayscale(1);
  transition:
    transform 0.3s ease-in-out,
    filter 0.3s ease-in-out;
}
.pf-strip__logo:hover img {
  transform: scale(1.1667);
  filter: grayscale(0);
}
.pf-strip__logo--faded img {
  opacity: 0.8;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

/* text tile for malls without an uploaded logo */
.pf-strip__logo span {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(15px, 1.3vw, 22px);
  font-weight: 300;
  letter-spacing: 3px;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease;
}
.pf-strip__logo:hover span {
  color: #fff;
}

/* ===================== Mall detail panel ===================== */
.pf-panel {
  position: absolute;
  top: clamp(120px, 30vh, 284px);
  right: 0;
  z-index: 6;
  display: flex;
  align-items: stretch;
  max-width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease;
}
.is-focused .pf-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.is-focused.is-collapsed .pf-panel {
  transform: translateX(calc(100% - 63px));
}

.pf-panel__collapse {
  flex: none;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border: 0;
  cursor: pointer;
  color: #fff;
}
.pf-panel__collapse svg {
  transition: transform 0.3s ease;
}
.is-collapsed .pf-panel__collapse svg {
  transform: rotate(180deg);
}

.pf-panel__body {
  width: min(530px, calc(100vw - 44px));
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 30px 24px;
  background: rgba(25, 30, 41, 0.97);
}
@media (min-width: 900px) {
  .pf-panel__collapse {
    width: 63px;
  }
  .pf-panel__body {
    gap: 40px;
    /*        padding: 50px 30px 50px 34px;*/
    padding: 30px 30px 30px 30px;
    width: min(530px, calc(100vw - 63px));
  }
}

.pf-panel__head {
  display: flex;
  align-items: center;
  gap: 25px;
}
.pf-panel__logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 97px;
  /*    height: 119px;*/
  padding: 10px 14px;
  background: #010512;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pf-panel__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pf-panel__logo span {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-align: center;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.pf-panel__name {
  margin: 0 0 20px;
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 30px);
  color: #fff;
}
.pf-panel__area {
  margin: 0;
  font-size: 14px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--mall-colour, var(--gold));
}
/* portfolio_category.owned_managed, sits under the location line */
.pf-panel__ownership {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--mall-colour, var(--gold));
  margin-bottom: 8px;
}
.pf-panel__ownership:empty {
  display: none;
}

/* --- image carousel ------------------------------------------- */
.pf-panel__carousel {
  position: relative;
  height: clamp(200px, 24vh, 292px);
  overflow: hidden;
  background: #0a0e18;
}
.pf-panel__slides {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.pf-panel__slides img {
  flex: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-panel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 44px;
  background: rgba(1, 5, 18, 0.7);
  border: 0;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.2s ease;
}
.pf-panel__arrow:hover {
  background: rgba(1, 5, 18, 0.9);
}
.pf-panel__arrow--prev {
  left: 0;
}
.pf-panel__arrow--next {
  right: 0;
}
.pf-panel__carousel.is-single .pf-panel__arrow {
  display: none;
}

/* --- stats ----------------------------------------------------- */
.pf-panel__stats {
  display: flex;
  gap: clamp(30px, 4vw, 53px);
}
.pf-stat p {
  margin: 0;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(48px, 4.5vw, 50px);
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
@media (max-width: 479px) {
  .pf-stat p {
    font-size: 38px;
  }
}
.pf-stat p sup {
  font-size: 0.64em;
  vertical-align: baseline;
  position: relative;
  top: -0.28em;
}
.pf-stat span {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.pf-panel__cta {
  align-self: flex-start;
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 0;
  cursor: pointer;
  color: #fff;
  font-family: "Roboto", Arial, sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.2s ease;
  display: none;
}
.pf-panel__cta:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ======================= Return tab ========================== */
.pf-return {
  position: absolute;
  left: 0;
  top: 55%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 57px;
  height: 117px;
  padding: 10px 5px 10px 10px;
  background: rgba(0, 0, 0, 0.37);
  border: 0;
  cursor: pointer;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease,
    background-color 0.2s ease;
}
.pf-return:hover {
  background: rgba(0, 0, 0, 0.6);
}
.is-focused .pf-return {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.pf-return span {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 5.74px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* The footer renders light-on-dark here via .ex-footer--invert, set by
   ViewData["FooterInvert"] in the view — see exemplar-shared.css. */

/* small screens: panel becomes a bottom sheet */
@media (max-width: 899px) {
  .pf-panel {
    top: auto;
    bottom: 0dvh;
    left: 0;
    right: 0;
    /* max-height: 72vh; */
    height: max-content;
  }
  .pf-panel__body {
    /* width: 100%; */
    width: 100vw;
    overflow-y: auto;
  }
  .is-focused.is-collapsed .pf-panel {
    transform: translateX(calc(100% - 44px));
  }
  .pf-return {
    top: 130px;
    height: 96px;
  }
  /* 120px logos dominate a phone and eat into the map band above them; step the
     shared height down with the viewport - the width cap, gaps and dividers all
     follow it */
  .pf-strip {
    --pf-logo-h: clamp(50px, 15vw, 90px);
  }
  /* the text tile for a mall with no logo has to fit the narrower tile */
  .pf-strip__logo span {
    font-size: 12px;
    letter-spacing: 1.5px;
  }
  /* The overlay is pinned under the nav and wraps its own content instead of
     filling (and centring inside) the stage, so everything below it is clear
     map — portfolio.js measures that band and fits the markers as tightly
     into it as they go, which is what makes the tight row gaps worth having:
     every pixel the block gives back is zoom. */
  .pf-overlay {
    bottom: auto;
    /* the 90% cap and the 20px padding stacked into a ~40px inset that grew
       with the viewport; drop the cap so the copy sits on the same flat 24px
       edge as the strip below it and as every other page */
    max-width: 100%;
    padding: 96px 24px 0;
    row-gap: 16px;
  }
  /* spacing comes from the row gap above, so the block's height stays
     predictable as the search box collapses out in province mode */
  .pf-title,
  .pf-search {
    margin-bottom: 0;
  }
  .pf-filter-actions {
    margin-top: 0;
  }

  /* Phones: the open filter covers most of the stage, so the map steps back
     behind it (it fades toward --bg, which is what sits under it). It fades
     back in the moment the reader commits — a province chosen (.is-province)
     or a mall opened (.is-focused) — and when the filter collapses again. */
  .pf-map,
  .pf-map__fallback {
    transition: opacity 0.45s ease;
  }
  .is-search-open:not(.is-province):not(.is-focused) .pf-map,
  .is-search-open:not(.is-province):not(.is-focused) .pf-map__fallback {
    opacity: 0.6;
  }

  /* Provinces: one row that scrolls sideways rather than three that wrap.
     The ends fade while there are chips left to reach in that direction
     (classes set in portfolio.js). */
  .pf-provinces {
    --pf-fade-l: 0px;
    --pf-fade-r: 0px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0 26px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none; /* Firefox */
    -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      #000 var(--pf-fade-l),
      #000 calc(100% - var(--pf-fade-r)),
      transparent
    );
    mask-image: linear-gradient(
      to right,
      transparent,
      #000 var(--pf-fade-l),
      #000 calc(100% - var(--pf-fade-r)),
      transparent
    );
  }
  .pf-provinces::-webkit-scrollbar {
    display: none;
  }
  .pf-provinces.has-fade-start {
    --pf-fade-l: 30px;
  }
  .pf-provinces.has-fade-end {
    --pf-fade-r: 30px;
  }
  .pf-provinces button {
    line-height: 1.6em;
    white-space: nowrap;
    font-size: 14px;
  }
  .is-focused .pf-panel {
    transform: translateX(-44px);
    width: calc(100vw + 44px);
    max-width: calc(100vw + 44px);
  }
}

@media (max-width: 800px) {
  .pf-overlay {
    align-items: unset;
  }
  /* the overlay stops packing its children to the left here, so the row
     centres itself rather than each button doing it alone */
  .pf-filter-actions {
    justify-content: center;
  }
}
