:root {
	--bg: #f3f6fb;
	--surface: #ffffff;
	--surface-acrylic: rgba(255, 255, 255, 0.78);
	--text: #111111;
	--muted: #2f2f2f;
	--accent: #0f5cbd;
	--accent-2: #00b7c3;
	--accent-3: #4a1f7a;
	--shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	--border: rgba(0, 0, 0, 0.08);
	--radius-lg: 20px;
	--radius-md: 14px;
	--radius-sm: 10px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0a0f1b;
		--surface: #151c2f;
		--surface-acrylic: rgba(21, 28, 47, 0.88);
		--text: #f5f7ff;
		--muted: #e2e7f3;
		--accent: #8abaff;
		--accent-2: #6fe6dc;
		--accent-3: #c9b0ff;
		--shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
		--border: rgba(255, 255, 255, 0.12);
	}
}

@media (prefers-contrast: more) {
	:root {
		--bg: #ffffff;
		--surface: #ffffff;
		--surface-acrylic: #ffffff;
		--text: #000000;
		--muted: #000000;
		--accent: #0000ee;
		--accent-2: #006400;
		--accent-3: #4b0082;
		--shadow: none;
		--border: #000000;
	}

	body::before {
		background: none;
	}

	.hero-visual,
	.cta,
	.hero-panel,
	fluent-card.card {
		box-shadow: none;
		background: #ffffff;
		border: 2px solid #000000;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Segoe UI", "Segoe UI Variable", system-ui, -apple-system, sans-serif;
	background: radial-gradient(900px 520px at 0% 0%, #e7f0fb, transparent 60%),
		radial-gradient(780px 460px at 100% 0%, #e7fbf6, transparent 60%),
		radial-gradient(760px 520px at 80% 100%, #f2e9ff, transparent 60%),
		var(--bg);
	color: var(--text);
	min-height: 100vh;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -40px;
	background: var(--surface);
	color: var(--text);
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	border: 2px solid var(--accent);
	box-shadow: var(--shadow);
	text-decoration: none;
	font-weight: 600;
	z-index: 999;
}

.skip-link:focus,
.skip-link:focus-visible {
	top: 16px;
}

a:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: 6px;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: radial-gradient(400px 400px at 20% 20%, rgba(0, 120, 212, 0.08), transparent 60%),
		radial-gradient(360px 360px at 80% 10%, rgba(0, 183, 195, 0.1), transparent 60%),
		radial-gradient(300px 300px at 80% 80%, rgba(92, 45, 145, 0.08), transparent 60%);
	pointer-events: none;
	z-index: -1;
}

main {
	max-width: 1120px;
	margin: 0 auto;
	padding: 72px 24px 96px;
	display: grid;
	gap: 32px;
}

.hero {
	text-align: center;
	display: grid;
	gap: 16px;
}

.hero-stack {
	position: relative;
	width: 100%;
	max-width: 1120px;
	margin: 10px auto 0;
	height: 180px;
	display: grid;
	place-items: center;
}

.hero-badge {
	justify-self: center;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--accent);
	background: linear-gradient(135deg, rgba(0, 120, 212, 0.12), rgba(0, 183, 195, 0.15));
	border: 1px solid rgba(0, 120, 212, 0.2);
}

.hero h1 {
	margin: 0;
	font-size: clamp(2.1rem, 4vw, 3.4rem);
	font-weight: 600;
}

.hero p {
	margin: 0;
	color: var(--muted);
	line-height: 1.65;
	font-size: 1.05rem;
}

.hero-panel {
	position: relative;
	max-width: 760px;
	width: calc(100% - 48px);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.95));
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--radius-md);
	padding: 16px 18px;
	box-shadow:
		0 26px 50px rgba(0, 0, 0, 0.2),
		0 10px 18px rgba(0, 0, 0, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		inset 0 -1px 0 rgba(0, 0, 0, 0.06);
	backdrop-filter: blur(8px);
	z-index: 2;
	transform: translateY(-2px);
}

.hero-panel::before {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: calc(var(--radius-md) - 1px);
	background: linear-gradient(120deg, rgba(0, 120, 212, 0.08), rgba(0, 183, 195, 0.06));
	pointer-events: none;
	z-index: -1;
}

.hero-panel::after {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	top: 6px;
	height: 24px;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
	opacity: 0.75;
	pointer-events: none;
}

.hero-visual {
	position: absolute;
	inset: 0;
	border-radius: 24px;
	background: linear-gradient(135deg, rgba(0, 120, 212, 0.08), rgba(92, 45, 145, 0.08));
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
	z-index: 1;
}


.orb {
	position: absolute;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	filter: blur(2px);
	opacity: 0.85;
}

.orb-blue {
	background: radial-gradient(circle at 30% 30%, rgba(0, 120, 212, 0.85), rgba(0, 120, 212, 0.05));
	left: -30px;
	top: -20px;
}

.orb-teal {
	background: radial-gradient(circle at 30% 30%, rgba(0, 183, 195, 0.85), rgba(0, 183, 195, 0.05));
	right: 20%;
	top: -40px;
}

.orb-purple {
	background: radial-gradient(circle at 30% 30%, rgba(92, 45, 145, 0.8), rgba(92, 45, 145, 0.05));
	right: -40px;
	bottom: -60px;
}

.wave {
	position: absolute;
	left: -20%;
	bottom: -40px;
	width: 140%;
	height: 120px;
	background: linear-gradient(120deg, rgba(0, 120, 212, 0.18), rgba(0, 183, 195, 0.12), rgba(92, 45, 145, 0.1));
	border-radius: 60% 40% 0 0;
	filter: blur(6px);
}

.grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

fluent-card.card {
	border-radius: var(--radius-lg);
	padding: 22px;
	box-shadow: var(--shadow);
	border: 1px solid var(--border);
	background: var(--surface);
	backdrop-filter: blur(14px);
}

.card h3 {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 600;
}

.card p {
	margin: 0;
	color: var(--muted);
	line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
	.card h3,
	.hero h1,
	.cta h2 {
		color: #ffffff;
	}

	.hero-panel {
		background: #151c2f;
		border-color: rgba(255, 255, 255, 0.18);
	}

	.card p {
		color: #e1e6f0;
	}

	.cta p {
		color: #e1e6f0;
	}
}

.cta {
	background: var(--surface-acrylic);
	border-radius: var(--radius-lg);
	padding: 28px;
	display: grid;
	gap: 14px;
	align-items: center;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	backdrop-filter: blur(16px);
	position: relative;
	overflow: hidden;
}

.cta-accent {
	position: absolute;
	right: -40px;
	top: -40px;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, rgba(0, 120, 212, 0.2), rgba(0, 183, 195, 0.05));
	border-radius: 50%;
	filter: blur(4px);
}

.cta h2 {
	margin: 0 0 6px;
	font-weight: 600;
}

.cta p {
	margin: 0;
	color: var(--muted);
}

footer {
	text-align: center;
	color: var(--muted);
	padding-bottom: 40px;
	font-size: 0.9rem;
}

footer a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 600;
}

footer a:hover {
	text-decoration: underline;
}

/* =============================================
   Dive Phuket Page Styles
   ============================================= */

.dive-page::before {
	content: none;
}

.dive-page {
	--header-bg: linear-gradient(135deg, #2b5396 0%, #2b7696d1 100%);
	--header-text: #ffffff;
	--header-text-secondary: #e6f0f5;
	--header-description: #edf5fa;
	--page-bg: #f5f9fc;
	--page-bg-alt: #ffffff;
	--text-primary: #1a2b3c;
	--text-secondary: #2f455c;
	--text-muted: #4f5f6f;
	--brand: #2d7a9f;
	--brand-hover: #2b7696;
	--accent-bg: #e6f3fa;
	--accent: #2d7a9f;
	--border: #d0dbe5;

	margin: 0;
	padding: 0;
	font-family: 'Segoe UI', 'SF Pro Display', 'SF Pro', sans-serif;
	background: var(--page-bg);
	color: var(--text-primary);
	min-height: 100vh;
}

@media (prefers-color-scheme: dark) {
	.dive-page {
		--header-text-secondary: #cfdbe4;
		--header-description: #d8e5ed;
		--page-bg: #121a23;
		--page-bg-alt: #18242f;
		--text-primary: #e8f0f7;
		--text-secondary: #c5d3df;
		--text-muted: #9fb2c4;
		--brand: #5bb8e6;
		--brand-hover: #4aa1c7;
		--accent-bg: #1f2e3a;
		--accent: #5bb8e6;
		--border: #2f4354;
	}
}

.dive-page .poster-container {
	max-width: 1100px;
	margin: 0 auto;
	background: var(--page-bg-alt);
	border-radius: 32px;
	box-shadow: 0 8px 32px rgba(58, 143, 183, 0.12);
	padding: 0;
	overflow: hidden;
}

.dive-page header {
	background: var(--header-bg);
	color: var(--header-text);
	text-align: center;
	padding: 56px 32px 40px 32px;
	position: relative;
}

.dive-page .header-title {
	font-size: clamp(40px, 6vw, 60px);
	font-weight: 900;
	margin-bottom: 12px;
	letter-spacing: 0.01em;
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.08);
}

.dive-page .header-subtitle {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 16px;
	color: var(--header-text-secondary);
}

.dive-page .header-description {
	font-size: 20px;
	font-weight: 400;
	line-height: 32px;
	max-width: 700px;
	margin: 0 auto;
	color: var(--header-description);
}

.dive-page .content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	padding: 40px;
}

.dive-page .column {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.dive-page .card {
	background: var(--accent-bg);
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	border: 1px solid var(--border);
}

.dive-page .card h3 {
	margin-top: 0;
	font-size: 20px;
	color: var(--brand);
}

.dive-page .stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.dive-page .stat {
	background: var(--page-bg-alt);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dive-page .stat h4 {
	margin: 0;
	font-size: 1.2rem;
	color: var(--accent);
}

.dive-page .stat p {
	margin: 4px 0 0;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

.dive-page .timeline {
	border-left: 3px solid var(--brand);
	padding-left: 16px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.dive-page .timeline-item {
	position: relative;
	padding-left: 12px;
}

.dive-page .timeline-item::before {
	content: '';
	position: absolute;
	left: -25px;
	top: 4px;
	width: 15px;
	height: 15px;
	background: var(--brand);
	border-radius: 50%;
	box-shadow:
		0 0 0 4px var(--page-bg-alt),
		0 0 0 8px var(--accent-bg);
}

.dive-page .timeline-item h4 {
	margin: 0 0 4px;
	font-size: 1rem;
	color: var(--brand);
}

.dive-page .timeline-item p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

.dive-page ul.checklist {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dive-page ul.checklist li::before {
	content: "\2713";
	color: var(--brand);
	margin-right: 8px;
}

.dive-page ul.checklist li {
	margin-bottom: 8px;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

@media (max-width: 768px) {
	.dive-page .content {
		grid-template-columns: 1fr;
	}

	.dive-page * {
		overflow-wrap: anywhere;
	}
}

/* Section Titles */
.dive-page .section-title {
	grid-column: 1 / -1;
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--brand);
	margin: 16px 0 0;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--brand);
}

/* Full-width card spanning both columns */
.dive-page .card.full-width {
	grid-column: 1 / -1;
}

/* Dive site images */
.dive-page .dive-site-img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid var(--border);
	margin-top: 8px;
}

.dive-page .dive-site-img-caption {
	font-size: 0.8rem;
	color: var(--text-muted);
	text-align: center;
	margin-top: 6px;
}

/* Day schedule timeline */
.dive-page .day-schedule {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 8px;
}

.dive-page .schedule-item {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 8px;
	font-size: 0.88rem;
	line-height: 1.5;
}

.dive-page .schedule-time {
	font-weight: 700;
	color: var(--brand);
	white-space: nowrap;
}

.dive-page .schedule-desc {
	color: var(--text-secondary);
}

/* Emergency box */
.dive-page .emergency-box {
	background: #fef2f2;
	border: 2px solid #dc2626;
	border-radius: 12px;
	padding: 16px;
	margin-top: 12px;
}

@media (prefers-color-scheme: dark) {
	.dive-page .emergency-box {
		background: #2d1515;
		border-color: #ef4444;
	}
}

.dive-page .emergency-box h4 {
	color: #dc2626;
	margin: 0 0 8px;
	font-size: 1rem;
}

@media (prefers-color-scheme: dark) {
	.dive-page .emergency-box h4 {
		color: #ef4444;
	}
}

.dive-page .emergency-box p {
	margin: 4px 0;
	font-size: 0.85rem;
	color: var(--text-secondary);
}

/* Warning/Info callout */
.dive-page .callout {
	border-left: 4px solid var(--brand);
	padding: 12px 16px;
	background: var(--page-bg);
	border-radius: 0 8px 8px 0;
	margin-top: 12px;
	font-size: 0.88rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

.dive-page .callout.warning {
	border-left-color: #f59e0b;
	background: #fffbeb;
}

@media (prefers-color-scheme: dark) {
	.dive-page .callout.warning {
		background: #2d2510;
	}
}

/* Plan comparison table */
.dive-page .compare-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
	margin-top: 12px;
}

.dive-page .compare-table th,
.dive-page .compare-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid var(--border);
}

.dive-page .compare-table th {
	font-weight: 700;
	color: var(--brand);
	background: var(--page-bg);
}

.dive-page .compare-table td {
	color: var(--text-secondary);
}

.dive-page .compare-table tr:last-child td {
	border-bottom: none;
}

/* Packing list badges */
.dive-page .badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 700;
}

.dive-page .badge.essential {
	background: #dcfce7;
	color: #166534;
}

.dive-page .badge.recommended {
	background: #dbeafe;
	color: #1e40af;
}

@media (prefers-color-scheme: dark) {
	.dive-page .badge.essential {
		background: #14532d;
		color: #86efac;
	}
	.dive-page .badge.recommended {
		background: #1e3a5f;
		color: #93c5fd;
	}
}

/* Booking card highlight */
.dive-page .booking-highlight {
	background: var(--page-bg);
	border-radius: 10px;
	padding: 14px;
	margin-top: 8px;
	border: 1px solid var(--border);
	font-size: 0.88rem;
	line-height: 1.6;
}

.dive-page .booking-highlight strong {
	color: var(--brand);
}

/* Probability bar */
.dive-page .prob-bar-container {
	margin-top: 8px;
}

.dive-page .prob-row {
	display: grid;
	grid-template-columns: 140px 1fr 60px;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 0.85rem;
}

.dive-page .prob-label {
	font-weight: 600;
	color: var(--text-primary);
}

.dive-page .prob-track {
	height: 14px;
	background: var(--page-bg);
	border-radius: 7px;
	overflow: hidden;
	border: 1px solid var(--border);
}

.dive-page .prob-fill {
	height: 100%;
	border-radius: 7px;
	background: linear-gradient(90deg, var(--brand), var(--accent));
}

.dive-page .prob-value {
	font-weight: 700;
	color: var(--accent);
	text-align: right;
}

@media (max-width: 768px) {
	.dive-page .schedule-item {
		grid-template-columns: 1fr;
	}
	.dive-page .prob-row {
		grid-template-columns: 100px 1fr 50px;
	}
}

/* ===== MAP NAVIGATION BAR ===== */
.dive-page .map-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 16px;
	margin: 0 0 20px;
	background: linear-gradient(135deg, #0a2a43 0%, #133b5c 100%);
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,0.1);
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dive-page .map-nav-label {
	color: #e2e8f0;
	font-weight: 700;
	font-size: 0.95rem;
	margin-right: 4px;
	white-space: nowrap;
}

.dive-page .map-nav-link {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
	white-space: nowrap;
}

.dive-page .map-nav-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.4);
	filter: brightness(1.15);
}

.dive-page .map-nav-link:focus-visible {
	outline: 2px solid #fbbf24;
	outline-offset: 2px;
}

.dive-page .map-nav-a {
	background: linear-gradient(135deg, #1a5276, #2980b9);
}

.dive-page .map-nav-b {
	background: linear-gradient(135deg, #0e6655, #10b981);
}

.dive-page .map-nav-c {
	background: linear-gradient(135deg, #b7791f, #f59e0b);
}

@media (max-width: 600px) {
	.dive-page .map-nav {
		flex-direction: column;
		gap: 8px;
	}
	.dive-page .map-nav-link {
		width: 100%;
		justify-content: center;
	}
}

/* ── Language Switcher ────────────────────────────────────── */
.lang-switch {
	position: fixed;
	top: 12px;
	right: 12px;
	z-index: 9999;
	display: flex;
	background: rgba(13, 27, 42, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.15);
	font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.lang-switch a {
	padding: 6px 14px;
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 4px;
}
.lang-switch a.active {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	cursor: default;
	pointer-events: none;
}
.lang-switch a:hover:not(.active) {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}
.lang-switch a:focus-visible {
	outline: 2px solid #facc15;
	outline-offset: -2px;
}
