.nu-berths {
	padding: clamp(1.25rem, 3vw, 2.25rem) 1rem clamp(2.5rem, 7vw, 5.625rem);
}

.nu-locked-section .nu-berths {
	padding: clamp(1.5rem, 4vw, 3rem) 0 0;
}

.nu-berths > * {
	margin-left: auto;
	margin-right: auto;
	max-width: 800px;
}

.nu-berths h2 {
	font-size: clamp(1.5rem, 3vw, 1.7rem);
	margin-top: 0;
}

.nu-berths__intro {
	font-size: 1.125rem;
}

.nu-berths__list-intro {
	font-size: 1.05rem;
	margin-top: 2rem;
}

.nu-berths__rental-intro {
	margin-top: 2.5rem;
}

.nu-berths table {
	background: #fff;
	border-collapse: collapse;
	width: 100%;
}

.nu-berths td,
.nu-berths th {
	border: 1px solid rgba(0, 39, 56, 0.2);
	padding: 0.75rem;
	text-align: left;
}

.nu-berth-map {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: center;
	margin: 2rem auto;
	max-width: 800px;
}

.nu-berth-map__dock {
	display: grid;
	flex: 1 1 200px;
	gap: 10px;
	max-width: 100%;
}

.nu-berth-map__row {
	display: flex;
	gap: 10px;
	justify-content: space-between;
	overflow: visible;
}

.nu-berth-map__walkway {
	background: #8e8e8e;
	border-radius: 6px;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 1px;
	margin: 10px 0;
	padding: 16px 0;
	text-align: center;
}

.flytbrygga .nu-berth-map__walkway {
	background: #5d6d7e;
}

.nu-berth {
	align-items: center;
	aspect-ratio: 1;
	border: 1px solid rgba(0, 39, 56, 0.28);
	border-radius: 6px;
	color: #000;
	display: flex;
	flex: 1;
	font-size: 16px;
	font-weight: 700;
	justify-content: center;
	position: relative;
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.18s ease;
}

.nu-berth::after {
	background: rgba(0, 39, 56, 0.92);
	border-radius: 4px;
	bottom: calc(100% + 0.4rem);
	color: #fff;
	content: attr(data-owner);
	font-size: 0.75rem;
	font-weight: 600;
	left: 50%;
	line-height: 1.2;
	opacity: 0;
	padding: 0.35rem 0.5rem;
	pointer-events: none;
	position: absolute;
	text-align: center;
	transform: translateX(-50%) translateY(0.25rem);
	transition: opacity 0.18s ease, transform 0.18s ease;
	white-space: nowrap;
	z-index: 3;
}

.nu-berth:hover,
.nu-berth:focus {
	outline: 3px solid var(--wp--preset--color--fjord, #002738);
	outline-offset: 2px;
	transform: scale(1.05);
	z-index: 2;
}

.nu-berth:hover::after,
.nu-berth:focus::after {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.nu-berths--public .nu-berth {
	cursor: default;
	text-decoration: none;
}

.nu-berths--public .nu-berth::after {
	transform: translateX(-50%);
	transition: opacity 0.16s ease;
	z-index: 20;
}

.nu-berths--public .nu-berth:hover,
.nu-berths--public .nu-berth:focus {
	outline: 0;
	transform: none;
	z-index: 10;
}

.nu-berths--public .nu-berth:hover::after,
.nu-berths--public .nu-berth:focus::after {
	transform: translateX(-50%);
}

.nu-berth.is-occupied,
.nu-berth--upptagen {
	background: #ddd;
	color: gray;
}

.nu-berth.is-available,
.nu-berth--ledig {
	background: #006400;
	color: #fff;
}

.nu-berth.is-rented,
.nu-berth--hyrd {
	background: #f5e9b0;
	color: #d4a700;
}

.nu-berth-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 1rem auto 2rem;
	max-width: 800px;
	padding: 0;
}

.nu-berth-legend li {
	align-items: center;
	display: inline-flex;
	gap: 0.45rem;
}

.nu-berth-legend span {
	border: 1px solid rgba(0, 39, 56, 0.28);
	display: inline-block;
	height: 1rem;
	width: 1rem;
}

.nu-member-list {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
	margin: 2rem auto 0;
	max-width: 800px;
}

.nu-member-export-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0.5rem auto 0;
	max-width: 800px;
	text-align: left;
}

.nu-member-export {
	background: var(--wp--preset--color--fjord, #002738);
	border: 0;
	border-radius: 3px;
	color: #fff;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-weight: 700;
	justify-content: center;
	margin: 0;
	max-width: max-content;
	padding: 0.75rem 1rem;
}

.nu-berths > .nu-member-export {
	margin-left: auto;
	margin-right: auto;
	transform: translateX(calc(50% - 400px));
}

.nu-member-export:hover,
.nu-member-export:focus-visible {
	background: #001d2a;
}

@media (max-width: 832px) {
	.nu-berths > .nu-member-export {
		transform: translateX(calc(50% - 50vw + 1rem));
	}
}

.nu-member-card {
	background: transparent;
	border: 0;
	border-left: 8px solid transparent;
	border-radius: 6px;
	padding: 1rem 1rem 1.35rem;
	transition: background-color 0.3s ease, border-left-color 0.3s ease;
}

.nu-member-card.scroll-aktiv {
	background: rgba(255, 255, 255, 0.6);
}

.nu-member-card.nu-scroll-reveal {
	transition:
		opacity 0.6s ease,
		transform 0.6s ease,
		background-color 0.3s ease,
		border-left-color 0.3s ease;
}

.nu-member-card:target {
	background: #fff;
	outline: 3px solid var(--wp--preset--color--fjord, #002738);
	outline-offset: 2px;
}

.nu-member-card.is-highlighted {
	background: #fff;
}

.nu-member-card--ledig {
	border-left-color: #006400;
}

.nu-member-card--upptagen {
	border-left-color: #888;
}

.nu-member-card--hyrd {
	border-left-color: #f5e9b0;
}

.nu-member-card p {
	margin: 0;
}

.nu-member-card a {
	color: #000;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.14em;
}

.nu-berths a.nu-berth.nu-berth--ledig,
.nu-berths .nu-berth.nu-berth--ledig,
.nu-berths .nu-berth[data-status="Ledig"],
.nu-berth-legend .nu-berth--ledig {
	background-color: #006400 !important;
	color: #fff !important;
}

.nu-berths a.nu-berth.nu-berth--upptagen,
.nu-berths .nu-berth.nu-berth--upptagen,
.nu-berths .nu-berth[data-status="Upptagen"],
.nu-berth-legend .nu-berth--upptagen {
	background-color: #ddd !important;
	color: gray !important;
}

.nu-berths a.nu-berth.nu-berth--hyrd,
.nu-berths .nu-berth.nu-berth--hyrd,
.nu-berths .nu-berth[data-status="Hyrd"],
.nu-berth-legend .nu-berth--hyrd {
	background-color: #f5e9b0 !important;
	color: #d4a700 !important;
}

.nu-berths .nu-member-card.nu-member-card--ledig {
	border-left-color: #006400 !important;
}

.nu-berths .nu-member-card.nu-member-card--upptagen {
	border-left-color: #888 !important;
}

.nu-berths .nu-member-card.nu-member-card--hyrd {
	border-left-color: #f5e9b0 !important;
}

.nu-berths .nu-member-list .nu-member-card,
.nu-berths [id^="plats"].nu-member-card {
	padding: 1rem 1rem 1.5rem !important;
}

@media (max-width: 768px) {
	.nu-berth-map {
		flex-direction: column;
	}

	.nu-berth-map__dock {
		width: 100%;
	}

	.nu-berth-map__row {
		overflow-x: auto;
	}

	.nu-berth {
		flex: 0 0 2.5rem;
		font-size: 0.85rem;
	}
}
