/* BX Tour Cards — Vintage London v1.3 */

.bx-tours *,
.bx-tours *::before,
.bx-tours *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.bx-tours {
  /* Fallback vars — overridden by inline <style> from admin */
  --bx-card-bg: #1C2A3A;
  --bx-text: #F5E6C8;
  --bx-text-dim: #C4A87C;
  --bx-accent: #C41E2A;
  --bx-accent-glow: rgba(196,30,42,0.2);
  --bx-teal: #D4A843;
  --bx-border: rgba(212,168,67,0.2);
  --bx-border-hover: rgba(212,168,67,0.45);
  --bx-card-radius: 4px;
  --bx-eyebrow-colour: #D4A843;
  --bx-heading-colour: #F5E6C8;
  --bx-heading-em-colour: #C41E2A;
  --bx-stat-colour: #D4A843;
  --bx-stat-label-colour: #C4A87C;
  --bx-footer-colour: #C4A87C;
  --bx-footer-link-colour: #C41E2A;
  --bx-font-display: inherit;
  --bx-font-mono: inherit;
  --bx-font-body: inherit;

  font-family: var(--bx-font-body);
  color: var(--bx-text);
  background: transparent;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 28px;
  position: relative;
}

/* ======================================================
   HEADER
   ====================================================== */
.bx-tours__header {
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.bx-tours__eyebrow {
  font-family: var(--bx-font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bx-eyebrow-colour);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.bx-tours__eyebrow::before,
.bx-tours__eyebrow::after {
  content: '';
  height: 1px;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--bx-eyebrow-colour));
  display: inline-block;
}

.bx-tours__eyebrow::after {
  background: linear-gradient(to left, transparent, var(--bx-eyebrow-colour));
}

.bx-tours__header h2 {
  font-family: var(--bx-font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--bx-heading-colour);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.bx-tours__header h2 em {
  font-style: italic;
  color: var(--bx-heading-em-colour);
}

.bx-tours__header-stat {
  text-align: right;
  display: none;
}

@media (min-width: 768px) {
  .bx-tours__header-stat { display: block; }
}

.bx-tours__header-stat span {
  display: block;
  font-family: var(--bx-font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--bx-stat-colour);
  line-height: 1;
}

.bx-tours__header-stat small {
  font-family: var(--bx-font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bx-stat-label-colour);
  margin-top: 6px;
  display: block;
}

/* ======================================================
   GRID (columns handled by inline PHP styles)
   ====================================================== */
.bx-tours__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 640px) {
  .bx-tours__header { grid-template-columns: 1fr; }
}

/* ======================================================
   CARD — Vintage style
   ====================================================== */
.bx-card {
  background: var(--bx-card-bg);
  border: 1px solid var(--bx-border);
  border-radius: var(--bx-card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  /* Decorative double-border inset */
  box-shadow: inset 0 0 0 3px var(--bx-card-bg), inset 0 0 0 4px var(--bx-border);
  /* Scroll animation */
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.bx-card:hover {
  border-color: var(--bx-border-hover);
  box-shadow: inset 0 0 0 3px var(--bx-card-bg), inset 0 0 0 4px var(--bx-border-hover),
              0 8px 30px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

.bx-card.bx-visible {
  opacity: 1;
  transform: translateY(0);
}

.bx-card:hover.bx-visible {
  transform: translateY(-3px);
}

.bx-card:nth-child(3n+2) { transition-delay: 0.1s; }
.bx-card:nth-child(3n+3) { transition-delay: 0.2s; }

@media (max-width: 1024px) {
  .bx-card:nth-child(3n+2), .bx-card:nth-child(3n+3) { transition-delay: 0s; }
  .bx-card:nth-child(2n+2) { transition-delay: 0.1s; }
}
@media (max-width: 640px) {
  .bx-card:nth-child(n) { transition-delay: 0s; }
}

/* ======================================================
   GHOST NUMBER — faded gold watermark
   ====================================================== */
.bx-card__number {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--bx-font-display);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: rgba(212,168,67,0.06);
  z-index: 1;
  pointer-events: none;
  transition: color 0.4s ease;
}

.bx-card:hover .bx-card__number {
  color: rgba(212,168,67,0.12);
}

/* ======================================================
   IMAGE — aggressive fill
   ====================================================== */
.bx-card__img-wrap {
  position: relative !important;
  aspect-ratio: 16 / 10;
  overflow: hidden !important;
  display: block !important;
}

.bx-card__img-wrap img,
.bx-card .bx-card__img-wrap img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  filter: brightness(0.85) saturate(1.1) sepia(0.08);
  transition: filter 0.5s ease, transform 0.6s ease;
}

.bx-card:hover .bx-card__img-wrap img {
  filter: brightness(1) saturate(1.15) sepia(0.04);
  transform: scale(1.05);
}

/* Gradient overlay */
.bx-card__img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70%;
  background: linear-gradient(to top, var(--bx-card-bg) 5%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ======================================================
   BADGE — Ribbon style (inspired by flyer banners)
   ====================================================== */
.bx-card__badge {
  position: absolute;
  top: 16px;
  left: 0;
  background: var(--bx-accent);
  color: #fff;
  font-family: var(--bx-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px 6px 12px;
  z-index: 3;
  /* Ribbon tail */
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
}

/* ======================================================
   PRICE — Bold with gold accent
   ====================================================== */
.bx-card__price {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.bx-card__price-amount {
  font-family: var(--bx-font-display);
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.bx-card__price-label {
  font-family: var(--bx-font-mono);
  font-size: 9px;
  color: var(--bx-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ======================================================
   BODY
   ====================================================== */
.bx-card__body {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* Subtle top ornament line */
  border-top: 2px solid var(--bx-border);
}

/* Duration pill — gold instead of teal */
.bx-card__duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--bx-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bx-teal);
  background: rgba(212,168,67,0.1);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 14px;
  width: fit-content;
  border: 1px solid rgba(212,168,67,0.15);
}

.bx-card__duration::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--bx-teal);
  border-radius: 50%;
  display: inline-block;
}

/* Title */
.bx-card__title {
  font-family: var(--bx-font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--bx-text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.bx-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.bx-card__title a:hover {
  color: var(--bx-teal);
}

/* ======================================================
   FEATURES — Bullet mode (no default bullets)
   ====================================================== */
.bx-card__features {
  list-style: none !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  flex: 1;
  display: grid;
  gap: 6px;
}

.bx-card__features li {
  position: relative;
  padding-left: 18px;
  font-family: var(--bx-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--bx-text-dim);
  list-style: none !important;
  list-style-type: none !important;
}

.bx-card__features li::marker {
  content: none;
  display: none;
}

.bx-card__features li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--bx-teal);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

/* ======================================================
   PARAGRAPH MODE
   ====================================================== */
.bx-card__paragraph {
  flex: 1;
  margin-bottom: 22px;
}

.bx-card__paragraph p {
  font-family: var(--bx-font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--bx-text-dim);
  margin-bottom: 10px;
}

.bx-card__paragraph p:last-child {
  margin-bottom: 0;
}

/* ======================================================
   BUTTONS — Vintage styled
   ====================================================== */
.bx-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.bx-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  font-family: var(--bx-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  border-radius: 3px;
}

.bx-card__btn--book {
  background: var(--bx-accent);
  color: #fff;
  box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);
}

.bx-card__btn--book:hover {
  filter: brightness(1.15);
  box-shadow: 0 2px 0 0 rgba(0,0,0,0.2), 0 0 20px var(--bx-accent-glow);
  transform: translateY(-1px);
}

.bx-card__btn--info {
  background: transparent;
  color: var(--bx-teal);
  border: 1px solid var(--bx-border);
}

.bx-card__btn--info:hover {
  background: rgba(212,168,67,0.06);
  border-color: var(--bx-border-hover);
  color: var(--bx-text);
}

/* ======================================================
   FOOTER — with ornamental divider
   ====================================================== */
.bx-tours__footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--bx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
}

/* Gold diamond ornament on the divider */
.bx-tours__footer::before {
  content: '◆';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--bx-teal);
  background: var(--bx-card-bg);
  padding: 0 14px;
  letter-spacing: 8px;
}

.bx-tours__footer p {
  font-family: var(--bx-font-body);
  font-size: 13px;
  color: var(--bx-footer-colour);
}

.bx-tours__footer > a {
  font-family: var(--bx-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bx-footer-link-colour);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.bx-tours__footer > a:hover { gap: 14px; }

.bx-tours__footer > a::after {
  content: '→';
  font-size: 14px;
  transition: transform 0.3s ease;
}

.bx-tours__footer > a:hover::after {
  transform: translateX(2px);
}
