/* ============================================================================
   Tixbox V3 — Home page O5 overrides (oh-*)
   Loaded ONLY on the home route, after option5.css.
   Contains only the classes used by the shipped home sections:
   pill header · sign-in drawer · hero billboard · location band ·
   upcoming grid · past grid · footer.
   The mockup's dead CSS for the dropped "It's easy" and "Services Globally"
   sections has been stripped.
   ============================================================================ */

/* --- Missing grid modifier (option5.css defines 3/5/6 but not 4) --- */
.o5-grid.is-cols-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1200px) { .o5-grid.is-cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .o5-grid.is-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .o5-grid.is-cols-4 { grid-template-columns: 1fr; } }

/* --- Brand logo image inside the O5 pill (real Tixbox logo) --- */
.o5-brand-logo-img { height: 30px; width: auto; display: block; }

/* --- Header account / guest actions --- */
.oh-guest-actions { display: flex; align-items: center; gap: 10px; }
.oh-account-actions { display: flex; align-items: center; gap: 10px; }
.oh-circle-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--o5-line); background: var(--o5-surface); display: inline-flex; align-items: center; justify-content: center; color: var(--o5-ink); cursor: pointer; transition: border-color .15s; flex: none; text-decoration: none; position: relative; }
.oh-circle-btn:hover { border-color: var(--o5-ink); }
.oh-cart-qty { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #d62133; color: #fff; font-family: var(--o5-display); font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.oh-acct-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--o5-line); background: var(--o5-surface); font-family: var(--o5-display); font-weight: 700; font-size: 14px; color: var(--o5-ink); cursor: pointer; transition: border-color .15s; white-space: nowrap; }
.oh-acct-btn:hover { border-color: var(--o5-ink); }
.oh-acct-btn svg { transition: transform .18s; }
.oh-acct-btn.is-open svg { transform: rotate(180deg); }
.oh-acct-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 320px; background: var(--o5-surface); border: 1px solid var(--o5-line); border-radius: 22px; box-shadow: 0 24px 60px -16px rgba(0,0,0,0.22); padding: 24px; display: none; z-index: 120; }
.oh-acct-panel.is-open { display: block; }
.oh-acct-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.oh-acct-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--o5-surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--o5-ink3); flex: none; overflow: hidden; }
.oh-acct-avatar svg { width: 30px; height: 30px; }
.oh-acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.oh-acct-head b { display: block; font-family: var(--o5-display); font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--o5-ink); }
.oh-acct-head span { font-size: 13px; color: var(--o5-ink2); }
.oh-acct-pill { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border-radius: 999px; border: 1.5px solid #d62133; background: var(--o5-surface); color: var(--o5-ink); font-family: var(--o5-display); font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none; margin-bottom: 12px; transition: background .15s, color .15s; box-sizing: border-box; }
.oh-acct-pill:last-child { margin-bottom: 0; }
.oh-acct-pill:hover { background: #d62133; color: #fff; }

/* --- Sign-in drawer --- */
.sid-overlay { position: fixed; inset: 0; background: rgba(20,20,20,0.5); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 200; }
.sid-overlay.is-open { opacity: 1; pointer-events: auto; }
.sid-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 92vw); background: var(--o5-surface); box-shadow: -30px 0 70px -24px rgba(0,0,0,0.35); transform: translateX(100%); transition: transform .38s cubic-bezier(.22,.61,.36,1); z-index: 201; display: flex; flex-direction: column; }
.sid-drawer.is-open { transform: translateX(0); }
.sid-scroll { overflow-y: auto; flex: 1; }
.sid-close { position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.16); color: #fff; display: inline-flex; align-items: center; justify-content: center; z-index: 5; transition: background .15s; cursor: pointer; }
.sid-close:hover { background: rgba(255,255,255,0.3); }
.sid-hero { background: #d62133; color: #fff; padding: 56px 36px 30px; position: relative; overflow: hidden; }
.sid-hero::before { content: ''; position: absolute; width: 260px; height: 260px; right: -110px; top: -130px; background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 70%); border-radius: 50%; pointer-events: none; }
.sid-hero > *:not(.sid-close) { position: relative; z-index: 1; }
.sid-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.9); display: block; }
.sid-hero h2 { font-family: var(--o5-display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 12px 0 10px; color: #fff; }
.sid-hero p { font-size: 13.5px; color: rgba(255,255,255,0.88); line-height: 1.55; margin: 0; }
.sid-perks { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sid-perks li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: #fff; }
.sid-perks li svg { flex: none; margin-top: 2px; }
.sid-form { padding: 28px 36px 36px; background: var(--o5-surface); }
.sid-intro { font-size: 13.5px; color: var(--o5-ink2); line-height: 1.5; margin: 0 0 14px; }
.sid-sso-list { display: flex; gap: 8px; }
.sid-sso { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--o5-line); border-radius: 999px; background: var(--o5-surface); font-size: 13px; font-weight: 700; color: var(--o5-ink); cursor: pointer; text-decoration: none; transition: border-color .15s; }
.sid-sso.is-compact { flex: 0 0 auto; width: 46px; padding: 0; gap: 0; aspect-ratio: 1 / 1; }
.sid-sso.is-compact .lbl { display: none; }
.sid-sso:hover { border-color: var(--o5-ink); }
.sid-sso .ico { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sid-lg-apple svg { width: 14px; height: 16px; }
.sid-or { display: block; font-size: 13px; color: var(--o5-ink2); line-height: 1.5; margin: 20px 0 16px; }
.sid-fields { display: flex; flex-direction: column; gap: 12px; }
.sid-field { display: block; width: 100%; padding: 14px 20px; border: 1px solid var(--o5-line); border-radius: 999px; background: var(--o5-surface); font-family: var(--o5-display); font-size: 14px; font-weight: 600; color: var(--o5-ink); outline: none; transition: border-color .15s; box-sizing: border-box; }
.sid-field:focus { border-color: var(--o5-ink); }
.sid-field::placeholder { color: var(--o5-ink3); font-weight: 500; }
.sid-pwd { position: relative; }
.sid-pwd input { padding-right: 48px; }
.sid-pwd .eye { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); background: transparent; border: 0; padding: 0; color: var(--o5-ink2); cursor: pointer; }
.sid-forgot { align-self: flex-end; display: inline-block; margin-top: 2px; font-size: 11.5px; font-weight: 700; color: #d62133; text-decoration: none; }
.sid-forgot:hover { color: #b91c2c; }
.sid-remember { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--o5-ink2); }
.sid-submit { width: 100%; height: 50px; margin-top: 16px; border: 0; border-radius: 999px; background: #d62133; color: #fff; font-family: var(--o5-display); font-weight: 800; font-size: 15px; cursor: pointer; transition: background .15s; }
.sid-submit:hover { background: #b91c2c; }
.sid-foot { margin: 22px 0 0; font-size: 13px; color: var(--o5-ink2); text-align: center; }
.sid-foot a { color: #d62133; font-weight: 800; }
@media (max-width: 520px) { .sid-hero { padding: 52px 26px 26px; } .sid-form { padding: 24px 26px 30px; } }

/* --- Location band --- */
.oh-loc { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--o5-surface-2); border-radius: var(--o5-r-lg); padding: 28px 32px; }
.oh-loc h2 { font-family: var(--o5-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
.oh-loc p { margin: 0; color: var(--o5-ink2); font-size: 14px; }
.oh-loc-btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* --- Listing card image (real posters instead of gradients) --- */
.o5-listing-img img.oh-listing-photo,
.oh-past-img img.oh-past-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- Past events card --- */
.oh-past-card { background: var(--o5-surface); border: 1px solid var(--o5-line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--o5-ink); display: block; transition: transform .2s ease, box-shadow .2s ease; }
.oh-past-card:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -18px rgba(0,0,0,0.16); }
.oh-past-img { aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.oh-past-body { padding: 10px 12px 13px; }
.oh-past-body h4 { font-family: var(--o5-display); font-size: 13px; font-weight: 700; letter-spacing: -0.012em; margin: 0 0 3px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oh-past-body p { font-size: 11.5px; color: var(--o5-ink2); margin: 0; }

/* --- Footer bits --- */
.oh-social-init { width: 36px; height: 36px; border-radius: 50%; background: var(--o5-surface-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--o5-display); font-size: 10.5px; font-weight: 800; letter-spacing: 0.01em; color: var(--o5-ink); transition: background .15s, color .15s; text-decoration: none; }
.oh-social-init:hover { background: var(--o5-accent); color: #fff; }
.oh-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.oh-pay-chip { padding: 7px 14px; border: 1px solid var(--o5-line); border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--o5-ink2); background: var(--o5-surface); font-family: var(--o5-display); }
.oh-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.oh-contact-list a { font-size: 14px; color: var(--o5-ink2); text-decoration: none; }
.oh-contact-list a:hover { color: var(--o5-accent); }
