/* City hubs. Cards and loved lists come from restaurant-page.css. */

.happymenu-hub {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	padding-bottom: 4rem;
}

.happymenu-hub__breadcrumbs {
	color: #6b7280;
	display: flex;
	flex-wrap: wrap;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.25rem;
	gap: 0.5rem;
	justify-content: center;
	margin-bottom: 1rem;
}

.happymenu-hub__breadcrumbs a,
.happymenu-hub__breadcrumbs a:visited {
	color: #6b7280 !important;
	text-decoration: none !important;
}

.happymenu-hub__breadcrumbs a:hover {
	color: #00af74 !important;
}

.happymenu-hub__summary p {
	font-size: 1.6rem;
	margin: 0.75rem auto 0;
	max-width: 62rem;
}

.happymenu-hub__actions {
	margin: 0 0 2.5rem;
	text-align: center;
}

.happymenu-hub .happymenu-hub__button,
.happymenu-hub .happymenu-hub__button:visited {
	align-items: center;
	background: #00af74 !important;
	border: 2px solid #00af74;
	border-radius: 0;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 1.4rem;
	font-weight: 700;
	justify-content: center;
	min-height: 4.2rem;
	padding: 0.6rem 1.6rem;
	text-decoration: none !important;
}

.happymenu-hub .happymenu-hub__button:hover,
.happymenu-hub .happymenu-hub__button:focus {
	background: #000 !important;
	border-color: #000;
	color: #fff !important;
}

.happymenu-hub__section {
	margin: 0 0 3.5rem;
}

.happymenu-hub .happymenu-hub__heading {
	font-size: 2.4rem;
	margin: 0 0 1.25rem;
}

.happymenu-hub__group {
	margin-bottom: 1.25rem;
}

.happymenu-hub .happymenu-hub__group-title {
	color: #6b7280;
	font-family: inherit;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	margin: 0 0 0.5rem;
	text-transform: uppercase;
}

/* Collection cards (includes/collections.php): the rule for showing any
   set of restaurants that links to its own page. A Pinterest-style cover of
   three photos (one large, two stacked), then the title and count; the whole
   card is one link. Empty slots stay soft blocks so every card keeps its
   shape while restaurants are still getting photos. */

.happymenu-collections {
	display: grid;
	gap: 2.25rem 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.happymenu-collection {
	list-style: none;
	margin: 0;
	min-width: 0;
}

.happymenu-collection__link,
.happymenu-collection__link:visited {
	color: #000 !important;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	text-decoration: none !important;
}

.happymenu-collection__cover {
	aspect-ratio: 3 / 2;
	background: #fff;
	border-radius: 1.6rem;
	display: grid;
	gap: 2px;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
	margin-bottom: 0.6rem;
	overflow: hidden;
	transition: filter 0.15s ease;
}

.happymenu-collection__slot {
	align-items: center;
	background: #f1f3f2;
	display: flex;
	justify-content: center;
	min-height: 0;
	overflow: hidden;
}

.happymenu-collection__slot--main {
	background: #effaf5;
	grid-row: 1 / span 2;
}

.happymenu-collection .happymenu-collection__slot img {
	display: block;
	height: 100%;
	margin: 0;
	max-width: none;
	object-fit: cover;
	width: 100%;
}

.happymenu-collection__initial {
	color: #00af74;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 5.2rem;
	font-weight: 700;
	line-height: 1;
}

.happymenu-collection__title {
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.happymenu-collection__meta {
	color: #6b7280;
	font-size: 1.3rem;
}

.happymenu-collection__link:hover .happymenu-collection__cover,
.happymenu-collection__link:focus .happymenu-collection__cover {
	filter: brightness(0.9);
}

.happymenu-collection__link:hover .happymenu-collection__title,
.happymenu-collection__link:focus .happymenu-collection__title {
	text-decoration: underline;
}

/* "Show more": cards after the first ten wait for the button. */
.happymenu-collection--later {
	display: none !important;
}

.happymenu-collections__more {
	margin: 2rem 0 0;
	text-align: center;
}

.happymenu-hub .happymenu-collections__button {
	background: #fff !important;
	border: 2px solid #000;
	border-radius: 0;
	color: #000 !important;
	cursor: pointer;
	font: inherit;
	font-size: 1.4rem;
	font-weight: 800;
	padding: 0.9rem 2.4rem;
}

.happymenu-hub .happymenu-collections__button:hover,
.happymenu-hub .happymenu-collections__button:focus {
	background: #000 !important;
	color: #fff !important;
}

/* Loved dishes on hubs link to their restaurant. */

.happymenu-discovery-loved__restaurant,
.happymenu-discovery-loved__restaurant:visited {
	color: #6b7280 !important;
	font-size: 1.3rem;
	text-decoration: none !important;
}

.happymenu-discovery-loved__restaurant:hover {
	color: #00af74 !important;
}

/* Filters */

.happymenu-hub__filters {
	align-items: flex-end;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	margin: 0 0 2rem;
	padding: 1.25rem 0;
}

.happymenu-hub__field {
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.happymenu-hub__field > span,
.happymenu-hub__field legend {
	color: #6b7280;
	float: left;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	margin-bottom: 0.35rem;
	padding: 0;
	text-transform: uppercase;
	width: 100%;
}

.happymenu-hub__field select {
	background: #fff;
	border: 1px solid #000;
	border-radius: 0;
	font-family: inherit;
	font-size: 1.35rem;
	min-height: 3.6rem;
	padding: 0.4rem 0.6rem;
}

.happymenu-hub__field--price,
.happymenu-hub__field--features {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.happymenu-hub__toggle {
	cursor: pointer;
	display: inline-flex;
	margin: 0;
}

.happymenu-hub__toggle input {
	clip: rect(0 0 0 0);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.happymenu-hub__toggle span {
	align-items: center;
	border: 1px solid #000;
	display: inline-flex;
	font-size: 1.3rem;
	font-weight: 700;
	min-height: 3.6rem;
	padding: 0.4rem 0.9rem;
}

.happymenu-hub__toggle input:checked + span {
	background: #00af74;
	border-color: #00af74;
	color: #fff;
}

.happymenu-hub__toggle input:focus-visible + span {
	outline: 2px solid #00af74;
	outline-offset: 2px;
}

.happymenu-hub__filter-actions {
	align-items: center;
	display: flex;
	gap: 1rem;
	font-size: 1.3rem;
}

/* With JavaScript the form submits on change, so the button is redundant. */
.happymenu-hub__filters.is-enhanced .happymenu-hub__filter-actions button {
	display: none;
}

/* Results */

.happymenu-hub .happymenu-hub__grid {
	display: grid;
	gap: 2rem 1.5rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.happymenu-discovery-card__known {
	color: #00af74;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.35;
}

.happymenu-hub__pagination {
	align-items: center;
	display: flex;
	font-size: 1.4rem;
	gap: 1.5rem;
	justify-content: center;
	margin-top: 3rem;
}

.happymenu-hub__pagination a,
.happymenu-hub__pagination a:visited {
	border: 1px solid #000;
	color: #000 !important;
	padding: 0.6rem 1.2rem;
	text-decoration: none !important;
}

.happymenu-hub__pagination a:hover {
	background: #000;
	color: #fff !important;
}

.happymenu-hub__empty {
	font-size: 1.5rem;
}

@media (max-width: 1024px) {
	.happymenu-hub .happymenu-hub__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.happymenu-hub .happymenu-hub__grid,
	.happymenu-collections {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.happymenu-collections {
		gap: 1.75rem 1rem;
	}

	.happymenu-collection__cover {
		border-radius: 1.2rem;
	}

	/* Two dropdowns per row; price, features and actions span both columns. */
	.happymenu-hub__filters {
		display: grid;
		gap: 1rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.happymenu-hub__field--price,
	.happymenu-hub__field--features,
	.happymenu-hub__filter-actions {
		grid-column: 1 / -1;
	}

	.happymenu-hub__field select {
		width: 100%;
	}
}

/* Dish price pages */

.happymenu-dish__stats {
	border: 1px solid #000;
	border-top: 0.4rem solid #00af74;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0 0 3rem;
}

.happymenu-dish__stat {
	border-left: 1px solid rgba(0, 0, 0, 0.12);
	padding: 1rem 1.25rem;
}

.happymenu-dish__stat:first-child {
	border-left: 0;
}

.happymenu-dish__stat dt {
	color: #6b7280;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	margin: 0 0 0.35rem;
	text-transform: uppercase;
}

.happymenu-dish__stat dd {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
}

.happymenu-dish__table-wrap {
	overflow-x: auto;
}

.happymenu-hub .happymenu-dish__table {
	border-collapse: collapse;
	border-top: 2px solid #000;
	font-size: 1.45rem;
	margin: 0;
	width: 100%;
}

.happymenu-hub .happymenu-dish__table th,
.happymenu-hub .happymenu-dish__table td {
	border: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	padding: 1rem 1.25rem;
	text-align: left;
	vertical-align: baseline;
}

.happymenu-hub .happymenu-dish__table thead th {
	color: #6b7280;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.happymenu-hub .happymenu-dish__table tbody th {
	font-weight: 700;
}

.happymenu-hub .happymenu-dish__table a,
.happymenu-hub .happymenu-dish__table a:visited {
	color: #000 !important;
	text-decoration: none !important;
}

.happymenu-hub .happymenu-dish__table a:hover {
	color: #00af74 !important;
}

.happymenu-hub .happymenu-dish__table .happymenu-dish__num {
	text-align: right;
	white-space: nowrap;
}

.happymenu-hub .happymenu-dish__table tbody tr:nth-child(even) {
	background: #f7f8f7;
}

.happymenu-dish__area {
	color: #6b7280;
	display: block;
	font-size: 1.2rem;
	font-weight: 400;
}

.happymenu-dish__item {
	color: #374151;
}

.happymenu-dish__cards {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.happymenu-dish__card {
	list-style: none;
	margin: 0;
}

.happymenu-dish__card-link,
.happymenu-dish__card-link:visited {
	border: 1px solid #000;
	color: #000 !important;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	height: 100%;
	padding: 1rem 1.15rem;
	text-decoration: none !important;
}

.happymenu-dish__card-link:hover {
	border-color: #00af74;
}

.happymenu-dish__card-name {
	font-size: 1.6rem;
	font-weight: 800;
}

.happymenu-dish__card-price {
	color: #00af74;
	font-size: 2.2rem;
	font-weight: 800;
}

.happymenu-dish__card-count {
	color: #6b7280;
	font-size: 1.2rem;
}

/* Restaurant tiles for each city on a dish page: two rows of five. */

.happymenu-hub .happymenu-dish__cards--places {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.happymenu-dish__cards--places .happymenu-dish__card-name {
	font-size: 1.45rem;
	line-height: 1.3;
}

.happymenu-dish__cards--places .happymenu-dish__card-price {
	font-size: 1.9rem;
}

.happymenu-dish__cards--places .happymenu-dish__card-count {
	line-height: 1.35;
}

@media (max-width: 1024px) {
	.happymenu-hub .happymenu-dish__cards--places {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.happymenu-dish__method {
	color: #6b7280;
	font-size: 1.3rem;
	max-width: 70rem;
}

@media (max-width: 700px) {
	.happymenu-dish__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.happymenu-dish__stat:nth-child(3) {
		border-left: 0;
	}

	.happymenu-dish__stat:nth-child(n+3) {
		border-top: 1px solid rgba(0, 0, 0, 0.12);
	}

	.happymenu-dish__stat dd {
		font-size: 1.7rem;
	}

	.happymenu-hub .happymenu-dish__table {
		font-size: 1.35rem;
	}

	.happymenu-hub .happymenu-dish__table th,
	.happymenu-hub .happymenu-dish__table td {
		padding: 0.8rem 0.6rem;
	}

	.happymenu-hub .happymenu-dish__cards--places {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Six tiles per city on phones; "See all" has the rest. */
	.happymenu-dish__cards--places .happymenu-dish__card:nth-child(n+7) {
		display: none;
	}

	.happymenu-hub .happymenu-dish__table thead th {
		font-size: 0.95rem;
		letter-spacing: 0.04em;
	}

	/* The menu item name is the least useful column on a phone. */
	.happymenu-hub .happymenu-dish__table--menus .happymenu-dish__item {
		display: none;
	}
}
