.com-divebuddyping-map {
	--dbp-ink: #142029;
	--dbp-muted: #60707b;
	color: var(--dbp-ink);
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 10px;
}

#system-message-container .alert-heading {
	display: none;
}

.com-divebuddyping-map .dbp-map-header {
	margin: 0 0 0.85rem;
}

.com-divebuddyping-map .dbp-map-title,
.com-divebuddyping-map h1 {
	min-width: 0;
	margin-block: 0;
	font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem);
	line-height: 1.15;
	letter-spacing: 0;
	color: #102033;
}

.com-divebuddyping-map .dbp-map-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.com-divebuddyping-map .dbp-map-country {
	display: inline-flex;
	align-items: center;
	min-height: 2.625rem;
	padding: 0.45rem 0.9rem;
	border: 1px solid #cbd8e6;
	border-radius: 999px;
	background: #f6fbff;
	color: #1e4d76;
	font-weight: 800;
	white-space: nowrap;
}

.com-divebuddyping-map .dbp-map-radius {
	display: flex;
	align-items: center;
	margin: 0;
}

.com-divebuddyping-map .dbp-map-radius select,
.com-divebuddyping-map .dbp-map-location-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	min-height: 2.625rem;
	border: 1px solid rgba(31, 143, 255, 0.45);
	border-radius: 999px;
	padding: 0.45rem 0.85rem;
	font: inherit;
	line-height: 1;
}

.com-divebuddyping-map .dbp-map-radius select {
	width: auto;
	min-width: 9rem;
	padding-right: 1.75rem;
	background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
	color: #0b4f8a;
	font-weight: 800;
	box-shadow: 0 4px 14px rgba(31, 143, 255, 0.10);
	cursor: pointer;
}

.com-divebuddyping-map .dbp-map-radius select:focus {
	border-color: #1f8fff;
	box-shadow: 0 0 0 3px rgba(31, 143, 255, 0.14), 0 4px 14px rgba(31, 143, 255, 0.10);
	outline: none;
}

.com-divebuddyping-map .dbp-map-location-button {
	justify-content: center;
	border: 0;
	background: linear-gradient(135deg, #1f8fff 0%, #27d8ff 100%);
	color: #fff;
	font-weight: 900;
	box-shadow: 0 8px 22px rgba(31, 143, 255, 0.25);
	cursor: pointer;
}

.com-divebuddyping-map .dbp-map-location-button:hover,
.com-divebuddyping-map .dbp-map-location-button:focus {
	filter: brightness(1.03);
	box-shadow: 0 10px 26px rgba(31, 143, 255, 0.32);
	outline: none;
}

.com-divebuddyping-map .dbp-map-shell {
	position: relative;
	display: block;
	min-width: 0;
}

.com-divebuddyping-map .dbp-map-canvas {
	width: 100%;
	min-height: 430px;
	height: clamp(430px, 62vh, 680px);
	border-radius: 18px;
	overflow: hidden;
	background: #dceef8;
}

.dbp-map-canvas {
	display: block;
	width: 100%;
	min-height: 430px;
	height: clamp(430px, 62vh, 680px);
	border-radius: 18px;
	overflow: hidden;
}

.com-divebuddyping-map .leaflet-container {
	width: 100%;
	height: 100%;
	min-height: 420px;
}

.dbp-map-canvas .leaflet-container,
#dbp-map .leaflet-container {
	width: 100%;
	height: 100%;
}

.com-divebuddyping-map .dbp-map-panel {
	height: auto;
	max-height: 330px;
	margin-top: 0.75rem;
	overflow: auto;
	border: 1px solid #d7e0e5;
	border-radius: 18px 18px 10px 10px;
	background: #fff;
	box-shadow: 0 -10px 28px rgba(16, 32, 51, 0.12);
	scroll-behavior: smooth;
}

.com-divebuddyping-map .dbp-map-panel.is-hidden {
	display: none;
}

.com-divebuddyping-map .dbp-map-panel-handle {
	display: block;
	width: 42px;
	height: 4px;
	margin: 10px auto 8px;
	border-radius: 999px;
	background: #c8d6df;
}

.com-divebuddyping-map .dbp-map-status {
	margin-top: 10px;
	padding: 0;
	color: var(--dbp-muted);
	font-size: 13px;
}

.dbp-map-status {
	margin-top: 10px;
	font-size: 13px;
	color: #5b6475;
}

.dbp-map-status[hidden] {
	display: none;
}

.com-divebuddyping-map .dbp-map-list {
	display: grid;
	gap: 9px;
	padding: 0 10px 12px;
}

.com-divebuddyping-map .dbp-location-card {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 11px;
	align-items: center;
	padding: 9px;
	border: 1px solid #e2e8ec;
	border-radius: 8px;
	background: #fff;
	scroll-margin: 12px;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
	cursor: pointer;
}

.com-divebuddyping-map .dbp-location-card--active {
	border-color: rgba(31, 143, 255, 0.78);
	background: #f2fbff;
	box-shadow: 0 0 0 3px rgba(31, 143, 255, 0.14);
}

.com-divebuddyping-map .dbp-location-image {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	background: #e8eef2;
}

.com-divebuddyping-map .dbp-location-main {
	min-width: 0;
}

.com-divebuddyping-map .dbp-location-title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.2;
	letter-spacing: 0;
}

.com-divebuddyping-map .dbp-location-meta {
	margin: 2px 0 7px;
	color: var(--dbp-muted);
	font-size: .9rem;
}

.com-divebuddyping-map .dbp-location-actions {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
}

.com-divebuddyping-map .dbp-location-actions a {
	border: 1px solid #c9d6dc;
	border-radius: 7px;
	background: #fff;
	padding: 6px 8px;
	font-weight: 700;
	text-decoration: none;
}

.com-divebuddyping-map .dbp-location-actions a:last-child {
	background: linear-gradient(135deg, #1f8fff 0%, #27d8ff 100%);
	border-color: #1f8fff;
	color: #fff;
}

.com-divebuddyping-map .leaflet-popup-content-wrapper {
	border-radius: 14px;
	box-shadow: 0 14px 36px rgba(16, 32, 51, 0.22);
}

.com-divebuddyping-map .leaflet-popup-content {
	margin: 0;
	min-width: 230px;
}

.dbp-map-popup {
	padding: 13px;
	color: #102033;
}

.dbp-map-popup h3 {
	margin: 0 0 7px;
	font-size: 1.05rem;
	line-height: 1.15;
	color: #102033;
}

.dbp-map-popup p {
	margin: 0 0 7px;
	color: #5b6475;
	font-size: 0.9rem;
	line-height: 1.35;
}

.dbp-map-popup-place {
	display: flex;
	align-items: center;
	gap: 7px;
}

.dbp-map-popup-flag {
	width: 24px;
	height: 16px;
	object-fit: cover;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(16, 32, 51, 0.08);
}

.dbp-map-popup-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 10px;
}

.dbp-map-popup-actions a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	border: 1px solid rgba(31, 143, 255, 0.4);
	border-radius: 999px;
	padding: 0 10px;
	background: #f6fbff;
	color: #0b4f8a;
	font-size: 0.85rem;
	font-weight: 800;
	text-decoration: none;
}

.dbp-map-popup-actions a:first-child {
	border-color: #1f8fff;
	background: linear-gradient(135deg, #1f8fff 0%, #27d8ff 100%);
	color: #fff;
}

.dbp-user-location-icon {
	background: transparent;
	border: 0;
}

.dbp-user-location-marker {
	position: relative;
	width: 52px;
	height: 72px;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 900;
}

.dbp-user-location-pin {
	position: absolute;
	inset: 0;
	display: block;
	width: 52px;
	height: 72px;
	object-fit: contain;
	filter: drop-shadow(0 8px 18px rgba(16, 32, 51, 0.28));
	z-index: 1;
	pointer-events: none;
}

.dbp-user-location-avatar-frame {
	position: absolute;
	left: 50%;
	top: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 37px;
	height: 37px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: #061433;
	overflow: hidden;
	z-index: 2;
}

.dbp-user-location-avatar-frame img,
.dbp-user-location-avatar {
	display: block;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	border-radius: 50%;
	object-fit: cover;
	object-position: center center;
}

img.dbp-user-location-avatar {
	object-fit: cover;
}

.dbp-user-location-avatar--fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 37px;
	text-align: center;
}

.dbp-user-location-marker--pin-missing .dbp-user-location-pin {
	display: none;
}

.dbp-user-location-marker--pin-missing::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 52px;
	height: 52px;
	border: 3px solid #ffffff;
	border-radius: 50%;
	transform: translateX(-50%);
	background: #17a35b;
	box-shadow: 0 8px 18px rgba(16, 32, 51, 0.28);
	z-index: 1;
}

.dbp-user-location-marker--pin-missing::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 43px;
	width: 0;
	height: 0;
	border-inline-start: 13px solid transparent;
	border-inline-end: 13px solid transparent;
	border-block-start: 29px solid #17a35b;
	transform: translateX(-50%);
	filter: drop-shadow(0 8px 10px rgba(16, 32, 51, 0.20));
	z-index: 1;
}

.com-divebuddyping-map .dbp-map-error {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: inherit;
	padding: 1rem;
	color: #102033;
	font-weight: 800;
	text-align: center;
}

.com-divebuddyping-map .visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (min-width: 900px) {
	.com-divebuddyping-map .dbp-map-canvas {
		min-height: 560px;
		height: 620px;
	}
}

@media (min-width: 1024px) {
	.com-divebuddyping-map .dbp-map-shell {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
		gap: 24px;
		align-items: stretch;
	}

	.com-divebuddyping-map .dbp-map-canvas,
	.dbp-map-canvas {
		height: 620px;
		min-height: 620px;
	}

	.com-divebuddyping-map .dbp-map-panel {
		max-height: 620px;
		margin-top: 0;
		border-radius: 14px;
		box-shadow: 0 14px 32px rgba(16, 32, 51, 0.10);
	}

	.com-divebuddyping-map .dbp-map-panel-handle {
		display: none;
	}

	.com-divebuddyping-map .dbp-map-list {
		padding-top: 10px;
	}
}

@media (max-width: 800px) {
	.com-divebuddyping-map {
		padding: 0 8px;
	}

	.com-divebuddyping-map .dbp-map-toolbar {
		gap: 0.5rem;
	}

	.com-divebuddyping-map .dbp-map-radius,
	.com-divebuddyping-map .dbp-map-radius select,
	.com-divebuddyping-map .dbp-map-location-button {
		flex: 1 1 9rem;
	}

	.com-divebuddyping-map .dbp-map-canvas {
		height: clamp(430px, 62vh, 680px);
		min-height: 430px;
		border-radius: 18px;
	}

	.com-divebuddyping-map .dbp-map-panel {
		position: relative;
		height: auto;
		max-height: 350px;
		margin-top: 0.75rem;
		overflow-y: auto;
	}

	.com-divebuddyping-map .dbp-map-list {
		padding-bottom: 16px;
	}
}
