/* ========== Luxe NYC Theme (Deep Navy + Soft Gold) ========== */
:root {
  --navy: #0b1d3a;
  --navy-700: #102a56;
  --ink: #0f1530;
  --muted: #65709a;
  --soft: #f5f7fc;
  --card: #ffffff;
  --gold: #d9b970;
  --gold-strong: #caa455;
  --gold-grad: linear-gradient(90deg, #cfae63 0%, #e3c887 100%);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-1: 0 8px 28px rgba(8, 14, 40, 0.1);
  --shadow-2: 0 14px 40px rgba(8, 14, 40, 0.18);
  --poster-w: 180px;
  --poster-h: 240px;
  --gap: 24px;
  --seq: 712px;
  /* JS will update this */
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 0px;
}

.narrow {
  max-width: 850px;
}

a {
  color: var(--gold-strong);
  text-decoration: none;
}

a:hover {
  filter: brightness(1.05);
}


/* ---------- Featured Listings ---------- */
/* ---------- Featured Listings (Updated Responsive) ---------- */

#apartments {
  padding: 78px 20px;
  background-color: #f6f8fc;
}

/* just positioning; no max-width here so bg spans full width */
.section.featured {
  position: relative;
}

/* Title */
.featured_section_title {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 44px);
  text-align: center;
  color: var(--navy);
  margin: 0 auto 40px;
  position: relative;
  max-width: 1200px;
}

.featured_section_title::after {
  content: "";
  width: 70px;
  height: 4px;
  background: var(--gold-strong);
  border-radius: 6px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
}

/* Grid container */
.featured .listing-grid {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  gap: 30px;
  align-items: stretch;
}

/* 3-column grid by default */
.featured .listing-grid.grid-mode {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  overflow: visible;
}

/* 2 columns on medium, 1 column on mobile */
@media (max-width: 1100px) {
  .featured .listing-grid.grid-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .featured .listing-grid.grid-mode {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Card */
.listing-card {
  background: var(--card, #fff);
  overflow: hidden;
  box-shadow: var(--shadow-1, 0 8px 28px rgba(8, 14, 40, .1));
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  border-radius: 10px;
  height: auto;
}

.listing-card:hover {
  /* transform: translateY(-4px) scale(1.01); */
  box-shadow: var(--shadow-2, 0 14px 40px rgba(8, 14, 40, .18));
}

/* Media / image area */
.listing-card__media {
  position: relative;
  overflow: hidden;
  background: #f3f5ff;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
}

.listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .35s ease, filter .25s ease;
}

.listing-card:hover .listing-card__media img {
  transform: scale(1.06);
}

/* overlay */
.listing-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      transparent 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.listing-card:hover .listing-card__overlay {
  opacity: 0;
}

/* price badge */
.listing-card__price {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  font-size: 18px;
  font-weight: 700;
}

/* fullscreen button */
.listing-card__fullscreen {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.2s ease;
}

.listing-card__fullscreen:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* arrow buttons (also use .crs-nav on them) */
.crs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 40px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  z-index: 3;
  text-shadow: 0 0 10px #000;
}

.crs-nav:hover {
  color: #f26522;
}

.media-prev {
  left: 8px;
}

.media-next {
  right: 8px;
}

/* hide arrows by default */
.listing-card__media .crs-nav {
  opacity: 0;
  pointer-events: none;
  /* avoid accidental clicks while hidden */
  transition: opacity .18s ease;
}

/* show when hovering the card's media area */
.listing-card__media:hover .crs-nav {
  opacity: 1;
  pointer-events: auto;
}

/* accessibility: also show when any control inside gets keyboard focus */
.listing-card__media:focus-within .crs-nav {
  opacity: 1;
  pointer-events: auto;
}

/* per-card gallery dots */
.media-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 4;
}

.media-dots li .media-dot {
  width: 0px;
  height: 0px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .45);
}

.media-dots li.is-active .media-dot {
  background: #fff;
}

/* Content */
.listing-card__content {
  padding: 16px 20px;
}

.listing-card__title {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 20px;
  color: #2c3a7a;
  display: inline;
  background-image: linear-gradient(transparent calc(100% - 1px), currentColor 0);
  background-size: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.listing-card__title:hover,
.listing-card__title:focus-visible,
.listing-card:hover .listing-card__title {
  background-size: 100% 100%;
}

.listing-card__address {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #636363;
}

/* meta row */
.listing-card__meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #222222;
  margin-top: 2px;
}

.listing-card__actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.listing-card__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.listing-card__meta i {
  font-size: 18px;
}

/* Details button */
.meta-action {
  margin-left: auto;
}

.listing-card__book {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.listing-grid.grid-mode .listing-empty {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 1100px) {
  .listing-grid.grid-mode .listing-empty {
    grid-column: 1 / -1;
  }
}


/* Mobile tweaks */
@media (max-width: 560px) {
  .featured .listing-grid {
    gap: 16px;
  }

  .listing-card__content {
    padding: 14px 14px 16px;
  }

  .listing-card__title {
    font-size: 18px;
  }

  .listing-card__meta {
    font-size: 13px;
    gap: 10px;
  }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

  .listing-card,
  .listing-card__media img,
  .listing-card__overlay,
  .listing-card__fullscreen,
  .crs-nav {
    transition: none !important;
  }
}

/* Hide extra cards initially for "Show all" */
.listing-card.is-hidden {
  display: none;
}

/* "Show all" button */
.listing-more-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.listing-toggle {
  background: #f26522;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font: 600 14px/1.2;
  cursor: pointer;
}

.listing-toggle:hover {
  background: #2c3a7a;
}

/* ===== Section pager dots (below the grid) ===== */
.featured .featured-dots,
.featured .grid-pager {
  margin: 18px auto 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 14px;
  justify-content: center;
}

.featured .featured-dots li,
.featured .grid-pager li {
  display: inline-block;
}

.featured .featured-dots li button,
.featured .grid-pager li button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cfd3e6;
  /* inactive */
  text-indent: -9999px;
  /* hide numbers */
  overflow: hidden;
  cursor: pointer;
}

.featured .featured-dots li.is-active button,
.featured .grid-pager li.is-active button {
  background: #1f2a55;
  /* active */
}

/* ---------- Sections ---------- */
.section {
  padding: 20px 0;
}

.section--soft {
  background: var(--soft);
}

.section__title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 42px);
  letter-spacing: 0.01em;
  color: var(--navy);
  margin: 0 0 14px;
}

.section__tag {
  color: #7a84ad;
  margin: -6px 0 18px;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--navy-700);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.08rem;
  color: #2a3156;
}

.ticks {
  padding-left: 0;
  margin: 18px 0 26px;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
}

.ticks li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-strong);
  font-weight: 900;
}



/* Discover Freedom Grid */
.discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.discover-item {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff60;
}

.discover-item.image {
  padding: 0;
}

.discover-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.discover-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--navy);
}

.discover-item p {

  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.6;
}

.discover-link {
  font-weight: 700;
  color: var(--gold-strong);
  text-decoration: none;


  .discover-item .btn {
    margin-top: 14px;
    align-self: flex-start;
    padding: 0 24px;
    height: 46px;
    width: auto;
    min-width: unset;
  }


}

.discover-link:hover {
  filter: brightness(1.1);
}


/* Responsive */
@media (max-width: 900px) {
  .discover-grid {
    grid-template-columns: 1fr;
  }

  .discover-item {
    padding: 28px;
  }
}

/* ===== Discover Mosaic ===== */
.discover-mosaic .discover-mosaic__grid {
  height: 50vh;
  display: flex;
  align-items: center;
  /* vertical center */
  justify-content: space-around;
  grid-template-columns: 1fr 0fr;
  /* copy left, gallery right */
  gap: clamp(24px, 4vw, 48px);
}

.discover-mosaic__copy {
  padding: clamp(8px, 1.2vw, 12px);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

/* Center only the pill */
.pill-wrap {
  width: 100%;
  text-align: center;
  margin-bottom: 0.75rem;
}

.pill {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .86rem;
  color: #1c254a;
  background: #eef3ff;
  border-radius: 999px;
  padding: .5rem .8rem;
  box-shadow: 0 8px 22px rgba(16, 32, 80, .12);
}

.discover-mosaic__title {
  margin: .6rem 0 0.6rem;
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(28px, 4.2vw, 44px);
  color: var(--navy);
}

.discover-mosaic__lead {
  color: #5b678d;
  max-width: 48ch;
  margin: 0 0 1rem;
  line-height: 1.7;
}

.dot-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.1rem;
  display: inline-flex;
  flex-direction: column;
  gap: .6rem;
  color: #1f2a55;
  font-weight: 600;
  text-align: left;
}

.dot-list li {
  display: flex;
  text-align: left;
  gap: .56rem;
}

.dot-list .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b7e3ff 0%, #69d4ff 38%, #5ac8ff 39%, #b7e3ff 100%);
  box-shadow: 0 0 0 3px rgba(106, 212, 255, .18);
}

.discover-mosaic__actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.discover-mosaic__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
}

.mosaic-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  min-height: 120px;
}

.mosaic-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Heights to mimic the reference layout */
.mosaic-card--tall {
  aspect-ratio: 3/4;
}

/* tall cards top row */
.mosaic-card--small {
  aspect-ratio: 16/10;
}

/* shorter cards bottom row */

.mosaic-card--blank {
  background: #ffffff;
  border: 1px dashed #e7eaf6;
}

/* Spacing for the whole section */
.discover.discover-mosaic {
  background: #ffffff;
}

/* Responsive stack */
@media (max-width: 980px) {
  .discover-mosaic .discover-mosaic__grid {
    grid-template-columns: 1fr;
  }

  .discover-mosaic__media {
    order: -1;
    /* gallery first on mobile, optional */
  }
}


/* ---------- CTA Hero ---------- */
.cta-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 74vh;
  margin: 0;
  overflow: hidden;
}

.cta-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.55));
}

.cta-hero__content {
  position: relative;
  text-align: center;
}

.cta-hero__title {
  color: #fff;
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: clamp(28px, 4.8vw, 46px);
}

.cta-hero__sub {
  color: #fff;
  margin-top: 10px;
  font-weight: 700;
  opacity: 0.92;
}

/* ---------- Getting here ---------- */
/* ---------- Getting Here (Contact Section) ---------- */
.contact-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  /* left info smaller, map larger */
  gap: 40px;
  border: 1px solid #ececec;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-2);
  align-items: stretch;
}

/* Left: Contact Info */
.contact-left {
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-left .section__title {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-left .eyebrow {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 22px;
  color: var(--navy-700);
}

/* Card container */
.nyc-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

/* Skyline strip on top */
.nyc-card__head {
  height: 160px;
  /* adjust to taste (120–220px works) */
  background: #0b1d3a;
  /* fallback color while image loads */
}

.nyc-card__head img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Body layout: info left, map right */
.nyc-card__body {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  padding: 28px 28px 34px;
}

.nyc-card__info .label {
  display: block;
  font-weight: 800;
  color: var(--navy-700);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.nyc-card__map {
  min-height: 360px;
}

.nyc-card__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 12px;
}

/* Responsive stack */
@media (max-width: 900px) {
  .nyc-card__body {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .nyc-card__map {
    min-height: 260px;
  }
}


/* Info Blocks */
.contact-info {
  display: grid;
  gap: 22px;
}

.info-block .label {
  display: block;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 6px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.info-block a,
.info-block p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.info-block a:hover {
  color: var(--gold-strong);
}

/* Right: Map */
.contact-right .map {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.contact-right iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 0;
  /* smooth right corners */
}

/* Responsive */
@media (max-width: 900px) {
  .contact-box {
    grid-template-columns: 1fr;
    /* stack */
  }

  .contact-left {
    padding: 28px 22px;
  }

  .contact-right iframe {
    min-height: 260px;
    border-radius: 0 0 18px 18px;
    /* round bottom corners instead */
  }
}



/* Back to top */
.top-btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-strong);
  color: #1a223f;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: var(--shadow-2);
}

/* ==== Getting Here — Premium info cards (no markup change) ==== */

/* Heading & kicker polish */
#contact .contact-left .section__title {
  letter-spacing: .2px;
  margin: 0 0 6px;
}

#contact .contact-left .eyebrow {
  display: inline-block;
  background: #eef3ff;
  color: #1c254a;
  padding: .45rem .75rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 8px 20px rgba(16, 32, 80, .12);
  margin-bottom: 14px;
}

/* Stack of fancy rows */
#contact .contact-info {
  display: grid;
  gap: 14px;
}

/* Card shell */
#contact .info-block {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  /* icon + content */
  column-gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e9ecf7;
  box-shadow: var(--shadow-1);
  transition: transform .15s ease, box-shadow .15s ease;
  /* subtle gold border glow */
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(217, 185, 112, .35), rgba(203, 164, 85, .08)) border-box;
}

#contact .info-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

/* Label + value */
#contact .info-block .label {
  grid-column: 2;
  margin: 0 0 2px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-700);
  font-weight: 800;
}

#contact .info-block a,
#contact .info-block p {
  grid-column: 2;
  margin: 0;
  font-size: 1.06rem;
  font-weight: 600;
  color: #0f1530;
}

#contact .info-block a:hover {
  color: var(--gold-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Gold round icon using CSS mask (no extra HTML) */
#contact .info-block::before {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 6px 16px rgba(202, 164, 85, .35);
  -webkit-mask: var(--icon) center/70% no-repeat;
  mask: var(--icon) center/70% no-repeat;
}

/* Assign icons by row order (1=phone, 2=email, 3=office) */
#contact .contact-info .info-block:nth-child(1) {
  /* phone */
  --icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23fff" d="M6.62 10.79a15.46 15.46 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24 11.36 11.36 0 003.56.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1 11.36 11.36 0 00.57 3.56 1 1 0 01-.24 1.01l-2.21 2.22z"/></svg>');
}

#contact .contact-info .info-block:nth-child(2) {
  /* email */
  --icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23fff" d="M20 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V6a2 2 0 00-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

#contact .contact-info .info-block:nth-child(3) {
  /* address */
  --icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23fff" d="M12 2a7 7 0 00-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 00-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z"/></svg>');
}

/* optional: a thin divider rhythm under the stack */
#contact .contact-left::after {
  content: "";
  display: block;
  margin-top: 14px;
  width: 68%;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 185, 112, .6), rgba(217, 185, 112, 0));
  border-radius: 999px;
}



/* ----- Fixed posters layer (clipped to Section 3) ----- */
#floating-posters-2 {
  position: fixed;
  inset: 0;
  z-index: 5000;
  /* keep behind content */
  opacity: 0;
  /* hidden until section 3 intersects */
  transition: opacity .3s ease;
  pointer-events: none;
  /* won’t block form inputs */
  will-change: clip-path, opacity, transform;
}

/* Two side columns */
.poster-col {
  position: absolute;
  top: 0;
  height: 100vh;
  width: var(--poster-w);
  overflow: hidden;
  /* clip tracks inside the column */
}

.poster-col.left {
  left: 10vw;
}

.poster-col.right {
  right: 10vw;
}

/* The moving stack that contains TWO sequences (for seamless loop) */
.stack {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* Each sequence = 4 posters stacked */
.sequence {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* Posters */
.poster {
  width: var(--poster-w);
  height: var(--poster-h);
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  opacity: .85;
  transform: translateZ(0);
  /* hint for smoother anim */
}

.poster:hover {
  opacity: 1;
}

/* Animations: left column scrolls UP, right column scrolls DOWN */
@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(calc(-1 * var(--seq)));
  }

  /* move by one sequence height */
}

@keyframes scrollDown {
  0% {
    transform: translateY(calc(-1 * var(--seq)));
  }

  100% {
    transform: translateY(0);
  }
}

.poster-col.left .stack {
  animation: scrollUp 16s linear infinite;
}

.poster-col.right .stack {
  animation: scrollDown 16s linear infinite;
}

/* ===== Trust badges: hover/focus tooltips ===== */
.trust .trust__item {
  position: relative;
  cursor: default;
  outline: none;
}

/* Tooltip bubble */
.trust .trust__item::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: 110%;
  transform: translateX(-50%) translateY(6px) scale(.98);
  width: max(200px, 28ch);
  max-width: 320px;
  padding: 10px 12px;
  background: rgba(11, 29, 58, 0.96);
  /* deep navy */
  color: #fff;
  font: 600 12.5px/1.45;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(8, 14, 40, .25);
  pointer-events: none;
  white-space: normal;
  opacity: 0;
  z-index: 20;
  transition: opacity .18s ease, transform .18s ease;
}

/* Tooltip arrow */
.trust .trust__item::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 102%;
  transform: translateX(-50%) translateY(6px);
  width: 10px;
  height: 10px;
  background: rgba(11, 29, 58, 0.96);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  opacity: 0;
  z-index: 19;
  transition: opacity .18s ease, transform .18s ease;
}

/* Show on hover or keyboard focus */
.trust .trust__item:hover::after,
.trust .trust__item:focus-visible::after,
.trust .trust__item:hover::before,
.trust .trust__item:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Better focus ring for accessibility */
.trust .trust__item:focus-visible {
  box-shadow: 0 0 0 3px rgba(202, 164, 85, .45);
  /* soft gold glow */
  border-radius: 999px;
}

/* Small screens: keep tooltips readable and within viewport */
@media (max-width: 560px) {
  .trust .trust__item::after {
    width: 88vw;
    max-width: 88vw;
    left: 50%;
    transform: translateX(-50%) translateY(6px) scale(.98);
  }
}

/* ---- Show tooltips BELOW instead of above ---- */
.trust .trust__item::after {
  top: 110%;
  /* place bubble below the chip */
  bottom: auto;
  transform: translateX(-50%) translateY(-6px) scale(.98);
}

.trust .trust__item::before {
  top: 102%;
  /* little arrow just under the chip */
  bottom: auto;
  transform: translateX(-50%) translateY(-6px);
  /* arrow pointing UP (so it points to the chip above) */
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

/* animate in */
.trust .trust__item:hover::after,
.trust .trust__item:focus-visible::after,
.trust .trust__item:hover::before,
.trust .trust__item:focus-visible::before {
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Keep pills visible on mobile, but disable tooltip interaction */
@media (max-width: 767.98px) {
  .trust__item {
    pointer-events: none;
  }
}
