main {
	max-width: 900px;
}

.page-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}

.lang-toggle {
	display: flex;
	gap: 0.35rem;
	margin: 0;
}

.lang-toggle a {
	padding: 0.25rem 0.6rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 1.7rem;
	line-height: 1.2;
	text-decoration: none;
	opacity: 0.45;
}

.lang-toggle a:hover {
	opacity: 1;
}

.lang-toggle a.is-selected {
	border-color: var(--color-accent);
	background-color: #e8f1f6;
	opacity: 1;
}

.lede {
	margin-bottom: 1rem;
}

#map {
	width: 100%;
	height: 60vh;
	min-height: 320px;
	border-radius: 8px;
}

#category-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0.75rem 0;
}

#category-picker button {
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	background-color: #f6f7f9;
	color: var(--color-text);
	font: inherit;
	cursor: pointer;
}

#category-picker button:hover {
	border-color: var(--color-accent);
}

#category-picker button.is-selected {
	border-color: var(--color-accent);
	background-color: #e8f1f6;
	font-weight: 600;
}

section.category {
	margin-top: 2rem;
}

section.category h2 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

section.category h2 .icon {
	font-size: 1.3rem;
	line-height: 1;
}

section.category ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
}

section.category li {
	padding: 0.85rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	cursor: pointer;
}

section.category li:hover {
	border-color: var(--color-accent);
}

section.category li h3 {
	margin: 0 0 0.3rem;
	font-size: 1.25rem;
	line-height: 1.3;
}

.note {
	margin: 0 0 0.4rem;
}

.address {
	margin: 0 0 0.6rem;
	color: var(--color-muted);
	font-size: 0.95rem;
}

/* Roomy gaps because these are the links people tap on a phone. */
.links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.1rem;
	margin: 0;
}

.links a.detail {
	font-weight: 600;
}

#to-book {
	margin: 1.25rem 0;
	padding: 1rem 1.25rem;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: #fafbfc;
}

#to-book h2 {
	margin-bottom: 0.2rem;
	font-size: 1.3rem;
}

#to-book > p {
	margin-bottom: 0.9rem;
}

#to-book .tier {
	margin-bottom: 0.9rem;
	padding-left: 0.75rem;
	border-left: 3px solid;
}

#to-book .tier:last-child {
	margin-bottom: 0;
}

#to-book h3 {
	margin: 0 0 0.4rem;
	font-size: 1.1rem;
}

#to-book li {
	margin-bottom: 0.3rem;
}

#to-book li span {
	color: var(--color-muted);
	font-size: 0.95rem;
}

.badge {
	display: inline-flex;
	flex-direction: column;
	margin: 0 0 0.4rem;
	padding: 0.3rem 0.6rem;
	border-radius: 4px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
}

.badge span {
	font-weight: 400;
	opacity: 0.8;
}

.badge-required {
	background: #fee2e2;
	color: #991b1b;
}

.badge-advised {
	background: #ffedd5;
	color: #9a3412;
}

.badge-optional {
	background: #cffafe;
	color: #155e75;
}

.cdmx-pin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
	font-size: 18px;
	line-height: 1;
}

/* A ring is the only color on the map, so the places that need booking are the
   thing your eye lands on first. */
.cdmx-pin.book-required {
	border-color: #dc2626;
	box-shadow:
		0 0 0 2px #dc2626,
		0 1px 3px rgb(0 0 0 / 0.25);
}

.cdmx-pin.book-advised {
	border-color: #ea580c;
	box-shadow:
		0 0 0 2px #ea580c,
		0 1px 3px rgb(0 0 0 / 0.25);
}

.cdmx-popup {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.cdmx-popup span {
	color: var(--color-muted);
}

.cdmx-popup .links {
	gap: 0.6rem;
	margin-top: 0.25rem;
}

.detail-body p {
	color: var(--color-text);
}

/* Only the filter chips shrink on a phone. Eleven of them at full size push the
   map off the screen, and they are the one thing here nobody has to read. */
@media (max-width: 30rem) {
	#category-picker {
		gap: 6px;
	}

	#category-picker button {
		padding: 0.4rem 0.7rem;
		font-size: 0.95rem;
	}
}
