/* My Rides tab — DARK GOLD edition (Laravel: resources/views/vip/rides.blade.php, js/rides.js).
   Authored in design px on the 480 px app column. Cards follow site-dark bookings.html. */

/* ===== Shared page chrome (u03 pattern) — same block as the other inner-page css ===== */
.topbar { justify-content: space-between; gap: 12px; }
.tb-brand { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; color: #D9AD5C; }
.tb-brand-main { margin-top: 4px; font-family: "Libre Caslon Display", var(--serif); font-size: 22.5px; line-height: 1; font-weight: 400; letter-spacing: .25em; padding-left: .25em; color: #D9AD5C; text-transform: uppercase; white-space: nowrap; }
.tb-brand-sub { margin-top: 6px; font-size: 10px; line-height: 1; font-weight: 500; letter-spacing: .27em; padding-left: .27em; color: #D9AD5C; text-transform: uppercase; white-space: nowrap; }
.tb-crown { width: 26px; height: 17px; flex: none; }
.page-head { padding-top: 26px; }
.page-head .kicker { font-size: 15px; line-height: 20px; letter-spacing: .14em; font-weight: 500; }
.page-head .page-title { margin-top: 4px; font-size: 48px; line-height: 1.04; font-weight: 500; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: break-word; }
.page-head .page-lead { margin-top: 14px; font-size: 16px; line-height: 23px; color: var(--muted); }
.ornament { display: block; position: relative; width: 172px; height: 10px; margin-top: 12px; opacity: .9;
  background:
    radial-gradient(circle, var(--gold) 1.3px, transparent 1.7px) 72px 50% / 10px 10px no-repeat,
    radial-gradient(circle, var(--gold) 1.3px, transparent 1.7px) 90px 50% / 10px 10px no-repeat,
    linear-gradient(90deg, var(--gold), var(--gold)) 0 50% / 72px 1px no-repeat,
    linear-gradient(90deg, var(--gold), rgba(216,161,81,.2)) 100px 50% / 72px 1px no-repeat; }
.ornament::after { content: ""; position: absolute; left: 86px; top: 50%; width: 6px; height: 6px; border: 1px solid var(--gold); transform: translate(-50%, -50%) rotate(45deg); }
.section-head { align-items: center; }
.sec-h { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; letter-spacing: .16em; }
.sec-h svg { width: 18px; height: 18px; flex: none; color: var(--gold); }
.link-more { font-size: 13px; padding: 14px 0; margin: -14px 0; }
.link-more[hidden] { display: none; }
.btn { border-radius: 12px; }
.btn-secondary, .btn-quiet, .btn-danger { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 15px; }
.btn-primary { font-size: 15px; }
.btn-sm { border-radius: 10px; font-size: 12.5px; }
/* ===== end shared page chrome ===== */

.rides [hidden] { display: none !important; }
.sec-count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: #121212; font-size: 11.5px; font-weight: 700; letter-spacing: 0; line-height: 20px; text-align: center; }
.sec-count:empty { display: none; }

/* ---------- Ride cards (bookings.html pattern) ---------- */
@keyframes bk-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bk-list > li { animation: bk-in .32s ease both; }
.bk-list > li:nth-child(2) { animation-delay: .04s; }
.bk-list > li:nth-child(3) { animation-delay: .08s; }
.bk-list > li:nth-child(n+4) { animation-delay: .12s; }
.bk-list > li + li { margin-top: 14px; }

.bk-card { position: relative; transition: box-shadow .15s, transform .1s; }
.bk-card:hover { box-shadow: var(--shadow-float), 0 0 18px rgba(216,161,81,.12); }
.bk-card:has(.bk-link:active) { transform: scale(.992); }
.bk-card.is-cancelled .bk-route, .bk-card.is-cancelled .bk-date b { color: var(--muted); }
.bk-card.is-cancelled { box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); }

.bk-top { display: flex; align-items: flex-start; gap: 14px; padding: 16px; }
.bk-date { flex: none; width: 58px; height: 66px; border-radius: 12px; background: linear-gradient(180deg, rgba(216,161,81,.20), rgba(216,161,81,.06)); box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.bk-date b { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--gold-2); }
.bk-date small { margin-top: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.bk-card.is-past .bk-date { background: transparent; box-shadow: inset 0 0 0 1px var(--gold-line); }
.bk-card.is-past .bk-date small { color: var(--muted); }
.bk-card.is-past .bk-date b { color: var(--text); }

.bk-main { flex: 1; min-width: 0; }
.bk-route { font-size: 16.5px; font-weight: 500; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bk-route .arrow { color: var(--gold); font-weight: 500; }
/* Stretched link: the whole card opens the ride status page */
.bk-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); z-index: 1; }
.bk-link:focus-visible { outline: none; }
.bk-link:focus-visible::after { box-shadow: 0 0 0 2.5px var(--gold); }
.bk-meta { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); }
.bk-meta span { display: inline-flex; align-items: center; gap: 6px; }
.bk-meta svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.bk-status { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bk-status .pill { letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; box-shadow: inset 0 0 0 1px currentColor; }
.bk-status .pill svg { width: 13px; height: 13px; }
.bk-open { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.bk-open svg { width: 12px; height: 12px; }

/* ---------- Empty state ---------- */
.next-empty { padding: 32px 28px 30px; }
.next-empty .icon-circle { width: 76px; height: 76px; margin: 0 auto 16px; }
.next-empty .icon-circle svg { width: 34px; height: 34px; }
.next-empty .empty-title { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--gold); }
.next-empty .btn { margin-top: 22px; width: 100%; border-radius: 12px; }

/* ---------- Info note ---------- */
.bk-note { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: linear-gradient(180deg, rgba(216,161,81,.08), rgba(216,161,81,.02)), var(--surface); }
.bk-note p { flex: 1; font-size: 14.5px; line-height: 21px; color: var(--text); }

/* ---------- Desktop (>=1024 px): centered 900 px column, ride cards in 2 columns ---------- */
@media (min-width: 1024px) {
  .rides { width: min(900px, calc(100% - 64px)); margin: 0 auto; }
  .rides .page-head, .rides .section { padding-left: 0; padding-right: 0; }
  .rides .page-head { padding-top: 64px; text-align: center; }
  .rides .page-head .page-title { font-size: 64px; }
  .rides .page-head .ornament { margin-left: auto; margin-right: auto; }
  .rides .page-head .page-lead { font-size: 18px; line-height: 27px; }
  .rides .section { padding-top: 40px; }
  .rides .section-head { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--gold-line); }
  .rides .sec-h { font-size: 15px; }

  .rides .bk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .rides .bk-list > li.card { margin-top: 0; display: flex; flex-direction: column; }
  .rides .bk-top { flex: 1; padding: 20px; }
  .rides .bk-main { display: flex; flex-direction: column; align-self: stretch; }
  .rides .bk-status { margin-top: auto; padding-top: 14px; }
  .rides .bk-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(216,161,81,.55), 0 18px 40px rgba(0,0,0,.45), 0 0 22px rgba(216,161,81,.14); }
  .rides .bk-card:hover .bk-open { color: var(--gold-2); }

  .rides .next-empty { max-width: 560px; margin: 0 auto; padding: 44px 48px 40px; }
  .rides .next-empty .btn { width: auto; padding: 0 32px; }
  .rides .next-empty .btn:hover { filter: brightness(1.06); }
  .rides .bk-note { padding: 20px 24px; }
}
