@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Inter", sans-serif;
	padding-right: 0 !important;
}

.map-section {
	background-color: #084079;
	min-height: 100vh;
	position: relative;
}

.map-container-menu.container.innerpage {
	padding-left: 60px;
	padding-right: 60px;
	padding-top: 100px;
	padding-bottom: 100px;
}

.map-container-menu.container {
	position: relative;
	max-width: 1144px;
	margin-inline: auto;
}

.category-buttons {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	margin-bottom: 32px;
}

.category-btn {
	appearance: none;
	border: none;
	cursor: pointer;
	/* padding: 18px 20px; */
	min-width: 157px;
	min-height: 48px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 14px;
	color: #0a0a0a;
	max-width: 205px;
	max-height: 54.75px;
	font-family: "Inter", sans-serif;
	font-size: clamp(12px, 1.1vw, 15px);
	font-weight: 700;
	line-height: clamp(1.2, 1.25, 1.3);
	text-align: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.category-btn:hover {
	transform: translateY(-3px);
	filter: brightness(1.05);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.category-btn:active {
	transform: translateY(-1px) scale(0.98);
}

.category-btn.is-active {
	border: 2px solid #084079;
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55) inset, 0 8px 16px rgba(0, 0, 0, 0.3);
}

#category-map.is-cogsci svg circle {
	transform: scale(0.55);
	transform-box: fill-box;
	transform-origin: center;
}

.sub-image-close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 38px;
	height: 38px;
	display: none;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #222222;
	color: #eeeeee;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.sub-image-close:hover {
	background-color: rgb(94, 92, 92);
	transform: rotate(90deg);
}

.map-stage.sub-open .sub-image-close {
	display: flex;
}

.category-buttons.has-active .category-btn:not(.is-active) {
	opacity: 0.5;
}

.category-btn--physical-sciences {
	background-color: rgb(255, 165, 218);
}

.category-btn--computer-science {
	background-color: rgb(230, 200, 189);
}

.category-btn--mathematics {
	background-color: rgb(217, 217, 217);
}

.category-btn--communication {
	background-color: rgb(187, 235, 127);
}

.category-btn--arts {
	background-color: rgb(239, 225, 36);
}

.category-btn--engineering {
	background-color: rgb(235, 142, 107);
}

.category-btn--architecture {
	background-color: rgb(253, 117, 117);
}

.category-btn--social-science {
	background-color: rgb(5, 182, 226);
}

.category-btn--humanities {
	background-color: rgb(2, 219, 114);
}

.category-btn--life-sciences {
	background-color: rgb(215, 173, 254);
}

.category-btn--business {
	background-color: rgb(50, 233, 205);
}

.category-btn--cognitive-science {
	background: linear-gradient(135deg, rgb(109, 72, 229) 0%, rgb(78, 200, 240) 100%);
	color: #0a0a0a;
}

.main-image {
	width: 100%;
	position: relative;
	background-color: #fff;
	padding: 20px;
	border-radius: 16px;
}

.main-image img,
.main-image svg {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.map-stage {
	position: relative;
}

.map-stage .main-image#interactive-map {
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.map-stage .main-image#interactive-map.is-hidden {
	opacity: 0.9;
	/* visibility: hidden; */
	pointer-events: none;
}

.sub-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: none;
	z-index: 2;
	background: #ffffffe0;
}

/* .sub-image svg {
	display: block;
	width: 80%;
	height: 600px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
} */

.sub-image svg {
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: auto;
	height: auto;
}

.main-image svg,
.sub-image svg {
	overflow: visible;
}

#category-map[data-active-category="physical-sciences"] svg {
	width: 65%;
	height: auto;
}

#category-map[data-active-category="computer-science"] svg {
	width: 70%;
	height: 75%;
}

#category-map[data-active-category="mathematics"] svg {
	width: 55%;
	height: auto;
}

#category-map[data-active-category="cognitive-science"] svg {
	width: 20%;
	height: auto;
}

#category-map[data-active-category="communication"] svg {
	width: 60%;
	height: auto;
}

#category-map[data-active-category="arts"] svg {
	width: 85%;
	height: auto;
}

#category-map[data-active-category="engineering"] svg {
	width: 75%;
	height: auto;
}

#category-map[data-active-category="architecture"] svg {
	width: 40%;
	height: auto;
}

#category-map[data-active-category="social-science"] svg {
	width: 85%;
	height: auto;
}

#category-map[data-active-category="humanities"] svg {
	width: 70%;
	height: auto;
}

#category-map[data-active-category="life-sciences"] svg {
	width: 70%;
	height: auto;
}

#category-map[data-active-category="business"] svg {
	width: 75%;
	height: auto;
}

.sub-image.is-visible {
	display: block;
	animation: flyInFromBubble .95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes flyInFromBubble {
	from {
		opacity: 0;
		transform: scale(0.1);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.main-image .bl-node,
.main-image .bl-filter-button,
.main-image .bl-node-label {
	cursor: pointer !important;
}

.sub-image svg path,
.sub-image svg image {
	cursor: pointer !important;
}

.main-image .bl-node:focus,
.main-image .bl-filter-button:focus,
.category-btn:focus,
#category-map svg *:focus {
	outline: none;
}

/* Keep a visible ring, but only for real keyboard navigation
   (Tab key), not for mouse clicks */
.main-image .bl-node:focus-visible,
.main-image .bl-filter-button:focus-visible,
.category-btn:focus-visible,
#category-map svg *:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

/* ---- Sub-map loading overlay ---- */
.map-loader {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 4;
	background: #ffffffe0;
	border-radius: 16px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.map-loader.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}

/* HTML: <div class="loader"></div> */
.loader {
	--s: 64px;
	width: var(--s);
	aspect-ratio: 2;
	--_g: #084079 90%, #0000;
	background:
		radial-gradient(farthest-side, var(--_g)) 0 50%/25% 50%,
		radial-gradient(farthest-side at bottom, var(--_g)) 50% calc(50% - var(--s)/16)/25% 25%,
		radial-gradient(farthest-side at top, var(--_g)) 50% calc(50% + var(--s)/16)/25% 25%,
		radial-gradient(farthest-side at bottom, var(--_g)) 100% calc(50% - var(--s)/16)/25% 25%,
		radial-gradient(farthest-side at top, var(--_g)) 100% calc(50% + var(--s)/16)/25% 25%;
	background-repeat: no-repeat;
	animation: l14 1s infinite;
}

@keyframes l14 {
	25% {
		background-position: 0 50%, 50% 0, 50% 100%, 100% 0, 100% 100%
	}

	50% {
		background-position: 100% 50%, 0 0, 0 100%, 50% 0, 50% 100%
	}

	75%,
	100% {
		background-position: 100% 50%, 0 calc(50% - var(--s)/16), 0 calc(50% + var(--s)/16), 50% calc(50% - var(--s)/16), 50% calc(50% + var(--s)/16)
	}
}

.main-image .bl-filter-button,
.main-image .bl-node,
.main-image .bl-node-label {
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.25s ease, filter 0.3s ease;
}

.main-image .bl-node,
.main-image .bl-filter-button {
	transform-box: fill-box;
	transform-origin: center;
}

.main-image .bl-filter-button,
.main-image .bl-node,
.main-image .bl-node-label {
	cursor: pointer;
}



.main-image .bl-label,
.sub-image .bl-label {
	pointer-events: none;
	transform-box: fill-box;
	transform-origin: center;
	transition: transform 0.25s ease;
}

.main-image .bl-node,
.main-image .bl-label,
.sub-image .bl-node,
.sub-image .bl-label {
	transform-box: fill-box;
	transform-origin: center;
	transition: transform 0.25s ease, filter 0.25s ease;
}

.main-image .bl-label,
.sub-image .bl-label {
	pointer-events: none;
	/* hover is always decided by the bubble */
}

.main-image .bl-node:hover+.bl-label,
.main-image .bl-node.is-active+.bl-label,
.sub-image .bl-node:hover+.bl-label,
.sub-image .bl-node.is-active+.bl-label {
	transform: scale(1.4);
}

.main-image .bl-node:hover,
.main-image .bl-node.is-active,
.sub-image .bl-node:hover,
.sub-image .bl-node.is-active {
	transform: scale(1.4);
	filter: brightness(1.08) saturate(1.1);
}

.main-image .bl-node:hover+.bl-label,
.main-image .bl-node.is-active+.bl-label,
.sub-image .bl-node:hover+.bl-label,
.sub-image .bl-node.is-active+.bl-label {
	transform: scale(1.4);
}

.main-image .bl-node:hover,
.main-image .bl-node.is-active,
.sub-image .bl-node:hover,
.sub-image .bl-node.is-active {
	transform: scale(1.4);
	filter: brightness(1.08) saturate(1.1);
}

.main-image .bl-node-label:hover,
.main-image .bl-node.is-active .bl-node-label,
.sub-image .bl-node.is-active .bl-node-label {
	opacity: 1 !important;
}

.main-image .bl-node.is-active,
.sub-image .bl-node.is-active {
	filter: brightness(1) saturate(6.3);
}

.main-image .bl-node[fill="#d9d9d9"].is-active,
.sub-image .bl-node[fill="#d9d9d9"].is-active {
	filter: brightness(0.65) saturate(1);
}

.main-image .bl-node[fill="#efe124"].is-active,
.sub-image .bl-node[fill="#efe124"].is-active {
	filter: brightness(0.85) saturate(2) hue-rotate(-40deg);
}

.main-image .bl-node[fill="#fd7575"].is-active,
.sub-image .bl-node[fill="#fd7575"].is-active {
	filter: brightness(1.05) saturate(3.2);
}

.map-modal {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	z-index: 9999;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	font-family: "Inter", sans-serif;
}

body .map-modal>* {
	font-family: "Inter", sans-serif !important;
}

.map-modal.is-anchored {
	align-items: flex-start;
	justify-content: flex-start;
}

.map-modal.is-anchored .map-modal__content {
	position: absolute;
	transform: scale(0.97);
}

.map-modal.is-anchored.is-open .map-modal__content {
	transform: scale(1);
}

.map-modal.is-open {
	visibility: visible;
	opacity: 1;
}

.map-modal__overlay {
	position: absolute;
	inset: 0;
	background: #f4f4f400;
	cursor: pointer;
	border-radius: 16px;
}

.map-modal__content {
	position: relative;
	z-index: 1;
	width: min(620px, calc(100% - 20px));
	max-height: calc(100vh - 20px);
	overflow-y: auto;
	padding: 40px;
	background: #ffffff;
	border-radius: 40px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
	transform: translateY(20px) scale(0.97);
	transition: transform 0.25s ease;
	font-family: "Inter", sans-serif;
	border: 2px solid #3a84d0;
}

.map-modal.is-open .map-modal__content {
	transform: translateY(0) scale(1);
}

.map-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	z-index: 999;
	border-radius: 50%;
	background: #eeeeee;
	color: #222222;
	font-size: clamp(16px, 2vw, 20px);
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.map-modal__close:hover {
	background-color: #dddddd;
	transform: rotate(90deg);
}


.map-modal__category {
	margin-bottom: 15px;
	font-size: clamp(18px, 2.5vw, 26px);
	line-height: clamp(1.15, 1.25, 1.35);
	font-weight: 700;
	color: #111111;
	text-align: center;
	text-transform: uppercase;
}

.map-modal__content h2 {
	margin-bottom: 15px;
	font-size: clamp(18px, 3.5vw, 26px);
	line-height: clamp(1.15, 1.25, 1.35);
	font-weight: 700;
	color: #111111;
	text-align: left;
}



/* Clear floats from side-aligned images so following content
   doesn't wrap unexpectedly at the bottom of the modal body. */
.map-modal__body::after {
	content: "";
	display: table;
	clear: both;
}


.map-modal__scroll {
	position: relative;
	max-height: min(500px, 60vh);
	overflow-y: auto;
}

/* Only add the gap between text and scrollbar when a scrollbar exists */
.map-modal__scroll.has-scroll {
	padding-right: 20px;
}

.map-modal__scroll::-webkit-scrollbar {
	width: 6px;
}

.map-modal__scroll {
	scrollbar-width: thin;
	/* scrollbar-color: #084079 transparent; */
}

/* ---- Headings ---- */

.map-modal__body h1,
.map-modal__description h1,
.map-modal__body h2,
.map-modal__description h2,
.map-modal__body h3,
.map-modal__description h3,
.map-modal__body h4,
.map-modal__description h4,
.map-modal__body h5,
.map-modal__description h5,
.map-modal__body h6,
.map-modal__description h6 {
	font-family: "Inter", sans-serif;
	font-weight: 700;
	color: #0a0a0a;
	margin-top: 0.8em;
	margin-bottom: 0.35em;
}

.map-modal__body> :first-child,
.map-modal__description> :first-child {
	margin-top: 0;
}

.map-modal__body> :last-child,
.map-modal__description> :last-child {
	margin-bottom: 0;
}

.map-modal__body h1,
.map-modal__description h1 {
	font-size: clamp(24px, 3.2vw, 32px);
	line-height: clamp(1.15, 1.25, 1.35);
}

.map-modal__body h2,
.map-modal__description h2 {
	font-size: clamp(21px, 2.8vw, 27px);
	line-height: clamp(1.2, 1.3, 1.4);
}

.map-modal__body h3,
.map-modal__description h3 {
	font-size: clamp(18px, 2.4vw, 22px);
	line-height: clamp(1.25, 1.32, 1.45);
}

.map-modal__body h4,
.map-modal__description h4 {
	font-size: clamp(16px, 2vw, 19px);
	line-height: clamp(1.3, 1.38, 1.5);
}

.map-modal__body h5,
.map-modal__description h5 {
	font-size: clamp(14.5px, 1.8vw, 17px);
	line-height: clamp(1.35, 1.4, 1.55);
}

.map-modal__body h6,
.map-modal__description h6 {
	font-size: clamp(13.5px, 1.6vw, 15.5px);
	line-height: clamp(1.4, 1.45, 1.6);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #084079;
}

/* ---- Paragraphs & text formatting ---- */

.map-modal__body p,
.map-modal__description p {
	margin-bottom: 0.6em;
	font-size: clamp(14px, 1.8vw, 17px);
	line-height: clamp(1.5, 1.6, 1.75);
	color: #444444;
}

.map-modal__body p:last-child,
.map-modal__description p:last-child {
	margin-bottom: 0;
}

.map-modal__body strong,
.map-modal__body b,
.map-modal__description strong,
.map-modal__description b {
	font-weight: 700;
}

.map-modal__body em,
.map-modal__body i,
.map-modal__description em,
.map-modal__description i {
	font-style: italic;
}

.map-modal__body u,
.map-modal__description u {
	text-decoration: underline;
}

.map-modal__body s,
.map-modal__body del,
.map-modal__body strike,
.map-modal__description s,
.map-modal__description del,
.map-modal__description strike {
	text-decoration: line-through;
}

.map-modal__body sub,
.map-modal__description sub {
	vertical-align: sub;
	font-size: smaller;
}

.map-modal__body sup,
.map-modal__description sup {
	vertical-align: super;
	font-size: smaller;
}

.map-modal__body mark,
.map-modal__description mark {
	background-color: #fff2a8;
	color: inherit;
	padding: 0 2px;
	border-radius: 2px;
}

.map-modal__body .text-tiny,
.map-modal__description .text-tiny {
	font-size: clamp(10px, 1.1vw, 11px);
}

.map-modal__body .text-small,
.map-modal__description .text-small {
	font-size: clamp(12px, 1.4vw, 13px);
}

.map-modal__body .text-big,
.map-modal__description .text-big {
	font-size: clamp(17px, 2.2vw, 20px);
}

.map-modal__body .text-huge,
.map-modal__description .text-huge {
	font-size: clamp(20px, 2.8vw, 25px);
}

/* ---- Links ---- */

.map-modal__body a,
.map-modal__description a {
	color: #084079;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}

.map-modal__body a:hover,
.map-modal__description a:hover {
	color: #0060c9;
}

/* ---- Lists ---- */

.map-modal__body ul,
.map-modal__body ol,
.map-modal__description ul,
.map-modal__description ol {
	margin: 0 0 0.6em 0;
	padding-left: 2.4em;
}

.map-modal__body ul ul,
.map-modal__body ul ol,
.map-modal__body ol ul,
.map-modal__body ol ol,
.map-modal__description ul ul,
.map-modal__description ul ol,
.map-modal__description ol ul,
.map-modal__description ol ol {
	margin: 0.25em 0 0.25em 0;
}

.map-modal__body li,
.map-modal__description li {
	margin-bottom: 0.25em;
	font-size: clamp(13px, 1.6vw, 15px);
	line-height: clamp(1.5, 1.6, 1.75);
}

.map-modal__body li:last-child,
.map-modal__description li:last-child {
	margin-bottom: 0;
}

.map-modal__body ul,
.map-modal__description ul {
	list-style-type: disc;
	list-style-position: outside;
}

.map-modal__body ul ul,
.map-modal__description ul ul {
	list-style-type: circle;
}

.map-modal__body ul ul ul,
.map-modal__description ul ul ul {
	list-style-type: square;
}

.map-modal__body ol,
.map-modal__description ol {
	list-style-type: decimal;
	list-style-position: outside;
}

.map-modal__body .todo-list,
.map-modal__description .todo-list {
	list-style: none;
	padding-left: 0.2em;
}

.map-modal__body .todo-list li,
.map-modal__description .todo-list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.map-modal__body .todo-list__label>input[type="checkbox"],
.map-modal__description .todo-list__label>input[type="checkbox"] {
	margin-top: 0.3em;
	accent-color: #084079;
}

/* ---- Blockquote ---- */

.map-modal__body blockquote,
.map-modal__description blockquote {
	margin: 0.7em 0;
	padding: 0.6em 1.2em;
	border-left: 4px solid #084079;
	background: #f4f7fb;
	color: #333333;
	font-style: italic;
	border-radius: 0 8px 8px 0;
}

.map-modal__body blockquote p:last-child,
.map-modal__description blockquote p:last-child {
	margin-bottom: 0;
}

/* ---- Horizontal rule ---- */

.map-modal__body hr,
.map-modal__description hr {
	border: none;
	border-top: 1px solid #e0e0e0;
	margin: 1em 0;
}

/* ---- Tables ---- */

.map-modal__body .table,
.map-modal__description .table {
	margin: 0.7em 0;
	overflow-x: auto;
}

.map-modal__body table,
.map-modal__description table {
	width: 100%;
	border-collapse: collapse;
	font-size: clamp(12.5px, 1.5vw, 14px);
	line-height: clamp(1.4, 1.5, 1.65);
}

.map-modal__body th,
.map-modal__body td,
.map-modal__description th,
.map-modal__description td {
	border: 1px solid #dddddd;
	padding: 8px 12px;
	text-align: left;
	vertical-align: top;
}

.map-modal__body th,
.map-modal__description th {
	background: #084079;
	color: #ffffff;
	font-weight: 700;
}

.map-modal__body tr:nth-child(even) td,
.map-modal__description tr:nth-child(even) td {
	background: #f7f9fc;
}

/* ---- Images & media ---- */

.map-modal__body img,
.map-modal__description img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

.map-modal__body figure,
.map-modal__description figure {
	margin: 0.7em 0;
}

.map-modal__body figure.image,
.map-modal__description figure.image {
	text-align: center;
}

.map-modal__body figure.image img,
.map-modal__description figure.image img {
	margin: 0 auto;
}

.map-modal__body figure.image.image-style-side,
.map-modal__description figure.image.image-style-side {
	float: right;
	max-width: 45%;
	margin: 0.2em 0 0.6em 1.2em;
}

.map-modal__body figure.image.image-style-align-left,
.map-modal__description figure.image.image-style-align-left {
	float: left;
	margin: 0.2em 1.2em 0.6em 0;
}

.map-modal__body figure.image.image-style-align-right,
.map-modal__description figure.image.image-style-align-right {
	float: right;
	margin: 0.2em 0 0.6em 1.2em;
}

.map-modal__body figcaption,
.map-modal__description figcaption {
	margin-top: 0.3em;
	font-size: clamp(11.5px, 1.3vw, 13px);
	line-height: clamp(1.4, 1.45, 1.6);
	color: #777777;
	text-align: center;
}

.map-modal__body .media,
.map-modal__description .media {
	margin: 0.7em 0;
}

.map-modal__body .media iframe,
.map-modal__body .media video,
.map-modal__description .media iframe,
.map-modal__description .media video,
.map-modal__body iframe,
.map-modal__description iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border-radius: 8px;
	border: 0;
}

/* ---- Inline code & code blocks ---- */

.map-modal__body code,
.map-modal__description code {
	font-family: 'Courier New', Courier, monospace;
	background: #f1f1f1;
	padding: 0.15em 0.4em;
	border-radius: 4px;
	font-size: 0.9em;
	color: #c7254e;
}

.map-modal__body pre,
.map-modal__description pre {
	background: #1e1e1e;
	color: #f5f5f5;
	padding: 1em 1.2em;
	border-radius: 8px;
	overflow-x: auto;
	margin: 0.7em 0;
	font-size: clamp(12px, 1.4vw, 13.5px);
	line-height: clamp(1.5, 1.55, 1.7);
}

.map-modal__body pre code,
.map-modal__description pre code {
	background: none;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

.map-modal__body::after,
.map-modal__description::after {
	content: "";
	display: table;
	clear: both;
}

.map-modal__scroll::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 56px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 85%);
	pointer-events: none;
	opacity: 0;
	/* off by default now */
	transition: opacity 0.25s ease;
}

.map-modal__scroll.has-overflow::after {
	opacity: 1;
	/* only show when content actually overflows */
}

.map-modal__scroll.is-expanded::after {
	opacity: 0;
}

.map-modal__scroll.is-expanded {
	max-height: min(500px, 60vh);
	overflow-y: auto;
}

.map-modal__scroll.is-expanded::after {
	opacity: 0;
}

/* Custom thin scrollbar for the expanded modal body — Chrome/Edge/Safari */
.map-modal__scroll.is-expanded::-webkit-scrollbar {
	width: 6px;
}

.map-modal__scroll.is-expanded::-webkit-scrollbar-track {
	background: transparent;
}

.map-modal__scroll.is-expanded::-webkit-scrollbar-thumb {
	background-color: #084079;
	border-radius: 999px;
}

.map-modal__scroll.is-expanded::-webkit-scrollbar-thumb:active {
	background-color: #3a84d0;
	/* lighter blue while pressed */
}

/* Firefox */
.map-modal__scroll.is-expanded {
	scrollbar-width: thin;
	scrollbar-color: #084079 transparent;
}

.map-modal__readmore {
	display: none;
	/* toggled on via JS only when content actually overflows */
	margin-top: 14px;
	appearance: none;
	border: none;
	background: none;
	padding: 0 0 3px;
	color: #0060c9;
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: clamp(13px, 1.6vw, 15px);
	cursor: pointer;
	position: relative;
	transition: color 0.15s ease;
}

/* "block + width: fit-content + margin-left: auto" pins the
   button to the bottom-right corner of .map-modal__content
   without needing a wrapping flex container. */
.map-modal__readmore.is-visible {
	display: block;
	width: fit-content;
	margin-left: auto;
}

.map-modal__readmore::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0%;
	height: 2px;
	background-color: currentColor;
	transition: width 0.3s ease;
}

.map-modal__readmore:hover {
	color: #000000;
}

.map-modal__readmore:hover::after {
	width: 100%;
}


@media (max-width: 1100px) {
	.category-buttons {
		grid-template-columns: repeat(4, 1fr);
	}

	.map-container-menu.container.innerpage {
		padding-top: 80px;
		padding-bottom: 80px;
	}
}

@media (max-width: 720px) {
	.category-buttons {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}

	.category-btn {
		padding: 14px 14px;
		font-size: 13px;
		border-radius: 12px;
	}

	.map-container-menu.container.innerpage {
		padding-top: 50px;
		padding-bottom: 50px;
	}
}

@media (max-width: 480px) {
	.category-buttons {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.map-container-menu.container.innerpage {
		padding-left: 20px;
		padding-right: 20px;
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.map-modal__content {
		width: calc(100% - 30px);
		max-height: calc(100vh - 30px);
		padding: 30px 22px;
	}
}