/**
 * Lewis Hotels — Network Menus
 *
 * Deliberately unopinionated: inherits the venue theme's fonts and colours by
 * default, so REX looks like REX and Canley looks like Canley with no CSS
 * edits. Override anything via the Elementor widget's Style tab.
 */

.lh-menu {
	--lh-menu-gap: 1.75rem;
	--lh-menu-rule: currentColor;
	margin: 0 0 2rem;
}

/* ------------------------------------------------- Controls: search/filters */

.lh-menu__controls {
	margin: 0 0 2rem;
	padding: 0 0 1.25rem;
	border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}

.lh-menu__search {
	position: relative;
	margin: 0 0 0.9rem;
}

.lh-menu__search-input {
	width: 100%;
	padding: 0.7em 2.4em 0.7em 0.9em;
	font: inherit;
	font-size: 0.95em;
	color: inherit;
	background: transparent;
	border: 1px solid rgba(128, 128, 128, 0.45);
	border-radius: 3px;
	-webkit-appearance: none;
	appearance: none;
}

.lh-menu__search-input::-webkit-search-cancel-button {
	display: none;
}

.lh-menu__search-clear {
	position: absolute;
	top: 50%;
	right: 0.5em;
	transform: translateY(-50%);
	padding: 0 0.4em;
	font: inherit;
	font-size: 1.3em;
	line-height: 1;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	opacity: 0.55;
}

.lh-menu__search-clear:hover {
	opacity: 1;
}

.lh-menu__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.lh-menu__filter {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.42em 0.85em;
	font: inherit;
	font-size: 0.78em;
	letter-spacing: 0.03em;
	color: inherit;
	background: transparent;
	border: 1px solid rgba(128, 128, 128, 0.45);
	border-radius: 100px;
	cursor: pointer;
	transition: background-color 0.12s ease, border-color 0.12s ease;
}

.lh-menu__filter:hover {
	border-color: currentColor;
}

.lh-menu__filter[aria-pressed="true"] {
	background: currentColor;
	border-color: currentColor;
}

/* Invert the label against the filled pill without needing a brand colour. */
.lh-menu__filter[aria-pressed="true"] > * {
	mix-blend-mode: difference;
	filter: invert(1) grayscale(1) contrast(9);
}

.lh-menu__filter-key {
	font-weight: 700;
	letter-spacing: 0.06em;
}

.lh-menu__filter--reset {
	border-style: dashed;
	opacity: 0.75;
}

.lh-menu__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.1rem;
	margin-top: 0.9rem;
	font-size: 0.78em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.lh-menu__nav-link {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(128, 128, 128, 0.5);
}

.lh-menu__nav-link:hover {
	border-bottom-color: currentColor;
}

.lh-menu__status {
	margin: 0.8rem 0 0;
	font-size: 0.8em;
	opacity: 0.7;
}

.lh-menu__status:empty {
	margin: 0;
}

.lh-menu__no-results,
.lh-menu__section-empty {
	padding: 1.1rem 0;
	font-size: 0.95em;
	opacity: 0.8;
}

.lh-menu__linkbtn {
	padding: 0;
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	border-bottom: 1px solid currentColor;
	cursor: pointer;
}

/* [hidden] must win over the display rules further down this file. */
.lh-menu [hidden] {
	display: none !important;
}

/* ---------------------------------------------------------------- Sections */

.lh-menu__section {
	margin: 0 0 2.75rem;
}

.lh-menu__section:last-child {
	margin-bottom: 0;
}

.lh-menu__section-title {
	margin: 0 0 0.35em;
	padding-bottom: 0.3em;
	border-bottom: 2px solid var(--lh-menu-rule);
	letter-spacing: 0.02em;
}

.lh-menu__section-intro {
	margin: 0 0 1.25em;
	font-size: 0.9em;
	font-style: italic;
	opacity: 0.85;
}

/* ------------------------------------------------------------------- Items */

.lh-menu__items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lh-menu__item {
	margin: 0 0 var(--lh-menu-gap);
	padding: 0;
	list-style: none;
	break-inside: avoid;
	page-break-inside: avoid;
}

.lh-menu__item:last-child {
	margin-bottom: 0;
}

.lh-menu__item-head {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	width: 100%;
}

.lh-menu__item-name {
	margin: 0;
	font-size: 1em;
	line-height: 1.3;
	flex: 0 1 auto;
}

/* Leader dots between dish and price. */
.lh-menu__dots {
	flex: 1 1 auto;
	min-width: 1.5rem;
	height: 0;
	align-self: flex-end;
	margin-bottom: 0.32em;
	border-bottom: 1px dotted currentColor;
	opacity: 0.35;
}

.lh-menu--no-dots .lh-menu__dots {
	border-bottom-color: transparent;
}

.lh-menu__item-price {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	font-weight: 600;
}

.lh-menu__item-desc {
	margin: 0.35em 0 0;
	font-size: 0.9em;
	line-height: 1.5;
	opacity: 0.85;
	max-width: 60ch;
}

/* ----------------------------------------------------------------- Add-ons */

.lh-menu__addons {
	list-style: none;
	margin: 0.5em 0 0;
	padding: 0 0 0 0.9em;
	border-left: 2px solid currentColor;
}

.lh-menu__addon {
	margin: 0 0 0.2em;
	font-size: 0.85em;
	line-height: 1.45;
	opacity: 0.8;
}

/* ------------------------------------------------- Price table (wine list) */

.lh-menu__table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.lh-menu__table th,
.lh-menu__table td {
	padding: 0.55em 0;
	border: 0;
	text-align: left;
	vertical-align: baseline;
}

.lh-menu__th-name {
	width: auto;
}

.lh-menu__th-price {
	width: 4.5em;
	text-align: right;
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.7;
	padding-bottom: 0.4em !important;
}

.lh-menu__row + .lh-menu__row .lh-menu__td-name,
.lh-menu__row + .lh-menu__row .lh-menu__td-price {
	border-top: 1px solid currentColor;
}

.lh-menu__table tbody tr + tr th,
.lh-menu__table tbody tr + tr td {
	border-top-color: rgba(128, 128, 128, 0.22);
}

.lh-menu__td-name {
	font-weight: inherit;
	padding-right: 1.25em !important;
}

.lh-menu__td-name .lh-menu__item-name {
	display: block;
	margin: 0;
	font-size: 1em;
	line-height: 1.3;
}

.lh-menu__td-name .lh-menu__item-desc {
	display: block;
	margin: 0.15em 0 0;
	font-size: 0.85em;
	font-style: italic;
	opacity: 0.75;
}

.lh-menu__item-note {
	display: block;
	margin-top: 0.15em;
	font-size: 0.8em;
	opacity: 0.7;
}

.lh-menu__td-price {
	text-align: right;
	white-space: nowrap;
	font-weight: 600;
}

.lh-menu__td-empty {
	opacity: 0.25;
	font-weight: 400;
}

.lh-menu__section-price {
	font-size: 0.85em;
	opacity: 0.75;
}

/* Screen-reader-only. Defined here rather than relying on the theme, since
   Avada / Elementor / custom themes don't all ship .screen-reader-text. */

.lh-menu__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Inline variant summary, used when a variant item sits in a list section.
   Must be allowed to wrap — "150ML $11 · 250ML $17 · BTL $44" is far too wide
   to sit on one line next to a dish name on a phone. */

.lh-menu__item-price:has(.lh-menu__variant) {
	flex: 0 1 auto;
	white-space: normal;
	text-align: right;
}

.lh-menu__variant {
	white-space: nowrap;
}

.lh-menu__variant-label {
	font-size: 0.72em;
	font-weight: 400;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.7;
}

.lh-menu__variant-sep {
	opacity: 0.4;
}

/* On phones the wine table collapses: each price gets its column label back. */

@media (max-width: 600px) {

	.lh-menu__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.lh-menu__table,
	.lh-menu__table tbody,
	.lh-menu__row,
	.lh-menu__td-name,
	.lh-menu__td-price {
		display: block;
		width: auto;
	}

	.lh-menu__row {
		padding: 0.75em 0;
		border-top: 1px solid rgba(128, 128, 128, 0.22);
	}

	.lh-menu__row .lh-menu__td-name,
	.lh-menu__row .lh-menu__td-price {
		border-top: 0;
		padding: 0 !important;
	}

	.lh-menu__td-price {
		display: inline-block;
		margin: 0.4em 1.5em 0 0;
		text-align: left;
	}

	.lh-menu__td-price::before {
		content: attr(data-label) " ";
		font-size: 0.72em;
		font-weight: 400;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		opacity: 0.7;
	}

	.lh-menu__td-price:has(.lh-menu__td-empty) {
		display: none;
	}
}

/* ------------------------------------------------------------------ Images */

.lh-menu__figure {
	overflow: hidden;
	background: rgba(128, 128, 128, 0.1);
	border-radius: 3px;
}

.lh-menu__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Thumbnail: small square beside the text. Items without a photo simply have
   no figure and their text starts at the left edge — no empty placeholder. */

.lh-menu--img-thumb .lh-menu__item--has-image {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.lh-menu--img-thumb .lh-menu__item--has-image .lh-menu__figure {
	flex: 0 0 92px;
	width: 92px;
}

.lh-menu--img-thumb .lh-menu__item-body {
	flex: 1 1 auto;
	min-width: 0;
}

/* Card: photo above the text, laid out as a grid. */

.lh-menu--img-card .lh-menu__items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 2rem 1.75rem;
	columns: auto;
}

.lh-menu--img-card .lh-menu__item {
	margin-bottom: 0;
}

.lh-menu--img-card .lh-menu__figure {
	margin-bottom: 0.7rem;
}

.lh-menu--img-card .lh-menu__item-head {
	align-items: flex-start;
}

/* Aspect ratios. */

.lh-menu--ratio-1-1 .lh-menu__figure { aspect-ratio: 1 / 1; }
.lh-menu--ratio-4-3 .lh-menu__figure { aspect-ratio: 4 / 3; }
.lh-menu--ratio-3-2 .lh-menu__figure { aspect-ratio: 3 / 2; }
.lh-menu--ratio-16-9 .lh-menu__figure { aspect-ratio: 16 / 9; }

/* In the wine table a photo is a small bottle shot floated beside the name. */

.lh-menu__td-name .lh-menu__figure {
	float: left;
	width: 44px;
	margin: 0.1em 0.8em 0.3em 0;
	aspect-ratio: 1 / 1;
}

@media (max-width: 600px) {

	.lh-menu--img-thumb .lh-menu__item--has-image .lh-menu__figure {
		flex-basis: 72px;
		width: 72px;
	}

	.lh-menu--img-card .lh-menu__items {
		grid-template-columns: 1fr;
	}
}

/* ----------------------------------------------------------------- Dietary */

.lh-menu__diets {
	display: inline;
	white-space: nowrap;
}

.lh-menu__diet {
	display: inline-block;
	margin-left: 0.3em;
	font-size: 0.62em;
	font-weight: 700;
	letter-spacing: 0.06em;
	vertical-align: super;
	text-decoration: none;
	border: 0;
	cursor: help;
	opacity: 0.75;
}

.lh-menu__legend {
	margin: 2rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid currentColor;
	font-size: 0.8em;
	letter-spacing: 0.03em;
	opacity: 0.8;
}

.lh-menu__legend-key {
	font-weight: 700;
}

.lh-menu__empty {
	padding: 1rem;
	border: 1px dashed currentColor;
	font-style: italic;
	opacity: 0.7;
}

/* ----------------------------------------------------------------- Columns */

@media (min-width: 782px) {

	.lh-menu--cols-2 .lh-menu__items {
		columns: 2;
		column-gap: 3rem;
	}

	.lh-menu--cols-3 .lh-menu__items {
		columns: 3;
		column-gap: 2.5rem;
	}
}

/* ------------------------------------------------------------------- Print */

@media print {

	.lh-menu__dots {
		border-bottom-color: #999;
	}

	.lh-menu__section {
		break-inside: avoid;
	}
}
