.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-province-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 0.75rem;
	margin: 0 0 0.85rem;
	border: 1px solid #cfe1ef;
	border-radius: 12px;
	padding: 0.65rem 0.75rem;
	background: #f4faff;
	color: #31546f;
	font-size: 0.92rem;
	font-weight: 780;
	line-height: 1.35;
}

.com-divebuddyping-map .dbp-map-province-filter span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.com-divebuddyping-map .dbp-map-province-filter a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.15rem;
	border: 1px solid rgba(31, 143, 255, 0.45);
	border-radius: 999px;
	padding: 0.35rem 0.75rem;
	background: #fff;
	color: #0b4f8a;
	font-weight: 900;
	line-height: 1;
	text-decoration: none;
}

.com-divebuddyping-map .dbp-map-province-filter a:hover,
.com-divebuddyping-map .dbp-map-province-filter a:focus {
	border-color: #1f8fff;
	box-shadow: 0 0 0 3px rgba(31, 143, 255, 0.14);
	outline: none;
}

.com-divebuddyping-map .dbp-map-filter-status {
	display: grid;
	gap: 0.45rem;
	align-items: start;
	margin: 0 0 0.85rem;
	border: 1px solid #cfe1ef;
	border-radius: 12px;
	padding: 0.65rem 0.75rem;
	background: #f4faff;
	color: #31546f;
	font-size: 0.92rem;
	font-weight: 760;
	line-height: 1.35;
}

.com-divebuddyping-map .dbp-map-filter-message,
.com-divebuddyping-map .dbp-map-filter-hint {
	display: block;
	overflow-wrap: anywhere;
}

.com-divebuddyping-map .dbp-map-filter-hint[hidden] {
	display: none;
}

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

.com-divebuddyping-map .dbp-map-show-all-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.25rem;
	border: 1px solid rgba(31, 143, 255, 0.45);
	border-radius: 999px;
	padding: 0.4rem 0.8rem;
	background: #fff;
	color: #0b4f8a;
	font: inherit;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	justify-self: start;
}

.com-divebuddyping-map .dbp-map-show-all-button:hover,
.com-divebuddyping-map .dbp-map-show-all-button:focus {
	border-color: #1f8fff;
	box-shadow: 0 0 0 3px rgba(31, 143, 255, 0.14);
	outline: none;
}

.com-divebuddyping-map .dbp-map-show-all-button[hidden] {
	display: 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 {
	box-sizing: border-box;
	margin: 0 0 0.85rem;
	border: 1px solid #cfe1ef;
	border-radius: 12px;
	padding: 0.65rem 0.75rem;
	background: #f4faff;
	color: #31546f;
	font-size: 0.92rem;
	font-weight: 760;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.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);
	outline: 2px solid #0b4f8a;
	outline-offset: 1px;
}

.com-divebuddyping-map .dbp-venue-marker {
	transition: filter 0.16s ease;
}

.com-divebuddyping-map .dbp-venue-marker--selected {
	filter:
		drop-shadow(0 0 2px #fff)
		drop-shadow(0 0 7px #ffb000)
		drop-shadow(0 5px 5px rgba(16, 32, 51, 0.42));
}

.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;
	max-width: min(280px, calc(100vw - 56px));
}

.com-divebuddyping-map .leaflet-control-layers {
	box-sizing: border-box;
	max-width: min(220px, calc(100vw - 80px));
}

.com-divebuddyping-map .leaflet-control-layers-expanded {
	padding: 8px 10px;
	font-size: 14px;
	line-height: 1.3;
	overflow-x: hidden;
}

.com-divebuddyping-map .leaflet-control-layers-list {
	margin: 0;
}

.com-divebuddyping-map .leaflet-control-layers label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 2px 0;
	font-size: inherit;
	line-height: inherit;
	white-space: nowrap;
}

.com-divebuddyping-map .leaflet-control-layers-selector {
	flex: 0 0 auto;
	width: auto;
	height: auto;
	margin: 0;
}

.com-divebuddyping-map .leaflet-control-layers-separator {
	margin: 5px 0;
}

@media (max-width: 480px) {
	.com-divebuddyping-map .leaflet-control-layers-expanded {
		max-width: calc(100vw - 64px);
		padding: 8px;
		font-size: 13px;
	}

	.com-divebuddyping-map .leaflet-control-layers label {
		white-space: normal;
	}
}

.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: 36px;
	height: 50px;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 900;
}

.dbp-user-location-pin {
	position: absolute;
	inset: 0;
	display: block;
	width: 36px;
	height: 50px;
	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: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	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: 10px;
	font-weight: 800;
	line-height: 26px;
	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: 36px;
	height: 36px;
	border: 2px 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: 30px;
	width: 0;
	height: 0;
	border-inline-start: 9px solid transparent;
	border-inline-end: 9px solid transparent;
	border-block-start: 20px 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-show-all-button {
		width: 100%;
	}

	.com-divebuddyping-map .dbp-map-province-filter a {
		width: 100%;
	}

	.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;
	}

	.com-divebuddyping-map .leaflet-popup-content {
		min-width: 0;
		width: min(230px, calc(100vw - 76px));
	}
}

@media (max-width: 480px) {
	.dbp-user-location-marker,
	.dbp-user-location-pin {
		width: 32px;
		height: 44px;
	}

	.dbp-user-location-avatar-frame {
		top: 3px;
		width: 23px;
		height: 23px;
	}

	.dbp-user-location-avatar--fallback {
		font-size: 9px;
		line-height: 23px;
	}

	.dbp-user-location-marker--pin-missing::before {
		width: 32px;
		height: 32px;
	}

	.dbp-user-location-marker--pin-missing::after {
		top: 27px;
		border-inline-start-width: 8px;
		border-inline-end-width: 8px;
		border-block-start-width: 17px;
	}
}
.com-divebuddyping-map .dbp-map-search { position:relative; z-index:1001; max-width:720px; margin:0 auto 1rem; }
.com-divebuddyping-map .dbp-map-search input { width:100%; min-height:46px; padding:.7rem .9rem; border:1px solid #b9c7d3; border-radius:12px; background:#fff; color:#102033; font:inherit; }
.com-divebuddyping-map .dbp-map-search input:focus { outline:3px solid rgba(23,163,91,.25); border-color:#178f52; }
.com-divebuddyping-map .dbp-map-search-results { position:absolute; inset-inline:0; top:100%; max-height:360px; overflow-y:auto; border:1px solid #d5dde5; border-radius:0 0 12px 12px; background:#fff; box-shadow:0 12px 28px rgba(16,32,51,.18); }
.com-divebuddyping-map .dbp-map-search-option { display:flex; flex-direction:column; width:100%; padding:.7rem .9rem; border:0; border-bottom:1px solid #edf1f4; background:#fff; color:#102033; text-align:start; cursor:pointer; }
.com-divebuddyping-map .dbp-map-search-option:hover,.com-divebuddyping-map .dbp-map-search-option.is-active { background:#edf8f2; }
.com-divebuddyping-map .dbp-map-search-option span { margin-top:.15rem; color:#5b6975; font-size:.9rem; }
.com-divebuddyping-map .dbp-map-search-status { padding:.8rem .9rem; color:#5b6975; }
@media (max-width:480px){.com-divebuddyping-map .dbp-map-search{margin-bottom:.65rem}.com-divebuddyping-map .dbp-map-search input{min-height:42px}}
/* The in-field clear button is the only search reset; keep the result list above the map. */
.com-divebuddyping-map .dbp-map-search input { box-sizing: border-box; padding-inline-end: 44px; }
.com-divebuddyping-map .dbp-map-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.com-divebuddyping-map .dbp-map-search-clear { position: absolute; inset-inline-end: 0; top: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 100%; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: #31546f; font-size: 1.5rem; cursor: pointer; }
.com-divebuddyping-map .dbp-map-search-clear[hidden],
.com-divebuddyping-map .dbp-map-location-compact { display: none; }
.com-divebuddyping-map .dbp-map-search-clear:focus-visible,
.com-divebuddyping-map .dbp-map-location-button:focus-visible { outline: 3px solid #178f52; outline-offset: 2px; }
.com-divebuddyping-map .dbp-map-search-results { max-height: min(360px, 45dvh); overscroll-behavior: contain; overflow-x: hidden; }
.com-divebuddyping-map .dbp-map-search-option { box-sizing: border-box; overflow-wrap: anywhere; flex-shrink: 0; }
@media (max-width: 600px) {
	.com-divebuddyping-map { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
	.com-divebuddyping-map .dbp-map-header { margin-bottom: .5rem; }
	.com-divebuddyping-map .dbp-map-search { max-width: none; margin-bottom: .5rem; }
	.com-divebuddyping-map .dbp-map-search input { min-height: 44px; padding-block: .5rem; font-size: 16px; }
	.com-divebuddyping-map .dbp-map-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: .375rem; margin-bottom: .5rem; }
	.com-divebuddyping-map .dbp-map-country { box-sizing: border-box; min-width: 0; min-height: 44px; padding: .35rem .6rem; white-space: normal; overflow-wrap: anywhere; font-size: .875rem; }
	.com-divebuddyping-map .dbp-map-radius { min-width: 0; }
	.com-divebuddyping-map .dbp-map-radius select { width: 100%; min-width: 0; min-height: 44px; padding-inline-start: .5rem; font-size: .875rem; box-shadow: none; }
	.com-divebuddyping-map .dbp-map-location-button { min-height: 44px; padding: 0; border: 1px solid #cbd8e6; background: #f6fbff; color: #0b4f8a; box-shadow: none; }
	.com-divebuddyping-map .dbp-map-location-full { display: none; }
	.com-divebuddyping-map .dbp-map-location-compact { display: inline; font-size: 1.5rem; }
	.com-divebuddyping-map .dbp-map-status,
	.com-divebuddyping-map .dbp-map-filter-status,
	.com-divebuddyping-map .dbp-map-province-filter { margin-bottom: .5rem; padding: .25rem 0; border: 0; border-radius: 0; background: transparent; font-size: .85rem; }
	.com-divebuddyping-map .dbp-map-canvas { min-height: 0; height: 65vh; height: min(65svh, max(160px, calc(100svh - var(--dbp-map-top, 140px) - 5.5rem - env(safe-area-inset-bottom, 0px)))); border-radius: 14px; }
}
.com-divebuddyping-map .dbp-map-status.dbp-map-status--hint { margin: 0 0 .5rem; padding: .25rem 0; border: 0; border-radius: 0; background: transparent; font-size: .85rem; }
