/*
 * Sales layer for the fair's landing page: countdown, live availability,
 * headline figures and a standing call to action. Every number is read from
 * the page's own map, so it stays true when the map is updated.
 */

/* ---------- countdown ---------- */

.pxb-count {
  position: relative;
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pxb-count-item {
  min-width: 82px;
  padding: 12px 14px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(160deg, rgba(232, 64, 42, .22), rgba(122, 60, 224, .22));
  backdrop-filter: blur(6px);
  text-align: center;
  box-shadow: 0 18px 40px -26px #000;
}

.pxb-count-num {
  display: block;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800;
  line-height: 1;
  color: var(--paper, #f2ede4);
  font-variant-numeric: tabular-nums;
}

.pxb-count-item.pxb-tick .pxb-count-num {
  animation: pxb-tick .45s cubic-bezier(.22, 1, .36, 1);
}

@keyframes pxb-tick {
  0% { transform: translateY(-40%); opacity: .2; }
  100% { transform: none; opacity: 1; }
}

.pxb-count-label {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, .68);
}

.pxb-count-live {
  width: 100%;
  text-align: center;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--yellow, #f4c94a);
}

/* ---------- figures ---------- */

.pxb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 34px 0 6px;
}

.pxb-stat {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--line, #2a2830);
  background: linear-gradient(170deg, rgba(255, 255, 255, .05), transparent);
  text-align: center;
}

.pxb-stat b {
  display: block;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1;
  font-weight: 800;
  color: var(--yellow, #f4c94a);
  font-variant-numeric: tabular-nums;
}

.pxb-stat span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, .72);
}

/* ---------- availability ---------- */

.pxb-avail {
  margin: 26px 0 8px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line, #2a2830);
  background: linear-gradient(140deg, rgba(122, 60, 224, .16), rgba(232, 64, 42, .12));
}

.pxb-avail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.pxb-avail-head strong {
  font-size: clamp(18px, 3.4vw, 24px);
  color: var(--paper, #f2ede4);
}

.pxb-avail-head em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--yellow, #f4c94a);
}

.pxb-avail-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  overflow: hidden;
}

.pxb-avail-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red, #e8402a), var(--yellow, #f4c94a));
  transition: width 1.4s cubic-bezier(.22, 1, .36, 1);
}

.pxb-avail-note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(242, 237, 228, .7);
}

/* Remaining places on each price card. */
.pxb-left {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: rgba(143, 227, 106, .16);
  color: var(--green, #8fe36a);
  border: 1px solid rgba(143, 227, 106, .35);
}

.pxb-left.pxb-few {
  background: rgba(232, 64, 42, .16);
  color: #ff8b73;
  border-color: rgba(232, 64, 42, .45);
  animation: pxb-few 2.6s ease-in-out infinite;
}

@keyframes pxb-few {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 64, 42, .45); }
  50% { box-shadow: 0 0 0 8px rgba(232, 64, 42, 0); }
}

/* ---------- standing call to action ---------- */

.pxb-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 9997;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(11, 11, 13, .88);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -24px #000;
  transform: translate(-50%, 140%);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
  max-width: calc(100vw - 24px);
}

.pxb-cta.pxb-cta-in { transform: translate(-50%, 0); }

.pxb-cta-text {
  font-size: 13px;
  line-height: 1.25;
  color: var(--paper, #f2ede4);
}

.pxb-cta-text b {
  color: var(--yellow, #f4c94a);
  font-variant-numeric: tabular-nums;
}

.pxb-cta-btn {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  color: #120508;
  background: linear-gradient(120deg, var(--yellow, #f4c94a), var(--red, #e8402a));
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}

.pxb-cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 28px -14px rgba(244, 201, 74, .9);
}

.pxb-cta-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  color: rgba(242, 237, 228, .75);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}

.pxb-cta-close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

@media (max-width: 560px) {
  .pxb-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: translateY(140%);
    max-width: none;
    padding: 10px;
    gap: 10px;
  }
  .pxb-cta.pxb-cta-in { transform: translateY(0); }
  .pxb-cta-text { font-size: 12px; }
}

/* ---------- depth: price cards tilt towards the pointer ---------- */

.price-grid { perspective: 1000px; }

.price-card {
  transform-style: preserve-3d;
  transition: transform .25s ease-out, box-shadow .4s ease, border-color .4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .pxb-count-item.pxb-tick .pxb-count-num,
  .pxb-left.pxb-few { animation: none; }
  .pxb-cta { transition: none; }
  .price-card { transform: none !important; }
}
