/**
 * Rhodes Boat — interactive homepage destination map explorer.
 */

.rb-dest-map-explorer__layout {
	display: flex;
	flex-direction: column;
	gap: var(--rb-space-4);
	align-items: stretch;
}

@media (min-width: 1024px) {
	.rb-dest-map-explorer__layout {
		display: grid;
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		grid-template-areas:
			'map panel'
			'map tabs'
			'map cta';
		gap: var(--rb-space-5) var(--rb-space-6);
		align-items: start;
	}

	.rb-dest-map-explorer__map-wrap {
		grid-area: map;
		align-self: stretch;
	}

	.rb-dest-map-explorer__panel {
		grid-area: panel;
	}

	.rb-dest-map-explorer__tabs {
		grid-area: tabs;
	}

	.rb-dest-map-explorer__cta-wrap {
		grid-area: cta;
	}
}

.rb-dest-map-explorer__map-wrap {
	min-width: 0;
}

.rb-dest-map-explorer__map {
	position: relative;
	border-radius: var(--rb-radius-lg);
	overflow: hidden;
	background: #0b2a35;
	box-shadow: var(--rb-shadow);
	aspect-ratio: 4 / 3;
	max-height: min(58vh, 420px);
}

@media (min-width: 1024px) {
	.rb-dest-map-explorer__map {
		aspect-ratio: 1 / 1;
		max-height: none;
	}
}

.rb-dest-map-explorer__svg {
	display: block;
	width: 100%;
	height: 100%;
}

.rb-dest-map-explorer__sea-label {
	fill: rgba(255, 255, 255, 0.45);
	font-family: var(--rb-font-sans, Manrope, sans-serif);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
}

.rb-dest-map-explorer__route {
	fill: none;
	stroke: rgba(255, 255, 255, 0.55);
	stroke-width: 2;
	stroke-linecap: round;
	opacity: 0;
	pointer-events: none;
}

.rb-dest-map-explorer__route.is-visible {
	opacity: 1;
}

.rb-reduce-motion .rb-dest-map-explorer__route {
	transition: none !important;
}

.rb-dest-map-explorer__detail-placeholder {
	display: none;
	padding: var(--rb-space-4);
	border-radius: var(--rb-radius);
	border: var(--rb-hairline);
	background: var(--rb-white);
}

@media (min-width: 1024px) {
	.rb-dest-map-explorer__detail-placeholder {
		display: block;
	}
}

.rb-dest-map-explorer__detail-placeholder p {
	margin: 0;
}

.rb-dest-map-explorer__marker-group .rb-dest-map-explorer__marker-halo {
	fill: rgba(126, 200, 227, 0.22);
	opacity: 0;
	transition: opacity var(--rb-duration, 0.25s) var(--rb-ease, ease);
}

.rb-dest-map-explorer__marker-group.is-active .rb-dest-map-explorer__marker-halo,
.rb-dest-map-explorer__marker-group.is-hovered .rb-dest-map-explorer__marker-halo {
	opacity: 1;
}

.rb-dest-map-explorer__marker-dot {
	fill: #fff;
	stroke: rgba(255, 255, 255, 0.18);
	stroke-width: 4;
	pointer-events: none;
}

.rb-dest-map-explorer__marker-hit {
	cursor: pointer;
}

.rb-dest-map-explorer__marker-hit:focus {
	outline: none;
}

.rb-dest-map-explorer__marker-hit:focus-visible + .rb-dest-map-explorer__marker-dot {
	stroke: var(--rb-gold, #c9a86a);
}

.rb-dest-map-explorer__marker-label {
	fill: #fff;
	font-family: var(--rb-font-sans, Manrope, sans-serif);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	pointer-events: none;
}

.rb-dest-map-explorer__boat {
	transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.rb-reduce-motion .rb-dest-map-explorer__boat {
	transition: none;
}

.rb-dest-map-explorer__hint {
	position: absolute;
	left: var(--rb-space-3);
	right: var(--rb-space-3);
	bottom: var(--rb-space-3);
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	max-width: calc(100% - 1.5rem);
	width: fit-content;
	padding: 0.5rem 0.8rem;
	border-radius: 999px;
	background: rgba(7, 19, 28, 0.72);
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.72rem;
	font-family: var(--rb-font-sans, Manrope, sans-serif);
}

@media (min-width: 1024px) {
	.rb-dest-map-explorer__hint {
		left: var(--rb-space-4);
		right: auto;
		bottom: var(--rb-space-4);
		font-size: 0.78rem;
		padding: 0.55rem 0.9rem;
	}
}

.rb-dest-map-explorer__hint-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #7ec8e3;
	flex-shrink: 0;
}

.rb-dest-map-explorer__panel {
	display: flex;
	flex-direction: column;
	gap: var(--rb-space-4);
	min-width: 0;
}

@media (min-width: 1024px) {
	.rb-dest-map-explorer__panel {
		gap: var(--rb-space-5);
	}
}

.rb-dest-map-explorer__badge {
	margin: 0 0 var(--rb-space-2);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rb-teal, #2a7a86);
}

.rb-dest-map-explorer__detail h3 {
	margin: 0 0 var(--rb-space-2);
	font-size: clamp(1.35rem, 4vw, 1.85rem);
}

.rb-dest-map-explorer__detail .rb-body {
	margin: 0;
}

.rb-dest-map-explorer__stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--rb-space-2);
	margin-top: var(--rb-space-3);
}

@media (min-width: 640px) {
	.rb-dest-map-explorer__stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--rb-space-3);
		margin-top: var(--rb-space-4);
	}
}

.rb-dest-map-explorer__stat {
	display: grid;
	gap: 0.2rem;
	padding: var(--rb-space-3);
	border-radius: var(--rb-radius);
	border: var(--rb-hairline);
	background: var(--rb-white);
	box-shadow: var(--rb-shadow-sm);
}

@media (min-width: 1024px) {
	.rb-dest-map-explorer__stat {
		padding: var(--rb-space-4);
		gap: 0.25rem;
	}
}

.rb-dest-map-explorer__stat-icon {
	font-size: 1.1rem;
	line-height: 1;
}

.rb-dest-map-explorer__stat-label {
	font-size: 0.68rem;
	color: var(--rb-muted, #5c6b78);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.rb-dest-map-explorer__stat strong {
	font-size: 0.9rem;
	color: var(--rb-navy, #0b2a35);
}

/* —— Mobile: horizontal destination chips —— */
.rb-dest-map-explorer__tabs {
	display: flex;
	flex-direction: row;
	gap: 0.5rem;
	margin: 0 -0.25rem;
	padding: 0.15rem 0.25rem 0.35rem;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	border: 0;
}

.rb-dest-map-explorer__tabs::-webkit-scrollbar {
	display: none;
}

.rb-dest-map-explorer__tab {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.15rem;
	flex: 0 0 auto;
	min-width: 8.5rem;
	max-width: 11rem;
	min-height: 0;
	padding: 0.7rem 0.9rem;
	border: 1px solid rgba(11, 42, 53, 0.12);
	border-radius: 999px;
	background: var(--rb-white, #fff);
	text-align: left;
	cursor: pointer;
	position: relative;
	font-family: var(--rb-font-sans, Manrope, sans-serif);
	color: var(--rb-navy, #0b2a35);
	scroll-snap-align: start;
	box-shadow: var(--rb-shadow-sm);
	transition:
		background-color var(--rb-duration, 0.2s) ease,
		border-color var(--rb-duration, 0.2s) ease,
		color var(--rb-duration, 0.2s) ease;
}

.rb-dest-map-explorer__tab::before {
	display: none;
}

.rb-dest-map-explorer__tab.is-active,
.rb-dest-map-explorer__tab[aria-selected='true'] {
	background: var(--rb-navy, #0b2a35);
	border-color: var(--rb-navy, #0b2a35);
	color: #fff;
}

.rb-dest-map-explorer__tab.is-active .rb-dest-map-explorer__tab-duration,
.rb-dest-map-explorer__tab[aria-selected='true'] .rb-dest-map-explorer__tab-duration {
	color: #7ec8e3;
}

.rb-dest-map-explorer__tab:focus-visible {
	outline: 2px solid var(--rb-teal, #2a7a86);
	outline-offset: 2px;
}

.rb-dest-map-explorer__tab-num,
.rb-dest-map-explorer__tab-sub,
.rb-dest-map-explorer__tab-chevron {
	display: none;
}

.rb-dest-map-explorer__tab-body {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
	width: 100%;
}

.rb-dest-map-explorer__tab-title {
	font-size: 0.82rem;
	line-height: 1.2;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.rb-dest-map-explorer__tab-duration {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--rb-teal, #2a7a86);
	white-space: nowrap;
}

/* —— Desktop: restore vertical list —— */
@media (min-width: 1024px) {
	.rb-dest-map-explorer__tabs {
		flex-direction: column;
		gap: 0;
		margin: 0;
		padding: 0;
		max-height: min(32rem, 70vh);
		overflow-x: hidden;
		overflow-y: auto;
		scroll-snap-type: none;
		border-top: var(--rb-hairline);
	}

	.rb-dest-map-explorer__tab {
		display: grid;
		grid-template-columns: auto 1fr auto auto;
		align-items: center;
		gap: var(--rb-space-3);
		flex: none;
		width: 100%;
		max-width: none;
		min-width: 0;
		min-height: 4.5rem;
		padding: var(--rb-space-4) var(--rb-space-4) var(--rb-space-4) var(--rb-space-5);
		border: 0;
		border-bottom: var(--rb-hairline);
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		scroll-snap-align: none;
	}

	.rb-dest-map-explorer__tab::before {
		display: block;
		content: '';
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		width: 4px;
		background: var(--rb-teal, #2a7a86);
		opacity: 0;
		transition: opacity var(--rb-duration, 0.2s) ease;
	}

	.rb-dest-map-explorer__tab.is-active::before,
	.rb-dest-map-explorer__tab[aria-selected='true']::before {
		opacity: 1;
	}

	.rb-dest-map-explorer__tab.is-active,
	.rb-dest-map-explorer__tab[aria-selected='true'] {
		background: rgba(42, 122, 134, 0.06);
		border-color: transparent;
		color: var(--rb-navy, #0b2a35);
	}

	.rb-dest-map-explorer__tab.is-active .rb-dest-map-explorer__tab-duration,
	.rb-dest-map-explorer__tab[aria-selected='true'] .rb-dest-map-explorer__tab-duration {
		color: var(--rb-teal, #2a7a86);
	}

	.rb-dest-map-explorer__tab:focus-visible {
		outline-offset: -2px;
	}

	.rb-dest-map-explorer__tab-num {
		display: inline;
		font-size: 0.8rem;
		font-weight: 700;
		color: var(--rb-muted, #5c6b78);
	}

	.rb-dest-map-explorer__tab-sub {
		display: block;
		font-size: 0.82rem;
		color: var(--rb-muted, #5c6b78);
	}

	.rb-dest-map-explorer__tab-chevron {
		display: inline;
		font-size: 1.25rem;
		color: var(--rb-muted, #5c6b78);
	}

	.rb-dest-map-explorer__tab-body {
		gap: 0.15rem;
	}

	.rb-dest-map-explorer__tab-title {
		font-size: 1rem;
		line-height: 1.25;
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
	}

	.rb-dest-map-explorer__tab-duration {
		font-size: 0.78rem;
	}
}

.rb-dest-map-explorer__cta-wrap {
	margin-top: 0;
}

@media (min-width: 1024px) {
	.rb-dest-map-explorer__cta-wrap {
		margin-top: var(--rb-space-2);
	}
}

.rb-dest-map-explorer__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	justify-content: center;
}

@media (min-width: 640px) {
	.rb-dest-map-explorer__cta {
		width: auto;
	}
}

.rb-dest-map-explorer__empty {
	padding: var(--rb-space-5);
	border-radius: var(--rb-radius);
	border: var(--rb-hairline);
	background: var(--rb-white);
	text-align: center;
}
