:root {
	--pizzadam-red: #be1622;
	--pizzadam-red-hover: #a01421;
	--pizzadam-ink: #161616;
	--pizzadam-muted: #5e6268;
	--pizzadam-line: #ece6dc;
	--pizzadam-paper: #fff6ed;
}

body.page .wp-block-post-title {
	display: none;
}

.pizzadam-contact-list {
	display: grid;
	gap: 14px;
	max-width: 720px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.pizzadam-contact-list a {
	color: var(--pizzadam-red);
	font-weight: 700;
}

.pizzadam-location-finder {
	width: min(var(--pizzadam-canvas, 1192px), calc(100% - var(--pizzadam-canvas-pad, 24px) * 2));
	margin: clamp(28px, 4vw, 48px) auto clamp(56px, 7vw, 88px);
}

.pizzadam-location-tools {
	display: grid;
	grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
	gap: 12px clamp(14px, 1.8vw, 22px);
	align-items: start;
	width: 100%;
	margin: 0 0 clamp(18px, 2.4vw, 28px);
}

.pizzadam-location-search {
	width: 100%;
	min-height: 44px;
	padding: 0 18px 0 44px;
	border: 1px solid var(--pizzadam-line);
	border-radius: 999px;
	background:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") no-repeat 16px center,
		#fff;
	color: var(--pizzadam-ink);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 500;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.pizzadam-location-search::placeholder {
	color: #9aa0a6;
}

.pizzadam-location-search:focus {
	outline: none;
	border-color: var(--pizzadam-red);
	box-shadow: 0 0 0 4px rgba(190, 22, 34, 0.14);
}

.pizzadam-location-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	justify-content: flex-end;
	min-width: 0;
}

.pizzadam-location-filter button {
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--pizzadam-line);
	border-radius: 999px;
	background: #fff;
	color: var(--pizzadam-ink);
	cursor: pointer;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.pizzadam-location-filter button:hover {
	border-color: var(--pizzadam-red);
	color: var(--pizzadam-red);
}

.pizzadam-location-filter button[aria-pressed="true"] {
	border-color: var(--pizzadam-red);
	background: var(--pizzadam-red);
	color: #fff;
}

.pizzadam-locations {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
	width: 100%;
	margin: 0;
}

.pizzadam-location-card {
	position: relative;
	display: grid;
	gap: 10px;
	align-content: start;
	min-width: 0;
	min-height: 220px;
	padding: 20px;
	border: 1px solid var(--pizzadam-line);
	border-radius: 16px;
	background: #fff;
	color: var(--pizzadam-ink);
	box-shadow: 0 12px 28px -18px rgba(22, 22, 22, 0.18);
	transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms ease, border-color 200ms ease;
}

@media (max-width: 920px) {
	.pizzadam-locations {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.pizzadam-location-card:hover,
.pizzadam-location-card:focus-within {
	border-color: rgba(22, 22, 22, 0.14);
	box-shadow: 0 18px 42px -28px rgba(22, 22, 22, 0.32);
	transform: translateY(-2px);
}

.pizzadam-location-card[hidden] {
	display: none !important;
}

.pizzadam-location-card h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.005em;
	overflow-wrap: anywhere;
}

.pizzadam-location-card h3 a {
	color: inherit;
	text-decoration: none;
}

.pizzadam-location-card h3 a:hover,
.pizzadam-location-card h3 a:focus-visible {
	color: var(--pizzadam-red);
}

.pizzadam-location-card h3 a::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	content: "";
}

.pizzadam-location-card__city {
	width: fit-content;
	margin: 0;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--pizzadam-paper);
	color: var(--pizzadam-red);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pizzadam-location-card__address,
.pizzadam-location-card__status,
.pizzadam-location-card__contact {
	margin: 0;
	color: var(--pizzadam-muted);
	font-size: 0.85rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.pizzadam-location-card__contact {
	display: grid;
	gap: 4px;
	font-size: 0.93rem;
}

.pizzadam-location-card__contact br {
	display: none;
}

.pizzadam-location-card__contact a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--pizzadam-ink);
	font-weight: 600;
	text-decoration: none;
	position: relative;
	z-index: 2;
}

.pizzadam-location-card__contact a:hover,
.pizzadam-location-card__contact a:focus-visible {
	color: var(--pizzadam-red);
}

.pizzadam-location-card__contact--phone .pizzadam-location-card__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	color: var(--pizzadam-ink);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.005em;
	text-decoration: none;
	transition: color 160ms ease;
}

.pizzadam-location-card__contact--phone .pizzadam-location-card__phone::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be1622' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.37 1.9.72 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.35 1.85.59 2.81.72A2 2 0 0 1 22 16.92z'/></svg>") center / contain no-repeat;
}

.pizzadam-location-card__contact--phone .pizzadam-location-card__phone:hover,
.pizzadam-location-card__contact--phone .pizzadam-location-card__phone:focus-visible {
	color: var(--pizzadam-red);
}

.pizzadam-location-card__status {
	align-self: end;
	color: var(--pizzadam-red);
	font-weight: 700;
}

.pizzadam-location-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 6px;
	position: relative;
	z-index: 2;
	min-width: 0;
}

.pizzadam-location-card__order,
.pizzadam-order-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--pizzadam-red);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.pizzadam-location-card__review {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 8px;
	color: var(--pizzadam-red);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: color 160ms ease;
}

.pizzadam-location-card__review:hover,
.pizzadam-location-card__review:focus-visible {
	color: var(--pizzadam-red-hover);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.pizzadam-location-card__order:hover,
.pizzadam-order-button:hover,
.pizzadam-location-card__order:focus-visible,
.pizzadam-order-button:focus-visible {
	background: var(--pizzadam-red-hover);
	color: #fff;
	box-shadow: 0 10px 24px -16px rgba(22, 22, 22, 0.42);
	transform: translateY(-1px);
}

@media (max-width: 760px) {
	.pizzadam-location-tools {
		grid-template-columns: 1fr;
	}

	.pizzadam-location-filter {
		justify-content: flex-start;
	}
}

@media (max-width: 640px) {
	.pizzadam-location-finder {
		margin-top: clamp(24px, 7vw, 36px);
	}

	.pizzadam-location-tools {
		gap: 14px;
	}

	.pizzadam-location-search {
		min-height: 48px;
	}

	.pizzadam-location-filter {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		margin-inline: -16px;
		padding: 0 16px 4px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.pizzadam-location-filter::-webkit-scrollbar {
		display: none;
	}

	.pizzadam-location-filter button {
		flex: 0 0 auto;
	}

	.pizzadam-locations {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.pizzadam-location-card {
		min-height: auto;
		padding: 22px;
	}
}
