/* The "rooms left" marker. Its own file so it can carry a version number:
   style.css is loaded unversioned by every page on the site and bumping it
   there would mean touching 67 files. */

@keyframes urg-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Sits on the photo, top right, so it clears the badge and the date pill
   that both sit top left. */
.urg-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: var(--black);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 13px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(10,10,10,0.18);
  white-space: nowrap;
}

.urg-pill-loud {
  background: var(--pink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Text alone, carried by a pulsing dot rather than by colour, so it holds
   up on the white panel as well as the black one. */
.urg-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--black);
}

.urg-pill::before,
.urg-line::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
  animation: urg-pulse 1.8s ease-in-out infinite;
}

.urg-pill-loud::before { background: #fff; }

/* Sold out is a fact, not a nudge, so it stops moving and stops shouting. */
.urg-gone { color: var(--grey); background: #fff; font-weight: 700; }
.urg-gone::before { background: var(--grey); animation: none; }

/* The Travel card's dark panel. */
.tc-light .tc-panel .urg-line { color: #fff; }
.tc-light .tc-panel .urg-gone { color: rgba(255,255,255,0.6); }
.tc-light .tc-panel .urg-gone::before { background: rgba(255,255,255,0.6); }

@media (prefers-reduced-motion: reduce) {
  .urg-pill::before,
  .urg-line::before { animation: none; }
}

@media (max-width: 700px) {
  .urg-pill { top: 10px; right: 10px; font-size: 10.5px; padding: 5px 11px; }
}
