/* Scoped Nautical-Style Egypt Coverage Illustration (WordPress Native Integration) */
.otr-nautical-map {
	--nm-navy: #0b3a67;
	--nm-deep: #072744;
	--nm-orange: #f58220;
	--nm-blue: #1e78b5;
	--nm-ink: #304b5a;
	--nm-muted: #697a7e;
	--nm-line: #d3d0bf;
	font-family: "Segoe UI", Tahoma, Arial, sans-serif;
	color: var(--nm-ink);
	background: #f9f7ee;
	border: 1px solid #b7bdba;
	border-radius: 3px;
	box-shadow: 0 12px 35px rgba(52, 79, 93, 0.08);
	overflow: hidden;
	margin: 24px 0 32px;
	box-sizing: border-box;
}
.otr-nautical-map *,
.otr-nautical-map *::before,
.otr-nautical-map *::after {
	box-sizing: border-box;
}
.otr-nautical-map button,
.otr-nautical-map a {
	-webkit-tap-highlight-color: transparent;
}
.otr-nautical-map button {
	font: inherit;
	cursor: pointer;
}
.otr-nautical-map button:focus-visible,
.otr-nautical-map a:focus-visible,
.otr-nautical-map [tabindex]:focus-visible {
	outline: 3px solid var(--nm-orange);
	outline-offset: 3px;
}
.otr-nautical-map button:disabled {
	cursor: default;
	opacity: 0.35;
}
.otr-nautical-map .nm-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding: 16px 24px;
	background: #faf8ef;
	color: var(--nm-navy);
	border-top: 4px solid var(--nm-navy);
	border-bottom: 1px solid #bfc5be;
}
.otr-nautical-map .nm-toolbar-heading {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.otr-nautical-map .nm-eyebrow {
	margin: 0;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2.1px;
	line-height: 1.4;
	color: #70858a;
	text-transform: uppercase;
}
.otr-nautical-map .nm-title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: 23px;
	letter-spacing: 0;
	margin: 0;
	line-height: 1.3;
	color: var(--nm-navy);
}
.otr-nautical-map .language-switch {
	display: flex;
	margin-inline-start: auto;
	gap: 3px;
	padding: 4px;
	background: #eeeee4;
	border: 1px solid #c3c9c1;
	border-radius: 2px;
	direction: ltr;
}
.otr-nautical-map .language-switch button {
	border: 0;
	background: transparent;
	color: #566e78;
	padding: 7px 11px;
	border-radius: 1px;
	font-size: 12px;
	line-height: 1.2;
}
.otr-nautical-map .language-switch button[aria-pressed="true"] {
	background: var(--nm-navy);
	color: #fff;
	font-weight: 700;
}
.otr-nautical-map .map-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	direction: ltr;
	min-width: 0;
}
.otr-nautical-map .map-column {
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: #f8f5e9;
}
.otr-nautical-map .map-stage {
	position: relative;
	flex: 1;
	min-height: 520px;
	overflow: hidden;
	direction: ltr;
	touch-action: pan-y;
	background: #f8f5e9;
}
.otr-nautical-map #otr-map-host {
	height: 100%;
	min-height: 520px;
}
.otr-nautical-map #otr-map-host svg {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 520px;
	position: absolute;
	inset: 0;
	user-select: none;
	touch-action: pan-y;
}
.otr-nautical-map .map-stage.is-pannable {
	touch-action: none;
	cursor: grab;
}
.otr-nautical-map .map-stage.is-pannable svg {
	touch-action: none;
}
.otr-nautical-map .map-stage.is-dragging {
	cursor: grabbing;
}
.otr-nautical-map .map-tools {
	position: absolute;
	top: 40px;
	left: 39px;
	display: flex;
	gap: 1px;
	z-index: 2;
	border: 1px solid #a4b5b4;
	border-radius: 2px;
	box-shadow: 0 2px 5px rgba(48, 75, 90, 0.08);
	overflow: hidden;
	direction: ltr;
}
.otr-nautical-map .map-tools button {
	border: 0;
	background: #fcfaf1;
	color: #304b5a;
	height: 30px;
	min-width: 30px;
	font-size: 18px;
	font-weight: 400;
	padding: 0 6px;
}
.otr-nautical-map .map-tools .reset-view {
	font-size: 10px;
	font-weight: 600;
	padding: 0 12px;
	border-inline-start: 1px solid #ccd4cb;
}
.otr-nautical-map .map-tools button:hover {
	background: #e6eeea;
}
.otr-nautical-map .map-instruction {
	position: absolute;
	bottom: 34px;
	left: 37px;
	font-size: 9px;
	color: #586f77;
	padding: 5px 8px;
	background: rgba(248, 245, 233, 0.91);
	border: 1px solid #c0cbc5;
	border-radius: 1px;
	pointer-events: none;
}
.otr-nautical-map .map-key {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	color: #536a74;
	background: #f1f0e5;
	border-top: 1px solid #bfc8c2;
	padding: 12px 25px;
	font-size: 10px;
	min-height: 44px;
	direction: ltr;
}
.otr-nautical-map .map-key > span {
	display: flex;
	align-items: center;
	gap: 8px;
}
.otr-nautical-map .map-key [hidden] {
	display: none;
}
.otr-nautical-map .key-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
	flex: none;
}
.otr-nautical-map .key-dot.port {
	width: 14px;
	height: auto;
	background: none;
	border: 0;
	border-radius: 0;
}
.otr-nautical-map .key-dot.port::before {
	content: "⚓";
	font-style: normal;
	font-size: 16px;
	line-height: 10px;
	color: #304b5a;
}
.otr-nautical-map .key-dot.inland {
	background: var(--nm-blue);
	border: 1px solid #fff;
	border-radius: 50%;
}
.otr-nautical-map .key-dot.hq {
	font-style: normal;
	color: #b16b32;
	font-size: 16px;
	width: auto;
	height: auto;
	line-height: 10px;
}
.otr-nautical-map .key-dot.pending {
	border: 1px dashed #5f7580;
}
.otr-nautical-map .coverage-panel {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border-inline-start: 1px solid var(--nm-line);
	background: #faf8ef;
	padding-top: 25px;
	direction: ltr;
}
.otr-nautical-map .panel-heading {
	padding: 0 24px;
}
.otr-nautical-map .panel-heading .nm-eyebrow {
	font-size: 8.5px;
	color: #738889;
	letter-spacing: 1.1px;
}
.otr-nautical-map .panel-heading h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: 21px;
	margin: 0 0 9px;
	line-height: 1.3;
	color: var(--nm-navy);
}
.otr-nautical-map .panel-intro {
	font-size: 12px;
	line-height: 1.6;
	color: var(--nm-muted);
	margin: 0;
}
.otr-nautical-map .filter-bar {
	display: flex;
	gap: 5px;
	padding: 17px 24px 12px;
}
.otr-nautical-map .filter-bar button {
	border: 1px solid var(--nm-line);
	border-radius: 2px;
	padding: 5px 10px;
	color: var(--nm-muted);
	background: #faf8ef;
	font-size: 10px;
	line-height: 1.4;
}
.otr-nautical-map .filter-bar button[aria-pressed="true"] {
	background: var(--nm-navy);
	color: #fff;
	border-color: var(--nm-navy);
}
.otr-nautical-map .filter-bar button:hover {
	border-color: var(--nm-navy);
}
.otr-nautical-map .location-list {
	list-style: none;
	padding: 0 12px;
	margin: 0;
	flex: 1;
	max-height: 365px;
	overflow: auto;
	scrollbar-width: thin;
	scrollbar-color: #b8c8d4 transparent;
}
.otr-nautical-map .location-list li[hidden] {
	display: none;
}
.otr-nautical-map .location-list button {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: start;
	width: 100%;
	border: 0;
	border-radius: 1px;
	background: transparent;
	color: var(--nm-ink);
	padding: 8px 12px;
	font-size: 12px;
	line-height: 1.3;
	min-height: 33px;
}
.otr-nautical-map .location-list button:hover,
.otr-nautical-map .location-list button.is-hovered {
	background: #e9eee7;
}
.otr-nautical-map .location-list button[aria-pressed="true"] {
	background: #e9eee7;
	font-weight: 650;
}
.otr-nautical-map .location-list button[aria-pressed="true"]::before {
	content: "";
	position: absolute;
	inset-block: 7px;
	inset-inline-start: 0;
	width: 3px;
	background: var(--nm-orange);
	border-radius: 2px;
}
.otr-nautical-map .location-list .location-symbol {
	width: 7px;
	height: 7px;
	background: #304b5a;
	border-radius: 50%;
	flex: none;
}
.otr-nautical-map .location-list .inland .location-symbol {
	background: var(--nm-blue);
	border-radius: 50%;
}
.otr-nautical-map .location-list .pending .location-symbol {
	background: transparent;
	border: 1px dashed var(--nm-muted);
}
.otr-nautical-map .location-list .category .location-symbol {
	border: 1px solid var(--nm-blue);
	background: transparent;
}
.otr-nautical-map .base-tag {
	font-size: 8px;
	color: #87430b;
	margin-inline-start: auto;
	border: 1px solid #efceb3;
	padding: 2px 4px;
	border-radius: 1px;
	white-space: nowrap;
}
.otr-nautical-map .location-detail {
	padding: 19px 24px 20px;
	background: #efefe3;
	border-top: 1px solid var(--nm-line);
	margin-top: 16px;
	min-height: 167px;
}
.otr-nautical-map .detail-category {
	display: block;
	color: var(--nm-blue);
	font-size: 9px;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	font-weight: 700;
	margin-bottom: 6px;
}
.otr-nautical-map .location-detail h4 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: 20px;
	margin: 0 0 5px;
	color: var(--nm-navy);
	line-height: 1.25;
}
.otr-nautical-map .detail-region {
	font-size: 11px;
	line-height: 1.6;
	margin: 0;
	color: var(--nm-muted);
}
.otr-nautical-map .detail-coordinates {
	font-size: 10px;
	letter-spacing: 0.35px;
	color: #60798a;
	margin-top: 10px;
	display: block;
	direction: ltr;
	text-align: start;
}
.otr-nautical-map .detail-note {
	font-size: 10px;
	color: #536e81;
	line-height: 1.5;
	margin: 8px 0 0;
}
.otr-nautical-map .detail-directory-link {
	display: inline-block;
	margin-top: 10px;
	font-size: 11px;
	font-weight: 600;
	color: var(--nm-navy);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.otr-nautical-map .map-footer {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding: 12px 24px;
	flex-wrap: wrap;
	background: #faf8ef;
	border-top: 1px solid var(--nm-line);
	font-size: 9px;
	line-height: 1.5;
	color: #71817f;
}
.otr-nautical-map .map-footer p {
	margin: 0;
}
.otr-nautical-map .footer-chart-note {
	color: #536d74;
	font-weight: 600;
}
.otr-nautical-map .map-footer p:nth-child(2) {
	flex: 1;
	min-width: 220px;
}
.otr-nautical-map .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.otr-nautical-map .load-error {
	padding: 20px;
	color: #843b1c;
}

/* Scoped RTL Support (text & panel controls reverse, geographic E/W never reverses) */
.otr-nautical-map[dir="rtl"] .nm-toolbar,
.otr-nautical-map[dir="rtl"] .coverage-panel,
.otr-nautical-map[dir="rtl"] .map-footer,
.otr-nautical-map[dir="rtl"] .map-key {
	direction: rtl;
}
.otr-nautical-map[dir="rtl"] .nm-eyebrow,
.otr-nautical-map[dir="rtl"] .detail-category {
	letter-spacing: 0;
	font-size: 11px;
}
.otr-nautical-map[dir="rtl"] .map-instruction {
	direction: rtl;
	font-size: 11px;
}
.otr-nautical-map[dir="rtl"] .detail-coordinates {
	text-align: right;
}
.otr-nautical-map[dir="rtl"] .map-shell {
	grid-template-columns: minmax(0, 1fr) 300px;
}

@media (min-width: 1400px) {
	.otr-nautical-map .map-stage,
	.otr-nautical-map #otr-map-host,
	.otr-nautical-map #otr-map-host svg {
		min-height: 610px;
	}
	.otr-nautical-map .location-list {
		max-height: 430px;
	}
	.otr-nautical-map .location-list button {
		min-height: 36px;
	}
	.otr-nautical-map .map-shell,
	.otr-nautical-map[dir="rtl"] .map-shell {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

@media (max-width: 1050px) {
	.otr-nautical-map .nm-toolbar {
		padding: 16px 20px;
	}
	.otr-nautical-map .nm-title {
		font-size: 21px;
	}
	.otr-nautical-map .map-shell,
	.otr-nautical-map[dir="rtl"] .map-shell {
		grid-template-columns: minmax(0, 1fr) 260px;
	}
	.otr-nautical-map .panel-heading {
		padding: 0 20px;
	}
	.otr-nautical-map .filter-bar {
		padding-inline: 20px;
	}
	.otr-nautical-map .location-detail {
		padding-inline: 20px;
	}
	.otr-nautical-map .map-stage,
	.otr-nautical-map #otr-map-host,
	.otr-nautical-map #otr-map-host svg {
		min-height: 500px;
	}
	.otr-nautical-map .map-key {
		gap: 16px;
		font-size: 9px;
		padding-inline: 16px;
	}
	.otr-nautical-map .map-tools {
		top: 32px;
		left: 30px;
	}
	.otr-nautical-map .map-instruction {
		left: 30px;
	}
}

@media (max-width: 800px) {
	.otr-nautical-map {
		border-radius: 2px;
	}
	.otr-nautical-map .map-shell,
	.otr-nautical-map[dir="rtl"] .map-shell {
		grid-template-columns: 1fr;
	}
	.otr-nautical-map .map-stage,
	.otr-nautical-map #otr-map-host,
	.otr-nautical-map #otr-map-host svg {
		min-height: 0;
		aspect-ratio: 1000 / 680;
	}
	.otr-nautical-map .map-stage {
		flex: none;
	}
	.otr-nautical-map .coverage-panel {
		padding-top: 22px;
		border: 0;
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
	.otr-nautical-map .panel-heading,
	.otr-nautical-map .filter-bar {
		grid-column: 1 / -1;
	}
	.otr-nautical-map .location-list {
		max-height: 240px;
		min-height: 210px;
		padding-bottom: 14px;
	}
	.otr-nautical-map .location-detail {
		margin: 0;
		border-top: 0;
		border-inline-start: 1px solid var(--nm-line);
		min-height: 0;
		padding: 18px;
	}
	.otr-nautical-map .map-tools {
		top: 31px;
		left: 28px;
	}
	.otr-nautical-map .map-tools button {
		height: 28px;
		min-width: 28px;
	}
	.otr-nautical-map .map-instruction {
		bottom: 30px;
		left: 28px;
		font-size: 8px;
	}
	.otr-nautical-map .map-footer {
		gap: 5px;
		padding: 12px 18px;
	}
}

@media (max-width: 460px) {
	.otr-nautical-map .map-stage,
	.otr-nautical-map #otr-map-host,
	.otr-nautical-map #otr-map-host svg {
		aspect-ratio: 1000 / 760;
	}
	.otr-nautical-map .map-key {
		font-size: 9px;
		gap: 13px;
		padding: 12px;
	}
	.otr-nautical-map .map-instruction {
		display: none;
	}
	.otr-nautical-map .coverage-panel {
		display: flex;
	}
	.otr-nautical-map .location-list {
		max-height: 232px;
		min-height: 0;
	}
	.otr-nautical-map .location-detail {
		border-inline-start: 0;
		border-top: 1px solid var(--nm-line);
		margin-top: 10px;
		padding: 18px 22px;
	}
	.otr-nautical-map .map-tools {
		top: 19px;
		left: 18px;
	}
	.otr-nautical-map .map-tools button {
		height: 24px;
		min-width: 24px;
		font-size: 16px;
	}
	.otr-nautical-map .map-tools .reset-view {
		font-size: 8px;
		padding: 0 6px;
	}
	.otr-nautical-map .map-footer {
		padding: 12px 16px;
		font-size: 8px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.otr-nautical-map button {
		transition: background-color 0.15s, border-color 0.15s;
	}
	.otr-nautical-map .map-marker .marker-halo {
		transition: opacity 0.15s;
	}
}
