/* IDFA Events – front end. High contrast, large targets, clear focus. */

.idfa-event-info { margin: 1em 0 1.5em; padding: 1em 1.25em; border: 2px solid rgba(128,128,128,.55); border-radius: 12px; font-size: 1.05em; }
.idfa-event-info p { margin: .3em 0; }
.idfa-label { display: inline-block; min-width: 4.5em; font-weight: 700; }
.idfa-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; background: #5b2a86; color: #fff; font-size: .85em; font-weight: 700; }

.idfa-notice { padding: .75em 1em; background: #fff4d6; color: #4a3200; border-left: 5px solid #c98a00; }
.idfa-pass { font-weight: 700; }

.idfa-booking { margin-bottom: 1.25em; }
.idfa-field label { display: block; font-weight: 700; margin-bottom: .25em; }
.idfa-field select { min-width: 260px; padding: .5em; font-size: 1em; }

.idfa-seating { border: 2px solid rgba(128,128,128,.55); border-radius: 12px; padding: 1em; margin: 1em 0; }
.idfa-seating legend { font-weight: 700; font-size: 1.1em; padding: 0 .4em; }

.idfa-legend { display: flex; flex-wrap: wrap; gap: .5em 1.25em; list-style: none; margin: 0 0 1em; padding: 0; font-size: .95em; }
.idfa-legend li { display: flex; align-items: center; gap: .4em; }
.idfa-legend .idfa-seat { width: 22px; height: 22px; cursor: default; }

.idfa-seatmap { overflow-x: auto; padding-bottom: .5em; }
.idfa-stage { margin: 0 auto 1em; max-width: 70%; padding: .4em; text-align: center; font-weight: 700; letter-spacing: .3em; background: #222; color: #fff; border-radius: 0 0 40px 40px; }
.idfa-row { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; justify-content: center; min-width: max-content; }
.idfa-row-label { width: 1.5em; text-align: center; font-weight: 700; }

.idfa-seat { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 2px solid #1f6f43; border-radius: 6px 6px 3px 3px; background: #e6f4ea; color: #111; font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer; }
.idfa-seat:hover { background: #c7e8d1; }
.idfa-seat:focus-visible { outline: 3px solid #ffbf00; outline-offset: 2px; }
.idfa-seat.is-asl { border-color: #0b4f9c; background: #dbe9fb; box-shadow: inset 0 -4px 0 #0b4f9c; }
.idfa-seat.is-premium { border-color: #9a5b00; background: #fdf0d8; }
.idfa-seat.is-selected { background: #5b2a86; border-color: #5b2a86; color: #fff; box-shadow: none; }
.idfa-seat.is-sold, .idfa-seat:disabled { background: #bbb; border-color: #999; color: #555; cursor: not-allowed; box-shadow: none; text-decoration: line-through; }
.idfa-seat.is-gap { border: 0; background: transparent; cursor: default; }

/* Vector (SVG) seat map */
.idfa-map-wrap { position: relative; }
.idfa-map-toolbar { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 6px; }
.idfa-map-toolbar button { min-width: 40px; height: 36px; padding: 0 10px; border: 2px solid #222; border-radius: 8px; background: #fff; color: #111; font-weight: 700; font-size: 16px; cursor: pointer; }
.idfa-map-toolbar button:focus-visible { outline: 3px solid #ffbf00; outline-offset: 2px; }
.idfa-map-scroll { overflow: auto; max-height: 75vh; border: 2px solid #222; border-radius: 12px; background: #fafaf8; -webkit-overflow-scrolling: touch; }
.idfa-map-scroll svg { display: block; width: 100%; height: auto; min-width: 320px; }
.idfa-stage-shape { fill: #2c2c2a; }
.idfa-stage-text { fill: #fff; font: 700 13px/1 system-ui, sans-serif; letter-spacing: 3px; }
.idfa-row-text { fill: #444; font: 700 12px/1 system-ui, sans-serif; }
.idfa-vseat .c { fill: #e6f4ea; stroke: #1f6f43; stroke-width: 1.5; transition: fill .15s; }
.idfa-vseat .b { fill: #1f6f43; }
.idfa-seat-num { fill: #173404; font: 700 9px/1 system-ui, sans-serif; pointer-events: none; dominant-baseline: middle; }
.idfa-vseat.is-asl .c { fill: #dbe9fb; stroke: #0b4f9c; }
.idfa-vseat.is-asl .b { fill: #0b4f9c; }
.idfa-vseat.is-asl .idfa-seat-num { fill: #042c53; }
.idfa-vseat.is-premium .c { fill: #fdf0d8; stroke: #9a5b00; }
.idfa-vseat.is-premium .b { fill: #9a5b00; }
.idfa-vseat.is-premium .idfa-seat-num { fill: #412402; }
.idfa-vseat.is-selected .c { fill: #5b2a86; stroke: #3d1a5c; }
.idfa-vseat.is-selected .b { fill: #3d1a5c; }
.idfa-vseat.is-selected .idfa-seat-num { fill: #fff; }
.idfa-vseat.is-sold .c { fill: #d3d1c7; stroke: #888780; }
.idfa-vseat.is-sold .b { fill: #888780; }
.idfa-vseat.is-sold .idfa-seat-num { fill: #5f5e5a; }
.idfa-vseat[tabindex] { cursor: pointer; }
.idfa-vseat[tabindex]:hover .c { stroke-width: 3; }
.idfa-vseat:focus { outline: none; }
.idfa-vseat:focus-visible .c { stroke: #ffbf00; stroke-width: 4; }
.idfa-preview-off { padding: 12px; background: #f6f7f7; border-radius: 8px; }

.idfa-summary { margin: .75em 0 0; font-weight: 700; font-size: 1.05em; }

/* Tickets in My Account */
.idfa-my-tickets { margin: 2em 0; }
.idfa-ticket-table td, .idfa-ticket-table th { padding: .6em; }

/* Calendar */
.idfa-calendar__nav { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: 1em; }
.idfa-calendar__nav h2 { margin: 0; }
.idfa-calendar__grid { width: 100%; table-layout: fixed; border-collapse: collapse; }
.idfa-calendar__grid th { padding: .5em; text-align: center; }
.idfa-calendar__grid td { height: 110px; vertical-align: top; padding: .35em; border: 1px solid rgba(128,128,128,.45); background: transparent; color: inherit; }
.idfa-calendar__grid td.is-empty { background: rgba(128,128,128,.12); }
.idfa-calendar__grid td.is-today { background: rgba(255,181,71,.22); box-shadow: inset 0 0 0 3px #ffb547; }
.idfa-calendar__grid td.is-today .idfa-calendar__day::after { content: " · Today"; font-weight: 400; font-size: .85em; }
.idfa-calendar__grid abbr[title] { text-decoration: none; border: 0; cursor: default; }
.idfa-calendar__day { color: inherit; }
.idfa-calendar__day { display: block; font-weight: 700; margin-bottom: .25em; }
.idfa-calendar__event { display: block; margin-bottom: 3px; padding: 3px 6px; border-radius: 6px; background: #ffb547; color: #2c1a00 !important; font-weight: 700; font-size: .85em; line-height: 1.3; text-decoration: none; }
.idfa-calendar__event:focus-visible { outline: 3px solid #ffbf00; }
.idfa-calendar__list { display: none; list-style: none; padding: 0; }
.idfa-calendar__list li { padding: .6em 0; border-bottom: 1px solid rgba(128,128,128,.45); }
.idfa-calendar__list span { display: block; font-weight: 700; }

@media (max-width: 700px) {
	.idfa-calendar__grid { display: none; }
	.idfa-calendar__list { display: block; }
	.idfa-seat { width: 28px; height: 28px; font-size: 11px; }
}

/* Upcoming event cards */
.idfa-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.idfa-card { border: 2px solid #222; border-radius: 12px; overflow: hidden; background: #fff; }
.idfa-card img { display: block; width: 100%; height: auto; }
.idfa-card__body { padding: 1em 1.25em 1.25em; }
.idfa-card__date { margin: 0; font-weight: 700; color: #5b2a86; }
.idfa-card h3 { margin: .3em 0 .5em; }
.idfa-card__price { font-weight: 700; }

/* Memberships */
.idfa-member-fields { margin: 1em 0 1.25em; }
.idfa-member-fields input[type="text"], .idfa-member-fields input[type="url"] { width: 100%; max-width: 420px; padding: .55em; font-size: 1em; }
.idfa-member-level { padding: .75em 1em; border-left: 6px solid #534ab7; background: #f6f6f4; color: #222; }
.idfa-my-membership { margin: 2em 0; padding: 1em 1.25em; border: 2px solid rgba(128,128,128,.55); border-radius: 12px; }
.idfa-directory { margin: 2em 0; }
.idfa-directory__title { padding-left: .6em; border-left: 6px solid; }
.idfa-directory__title small { font-size: .6em; font-weight: 400; color: inherit; opacity: .75; }
.idfa-directory__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.idfa-member-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 2px solid #222; border-radius: 12px; background: #fff; }
.idfa-member-card h3 { margin: 0 0 .2em; font-size: 1.1em; }
.idfa-member-card p { margin: .2em 0; }
.idfa-member-card__logo { flex: 0 0 52px; height: 52px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.idfa-member-card__badge { font-weight: 700; font-size: .9em; }

/* Seat states: sold, reserved (payment in progress), in your cart */
.idfa-seat.is-held { background: repeating-linear-gradient(45deg, #fae0d6 0 4px, #f0a98f 4px 8px); border: 2px dashed #993c1d; }
.idfa-seat.is-mine { background: #fff; border: 3px solid #534ab7; }
.idfa-vseat.is-held .c { fill: #f8d3c4; stroke: #993c1d; stroke-width: 2; stroke-dasharray: 4 2.5; }
.idfa-vseat.is-held .b { fill: #993c1d; }
.idfa-vseat.is-held .idfa-seat-num { fill: #4a1b0c; }
.idfa-vseat.is-mine .c { fill: #fff; stroke: #534ab7; stroke-width: 2.5; }
.idfa-vseat.is-mine .b { fill: #534ab7; }
.idfa-vseat.is-mine .idfa-seat-num { fill: #3c3489; }

/* Availability and sold out */
.idfa-availability { display: inline-block; margin: 0 0 .5em; padding: .3em .8em; border-radius: 20px; font-weight: 700; background: #e6f4ea; color: #13703a; }
.idfa-availability:empty { display: none; }
.idfa-availability.is-low, .idfa-left.is-low { background: #fdf0d8; color: #7a4500; }
.idfa-availability.is-out { background: #fcebeb; color: #a3161c; }
.idfa-left { display: inline-block; padding: .25em .8em; border-radius: 20px; font-weight: 700; background: #e6f4ea; color: #13703a; }
.idfa-soldout { display: inline-block; margin: .5em 0 0; padding: .4em 1.2em; border: 3px solid #a3161c; border-radius: 8px; background: #fff; color: #a3161c; font-size: 1.5em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-3deg); }
.idfa-button-soldout { opacity: .6; cursor: not-allowed; }
.idfa-summary.is-warning { padding: .6em .8em; border-left: 5px solid #a3161c; background: #fcebeb; color: #791f1f; }
select#idfa_day option:disabled { color: #999; }

/* ===== Screen sizes: iPhone, iPad, MacBook, Mac Studio ===== */

/* Seat map: centered, never huge, touch friendly. */
.idfa-map-scroll svg { margin: 0 auto; min-width: 0; }
.idfa-map-scroll { touch-action: pan-x pan-y pinch-zoom; overscroll-behavior-x: contain; }
.idfa-vseat { -webkit-tap-highlight-color: transparent; }
.idfa-map-hint { margin: 0 0 6px; font-size: .9em; font-weight: 600; color: inherit; opacity: .85; }
.idfa-map-hint[hidden] { display: none; }
@media (hover: none) {
	.idfa-vseat[tabindex]:hover .c { stroke-width: 1.5; } /* No sticky hover on touch screens. */
}
@media (pointer: coarse) {
	.idfa-map-toolbar button { min-width: 48px; height: 44px; font-size: 18px; }
}

/* iOS Safari zooms in when a field is smaller than 16px. */
.idfa-booking select, .idfa-booking input, .idfa-member-fields input, .idfa-field select { font-size: 16px; }

/* iPhone and small phones */
@media (max-width: 600px) {
	.idfa-event-info { padding: .8em 1em; font-size: 1em; }
	.idfa-label { min-width: 4em; }
	.idfa-field select { min-width: 0; width: 100%; }
	.idfa-seating { padding: .6em; margin-left: 0; margin-right: 0; }
	.idfa-seating legend { font-size: 1em; }
	.idfa-legend { gap: .35em .9em; font-size: .85em; }
	.idfa-legend .idfa-seat { width: 18px; height: 18px; }
	.idfa-map-scroll { max-height: 65vh; border-radius: 10px; }
	/* Price summary stays in view while scrolling the map. */
	.idfa-summary { position: sticky; bottom: 0; z-index: 2; margin: .5em -.6em -.6em; padding: .7em .8em; background: #fff; color: #111; border-top: 2px solid #222; padding-bottom: calc(.7em + env(safe-area-inset-bottom)); }
	.idfa-soldout { font-size: 1.2em; }

	/* Ticket table: one card per ticket instead of a wide table. */
	.idfa-ticket-table { border: 0 !important; }
	.idfa-ticket-table, .idfa-ticket-table tbody, .idfa-ticket-table tr, .idfa-ticket-table td { display: block; width: 100%; }
	.idfa-ticket-table thead { display: none; }
	.idfa-ticket-table tr { margin-bottom: 12px; border: 2px solid #222; border-radius: 10px; }
	.idfa-ticket-table td { border: 0 !important; padding: .35em .8em !important; }
	.idfa-ticket-table td::before { content: attr(data-title) ": "; font-weight: 700; }

	.idfa-calendar__nav { flex-wrap: wrap; }
	.idfa-calendar__nav h2 { order: -1; width: 100%; text-align: center; font-size: 1.3em; }
	.idfa-calendar__nav .button { flex: 1; text-align: center; }
	.idfa-cards, .idfa-directory__grid { grid-template-columns: 1fr; }
	.idfa-member-card { padding: 12px; }
	.idfa-my-membership { padding: .8em; }
}

/* iPad portrait */
@media (min-width: 601px) and (max-width: 1024px) {
	.idfa-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.idfa-directory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.idfa-calendar__grid td { height: 90px; }
}

/* MacBook and larger */
@media (min-width: 1025px) {
	.idfa-map-scroll { max-height: 80vh; }
}

/* Mac Studio / Studio Display and other very large screens */
@media (min-width: 1800px) {
	.idfa-cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
	.idfa-calendar__grid td { height: 140px; padding: .5em; }
	.idfa-calendar__event { font-size: .95em; }
	.idfa-directory__grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

/* ===== 1.7: waitlist ===== */
.idfa-waitlist { margin: 18px 0; }
.idfa-waitlist__box { border: 2px solid #ff9806; border-radius: 12px; padding: 16px 20px; }
.idfa-waitlist__box > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.idfa-waitlist h3 { margin: 4px 0 8px; }
.idfa-waitlist__form label { display: block; font-weight: 600; margin-bottom: 4px; }
.idfa-waitlist__form input[type=text], .idfa-waitlist__form input[type=email], .idfa-waitlist__form select { width: 100%; max-width: 420px; min-height: 44px; font-size: 16px; }
.idfa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ===== 1.7: festival journey ===== */
.idfa-journey__intro { font-size: 1.05em; }
.idfa-journey__steps { list-style: none !important; margin: 16px 0 28px !important; padding: 0 !important; display: grid; gap: 14px; }
.idfa-journey__steps > li { list-style: none !important; margin: 0 !important; }
.idfa-journey__steps > li::marker { content: none; }
.idfa-journey__step { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(128,128,128,.35); background: rgba(128,128,128,.06); }
.idfa-journey__step.is-next { border: 2px solid #ff9806; background: rgba(255,152,6,.08); }
.idfa-journey__step.is-done { border-color: #2e9d5b; background: rgba(46,157,91,.08); }
.idfa-journey__step.is-visa:not(.is-done) { border-color: #c2502f; }
.idfa-journey__num { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; background: #262450; color: #fff; }
.idfa-journey__step.is-next .idfa-journey__num { background: #ff9806; color: #1b1840; }
.idfa-journey__step.is-done .idfa-journey__num { background: #2e9d5b; color: #fff; }
.idfa-journey__body { flex: 1 1 auto; min-width: 0; }
.idfa-journey__body h3 { margin: 2px 0 6px !important; font-size: 1.3em !important; line-height: 1.25 !important; font-family: "IBM Plex Serif", Georgia, serif !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important; }
.idfa-journey__body p { margin: 0 0 8px; }
.idfa-journey__state { font-weight: 700; }
.idfa-journey__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px !important; }
.idfa-journey__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 22px; border-radius: 30px; border: 2px solid #ff9806; color: inherit; font-weight: 600; text-decoration: none !important; }
.idfa-journey__btn.is-main { background: #ff9806; color: #1b1840 !important; }
.idfa-journey__btn:focus-visible { outline: 3px solid #ffb547; outline-offset: 3px; }
@media (min-width: 900px) { .idfa-journey__steps { grid-template-columns: 1fr 1fr; } }
.idfa-account h2 { margin-top: 28px; }
.idfa-account__list { margin: 0 0 16px 1.2em; }
.idfa-account__list li { margin: 6px 0; }
.idfa-letter-request { border: 1px solid rgba(128,128,128,.35); border-radius: 12px; padding: 16px 20px; margin-top: 12px; }
.idfa-letter-request input, .idfa-letter-request select { min-height: 44px; font-size: 16px; width: 100%; max-width: 460px; }
