/* =========================================================================
   Little Shindig — mobile layer (v1.1)

   Loaded after main.css. Everything here is either a touch-ergonomics fix
   that applies at every width, or a small-screen-only behaviour.
   ========================================================================= */

:root {
	--ls-tap: 44px;          /* WCAG 2.5.8 / Apple HIG minimum */
	--ls-tap-comfy: 48px;
	--ls-bar-h: 68px;
	--ls-safe-b: env(safe-area-inset-bottom, 0px);
}

/* ------------------------------------------------- Touch target minimums */
.ls-nav__list a,
.ls-mobile-nav__list a,
.ls-cart-link,
.ls-card__title a,
.ls-post-card__title a,
.ls-venue__address a,
.ls-venue__phone a {
	display: inline-flex;
	align-items: center;
	min-height: var(--ls-tap);
}

/* Widget lists are rows of standalone links — give them room to be tapped. */
.ls-widget ul {
	list-style: none;
	padding: 0;
}

.ls-widget li + li {
	border-top: 1px solid rgba(225, 223, 217, 0.14);
}

.ls-burger {
	width: var(--ls-tap-comfy);
	height: var(--ls-tap-comfy);
}

.ls-social a {
	width: var(--ls-tap);
	height: var(--ls-tap);
}

.ls-quickview__close,
.ls-sheet__close {
	min-width: var(--ls-tap);
	min-height: var(--ls-tap);
}

.ls-btn,
.ls-input,
.ls-select,
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	min-height: var(--ls-tap-comfy);
}

.ls-quickview-btn {
	min-height: var(--ls-tap);
}

/* Inputs at 16px stop iOS Safari zooming the page on focus. */
@media (max-width: 860px) {
	.ls-input,
	.ls-select,
	input[type="text"],
	input[type="email"],
	input[type="search"],
	input[type="tel"],
	input[type="number"],
	input[type="password"],
	textarea,
	select {
		font-size: 16px;
	}
}

/* ------------------------------------------------------- Mobile menu sheet */
@media (max-width: 860px) {
	.ls-mobile-nav {
		position: fixed;
		inset: var(--ls-header-h) 0 0;
		z-index: 60;
		padding: 1.5rem var(--ls-gutter) calc(2rem + var(--ls-safe-b));
		overflow-y: auto;
		background: var(--ls-maroon-deep);
	}

	.ls-mobile-nav__list {
		gap: 0;
	}

	.ls-mobile-nav__list li + li {
		border-top: 1px solid rgba(225, 223, 217, 0.18);
	}

	.ls-mobile-nav__list a {
		display: flex;
		align-items: center;
		min-height: 56px;
		font-size: 1.25rem;
		font-family: var(--ls-font-display);
	}

	body.ls-menu-open {
		overflow: hidden;
	}
}

/* --------------------------------------------- Calendar: swipeable on phones */
@media (max-width: 700px) {
	.ls-calendar__grid {
		display: flex;
		grid-template-columns: none;
		gap: 1rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		/* Bleed to the screen edges so a card can sit centred. */
		margin-inline: calc(var(--ls-gutter) * -1);
		padding-inline: var(--ls-gutter);
		padding-bottom: 0.5rem;
	}

	.ls-calendar__grid::-webkit-scrollbar {
		display: none;
	}

	.ls-calendar__grid > .ls-day {
		flex: 0 0 82%;
		scroll-snap-align: center;
	}

	.ls-calendar__grid:focus-visible {
		outline: 3px solid var(--ls-gold);
		outline-offset: 6px;
	}

	.ls-carousel-dots {
		display: flex;
		justify-content: center;
		gap: 0.5rem;
		margin-top: 1.25rem;
		padding: 0;
		list-style: none;
	}

	.ls-carousel-dots button {
		width: var(--ls-tap);
		height: var(--ls-tap);
		padding: 0;
		border: 0;
		background: transparent;
		display: grid;
		place-items: center;
	}

	.ls-carousel-dots button::before {
		content: "";
		width: 9px;
		height: 9px;
		border-radius: 50%;
		background: rgba(225, 223, 217, 0.4);
		transition: background-color 0.2s ease, transform 0.2s ease;
	}

	.ls-carousel-dots button[aria-current="true"]::before {
		background: var(--ls-gold);
		transform: scale(1.35);
	}

	.ls-carousel-hint {
		margin: 0.75rem 0 0;
		font-size: 0.8rem;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		opacity: 0.7;
	}
}

@media (min-width: 701px) {
	.ls-carousel-dots,
	.ls-carousel-hint {
		display: none;
	}
}

/* ------------------------------------------------ Sticky mobile ticket bar */
.ls-mobilebar {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 70;
	padding: 0.6rem var(--ls-gutter) calc(0.6rem + var(--ls-safe-b));
	background: rgba(30, 8, 7, 0.96);
	backdrop-filter: blur(8px);
	border-top: 2px solid var(--ls-gold);
	color: var(--ls-cream);
	transform: translateY(110%);
	transition: transform 0.28s ease;
}

.ls-mobilebar[hidden] {
	display: none;
}

.ls-mobilebar.is-visible {
	transform: translateY(0);
}

.ls-mobilebar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 40rem;
	margin-inline: auto;
}

.ls-mobilebar__label {
	display: block;
	font-size: 0.95rem;
	line-height: 1.25;
}

.ls-mobilebar__label small {
	display: block;
	font-size: 0.78rem;
	opacity: 0.75;
}

.ls-mobilebar__cta {
	flex: 0 0 auto;
	background: var(--ls-gold);
	border-color: var(--ls-gold);
	color: var(--ls-ink);
	padding-inline: 1.4rem;
}

.ls-mobilebar__cta:hover,
.ls-mobilebar__cta:focus-visible {
	background: var(--ls-green);
	border-color: var(--ls-green);
	color: var(--ls-white);
}

@media (min-width: 861px) {
	.ls-mobilebar {
		display: none !important;
	}
}

/* Keep the footer clear of the bar. */
@media (max-width: 860px) {
	body.ls-has-mobilebar .ls-footer {
		padding-bottom: calc(var(--ls-bar-h) + var(--ls-safe-b) + 1.5rem);
	}
}

/* ------------------------------------------------------------ Bottom sheet */
.ls-sheet {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.ls-sheet[hidden] {
	display: none;
}

.ls-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 4, 4, 0.7);
	animation: ls-fade 0.2s ease;
}

.ls-sheet__panel {
	position: relative;
	width: min(560px, 100%);
	max-height: 82vh;
	overflow-y: auto;
	padding: 0.75rem var(--ls-gutter) calc(1.25rem + var(--ls-safe-b));
	background: var(--ls-maroon-deep);
	border-top: 3px solid var(--ls-gold);
	border-radius: 18px 18px 0 0;
	color: var(--ls-cream);
	animation: ls-sheet-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 861px) {
	.ls-sheet {
		align-items: center;
	}

	.ls-sheet__panel {
		border-radius: 0;
		border: var(--ls-border) solid var(--ls-gold);
		animation: ls-fade 0.2s ease;
	}
}

@keyframes ls-sheet-up {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

@keyframes ls-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.ls-sheet__grip {
	width: 44px;
	height: 4px;
	margin: 0 auto 0.9rem;
	border-radius: 999px;
	background: rgba(225, 223, 217, 0.35);
}

.ls-sheet__title {
	font-size: 1.4rem;
	text-align: center;
	margin-bottom: 0.9rem;
}

.ls-sheet__body {
	margin-bottom: 0.75rem;
}

.ls-sheet__close {
	display: block;
	width: 100%;
	padding: 0.85rem;
	border: 1px solid rgba(225, 223, 217, 0.45);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.95rem;
}

/* Date rows inside the sheet. */
.ls-sheet__options {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ls-sheet__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	min-height: 56px;
	padding: 0.85rem 0.25rem;
	border: 0;
	border-bottom: 1px solid rgba(225, 223, 217, 0.16);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1.05rem;
	text-align: left;
}

.ls-sheet__option[aria-selected="true"] {
	color: var(--ls-gold);
}

.ls-sheet__option[aria-selected="true"]::after {
	content: "✓";
	font-size: 1.1rem;
}

.ls-sheet__option[disabled] {
	opacity: 0.4;
}

.ls-sheet__option[disabled]::after {
	content: attr(data-note);
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* The trigger that replaces the native select on touch devices. */
.ls-datebtn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	min-height: var(--ls-tap-comfy);
	padding: 0.7rem 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.94);
	color: var(--ls-ink);
	font: inherit;
	font-size: 0.95rem;
	text-align: left;
}

.ls-datebtn::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	flex: 0 0 auto;
}

.ls-datebtn.is-empty {
	color: #5a5a5a;
}

/*
 * The native select stays in the DOM so the form still posts the attribute,
 * but it is taken out of the layout, the tab order and the pointer entirely —
 * the sheet trigger is what people interact with.
 */
.ls-has-sheet .ls-card__form .ls-select,
.ls-has-sheet .ls-quickview .ls-select {
	position: absolute;
	width: 0;
	height: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* --------------------------------------------------- Add-to-cart feedback */
.ls-addtocart .ls-btn.is-busy {
	opacity: 0.7;
	pointer-events: none;
}

.ls-sheet__actions {
	display: grid;
	gap: 0.6rem;
	margin-top: 0.25rem;
}

.ls-sheet__actions .ls-btn {
	width: 100%;
}

.ls-sheet__summary {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.5rem 0 1rem;
	border-bottom: 1px solid rgba(225, 223, 217, 0.16);
	margin-bottom: 1rem;
}

.ls-sheet__summary img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	flex: 0 0 auto;
}

.ls-sheet__summary strong {
	display: block;
	font-weight: 400;
	font-family: var(--ls-font-display);
	font-size: 1.15rem;
}

.ls-sheet__summary span {
	font-size: 0.9rem;
	opacity: 0.8;
}

/* ------------------------------------------------- Small-screen typography */
@media (max-width: 560px) {
	.ls-featured__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.ls-featured__head .ls-btn {
		width: 100%;
		justify-content: center;
	}

	.ls-newsletter__form {
		flex-direction: column;
	}

	.ls-newsletter__form .ls-input,
	.ls-newsletter__form .ls-btn {
		max-width: none;
		width: 100%;
	}

	.ls-searchform {
		flex-direction: column;
	}

	/* The inclusion lists are long; collapse them behind a toggle on phones. */
	.ls-card__body .ls-includes {
		max-height: 11.5em;
		overflow: hidden;
		position: relative;
		transition: max-height 0.3s ease;
	}

	.ls-card__body .ls-includes.is-open {
		max-height: 200em;
	}

	.ls-includes-toggle {
		align-self: flex-start;
		padding: 0.4rem 0;
		min-height: var(--ls-tap);
		border: 0;
		background: transparent;
		color: var(--ls-gold);
		font: inherit;
		font-size: 0.85rem;
		text-decoration: underline;
		text-underline-offset: 0.25em;
	}
}

@media (min-width: 561px) {
	.ls-includes-toggle {
		display: none;
	}
}

/* --------------------------------------------------------- Cart & checkout */
@media (max-width: 700px) {
	.woocommerce-cart table.shop_table,
	.woocommerce-cart table.shop_table thead,
	.woocommerce-cart table.shop_table tbody,
	.woocommerce-cart table.shop_table tr,
	.woocommerce-cart table.shop_table td {
		display: block;
		width: 100%;
	}

	.woocommerce-cart table.shop_table thead {
		display: none;
	}

	.woocommerce-cart table.shop_table tr {
		padding-block: 0.75rem;
		border-bottom: 1px solid rgba(225, 223, 217, 0.25);
	}

	.woocommerce-cart table.shop_table td {
		border: 0;
		padding: 0.35rem 0;
	}

	.woocommerce-cart .actions,
	.woocommerce-cart .coupon {
		flex-direction: column;
		align-items: stretch;
	}

	.woocommerce-cart .coupon input,
	.woocommerce-cart .actions .button {
		width: 100%;
	}

	.cart-collaterals {
		justify-content: stretch;
	}
}

/* ------------------------------------------------------------- Reduced data */
@media (prefers-reduced-motion: reduce) {
	.ls-mobilebar,
	.ls-sheet__panel,
	.ls-sheet__backdrop {
		transition: none;
		animation: none;
	}

	.ls-calendar__grid {
		scroll-behavior: auto;
	}
}
