/* ============================================================
   The Infinity-Z — Shared styles for new pages & components
   (legal pages, forms, gallery, contact, newsletter, follow,
    coupon field, GST rows, language toggle)
   Reuses design tokens from style.css. Keep style.css untouched.
   ============================================================ */

/* ---- Generic content page ---- */
.page-hero {
    padding: 150px 0 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.page-hero .section-tag { margin-bottom: 14px; }
.page-hero h1 {
    font-family: var(--font-playfair);
    font-size: 2.8rem;
    font-weight: 500;
}
.page-hero p { color: var(--text-muted); max-width: 620px; margin: 14px auto 0; font-weight: 300; }

.content-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 24px 100px;
    position: relative;
    z-index: 1;
}
.content-wrap h2 {
    font-family: var(--font-playfair);
    font-size: 1.5rem;
    margin: 34px 0 12px;
    color: #fff;
}
.content-wrap h3 { font-size: 1.1rem; margin: 22px 0 8px; color: var(--color-cyan); }
.content-wrap p, .content-wrap li { color: var(--text-muted); font-weight: 300; line-height: 1.8; font-size: 1rem; }
.content-wrap ul { margin: 10px 0 10px 22px; }
.content-wrap li { margin-bottom: 8px; }
.content-wrap a { color: var(--color-cyan); text-decoration: none; }
.content-wrap a:hover { text-decoration: underline; }
.placeholder-note {
    background: rgba(255, 215, 0, 0.07);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--color-gold);
    margin: 16px 0;
}
.back-link { display: inline-block; margin-bottom: 20px; color: var(--text-muted); text-decoration: none; }
.back-link:hover { color: var(--color-cyan); }

/* ---- Forms (group booking, contact, newsletter) ---- */
.iz-form {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 36px;
    backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.iz-form .full { grid-column: 1 / -1; }
.iz-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
}
.iz-form input, .iz-form select, .iz-form textarea {
    width: 100%;
    background: rgba(5, 5, 13, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.iz-form input:focus, .iz-form select:focus, .iz-form textarea:focus {
    outline: none; border-color: var(--color-cyan); box-shadow: var(--border-glow-cyan);
}
.iz-form textarea { resize: vertical; min-height: 110px; }
.iz-form .field-error { color: var(--color-magenta); font-size: 0.78rem; margin-top: 5px; display: none; }
.iz-form .invalid input, .iz-form .invalid select, .iz-form .invalid textarea { border-color: var(--color-magenta); }
.iz-form .invalid .field-error { display: block; }
.form-success {
    grid-column: 1 / -1;
    background: rgba(0, 255, 102, 0.08);
    border: 1px solid rgba(0, 255, 102, 0.3);
    border-radius: 12px;
    padding: 18px;
    color: #00ff66;
    text-align: center;
    display: none;
}
.form-success.show { display: block; }
.form-success.err { background: rgba(255, 0, 127, 0.08); border-color: rgba(255, 0, 127, 0.3); color: var(--color-magenta); }
.iz-form .word-count { display: block; text-align: right; font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }
.iz-form .word-count.over { color: var(--color-magenta); }
.iz-form .field-hint { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }
@media (max-width: 700px) { .iz-form { grid-template-columns: 1fr; padding: 24px; } }

/* ---- Experience zone cards (extends .zone-card in style.css) ---- */
.zone-tagline { font-family: var(--font-playfair); font-style: italic; font-size: 1.02rem; color: var(--color-cyan); margin: -6px 0 12px; }
.zone-card:nth-child(7) .zone-img-box img { animation-duration: 23s; animation-delay: -7s; }
.zone-card:nth-child(8) .zone-img-box img { animation-duration: 17s; animation-delay: -2s; }
.zone-card:nth-child(9) .zone-img-box img { animation-duration: 24s; animation-delay: -5s; }

/* ---- Bulk pricing table ---- */
.price-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.price-table th, .price-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-glass); }
.price-table th { color: var(--color-cyan); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; }
.price-table td { color: var(--text-muted); font-weight: 300; }
.price-table tr:hover td { background: rgba(255,255,255,0.02); }
@media (max-width: 480px) {
    .price-table th, .price-table td { padding: 12px 8px; font-size: 0.88rem; }
    .price-table th { letter-spacing: 0.5px; }
}

/* ---- Prices page ---- */
.price-table td.price-cell { color: #fff; font-weight: 600; }
.page-actions { margin: 26px 0 8px; }
.content-wrap .page-actions .cta-btn { color: #fff; text-decoration: none; }

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid var(--border-glass);
}
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gcap {
    position: absolute; inset: auto 0 0 0; padding: 14px;
    background: linear-gradient(transparent, rgba(5,5,13,0.9));
    font-size: 0.9rem; font-weight: 600;
}
.lightbox {
    position: fixed; inset: 0; background: rgba(3,3,10,0.94);
    display: none; justify-content: center; align-items: center; z-index: 500; padding: 30px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 92%; max-height: 88%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.7); }
.lightbox .lb-close { position: absolute; top: 24px; right: 30px; font-size: 2rem; color: #fff; cursor: pointer; background: none; border: none; z-index: 2; }
/* Zoom acts on the photo (site.js); stop the browser pinch-zooming or scrolling the page */
.lightbox { touch-action: none; overscroll-behavior: contain; overflow: hidden; }
.lightbox img { cursor: zoom-in; transition: transform 0.12s ease-out; user-select: none; -webkit-user-select: none; touch-action: none; will-change: transform; }
.lightbox img.zoomed { cursor: grab; }
.lightbox img.dragging { cursor: grabbing; transition: none; }
.lb-controls {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
    display: flex; align-items: center; gap: 8px; padding: 6px 10px;
    background: rgba(5,5,13,0.8); border: 1px solid var(--border-glass); border-radius: 100px;
}
.lb-controls button {
    min-width: 36px; height: 36px; padding: 0 10px; border-radius: 100px; border: 1px solid var(--border-glass);
    background: transparent; color: #fff; font-family: var(--font-outfit); font-size: 1.1rem; cursor: pointer; transition: var(--transition-smooth);
}
.lb-controls button:hover { border-color: var(--color-cyan); color: var(--color-cyan); }
.lb-controls .lb-reset { font-size: 0.8rem; }
.lb-controls .lb-level { min-width: 46px; text-align: center; font-size: 0.8rem; color: var(--text-muted); }

/* ---- Contact + Map ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.map-embed { border-radius: 20px; overflow: hidden; border: 1px solid var(--border-glass); min-height: 380px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(0.3) invert(0.92) hue-rotate(180deg); }
.contact-detail { margin-bottom: 20px; }
.contact-detail h4 { color: var(--color-magenta); font-size: 1rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.contact-detail p, .contact-detail a { color: var(--text-muted); font-weight: 300; text-decoration: none; }
.contact-detail a:hover { color: var(--color-cyan); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- Newsletter band ---- */
.newsletter-band {
    background: linear-gradient(120deg, rgba(122,0,255,0.15), rgba(0,229,255,0.08));
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 46px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.newsletter-band h2 { font-family: var(--font-playfair); font-size: 2rem; margin-bottom: 10px; }
.newsletter-band p { color: var(--text-muted); margin-bottom: 26px; font-weight: 300; }
.newsletter-form { display: flex; gap: 12px; max-width: 500px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 220px; background: rgba(5,5,13,0.6); border: 1px solid var(--border-glass); border-radius: 100px; padding: 14px 22px; color: #fff; font-family: var(--font-outfit); }
.newsletter-form input:focus { outline: none; border-color: var(--color-cyan); box-shadow: var(--border-glow-cyan); }
.newsletter-msg { margin-top: 14px; font-size: 0.9rem; color: #00ff66; min-height: 20px; }

/* ---- Follow / social grid ---- */
.follow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 36px; }
.follow-card {
    background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: 16px;
    padding: 26px 18px; text-align: center; text-decoration: none; color: #fff; transition: var(--transition-smooth);
}
.follow-card:hover { border-color: var(--color-cyan); box-shadow: var(--border-glow-cyan); transform: translateY(-3px); }
/* Line icons (SVG sprite in index.html) — stroke follows the text color */
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.follow-card .fi {
    width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-cyan);
    background: radial-gradient(circle at 30% 30%, rgba(0,229,255,0.16), rgba(122,0,255,0.14) 60%, transparent 78%);
    border: 1px solid rgba(0,229,255,0.22);
    transition: var(--transition-smooth);
}
.follow-card .fi .ico { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(0,229,255,0.55)); }
.follow-card:hover .fi { color: #fff; border-color: var(--color-cyan); box-shadow: var(--border-glow-cyan), inset 0 0 18px rgba(122,0,255,0.35); }
.social-icons { flex-wrap: wrap; }
.social-icons .ico { width: 18px; height: 18px; }
.follow-card .fn { font-weight: 600; }
.follow-card .fh { font-size: 0.8rem; color: var(--text-muted); }

/* ---- Coupon field + GST rows (booking page) ---- */
.coupon-box { display: flex; gap: 10px; margin: 14px 0; }
.coupon-box input {
    /* width 0 + flex 1: fill the row without the input's built-in ~20
       character width counting toward the page's minimum width, which
       pushed the checkout 60px wider than a phone screen */
    flex: 1; width: 0; min-width: 0; background: rgba(5,5,13,0.5); border: 1px solid var(--border-glass);
    border-radius: 10px; padding: 11px 14px; color: #fff; font-family: var(--font-outfit); text-transform: uppercase;
}
.coupon-box input:focus { outline: none; border-color: var(--color-cyan); }
.coupon-msg { font-size: 0.82rem; margin: 4px 0 0; min-height: 18px; }
.coupon-msg.ok { color: #00ff66; }
.coupon-msg.err { color: var(--color-magenta); }
.coupon-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; }
.coupon-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px;
    border: 1px solid rgba(0,255,102,0.45); border-radius: 999px; background: rgba(0,255,102,0.08); font-size: 0.85rem;
}
.coupon-chip .coupon-code { font-weight: 600; letter-spacing: 0.04em; }
.coupon-chip .coupon-save { color: #00ff66; }
.coupon-remove {
    width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.1);
    color: #fff; font-size: 1rem; line-height: 1; cursor: pointer;
}
.coupon-remove:hover, .coupon-remove:focus-visible { background: var(--color-magenta); outline: none; }
.coupon-chip.auto { padding-right: 12px; } /* no × to make room for */
.coupon-chip .coupon-auto {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-cyan);
    border: 1px solid rgba(0,229,255,0.4); border-radius: 999px; padding: 1px 7px;
}

/* ---- Time step: other times / dates when a time can't fit the order ---- */
.slot-advice {
    margin-bottom: 16px; padding: 14px 16px; border-radius: 12px; font-size: 0.9rem;
    border: 1px solid rgba(255,153,0,0.45); background: rgba(255,153,0,0.07);
}
.slot-advice p { margin: 0 0 8px; }
.slot-advice p:last-child { margin-bottom: 0; }
.slot-advice .advice-foot { color: var(--text-muted); font-size: 0.82rem; }
.slot-advice a { color: var(--color-cyan); }
.tickets-cap { margin-top: 16px; }
.counter-btn:disabled, .counter-btn:disabled:hover { opacity: 0.35; cursor: not-allowed; background: rgba(255,255,255,0.05); color: white; }
.advice-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.advice-chip {
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--color-cyan); background: rgba(0,229,255,0.08);
    color: #fff; font-family: var(--font-outfit); font-size: 0.88rem; cursor: pointer;
}
.advice-chip span { color: var(--text-muted); font-size: 0.78rem; margin-left: 4px; }
.advice-chip:hover, .advice-chip:focus-visible { background: var(--color-cyan); color: var(--bg-dark); outline: none; }
.advice-chip:hover span, .advice-chip:focus-visible span { color: var(--bg-dark); }
/* Subtotal and discount: amount on the right, like the ticket lines and total */
.summary-line.amount { display: flex; justify-content: space-between; gap: 12px; }
.summary-line.discount span { color: #00ff66; }
.summary-line.gst span { color: var(--text-muted); }

/* ---- Language toggle ---- */
.lang-toggle {
    display: inline-flex; border: 1px solid var(--border-glass); border-radius: 100px; overflow: hidden; margin-right: 6px;
}
.lang-toggle button {
    background: transparent; border: none; color: var(--text-muted); padding: 7px 12px;
    cursor: pointer; font-family: var(--font-outfit); font-size: 0.8rem; font-weight: 600;
}
.lang-toggle button.active { background: var(--color-cyan); color: var(--bg-dark); }

/* ---- Booking: ticket tiers loaded from the admin panel ---- */
.tickets-empty { color: var(--text-muted); text-align: center; padding: 24px; }
/* What the picked tickets cost at a time, when prices change during the day */
.slot-price { font-size: 0.8rem; font-weight: 600; color: var(--color-cyan); }
.slot-btn.selected .slot-price { color: var(--bg-dark); }
/* Advance booking window: under the calendar, and no paging past it */
.calendar-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 12px; }
/* A date with nothing left to book: every time sold out or closed */
.calendar-day.unavailable, .legend-unavailable { opacity: 0.35; text-decoration: line-through; }
.calendar-day.unavailable { cursor: not-allowed; }
.calendar-day.unavailable:hover:not(.empty):not(.past) { background: transparent; box-shadow: none; }
/* Sold-out / revoked times: greyed, but still readable */
.slot-btn.sold-out { opacity: 0.5; }
.cal-btn:disabled, .cal-btn:disabled:hover { opacity: 0.3; cursor: not-allowed; background: rgba(255,255,255,0.05); color: white; }
